Diff of /trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 48 by harbaum, Fri Aug 7 07:57:33 2009 UTC revision 282 by harbaum, Wed May 26 19:21:47 2010 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated by GNU Autoconf 2.61 for GPXView 0.8.2.  # Generated by GNU Autoconf 2.61 for GPXView 0.9.4.
4  #  #
5  # Report bugs to <till@harbaum.org>.  # Report bugs to <till@harbaum.org>.
6  #  #
# Line 574  SHELL=${CONFIG_SHELL-/bin/sh} Line 574  SHELL=${CONFIG_SHELL-/bin/sh}
574  # Identity of this package.  # Identity of this package.
575  PACKAGE_NAME='GPXView'  PACKAGE_NAME='GPXView'
576  PACKAGE_TARNAME='gpxview'  PACKAGE_TARNAME='gpxview'
577  PACKAGE_VERSION='0.8.2'  PACKAGE_VERSION='0.9.4'
578  PACKAGE_STRING='GPXView 0.8.2'  PACKAGE_STRING='GPXView 0.9.4'
579  PACKAGE_BUGREPORT='till@harbaum.org'  PACKAGE_BUGREPORT='till@harbaum.org'
580    
581  ac_unique_file="src/main.c"  ac_unique_file="src/main.c"
582    # Factoring default headers for most tests.
583    ac_includes_default="\
584    #include <stdio.h>
585    #ifdef HAVE_SYS_TYPES_H
586    # include <sys/types.h>
587    #endif
588    #ifdef HAVE_SYS_STAT_H
589    # include <sys/stat.h>
590    #endif
591    #ifdef STDC_HEADERS
592    # include <stdlib.h>
593    # include <stddef.h>
594    #else
595    # ifdef HAVE_STDLIB_H
596    #  include <stdlib.h>
597    # endif
598    #endif
599    #ifdef HAVE_STRING_H
600    # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601    #  include <memory.h>
602    # endif
603    # include <string.h>
604    #endif
605    #ifdef HAVE_STRINGS_H
606    # include <strings.h>
607    #endif
608    #ifdef HAVE_INTTYPES_H
609    # include <inttypes.h>
610    #endif
611    #ifdef HAVE_STDINT_H
612    # include <stdint.h>
613    #endif
614    #ifdef HAVE_UNISTD_H
615    # include <unistd.h>
616    #endif"
617    
618  ac_subst_vars='SHELL  ac_subst_vars='SHELL
619  PATH_SEPARATOR  PATH_SEPARATOR
620  PACKAGE_NAME  PACKAGE_NAME
# Line 634  gnome_vfs_module_CFLAGS Line 670  gnome_vfs_module_CFLAGS
670  gnome_vfs_module_LIBS  gnome_vfs_module_LIBS
671  libxml2_CFLAGS  libxml2_CFLAGS
672  libxml2_LIBS  libxml2_LIBS
673    libcurl_CFLAGS
674    libcurl_LIBS
675  libsoup24_CFLAGS  libsoup24_CFLAGS
676  libsoup24_LIBS  libsoup24_LIBS
677  libsoup22_CFLAGS  libsoup22_CFLAGS
# Line 656  gpsbt_CFLAGS Line 694  gpsbt_CFLAGS
694  gpsbt_LIBS  gpsbt_LIBS
695  liblocation_CFLAGS  liblocation_CFLAGS
696  liblocation_LIBS  liblocation_LIBS
697    MAEMO_VERSION_MAJOR
698    CPP
699    GREP
700    EGREP
701  gtk_CFLAGS  gtk_CFLAGS
702  gtk_LIBS  gtk_LIBS
703  gnome2_CFLAGS  gnome2_CFLAGS
704  gnome2_LIBS  gnome2_LIBS
705    gps_CFLAGS
706    gps_LIBS
707  EXTRA_OBJS  EXTRA_OBJS
708    ICON
709  INSTALL_PLATTFORM  INSTALL_PLATTFORM
710  LIBOBJS  LIBOBJS
711  LTLIBOBJS'  LTLIBOBJS'
# Line 678  gnome_vfs_module_CFLAGS Line 723  gnome_vfs_module_CFLAGS
723  gnome_vfs_module_LIBS  gnome_vfs_module_LIBS
724  libxml2_CFLAGS  libxml2_CFLAGS
725  libxml2_LIBS  libxml2_LIBS
726    libcurl_CFLAGS
727    libcurl_LIBS
728  libsoup24_CFLAGS  libsoup24_CFLAGS
729  libsoup24_LIBS  libsoup24_LIBS
730  libsoup22_CFLAGS  libsoup22_CFLAGS
# Line 700  gpsbt_CFLAGS Line 747  gpsbt_CFLAGS
747  gpsbt_LIBS  gpsbt_LIBS
748  liblocation_CFLAGS  liblocation_CFLAGS
749  liblocation_LIBS  liblocation_LIBS
750    CPP
751  gtk_CFLAGS  gtk_CFLAGS
752  gtk_LIBS  gtk_LIBS
753  gnome2_CFLAGS  gnome2_CFLAGS
754  gnome2_LIBS'  gnome2_LIBS
755    gps_CFLAGS
756    gps_LIBS'
757    
758    
759  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 1206  if test "$ac_init_help" = "long"; then Line 1256  if test "$ac_init_help" = "long"; then
1256    # Omit some internal or obsolete options to make the list less imposing.    # Omit some internal or obsolete options to make the list less imposing.
1257    # This message is too long to be a string in the A/UX 3.1 sh.    # This message is too long to be a string in the A/UX 3.1 sh.
1258    cat <<_ACEOF    cat <<_ACEOF
1259  \`configure' configures GPXView 0.8.2 to adapt to many kinds of systems.  \`configure' configures GPXView 0.9.4 to adapt to many kinds of systems.
1260    
1261  Usage: $0 [OPTION]... [VAR=VALUE]...  Usage: $0 [OPTION]... [VAR=VALUE]...
1262    
# Line 1267  fi Line 1317  fi
1317    
1318  if test -n "$ac_init_help"; then  if test -n "$ac_init_help"; then
1319    case $ac_init_help in    case $ac_init_help in
1320       short | recursive ) echo "Configuration of GPXView 0.8.2:";;       short | recursive ) echo "Configuration of GPXView 0.9.4:";;
1321     esac     esac
1322    cat <<\_ACEOF    cat <<\_ACEOF
1323    
# Line 1288  Some influential environment variables: Line 1338  Some influential environment variables:
1338                C compiler flags for libxml2, overriding pkg-config                C compiler flags for libxml2, overriding pkg-config
1339    libxml2_LIBS    libxml2_LIBS
1340                linker flags for libxml2, overriding pkg-config                linker flags for libxml2, overriding pkg-config
1341      libcurl_CFLAGS
1342                  C compiler flags for libcurl, overriding pkg-config
1343      libcurl_LIBS
1344                  linker flags for libcurl, overriding pkg-config
1345    libsoup24_CFLAGS    libsoup24_CFLAGS
1346                C compiler flags for libsoup24, overriding pkg-config                C compiler flags for libsoup24, overriding pkg-config
1347    libsoup24_LIBS    libsoup24_LIBS
# Line 1328  Some influential environment variables: Line 1382  Some influential environment variables:
1382                C compiler flags for liblocation, overriding pkg-config                C compiler flags for liblocation, overriding pkg-config
1383    liblocation_LIBS    liblocation_LIBS
1384                linker flags for liblocation, overriding pkg-config                linker flags for liblocation, overriding pkg-config
1385      CPP         C preprocessor
1386    gtk_CFLAGS  C compiler flags for gtk, overriding pkg-config    gtk_CFLAGS  C compiler flags for gtk, overriding pkg-config
1387    gtk_LIBS    linker flags for gtk, overriding pkg-config    gtk_LIBS    linker flags for gtk, overriding pkg-config
1388    gnome2_CFLAGS    gnome2_CFLAGS
1389                C compiler flags for gnome2, overriding pkg-config                C compiler flags for gnome2, overriding pkg-config
1390    gnome2_LIBS linker flags for gnome2, overriding pkg-config    gnome2_LIBS linker flags for gnome2, overriding pkg-config
1391      gps_CFLAGS  C compiler flags for gps, overriding pkg-config
1392      gps_LIBS    linker flags for gps, overriding pkg-config
1393    
1394  Use these variables to override the choices made by `configure' or to help  Use these variables to override the choices made by `configure' or to help
1395  it to find libraries and programs with nonstandard names/locations.  it to find libraries and programs with nonstandard names/locations.
# Line 1398  fi Line 1455  fi
1455  test -n "$ac_init_help" && exit $ac_status  test -n "$ac_init_help" && exit $ac_status
1456  if $ac_init_version; then  if $ac_init_version; then
1457    cat <<\_ACEOF    cat <<\_ACEOF
1458  GPXView configure 0.8.2  GPXView configure 0.9.4
1459  generated by GNU Autoconf 2.61  generated by GNU Autoconf 2.61
1460    
1461  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# Line 1412  cat >config.log <<_ACEOF Line 1469  cat >config.log <<_ACEOF
1469  This file contains any messages produced by compilers while  This file contains any messages produced by compilers while
1470  running configure, to aid debugging if configure makes a mistake.  running configure, to aid debugging if configure makes a mistake.
1471    
1472  It was created by GPXView $as_me 0.8.2, which was  It was created by GPXView $as_me 0.9.4, which was
1473  generated by GNU Autoconf 2.61.  Invocation command line was  generated by GNU Autoconf 2.61.  Invocation command line was
1474    
1475    $ $0 $@    $ $0 $@
# Line 3142  echo "${ECHO_T}yes" >&6; } Line 3199  echo "${ECHO_T}yes" >&6; }
3199  fi  fi
3200  CFLAGS="$CFLAGS $libxml2_CFLAGS"  CFLAGS="$CFLAGS $libxml2_CFLAGS"
3201  LIBS="$LIBS $libxml2_LIBS"  LIBS="$LIBS $libxml2_LIBS"
3202    
3203    # check for libcurl
3204    
3205    pkg_failed=no
3206    { echo "$as_me:$LINENO: checking for libcurl" >&5
3207    echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
3208    
3209    if test -n "$PKG_CONFIG"; then
3210        if test -n "$libcurl_CFLAGS"; then
3211            pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
3212        else
3213            if test -n "$PKG_CONFIG" && \
3214        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
3215      ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
3216      ac_status=$?
3217      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218      (exit $ac_status); }; then
3219      pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
3220    else
3221      pkg_failed=yes
3222    fi
3223        fi
3224    else
3225            pkg_failed=untried
3226    fi
3227    if test -n "$PKG_CONFIG"; then
3228        if test -n "$libcurl_LIBS"; then
3229            pkg_cv_libcurl_LIBS="$libcurl_LIBS"
3230        else
3231            if test -n "$PKG_CONFIG" && \
3232        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
3233      ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
3234      ac_status=$?
3235      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236      (exit $ac_status); }; then
3237      pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
3238    else
3239      pkg_failed=yes
3240    fi
3241        fi
3242    else
3243            pkg_failed=untried
3244    fi
3245    
3246    
3247    
3248    if test $pkg_failed = yes; then
3249    
3250    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3251            _pkg_short_errors_supported=yes
3252    else
3253            _pkg_short_errors_supported=no
3254    fi
3255            if test $_pkg_short_errors_supported = yes; then
3256                    libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
3257            else
3258                    libcurl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
3259            fi
3260            # Put the nasty error message in config.log where it belongs
3261            echo "$libcurl_PKG_ERRORS" >&5
3262    
3263            { echo "$as_me:$LINENO: result: no" >&5
3264    echo "${ECHO_T}no" >&6; }
3265                    { { echo "$as_me:$LINENO: error: libcurl missing" >&5
3266    echo "$as_me: error: libcurl missing" >&2;}
3267       { (exit 1); exit 1; }; }
3268    elif test $pkg_failed = untried; then
3269            { { echo "$as_me:$LINENO: error: libcurl missing" >&5
3270    echo "$as_me: error: libcurl missing" >&2;}
3271       { (exit 1); exit 1; }; }
3272    else
3273            libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
3274            libcurl_LIBS=$pkg_cv_libcurl_LIBS
3275            { echo "$as_me:$LINENO: result: yes" >&5
3276    echo "${ECHO_T}yes" >&6; }
3277            :
3278    fi
3279    CFLAGS="$CFLAGS $libcurl_CFLAGS"
3280    LIBS="$LIBS $libcurl_LIBS"
3281    
3282  # check for libsoup  # check for libsoup
3283    
3284  pkg_failed=no  pkg_failed=no
# Line 3281  else Line 3418  else
3418          { echo "$as_me:$LINENO: result: yes" >&5          { echo "$as_me:$LINENO: result: yes" >&5
3419  echo "${ECHO_T}yes" >&6; }  echo "${ECHO_T}yes" >&6; }
3420    
3421      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o"      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"
3422      CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"      CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"
3423      LIBS="$LIBS $libsoup22_LIBS"      LIBS="$LIBS $libsoup22_LIBS"
3424    
# Line 3365  else Line 3502  else
3502          { echo "$as_me:$LINENO: result: yes" >&5          { echo "$as_me:$LINENO: result: yes" >&5
3503  echo "${ECHO_T}yes" >&6; }  echo "${ECHO_T}yes" >&6; }
3504    
3505      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o"      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"
3506      CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"      CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"
3507      LIBS="$LIBS $libsoup22_LIBS"      LIBS="$LIBS $libsoup22_LIBS"
3508    
# Line 3377  else Line 3514  else
3514          { echo "$as_me:$LINENO: result: yes" >&5          { echo "$as_me:$LINENO: result: yes" >&5
3515  echo "${ECHO_T}yes" >&6; }  echo "${ECHO_T}yes" >&6; }
3516    
3517    EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o"    EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"
3518    CFLAGS="$CFLAGS $libsoup24_CFLAGS -DENABLE_OSM_GPS_MAP"    CFLAGS="$CFLAGS $libsoup24_CFLAGS -DENABLE_OSM_GPS_MAP"
3519    LIBS="$LIBS $libsoup24_LIBS"    LIBS="$LIBS $libsoup24_LIBS"
3520    
# Line 3622  fi Line 3759  fi
3759  # check for maemo  # check for maemo
3760  { echo "$as_me:$LINENO: checking for Maemo" >&5  { echo "$as_me:$LINENO: checking for Maemo" >&5
3761  echo $ECHO_N "checking for Maemo... $ECHO_C" >&6; }  echo $ECHO_N "checking for Maemo... $ECHO_C" >&6; }
3762  if test -n "$PKG_CONFIG" && \  
3763      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"maemo-version\"") >&5  ac_ext=c
3764    ($PKG_CONFIG --exists --print-errors "maemo-version") 2>&5  ac_cpp='$CPP $CPPFLAGS'
3765    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768    { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3770    # On Suns, sometimes $CPP names a directory.
3771    if test -n "$CPP" && test -d "$CPP"; then
3772      CPP=
3773    fi
3774    if test -z "$CPP"; then
3775      if test "${ac_cv_prog_CPP+set}" = set; then
3776      echo $ECHO_N "(cached) $ECHO_C" >&6
3777    else
3778          # Double quotes because CPP needs to be expanded
3779        for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780        do
3781          ac_preproc_ok=false
3782    for ac_c_preproc_warn_flag in '' yes
3783    do
3784      # Use a header file that comes with gcc, so configuring glibc
3785      # with a fresh cross-compiler works.
3786      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787      # <limits.h> exists even on freestanding compilers.
3788      # On the NeXT, cc -E runs the code through the compiler's parser,
3789      # not just through cpp. "Syntax error" is here to catch this case.
3790      cat >conftest.$ac_ext <<_ACEOF
3791    /* confdefs.h.  */
3792    _ACEOF
3793    cat confdefs.h >>conftest.$ac_ext
3794    cat >>conftest.$ac_ext <<_ACEOF
3795    /* end confdefs.h.  */
3796    #ifdef __STDC__
3797    # include <limits.h>
3798    #else
3799    # include <assert.h>
3800    #endif
3801                         Syntax error
3802    _ACEOF
3803    if { (ac_try="$ac_cpp conftest.$ac_ext"
3804    case "(($ac_try" in
3805      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806      *) ac_try_echo=$ac_try;;
3807    esac
3808    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810    ac_status=$?    ac_status=$?
3811      grep -v '^ *+' conftest.er1 >conftest.err
3812      rm -f conftest.er1
3813      cat conftest.err >&5
3814    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815    (exit $ac_status); }; then    (exit $ac_status); } >/dev/null && {
3816             test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817    MAEMO="yes"           test ! -s conftest.err
3818    { echo "$as_me:$LINENO: result: yes" >&5         }; then
3819  echo "${ECHO_T}yes" >&6; }    :
3820    else
3821      echo "$as_me: failed program was:" >&5
3822    sed 's/^/| /' conftest.$ac_ext >&5
3823    
3824      # Broken: fails on valid input.
3825    continue
3826    fi
3827    
3828  pkg_failed=no  rm -f conftest.err conftest.$ac_ext
 { echo "$as_me:$LINENO: checking for hildon" >&5  
 echo $ECHO_N "checking for hildon... $ECHO_C" >&6; }  
3829    
3830  if test -n "$PKG_CONFIG"; then    # OK, works on sane cases.  Now check whether nonexistent headers
3831      if test -n "$hildon_CFLAGS"; then    # can be detected and how.
3832          pkg_cv_hildon_CFLAGS="$hildon_CFLAGS"    cat >conftest.$ac_ext <<_ACEOF
3833      else  /* confdefs.h.  */
3834          if test -n "$PKG_CONFIG" && \  _ACEOF
3835      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1\"") >&5  cat confdefs.h >>conftest.$ac_ext
3836    ($PKG_CONFIG --exists --print-errors "hildon-1") 2>&5  cat >>conftest.$ac_ext <<_ACEOF
3837    /* end confdefs.h.  */
3838    #include <ac_nonexistent.h>
3839    _ACEOF
3840    if { (ac_try="$ac_cpp conftest.$ac_ext"
3841    case "(($ac_try" in
3842      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843      *) ac_try_echo=$ac_try;;
3844    esac
3845    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847    ac_status=$?    ac_status=$?
3848      grep -v '^ *+' conftest.er1 >conftest.err
3849      rm -f conftest.er1
3850      cat conftest.err >&5
3851    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852    (exit $ac_status); }; then    (exit $ac_status); } >/dev/null && {
3853    pkg_cv_hildon_CFLAGS=`$PKG_CONFIG --cflags "hildon-1" 2>/dev/null`           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854             test ! -s conftest.err
3855           }; then
3856      # Broken: success on invalid input.
3857    continue
3858  else  else
3859    pkg_failed=yes    echo "$as_me: failed program was:" >&5
3860    sed 's/^/| /' conftest.$ac_ext >&5
3861    
3862      # Passes both tests.
3863    ac_preproc_ok=:
3864    break
3865  fi  fi
3866      fi  
3867    rm -f conftest.err conftest.$ac_ext
3868    
3869    done
3870    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871    rm -f conftest.err conftest.$ac_ext
3872    if $ac_preproc_ok; then
3873      break
3874    fi
3875    
3876        done
3877        ac_cv_prog_CPP=$CPP
3878    
3879    fi
3880      CPP=$ac_cv_prog_CPP
3881  else  else
3882          pkg_failed=untried    ac_cv_prog_CPP=$CPP
3883  fi  fi
3884  if test -n "$PKG_CONFIG"; then  { echo "$as_me:$LINENO: result: $CPP" >&5
3885      if test -n "$hildon_LIBS"; then  echo "${ECHO_T}$CPP" >&6; }
3886          pkg_cv_hildon_LIBS="$hildon_LIBS"  ac_preproc_ok=false
3887      else  for ac_c_preproc_warn_flag in '' yes
3888          if test -n "$PKG_CONFIG" && \  do
3889      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1\"") >&5    # Use a header file that comes with gcc, so configuring glibc
3890    ($PKG_CONFIG --exists --print-errors "hildon-1") 2>&5    # with a fresh cross-compiler works.
3891      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892      # <limits.h> exists even on freestanding compilers.
3893      # On the NeXT, cc -E runs the code through the compiler's parser,
3894      # not just through cpp. "Syntax error" is here to catch this case.
3895      cat >conftest.$ac_ext <<_ACEOF
3896    /* confdefs.h.  */
3897    _ACEOF
3898    cat confdefs.h >>conftest.$ac_ext
3899    cat >>conftest.$ac_ext <<_ACEOF
3900    /* end confdefs.h.  */
3901    #ifdef __STDC__
3902    # include <limits.h>
3903    #else
3904    # include <assert.h>
3905    #endif
3906                         Syntax error
3907    _ACEOF
3908    if { (ac_try="$ac_cpp conftest.$ac_ext"
3909    case "(($ac_try" in
3910      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911      *) ac_try_echo=$ac_try;;
3912    esac
3913    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915    ac_status=$?    ac_status=$?
3916      grep -v '^ *+' conftest.er1 >conftest.err
3917      rm -f conftest.er1
3918      cat conftest.err >&5
3919    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920    (exit $ac_status); }; then    (exit $ac_status); } >/dev/null && {
3921    pkg_cv_hildon_LIBS=`$PKG_CONFIG --libs "hildon-1" 2>/dev/null`           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922  else           test ! -s conftest.err
3923    pkg_failed=yes         }; then
3924  fi    :
     fi  
3925  else  else
3926          pkg_failed=untried    echo "$as_me: failed program was:" >&5
3927  fi  sed 's/^/| /' conftest.$ac_ext >&5
   
3928    
3929      # Broken: fails on valid input.
3930    continue
3931    fi
3932    
3933  if test $pkg_failed = yes; then  rm -f conftest.err conftest.$ac_ext
3934    
3935  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then    # OK, works on sane cases.  Now check whether nonexistent headers
3936          _pkg_short_errors_supported=yes    # can be detected and how.
3937      cat >conftest.$ac_ext <<_ACEOF
3938    /* confdefs.h.  */
3939    _ACEOF
3940    cat confdefs.h >>conftest.$ac_ext
3941    cat >>conftest.$ac_ext <<_ACEOF
3942    /* end confdefs.h.  */
3943    #include <ac_nonexistent.h>
3944    _ACEOF
3945    if { (ac_try="$ac_cpp conftest.$ac_ext"
3946    case "(($ac_try" in
3947      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948      *) ac_try_echo=$ac_try;;
3949    esac
3950    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3952      ac_status=$?
3953      grep -v '^ *+' conftest.er1 >conftest.err
3954      rm -f conftest.er1
3955      cat conftest.err >&5
3956      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957      (exit $ac_status); } >/dev/null && {
3958             test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3959             test ! -s conftest.err
3960           }; then
3961      # Broken: success on invalid input.
3962    continue
3963  else  else
3964          _pkg_short_errors_supported=no    echo "$as_me: failed program was:" >&5
3965    sed 's/^/| /' conftest.$ac_ext >&5
3966    
3967      # Passes both tests.
3968    ac_preproc_ok=:
3969    break
3970  fi  fi
         if test $_pkg_short_errors_supported = yes; then  
                 hildon_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1"`  
         else  
                 hildon_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1"`  
         fi  
         # Put the nasty error message in config.log where it belongs  
         echo "$hildon_PKG_ERRORS" >&5  
3971    
3972          { echo "$as_me:$LINENO: result: no" >&5  rm -f conftest.err conftest.$ac_ext
3973  echo "${ECHO_T}no" >&6; }  
3974                  { { echo "$as_me:$LINENO: error: hildon-1 missing" >&5  done
3975  echo "$as_me: error: hildon-1 missing" >&2;}  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976     { (exit 1); exit 1; }; }  rm -f conftest.err conftest.$ac_ext
3977  elif test $pkg_failed = untried; then  if $ac_preproc_ok; then
3978          { { echo "$as_me:$LINENO: error: hildon-1 missing" >&5    :
 echo "$as_me: error: hildon-1 missing" >&2;}  
    { (exit 1); exit 1; }; }  
3979  else  else
3980          hildon_CFLAGS=$pkg_cv_hildon_CFLAGS    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3981          hildon_LIBS=$pkg_cv_hildon_LIBS  See \`config.log' for more details." >&5
3982          { echo "$as_me:$LINENO: result: yes" >&5  echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3983  echo "${ECHO_T}yes" >&6; }  See \`config.log' for more details." >&2;}
3984          :     { (exit 1); exit 1; }; }
3985  fi  fi
   CFLAGS="$CFLAGS  -DUSE_MAEMO $hildon_CFLAGS"  
   LIBS="$LIBS $hildon_LIBS"  
3986    
3987    ac_ext=c
3988    ac_cpp='$CPP $CPPFLAGS'
3989    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992    
 pkg_failed=no  
 { echo "$as_me:$LINENO: checking for osso" >&5  
 echo $ECHO_N "checking for osso... $ECHO_C" >&6; }  
3993    
3994  if test -n "$PKG_CONFIG"; then  { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3995      if test -n "$osso_CFLAGS"; then  echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3996          pkg_cv_osso_CFLAGS="$osso_CFLAGS"  if test "${ac_cv_path_GREP+set}" = set; then
3997      else    echo $ECHO_N "(cached) $ECHO_C" >&6
3998          if test -n "$PKG_CONFIG" && \  else
3999      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso\"") >&5    # Extract the first word of "grep ggrep" to use in msg output
4000    if test -z "$GREP"; then
4001    set dummy grep ggrep; ac_prog_name=$2
4002    if test "${ac_cv_path_GREP+set}" = set; then
4003      echo $ECHO_N "(cached) $ECHO_C" >&6
4004    else
4005      ac_path_GREP_found=false
4006    # Loop through the user's path and test for each of PROGNAME-LIST
4007    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009    do
4010      IFS=$as_save_IFS
4011      test -z "$as_dir" && as_dir=.
4012      for ac_prog in grep ggrep; do
4013      for ac_exec_ext in '' $ac_executable_extensions; do
4014        ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4015        { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4016        # Check for GNU ac_path_GREP and select it if it is found.
4017      # Check for GNU $ac_path_GREP
4018    case `"$ac_path_GREP" --version 2>&1` in
4019    *GNU*)
4020      ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4021    *)
4022      ac_count=0
4023      echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4024      while :
4025      do
4026        cat "conftest.in" "conftest.in" >"conftest.tmp"
4027        mv "conftest.tmp" "conftest.in"
4028        cp "conftest.in" "conftest.nl"
4029        echo 'GREP' >> "conftest.nl"
4030        "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032        ac_count=`expr $ac_count + 1`
4033        if test $ac_count -gt ${ac_path_GREP_max-0}; then
4034          # Best one so far, save it but keep looking for a better one
4035          ac_cv_path_GREP="$ac_path_GREP"
4036          ac_path_GREP_max=$ac_count
4037        fi
4038        # 10*(2^10) chars as input seems more than enough
4039        test $ac_count -gt 10 && break
4040      done
4041      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042    esac
4043    
4044    
4045        $ac_path_GREP_found && break 3
4046      done
4047    done
4048    
4049    done
4050    IFS=$as_save_IFS
4051    
4052    
4053    fi
4054    
4055    GREP="$ac_cv_path_GREP"
4056    if test -z "$GREP"; then
4057      { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4058    echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4059       { (exit 1); exit 1; }; }
4060    fi
4061    
4062    else
4063      ac_cv_path_GREP=$GREP
4064    fi
4065    
4066    
4067    fi
4068    { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4069    echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4070     GREP="$ac_cv_path_GREP"
4071    
4072    
4073    { echo "$as_me:$LINENO: checking for egrep" >&5
4074    echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4075    if test "${ac_cv_path_EGREP+set}" = set; then
4076      echo $ECHO_N "(cached) $ECHO_C" >&6
4077    else
4078      if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4079       then ac_cv_path_EGREP="$GREP -E"
4080       else
4081         # Extract the first word of "egrep" to use in msg output
4082    if test -z "$EGREP"; then
4083    set dummy egrep; ac_prog_name=$2
4084    if test "${ac_cv_path_EGREP+set}" = set; then
4085      echo $ECHO_N "(cached) $ECHO_C" >&6
4086    else
4087      ac_path_EGREP_found=false
4088    # Loop through the user's path and test for each of PROGNAME-LIST
4089    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4091    do
4092      IFS=$as_save_IFS
4093      test -z "$as_dir" && as_dir=.
4094      for ac_prog in egrep; do
4095      for ac_exec_ext in '' $ac_executable_extensions; do
4096        ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4097        { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4098        # Check for GNU ac_path_EGREP and select it if it is found.
4099      # Check for GNU $ac_path_EGREP
4100    case `"$ac_path_EGREP" --version 2>&1` in
4101    *GNU*)
4102      ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4103    *)
4104      ac_count=0
4105      echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4106      while :
4107      do
4108        cat "conftest.in" "conftest.in" >"conftest.tmp"
4109        mv "conftest.tmp" "conftest.in"
4110        cp "conftest.in" "conftest.nl"
4111        echo 'EGREP' >> "conftest.nl"
4112        "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4113        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4114        ac_count=`expr $ac_count + 1`
4115        if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4116          # Best one so far, save it but keep looking for a better one
4117          ac_cv_path_EGREP="$ac_path_EGREP"
4118          ac_path_EGREP_max=$ac_count
4119        fi
4120        # 10*(2^10) chars as input seems more than enough
4121        test $ac_count -gt 10 && break
4122      done
4123      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124    esac
4125    
4126    
4127        $ac_path_EGREP_found && break 3
4128      done
4129    done
4130    
4131    done
4132    IFS=$as_save_IFS
4133    
4134    
4135    fi
4136    
4137    EGREP="$ac_cv_path_EGREP"
4138    if test -z "$EGREP"; then
4139      { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4140    echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4141       { (exit 1); exit 1; }; }
4142    fi
4143    
4144    else
4145      ac_cv_path_EGREP=$EGREP
4146    fi
4147    
4148    
4149       fi
4150    fi
4151    { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4152    echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4153     EGREP="$ac_cv_path_EGREP"
4154    
4155    
4156    { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4157    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4158    if test "${ac_cv_header_stdc+set}" = set; then
4159      echo $ECHO_N "(cached) $ECHO_C" >&6
4160    else
4161      cat >conftest.$ac_ext <<_ACEOF
4162    /* confdefs.h.  */
4163    _ACEOF
4164    cat confdefs.h >>conftest.$ac_ext
4165    cat >>conftest.$ac_ext <<_ACEOF
4166    /* end confdefs.h.  */
4167    #include <stdlib.h>
4168    #include <stdarg.h>
4169    #include <string.h>
4170    #include <float.h>
4171    
4172    int
4173    main ()
4174    {
4175    
4176      ;
4177      return 0;
4178    }
4179    _ACEOF
4180    rm -f conftest.$ac_objext
4181    if { (ac_try="$ac_compile"
4182    case "(($ac_try" in
4183      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184      *) ac_try_echo=$ac_try;;
4185    esac
4186    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187      (eval "$ac_compile") 2>conftest.er1
4188      ac_status=$?
4189      grep -v '^ *+' conftest.er1 >conftest.err
4190      rm -f conftest.er1
4191      cat conftest.err >&5
4192      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193      (exit $ac_status); } && {
4194             test -z "$ac_c_werror_flag" ||
4195             test ! -s conftest.err
4196           } && test -s conftest.$ac_objext; then
4197      ac_cv_header_stdc=yes
4198    else
4199      echo "$as_me: failed program was:" >&5
4200    sed 's/^/| /' conftest.$ac_ext >&5
4201    
4202            ac_cv_header_stdc=no
4203    fi
4204    
4205    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206    
4207    if test $ac_cv_header_stdc = yes; then
4208      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4209      cat >conftest.$ac_ext <<_ACEOF
4210    /* confdefs.h.  */
4211    _ACEOF
4212    cat confdefs.h >>conftest.$ac_ext
4213    cat >>conftest.$ac_ext <<_ACEOF
4214    /* end confdefs.h.  */
4215    #include <string.h>
4216    
4217    _ACEOF
4218    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219      $EGREP "memchr" >/dev/null 2>&1; then
4220      :
4221    else
4222      ac_cv_header_stdc=no
4223    fi
4224    rm -f conftest*
4225    
4226    fi
4227    
4228    if test $ac_cv_header_stdc = yes; then
4229      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4230      cat >conftest.$ac_ext <<_ACEOF
4231    /* confdefs.h.  */
4232    _ACEOF
4233    cat confdefs.h >>conftest.$ac_ext
4234    cat >>conftest.$ac_ext <<_ACEOF
4235    /* end confdefs.h.  */
4236    #include <stdlib.h>
4237    
4238    _ACEOF
4239    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240      $EGREP "free" >/dev/null 2>&1; then
4241      :
4242    else
4243      ac_cv_header_stdc=no
4244    fi
4245    rm -f conftest*
4246    
4247    fi
4248    
4249    if test $ac_cv_header_stdc = yes; then
4250      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4251      if test "$cross_compiling" = yes; then
4252      :
4253    else
4254      cat >conftest.$ac_ext <<_ACEOF
4255    /* confdefs.h.  */
4256    _ACEOF
4257    cat confdefs.h >>conftest.$ac_ext
4258    cat >>conftest.$ac_ext <<_ACEOF
4259    /* end confdefs.h.  */
4260    #include <ctype.h>
4261    #include <stdlib.h>
4262    #if ((' ' & 0x0FF) == 0x020)
4263    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4264    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4265    #else
4266    # define ISLOWER(c) \
4267                       (('a' <= (c) && (c) <= 'i') \
4268                         || ('j' <= (c) && (c) <= 'r') \
4269                         || ('s' <= (c) && (c) <= 'z'))
4270    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4271    #endif
4272    
4273    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4274    int
4275    main ()
4276    {
4277      int i;
4278      for (i = 0; i < 256; i++)
4279        if (XOR (islower (i), ISLOWER (i))
4280            || toupper (i) != TOUPPER (i))
4281          return 2;
4282      return 0;
4283    }
4284    _ACEOF
4285    rm -f conftest$ac_exeext
4286    if { (ac_try="$ac_link"
4287    case "(($ac_try" in
4288      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289      *) ac_try_echo=$ac_try;;
4290    esac
4291    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292      (eval "$ac_link") 2>&5
4293      ac_status=$?
4294      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296      { (case "(($ac_try" in
4297      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298      *) ac_try_echo=$ac_try;;
4299    esac
4300    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301      (eval "$ac_try") 2>&5
4302      ac_status=$?
4303      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304      (exit $ac_status); }; }; then
4305      :
4306    else
4307      echo "$as_me: program exited with status $ac_status" >&5
4308    echo "$as_me: failed program was:" >&5
4309    sed 's/^/| /' conftest.$ac_ext >&5
4310    
4311    ( exit $ac_status )
4312    ac_cv_header_stdc=no
4313    fi
4314    rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4315    fi
4316    
4317    
4318    fi
4319    fi
4320    { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4321    echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4322    if test $ac_cv_header_stdc = yes; then
4323    
4324    cat >>confdefs.h <<\_ACEOF
4325    #define STDC_HEADERS 1
4326    _ACEOF
4327    
4328    fi
4329    
4330    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4331    
4332    
4333    
4334    
4335    
4336    
4337    
4338    
4339    
4340    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4341                      inttypes.h stdint.h unistd.h
4342    do
4343    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4344    { echo "$as_me:$LINENO: checking for $ac_header" >&5
4345    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4346    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4347      echo $ECHO_N "(cached) $ECHO_C" >&6
4348    else
4349      cat >conftest.$ac_ext <<_ACEOF
4350    /* confdefs.h.  */
4351    _ACEOF
4352    cat confdefs.h >>conftest.$ac_ext
4353    cat >>conftest.$ac_ext <<_ACEOF
4354    /* end confdefs.h.  */
4355    $ac_includes_default
4356    
4357    #include <$ac_header>
4358    _ACEOF
4359    rm -f conftest.$ac_objext
4360    if { (ac_try="$ac_compile"
4361    case "(($ac_try" in
4362      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363      *) ac_try_echo=$ac_try;;
4364    esac
4365    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366      (eval "$ac_compile") 2>conftest.er1
4367      ac_status=$?
4368      grep -v '^ *+' conftest.er1 >conftest.err
4369      rm -f conftest.er1
4370      cat conftest.err >&5
4371      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372      (exit $ac_status); } && {
4373             test -z "$ac_c_werror_flag" ||
4374             test ! -s conftest.err
4375           } && test -s conftest.$ac_objext; then
4376      eval "$as_ac_Header=yes"
4377    else
4378      echo "$as_me: failed program was:" >&5
4379    sed 's/^/| /' conftest.$ac_ext >&5
4380    
4381            eval "$as_ac_Header=no"
4382    fi
4383    
4384    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385    fi
4386    ac_res=`eval echo '${'$as_ac_Header'}'`
4387                   { echo "$as_me:$LINENO: result: $ac_res" >&5
4388    echo "${ECHO_T}$ac_res" >&6; }
4389    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4390      cat >>confdefs.h <<_ACEOF
4391    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392    _ACEOF
4393    
4394    fi
4395    
4396    done
4397    
4398    
4399    if test -n "$PKG_CONFIG" && \
4400        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"maemo-version\"") >&5
4401      ($PKG_CONFIG --exists --print-errors "maemo-version") 2>&5
4402      ac_status=$?
4403      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404      (exit $ac_status); }; then
4405    
4406      MAEMO="yes"
4407      { echo "$as_me:$LINENO: result: yes" >&5
4408    echo "${ECHO_T}yes" >&6; }
4409    
4410    
4411    pkg_failed=no
4412    { echo "$as_me:$LINENO: checking for hildon" >&5
4413    echo $ECHO_N "checking for hildon... $ECHO_C" >&6; }
4414    
4415    if test -n "$PKG_CONFIG"; then
4416        if test -n "$hildon_CFLAGS"; then
4417            pkg_cv_hildon_CFLAGS="$hildon_CFLAGS"
4418        else
4419            if test -n "$PKG_CONFIG" && \
4420        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1\"") >&5
4421      ($PKG_CONFIG --exists --print-errors "hildon-1") 2>&5
4422      ac_status=$?
4423      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424      (exit $ac_status); }; then
4425      pkg_cv_hildon_CFLAGS=`$PKG_CONFIG --cflags "hildon-1" 2>/dev/null`
4426    else
4427      pkg_failed=yes
4428    fi
4429        fi
4430    else
4431            pkg_failed=untried
4432    fi
4433    if test -n "$PKG_CONFIG"; then
4434        if test -n "$hildon_LIBS"; then
4435            pkg_cv_hildon_LIBS="$hildon_LIBS"
4436        else
4437            if test -n "$PKG_CONFIG" && \
4438        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1\"") >&5
4439      ($PKG_CONFIG --exists --print-errors "hildon-1") 2>&5
4440      ac_status=$?
4441      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442      (exit $ac_status); }; then
4443      pkg_cv_hildon_LIBS=`$PKG_CONFIG --libs "hildon-1" 2>/dev/null`
4444    else
4445      pkg_failed=yes
4446    fi
4447        fi
4448    else
4449            pkg_failed=untried
4450    fi
4451    
4452    
4453    
4454    if test $pkg_failed = yes; then
4455    
4456    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4457            _pkg_short_errors_supported=yes
4458    else
4459            _pkg_short_errors_supported=no
4460    fi
4461            if test $_pkg_short_errors_supported = yes; then
4462                    hildon_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1"`
4463            else
4464                    hildon_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1"`
4465            fi
4466            # Put the nasty error message in config.log where it belongs
4467            echo "$hildon_PKG_ERRORS" >&5
4468    
4469            { echo "$as_me:$LINENO: result: no" >&5
4470    echo "${ECHO_T}no" >&6; }
4471                    { { echo "$as_me:$LINENO: error: hildon-1 missing" >&5
4472    echo "$as_me: error: hildon-1 missing" >&2;}
4473       { (exit 1); exit 1; }; }
4474    elif test $pkg_failed = untried; then
4475            { { echo "$as_me:$LINENO: error: hildon-1 missing" >&5
4476    echo "$as_me: error: hildon-1 missing" >&2;}
4477       { (exit 1); exit 1; }; }
4478    else
4479            hildon_CFLAGS=$pkg_cv_hildon_CFLAGS
4480            hildon_LIBS=$pkg_cv_hildon_LIBS
4481            { echo "$as_me:$LINENO: result: yes" >&5
4482    echo "${ECHO_T}yes" >&6; }
4483            :
4484    fi
4485      CFLAGS="$CFLAGS  -DUSE_MAEMO $hildon_CFLAGS"
4486      LIBS="$LIBS $hildon_LIBS"
4487    
4488    
4489    pkg_failed=no
4490    { echo "$as_me:$LINENO: checking for osso" >&5
4491    echo $ECHO_N "checking for osso... $ECHO_C" >&6; }
4492    
4493    if test -n "$PKG_CONFIG"; then
4494        if test -n "$osso_CFLAGS"; then
4495            pkg_cv_osso_CFLAGS="$osso_CFLAGS"
4496        else
4497            if test -n "$PKG_CONFIG" && \
4498        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso\"") >&5
4499    ($PKG_CONFIG --exists --print-errors "libosso") 2>&5    ($PKG_CONFIG --exists --print-errors "libosso") 2>&5
4500    ac_status=$?    ac_status=$?
4501    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
# Line 4314  echo "$as_me: Configuring for Maemo $VER Line 5088  echo "$as_me: Configuring for Maemo $VER
5088      MAJOR=`echo $VERSION | cut -b1 -`      MAJOR=`echo $VERSION | cut -b1 -`
5089      CFLAGS="$CFLAGS -DMAEMO_VERSION_MAJOR=$MAJOR"      CFLAGS="$CFLAGS -DMAEMO_VERSION_MAJOR=$MAJOR"
5090    
5091        MAEMO_VERSION_MAJOR=$MAJOR
5092    
5093    
5094  else  else
5095    
5096      { { echo "$as_me:$LINENO: error: maemo-version not found" >&5      { { echo "$as_me:$LINENO: error: maemo-version not found" >&5
# Line 4322  echo "$as_me: error: maemo-version not f Line 5099  echo "$as_me: error: maemo-version not f
5099    
5100  fi  fi
5101    
5102      INSTALL_PLATTFORM="install-maemo"
5103    
5104      # fremantle uses icons of 48x48 pixels for the app installer,
5105      # older versions used 26x26
5106      if [ "$MAJOR" == "5" ]; then
5107         ICONNAME=48x48/gpxview.png
5108         datarootdir=/opt
5109    
5110           # check for libespeak (broken in diablo, hence doing it here)
5111    
5112    for ac_header in espeak/speak_lib.h
5113    do
5114    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5115    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5116      { echo "$as_me:$LINENO: checking for $ac_header" >&5
5117    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5118    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5119      echo $ECHO_N "(cached) $ECHO_C" >&6
5120    fi
5121    ac_res=`eval echo '${'$as_ac_Header'}'`
5122                   { echo "$as_me:$LINENO: result: $ac_res" >&5
5123    echo "${ECHO_T}$ac_res" >&6; }
5124    else
5125      # Is the header compilable?
5126    { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5127    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5128    cat >conftest.$ac_ext <<_ACEOF
5129    /* confdefs.h.  */
5130    _ACEOF
5131    cat confdefs.h >>conftest.$ac_ext
5132    cat >>conftest.$ac_ext <<_ACEOF
5133    /* end confdefs.h.  */
5134    $ac_includes_default
5135    #include <$ac_header>
5136    _ACEOF
5137    rm -f conftest.$ac_objext
5138    if { (ac_try="$ac_compile"
5139    case "(($ac_try" in
5140      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141      *) ac_try_echo=$ac_try;;
5142    esac
5143    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144      (eval "$ac_compile") 2>conftest.er1
5145      ac_status=$?
5146      grep -v '^ *+' conftest.er1 >conftest.err
5147      rm -f conftest.er1
5148      cat conftest.err >&5
5149      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150      (exit $ac_status); } && {
5151             test -z "$ac_c_werror_flag" ||
5152             test ! -s conftest.err
5153           } && test -s conftest.$ac_objext; then
5154      ac_header_compiler=yes
5155    else
5156      echo "$as_me: failed program was:" >&5
5157    sed 's/^/| /' conftest.$ac_ext >&5
5158    
5159            ac_header_compiler=no
5160    fi
5161    
5162    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163    { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5164    echo "${ECHO_T}$ac_header_compiler" >&6; }
5165    
5166    # Is the header present?
5167    { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5168    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5169    cat >conftest.$ac_ext <<_ACEOF
5170    /* confdefs.h.  */
5171    _ACEOF
5172    cat confdefs.h >>conftest.$ac_ext
5173    cat >>conftest.$ac_ext <<_ACEOF
5174    /* end confdefs.h.  */
5175    #include <$ac_header>
5176    _ACEOF
5177    if { (ac_try="$ac_cpp conftest.$ac_ext"
5178    case "(($ac_try" in
5179      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180      *) ac_try_echo=$ac_try;;
5181    esac
5182    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5184      ac_status=$?
5185      grep -v '^ *+' conftest.er1 >conftest.err
5186      rm -f conftest.er1
5187      cat conftest.err >&5
5188      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189      (exit $ac_status); } >/dev/null && {
5190             test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5191             test ! -s conftest.err
5192           }; then
5193      ac_header_preproc=yes
5194    else
5195      echo "$as_me: failed program was:" >&5
5196    sed 's/^/| /' conftest.$ac_ext >&5
5197    
5198      ac_header_preproc=no
5199    fi
5200    
5201    rm -f conftest.err conftest.$ac_ext
5202    { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5203    echo "${ECHO_T}$ac_header_preproc" >&6; }
5204    
5205    # So?  What about this header?
5206    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5207      yes:no: )
5208        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5209    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5210        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5211    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5212        ac_header_preproc=yes
5213        ;;
5214      no:yes:* )
5215        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5216    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5217        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5218    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5219        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5220    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5221        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5222    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5223        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5224    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5225        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5226    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5227        ( cat <<\_ASBOX
5228    ## ------------------------------- ##
5229    ## Report this to till@harbaum.org ##
5230    ## ------------------------------- ##
5231    _ASBOX
5232         ) | sed "s/^/$as_me: WARNING:     /" >&2
5233        ;;
5234    esac
5235    { echo "$as_me:$LINENO: checking for $ac_header" >&5
5236    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5237    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5238      echo $ECHO_N "(cached) $ECHO_C" >&6
5239    else
5240      eval "$as_ac_Header=\$ac_header_preproc"
5241    fi
5242    ac_res=`eval echo '${'$as_ac_Header'}'`
5243                   { echo "$as_me:$LINENO: result: $ac_res" >&5
5244    echo "${ECHO_T}$ac_res" >&6; }
5245    
5246    fi
5247    if test `eval echo '${'$as_ac_Header'}'` = yes; then
5248      cat >>confdefs.h <<_ACEOF
5249    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5250    _ACEOF
5251    
5252             CFLAGS="$CFLAGS -DESPEAK"
5253             LIBS="$LIBS -lespeak"
5254    
5255    fi
5256    
5257    done
5258    
5259      else
5260         ICONNAME=26x26/gpxview.png
5261         { echo "$as_me:$LINENO: Enabling Maemo Mapper support" >&5
5262    echo "$as_me: Enabling Maemo Mapper support" >&6;}
5263      fi
5264    
5265      CFLAGS="$CFLAGS -DENABLE_MAEMO_MAPPER"
5266      EXTRA_OBJS="$EXTRA_OBJS mm_poi.o"
5267    
5268    # maemo uses dbus for ipc with maemo mapper    # maemo uses dbus for ipc with maemo mapper
5269    EXTRA_OBJS="$EXTRA_OBJS mm_poi.o dbus.o"    EXTRA_OBJS="$EXTRA_OBJS dbus.o"
5270    
5271    INSTALL_PLATTFORM="install-maemo"    { echo "$as_me:$LINENO: Using application installer icon \"$ICONNAME\"" >&5
5272    echo "$as_me: Using application installer icon \"$ICONNAME\"" >&6;}
5273    
5274      # add icon entry to debian/control
5275      ICON=" Maemo icon $ICONNAME
5276    XB-Maemo-Icon-26:
5277    "
5278    
5279      # generate base64 icon, remove first and last line
5280      # and add a space before each line
5281      ICON="$ICON`uuencode -m data/icons/$ICONNAME $ICONNAME | sed '1d;$d;s/^/ /' -`"
5282    
5283    
5284  else  else
# Line 4333  else Line 5286  else
5286    { echo "$as_me:$LINENO: result: no" >&5    { echo "$as_me:$LINENO: result: no" >&5
5287  echo "${ECHO_T}no" >&6; }  echo "${ECHO_T}no" >&6; }
5288    
5289      EXTRA_OBJS="$EXTRA_OBJS bct.o"
5290      CFLAGS="$CFLAGS -DBCT"
5291    
5292    # check for gtk+-2.0    # check for gtk+-2.0
5293    
5294  pkg_failed=no  pkg_failed=no
# Line 4491  fi Line 5447  fi
5447    CFLAGS="$CFLAGS $gnome2_CFLAGS -DENABLE_BROWSER_INTERFACE"    CFLAGS="$CFLAGS $gnome2_CFLAGS -DENABLE_BROWSER_INTERFACE"
5448    LIBS="$LIBS $gnome2_LIBS"    LIBS="$LIBS $gnome2_LIBS"
5449    
5450      # check for libespeak
5451    
5452    for ac_header in espeak/speak_lib.h
5453    do
5454    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5455    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5456      { echo "$as_me:$LINENO: checking for $ac_header" >&5
5457    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5458    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5459      echo $ECHO_N "(cached) $ECHO_C" >&6
5460    fi
5461    ac_res=`eval echo '${'$as_ac_Header'}'`
5462                   { echo "$as_me:$LINENO: result: $ac_res" >&5
5463    echo "${ECHO_T}$ac_res" >&6; }
5464    else
5465      # Is the header compilable?
5466    { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5467    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5468    cat >conftest.$ac_ext <<_ACEOF
5469    /* confdefs.h.  */
5470    _ACEOF
5471    cat confdefs.h >>conftest.$ac_ext
5472    cat >>conftest.$ac_ext <<_ACEOF
5473    /* end confdefs.h.  */
5474    $ac_includes_default
5475    #include <$ac_header>
5476    _ACEOF
5477    rm -f conftest.$ac_objext
5478    if { (ac_try="$ac_compile"
5479    case "(($ac_try" in
5480      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481      *) ac_try_echo=$ac_try;;
5482    esac
5483    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484      (eval "$ac_compile") 2>conftest.er1
5485      ac_status=$?
5486      grep -v '^ *+' conftest.er1 >conftest.err
5487      rm -f conftest.er1
5488      cat conftest.err >&5
5489      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490      (exit $ac_status); } && {
5491             test -z "$ac_c_werror_flag" ||
5492             test ! -s conftest.err
5493           } && test -s conftest.$ac_objext; then
5494      ac_header_compiler=yes
5495    else
5496      echo "$as_me: failed program was:" >&5
5497    sed 's/^/| /' conftest.$ac_ext >&5
5498    
5499            ac_header_compiler=no
5500    fi
5501    
5502    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503    { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5504    echo "${ECHO_T}$ac_header_compiler" >&6; }
5505    
5506    # Is the header present?
5507    { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5508    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5509    cat >conftest.$ac_ext <<_ACEOF
5510    /* confdefs.h.  */
5511    _ACEOF
5512    cat confdefs.h >>conftest.$ac_ext
5513    cat >>conftest.$ac_ext <<_ACEOF
5514    /* end confdefs.h.  */
5515    #include <$ac_header>
5516    _ACEOF
5517    if { (ac_try="$ac_cpp conftest.$ac_ext"
5518    case "(($ac_try" in
5519      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520      *) ac_try_echo=$ac_try;;
5521    esac
5522    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5524      ac_status=$?
5525      grep -v '^ *+' conftest.er1 >conftest.err
5526      rm -f conftest.er1
5527      cat conftest.err >&5
5528      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529      (exit $ac_status); } >/dev/null && {
5530             test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5531             test ! -s conftest.err
5532           }; then
5533      ac_header_preproc=yes
5534    else
5535      echo "$as_me: failed program was:" >&5
5536    sed 's/^/| /' conftest.$ac_ext >&5
5537    
5538      ac_header_preproc=no
5539    fi
5540    
5541    rm -f conftest.err conftest.$ac_ext
5542    { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5543    echo "${ECHO_T}$ac_header_preproc" >&6; }
5544    
5545    # So?  What about this header?
5546    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5547      yes:no: )
5548        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5549    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5550        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5551    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5552        ac_header_preproc=yes
5553        ;;
5554      no:yes:* )
5555        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5556    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5557        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5558    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5559        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5560    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5561        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5562    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5563        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5564    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5565        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5566    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5567        ( cat <<\_ASBOX
5568    ## ------------------------------- ##
5569    ## Report this to till@harbaum.org ##
5570    ## ------------------------------- ##
5571    _ASBOX
5572         ) | sed "s/^/$as_me: WARNING:     /" >&2
5573        ;;
5574    esac
5575    { echo "$as_me:$LINENO: checking for $ac_header" >&5
5576    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5577    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5578      echo $ECHO_N "(cached) $ECHO_C" >&6
5579    else
5580      eval "$as_ac_Header=\$ac_header_preproc"
5581    fi
5582    ac_res=`eval echo '${'$as_ac_Header'}'`
5583                   { echo "$as_me:$LINENO: result: $ac_res" >&5
5584    echo "${ECHO_T}$ac_res" >&6; }
5585    
5586    fi
5587    if test `eval echo '${'$as_ac_Header'}'` = yes; then
5588      cat >>confdefs.h <<_ACEOF
5589    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5590    _ACEOF
5591    
5592        CFLAGS="$CFLAGS -DESPEAK"
5593        LIBS="$LIBS -lespeak"
5594    
5595    fi
5596    
5597    done
5598    
5599    
5600      # check for libgps
5601    
5602    pkg_failed=no
5603    { echo "$as_me:$LINENO: checking for gps" >&5
5604    echo $ECHO_N "checking for gps... $ECHO_C" >&6; }
5605    
5606    if test -n "$PKG_CONFIG"; then
5607        if test -n "$gps_CFLAGS"; then
5608            pkg_cv_gps_CFLAGS="$gps_CFLAGS"
5609        else
5610            if test -n "$PKG_CONFIG" && \
5611        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgps\"") >&5
5612      ($PKG_CONFIG --exists --print-errors "libgps") 2>&5
5613      ac_status=$?
5614      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615      (exit $ac_status); }; then
5616      pkg_cv_gps_CFLAGS=`$PKG_CONFIG --cflags "libgps" 2>/dev/null`
5617    else
5618      pkg_failed=yes
5619    fi
5620        fi
5621    else
5622            pkg_failed=untried
5623    fi
5624    if test -n "$PKG_CONFIG"; then
5625        if test -n "$gps_LIBS"; then
5626            pkg_cv_gps_LIBS="$gps_LIBS"
5627        else
5628            if test -n "$PKG_CONFIG" && \
5629        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgps\"") >&5
5630      ($PKG_CONFIG --exists --print-errors "libgps") 2>&5
5631      ac_status=$?
5632      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633      (exit $ac_status); }; then
5634      pkg_cv_gps_LIBS=`$PKG_CONFIG --libs "libgps" 2>/dev/null`
5635    else
5636      pkg_failed=yes
5637    fi
5638        fi
5639    else
5640            pkg_failed=untried
5641    fi
5642    
5643    
5644    
5645    if test $pkg_failed = yes; then
5646    
5647    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5648            _pkg_short_errors_supported=yes
5649    else
5650            _pkg_short_errors_supported=no
5651    fi
5652            if test $_pkg_short_errors_supported = yes; then
5653                    gps_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgps"`
5654            else
5655                    gps_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgps"`
5656            fi
5657            # Put the nasty error message in config.log where it belongs
5658            echo "$gps_PKG_ERRORS" >&5
5659    
5660            { echo "$as_me:$LINENO: result: no" >&5
5661    echo "${ECHO_T}no" >&6; }
5662                    { echo "$as_me:$LINENO: No libgps found, using direct GPSD" >&5
5663    echo "$as_me: No libgps found, using direct GPSD" >&6;}
5664    elif test $pkg_failed = untried; then
5665            { echo "$as_me:$LINENO: No libgps found, using direct GPSD" >&5
5666    echo "$as_me: No libgps found, using direct GPSD" >&6;}
5667    else
5668            gps_CFLAGS=$pkg_cv_gps_CFLAGS
5669            gps_LIBS=$pkg_cv_gps_LIBS
5670            { echo "$as_me:$LINENO: result: yes" >&5
5671    echo "${ECHO_T}yes" >&6; }
5672    
5673        CFLAGS="$CFLAGS $gps_CFLAGS -DUSE_LIBGPS"
5674        LIBS="$LIBS $gps_LIBS"
5675    
5676    fi
5677    
5678    INSTALL_PLATTFORM="install-debian"    INSTALL_PLATTFORM="install-debian"
5679    
5680      ICON=" No icon"
5681    
5682  fi  fi
5683    
5684    
5685    
5686  ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile"  
5687    ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile debian/control"
5688    
5689    
5690  cat >confcache <<\_ACEOF  cat >confcache <<\_ACEOF
# Line 4926  exec 6>&1 Line 6113  exec 6>&1
6113  # report actual input values of CONFIG_FILES etc. instead of their  # report actual input values of CONFIG_FILES etc. instead of their
6114  # values after options handling.  # values after options handling.
6115  ac_log="  ac_log="
6116  This file was extended by GPXView $as_me 0.8.2, which was  This file was extended by GPXView $as_me 0.9.4, which was
6117  generated by GNU Autoconf 2.61.  Invocation command line was  generated by GNU Autoconf 2.61.  Invocation command line was
6118    
6119    CONFIG_FILES    = $CONFIG_FILES    CONFIG_FILES    = $CONFIG_FILES
# Line 4969  Report bugs to <bug-autoconf@gnu.org>." Line 6156  Report bugs to <bug-autoconf@gnu.org>."
6156  _ACEOF  _ACEOF
6157  cat >>$CONFIG_STATUS <<_ACEOF  cat >>$CONFIG_STATUS <<_ACEOF
6158  ac_cs_version="\\  ac_cs_version="\\
6159  GPXView config.status 0.8.2  GPXView config.status 0.9.4
6160  configured by $0, generated by GNU Autoconf 2.61,  configured by $0, generated by GNU Autoconf 2.61,
6161    with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"    with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6162    
# Line 5071  do Line 6258  do
6258      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6259      "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;      "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6260      "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;      "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
6261        "debian/control") CONFIG_FILES="$CONFIG_FILES debian/control" ;;
6262    
6263    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6264  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
# Line 5186  gnome_vfs_module_CFLAGS!$gnome_vfs_modul Line 6374  gnome_vfs_module_CFLAGS!$gnome_vfs_modul
6374  gnome_vfs_module_LIBS!$gnome_vfs_module_LIBS$ac_delim  gnome_vfs_module_LIBS!$gnome_vfs_module_LIBS$ac_delim
6375  libxml2_CFLAGS!$libxml2_CFLAGS$ac_delim  libxml2_CFLAGS!$libxml2_CFLAGS$ac_delim
6376  libxml2_LIBS!$libxml2_LIBS$ac_delim  libxml2_LIBS!$libxml2_LIBS$ac_delim
6377    libcurl_CFLAGS!$libcurl_CFLAGS$ac_delim
6378    libcurl_LIBS!$libcurl_LIBS$ac_delim
6379  libsoup24_CFLAGS!$libsoup24_CFLAGS$ac_delim  libsoup24_CFLAGS!$libsoup24_CFLAGS$ac_delim
6380  libsoup24_LIBS!$libsoup24_LIBS$ac_delim  libsoup24_LIBS!$libsoup24_LIBS$ac_delim
6381  libsoup22_CFLAGS!$libsoup22_CFLAGS$ac_delim  libsoup22_CFLAGS!$libsoup22_CFLAGS$ac_delim
# Line 5208  gpsbt_CFLAGS!$gpsbt_CFLAGS$ac_delim Line 6398  gpsbt_CFLAGS!$gpsbt_CFLAGS$ac_delim
6398  gpsbt_LIBS!$gpsbt_LIBS$ac_delim  gpsbt_LIBS!$gpsbt_LIBS$ac_delim
6399  liblocation_CFLAGS!$liblocation_CFLAGS$ac_delim  liblocation_CFLAGS!$liblocation_CFLAGS$ac_delim
6400  liblocation_LIBS!$liblocation_LIBS$ac_delim  liblocation_LIBS!$liblocation_LIBS$ac_delim
6401    MAEMO_VERSION_MAJOR!$MAEMO_VERSION_MAJOR$ac_delim
6402    CPP!$CPP$ac_delim
6403    GREP!$GREP$ac_delim
6404    EGREP!$EGREP$ac_delim
6405  gtk_CFLAGS!$gtk_CFLAGS$ac_delim  gtk_CFLAGS!$gtk_CFLAGS$ac_delim
6406  gtk_LIBS!$gtk_LIBS$ac_delim  gtk_LIBS!$gtk_LIBS$ac_delim
6407  gnome2_CFLAGS!$gnome2_CFLAGS$ac_delim  gnome2_CFLAGS!$gnome2_CFLAGS$ac_delim
6408  gnome2_LIBS!$gnome2_LIBS$ac_delim  gnome2_LIBS!$gnome2_LIBS$ac_delim
6409    gps_CFLAGS!$gps_CFLAGS$ac_delim
6410    gps_LIBS!$gps_LIBS$ac_delim
6411  EXTRA_OBJS!$EXTRA_OBJS$ac_delim  EXTRA_OBJS!$EXTRA_OBJS$ac_delim
6412    ICON!$ICON$ac_delim
6413  INSTALL_PLATTFORM!$INSTALL_PLATTFORM$ac_delim  INSTALL_PLATTFORM!$INSTALL_PLATTFORM$ac_delim
6414  LIBOBJS!$LIBOBJS$ac_delim  LIBOBJS!$LIBOBJS$ac_delim
6415  LTLIBOBJS!$LTLIBOBJS$ac_delim  LTLIBOBJS!$LTLIBOBJS$ac_delim
6416  _ACEOF  _ACEOF
6417    
6418    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
6419      break      break
6420    elif $ac_last_try; then    elif $ac_last_try; then
6421      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5

Legend:
Removed from v.48  
changed lines
  Added in v.282