Diff of /trunk/configure

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

revision 246 by harbaum, Tue Jan 19 20:26:37 2010 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.9.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.9.2'  PACKAGE_VERSION='0.9.4'
578  PACKAGE_STRING='GPXView 0.9.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"
# Line 672  libxml2_CFLAGS Line 672  libxml2_CFLAGS
672  libxml2_LIBS  libxml2_LIBS
673  libcurl_CFLAGS  libcurl_CFLAGS
674  libcurl_LIBS  libcurl_LIBS
 CPP  
 GREP  
 EGREP  
675  libsoup24_CFLAGS  libsoup24_CFLAGS
676  libsoup24_LIBS  libsoup24_LIBS
677  libsoup22_CFLAGS  libsoup22_CFLAGS
# Line 698  gpsbt_LIBS Line 695  gpsbt_LIBS
695  liblocation_CFLAGS  liblocation_CFLAGS
696  liblocation_LIBS  liblocation_LIBS
697  MAEMO_VERSION_MAJOR  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  ICON
709  INSTALL_PLATTFORM  INSTALL_PLATTFORM
# Line 723  libxml2_CFLAGS Line 725  libxml2_CFLAGS
725  libxml2_LIBS  libxml2_LIBS
726  libcurl_CFLAGS  libcurl_CFLAGS
727  libcurl_LIBS  libcurl_LIBS
 CPP  
728  libsoup24_CFLAGS  libsoup24_CFLAGS
729  libsoup24_LIBS  libsoup24_LIBS
730  libsoup22_CFLAGS  libsoup22_CFLAGS
# Line 746  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 1252  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.9.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 1313  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.9.2:";;       short | recursive ) echo "Configuration of GPXView 0.9.4:";;
1321     esac     esac
1322    cat <<\_ACEOF    cat <<\_ACEOF
1323    
# Line 1338  Some influential environment variables: Line 1342  Some influential environment variables:
1342                C compiler flags for libcurl, overriding pkg-config                C compiler flags for libcurl, overriding pkg-config
1343    libcurl_LIBS    libcurl_LIBS
1344                linker flags for libcurl, overriding pkg-config                linker flags for libcurl, overriding pkg-config
   CPP         C preprocessor  
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 1379  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 1449  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.9.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 1463  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.9.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 3273  fi Line 3279  fi
3279  CFLAGS="$CFLAGS $libcurl_CFLAGS"  CFLAGS="$CFLAGS $libcurl_CFLAGS"
3280  LIBS="$LIBS $libcurl_LIBS"  LIBS="$LIBS $libcurl_LIBS"
3281    
3282  # check for libespeak (consider moving this to maemo5)  # check for libsoup
3283    
3284  ac_ext=c  pkg_failed=no
3285  ac_cpp='$CPP $CPPFLAGS'  { echo "$as_me:$LINENO: checking for libsoup24" >&5
3286  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  echo $ECHO_N "checking for libsoup24... $ECHO_C" >&6; }
3287  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
3288  ac_compiler_gnu=$ac_cv_c_compiler_gnu  if test -n "$PKG_CONFIG"; then
3289  { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5      if test -n "$libsoup24_CFLAGS"; then
3290  echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }          pkg_cv_libsoup24_CFLAGS="$libsoup24_CFLAGS"
3291  # On Suns, sometimes $CPP names a directory.      else
3292  if test -n "$CPP" && test -d "$CPP"; then          if test -n "$PKG_CONFIG" && \
3293    CPP=      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
3294      ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
3295      ac_status=$?
3296      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297      (exit $ac_status); }; then
3298      pkg_cv_libsoup24_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
3299    else
3300      pkg_failed=yes
3301  fi  fi
3302  if test -z "$CPP"; then      fi
   if test "${ac_cv_prog_CPP+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
3303  else  else
3304        # Double quotes because CPP needs to be expanded          pkg_failed=untried
3305      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"  fi
3306      do  if test -n "$PKG_CONFIG"; then
3307        ac_preproc_ok=false      if test -n "$libsoup24_LIBS"; then
3308  for ac_c_preproc_warn_flag in '' yes          pkg_cv_libsoup24_LIBS="$libsoup24_LIBS"
3309  do      else
3310    # Use a header file that comes with gcc, so configuring glibc          if test -n "$PKG_CONFIG" && \
3311    # with a fresh cross-compiler works.      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
3312    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since    ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if { (ac_try="$ac_cpp conftest.$ac_ext"  
 case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5  
   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1  
3313    ac_status=$?    ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
3314    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315    (exit $ac_status); } >/dev/null && {    (exit $ac_status); }; then
3316           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||    pkg_cv_libsoup24_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
          test ! -s conftest.err  
        }; then  
   :  
3317  else  else
3318    echo "$as_me: failed program was:" >&5    pkg_failed=yes
3319  sed 's/^/| /' conftest.$ac_ext >&5  fi
3320        fi
3321    # Broken: fails on valid input.  else
3322  continue          pkg_failed=untried
3323  fi  fi
3324    
 rm -f conftest.err conftest.$ac_ext  
3325    
   # OK, works on sane cases.  Now check whether nonexistent headers  
   # can be detected and how.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ac_nonexistent.h>  
 _ACEOF  
 if { (ac_try="$ac_cpp conftest.$ac_ext"  
 case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5  
   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null && {  
          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||  
          test ! -s conftest.err  
        }; then  
   # Broken: success on invalid input.  
 continue  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
3326    
3327    # Passes both tests.  if test $pkg_failed = yes; then
3328  ac_preproc_ok=:  
3329  break  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3330            _pkg_short_errors_supported=yes
3331    else
3332            _pkg_short_errors_supported=no
3333  fi  fi
3334            if test $_pkg_short_errors_supported = yes; then
3335                    libsoup24_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
3336            else
3337                    libsoup24_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
3338            fi
3339            # Put the nasty error message in config.log where it belongs
3340            echo "$libsoup24_PKG_ERRORS" >&5
3341    
3342  rm -f conftest.err conftest.$ac_ext          { echo "$as_me:$LINENO: result: no" >&5
3343    echo "${ECHO_T}no" >&6; }
3344    
 done  
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.  
 rm -f conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then  
   break  
 fi  
3345    
3346      done  pkg_failed=no
3347      ac_cv_prog_CPP=$CPP  { echo "$as_me:$LINENO: checking for libsoup22" >&5
3348    echo $ECHO_N "checking for libsoup22... $ECHO_C" >&6; }
3349    
3350    if test -n "$PKG_CONFIG"; then
3351        if test -n "$libsoup22_CFLAGS"; then
3352            pkg_cv_libsoup22_CFLAGS="$libsoup22_CFLAGS"
3353        else
3354            if test -n "$PKG_CONFIG" && \
3355        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5
3356      ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5
3357      ac_status=$?
3358      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359      (exit $ac_status); }; then
3360      pkg_cv_libsoup22_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.2" 2>/dev/null`
3361    else
3362      pkg_failed=yes
3363  fi  fi
3364    CPP=$ac_cv_prog_CPP      fi
3365  else  else
3366    ac_cv_prog_CPP=$CPP          pkg_failed=untried
3367  fi  fi
3368  { echo "$as_me:$LINENO: result: $CPP" >&5  if test -n "$PKG_CONFIG"; then
3369  echo "${ECHO_T}$CPP" >&6; }      if test -n "$libsoup22_LIBS"; then
3370  ac_preproc_ok=false          pkg_cv_libsoup22_LIBS="$libsoup22_LIBS"
3371  for ac_c_preproc_warn_flag in '' yes      else
3372  do          if test -n "$PKG_CONFIG" && \
3373    # Use a header file that comes with gcc, so configuring glibc      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5
3374    # with a fresh cross-compiler works.    ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if { (ac_try="$ac_cpp conftest.$ac_ext"  
 case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5  
   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1  
3375    ac_status=$?    ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
3376    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377    (exit $ac_status); } >/dev/null && {    (exit $ac_status); }; then
3378           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||    pkg_cv_libsoup22_LIBS=`$PKG_CONFIG --libs "libsoup-2.2" 2>/dev/null`
          test ! -s conftest.err  
        }; then  
   :  
3379  else  else
3380    echo "$as_me: failed program was:" >&5    pkg_failed=yes
3381  sed 's/^/| /' conftest.$ac_ext >&5  fi
3382        fi
3383    # Broken: fails on valid input.  else
3384  continue          pkg_failed=untried
3385  fi  fi
3386    
 rm -f conftest.err conftest.$ac_ext  
3387    
   # OK, works on sane cases.  Now check whether nonexistent headers  
   # can be detected and how.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ac_nonexistent.h>  
 _ACEOF  
 if { (ac_try="$ac_cpp conftest.$ac_ext"  
 case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5  
   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null && {  
          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||  
          test ! -s conftest.err  
        }; then  
   # Broken: success on invalid input.  
 continue  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   # Passes both tests.  
 ac_preproc_ok=:  
 break  
 fi  
3388    
3389  rm -f conftest.err conftest.$ac_ext  if test $pkg_failed = yes; then
3390    
3391  done  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3392  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.          _pkg_short_errors_supported=yes
 rm -f conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then  
   :  
3393  else  else
3394    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check          _pkg_short_errors_supported=no
 See \`config.log' for more details." >&5  
 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
3395  fi  fi
3396            if test $_pkg_short_errors_supported = yes; then
3397                    libsoup22_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.2"`
3398            else
3399                    libsoup22_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.2"`
3400            fi
3401            # Put the nasty error message in config.log where it belongs
3402            echo "$libsoup22_PKG_ERRORS" >&5
3403    
3404  ac_ext=c          { echo "$as_me:$LINENO: result: no" >&5
3405  ac_cpp='$CPP $CPPFLAGS'  echo "${ECHO_T}no" >&6; }
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
   
3406    
3407  { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5      { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5
3408  echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }  echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}
 if test "${ac_cv_path_GREP+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   # Extract the first word of "grep ggrep" to use in msg output  
 if test -z "$GREP"; then  
 set dummy grep ggrep; ac_prog_name=$2  
 if test "${ac_cv_path_GREP+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_path_GREP_found=false  
 # Loop through the user's path and test for each of PROGNAME-LIST  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_prog in grep ggrep; do  
   for ac_exec_ext in '' $ac_executable_extensions; do  
     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"  
     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue  
     # Check for GNU ac_path_GREP and select it if it is found.  
   # Check for GNU $ac_path_GREP  
 case `"$ac_path_GREP" --version 2>&1` in  
 *GNU*)  
   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;  
 *)  
   ac_count=0  
   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"  
   while :  
   do  
     cat "conftest.in" "conftest.in" >"conftest.tmp"  
     mv "conftest.tmp" "conftest.in"  
     cp "conftest.in" "conftest.nl"  
     echo 'GREP' >> "conftest.nl"  
     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break  
     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break  
     ac_count=`expr $ac_count + 1`  
     if test $ac_count -gt ${ac_path_GREP_max-0}; then  
       # Best one so far, save it but keep looking for a better one  
       ac_cv_path_GREP="$ac_path_GREP"  
       ac_path_GREP_max=$ac_count  
     fi  
     # 10*(2^10) chars as input seems more than enough  
     test $ac_count -gt 10 && break  
   done  
   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;  
 esac  
3409    
3410    elif test $pkg_failed = untried; then
3411    
3412      $ac_path_GREP_found && break 3      { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5
3413    done  echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}
 done  
3414    
3415  done  else
3416  IFS=$as_save_IFS          libsoup22_CFLAGS=$pkg_cv_libsoup22_CFLAGS
3417            libsoup22_LIBS=$pkg_cv_libsoup22_LIBS
3418            { echo "$as_me:$LINENO: result: yes" >&5
3419    echo "${ECHO_T}yes" >&6; }
3420    
3421        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"
3423        LIBS="$LIBS $libsoup22_LIBS"
3424    
3425  fi  fi
3426    
3427  GREP="$ac_cv_path_GREP"  elif test $pkg_failed = untried; then
 if test -z "$GREP"; then  
   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5  
 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}  
    { (exit 1); exit 1; }; }  
 fi  
3428    
 else  
   ac_cv_path_GREP=$GREP  
 fi  
3429    
3430    pkg_failed=no
3431    { echo "$as_me:$LINENO: checking for libsoup22" >&5
3432    echo $ECHO_N "checking for libsoup22... $ECHO_C" >&6; }
3433    
3434    if test -n "$PKG_CONFIG"; then
3435        if test -n "$libsoup22_CFLAGS"; then
3436            pkg_cv_libsoup22_CFLAGS="$libsoup22_CFLAGS"
3437        else
3438            if test -n "$PKG_CONFIG" && \
3439        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5
3440      ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5
3441      ac_status=$?
3442      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443      (exit $ac_status); }; then
3444      pkg_cv_libsoup22_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.2" 2>/dev/null`
3445    else
3446      pkg_failed=yes
3447  fi  fi
3448  { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5      fi
 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }  
  GREP="$ac_cv_path_GREP"  
   
   
 { echo "$as_me:$LINENO: checking for egrep" >&5  
 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }  
 if test "${ac_cv_path_EGREP+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
3449  else  else
3450    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1          pkg_failed=untried
3451     then ac_cv_path_EGREP="$GREP -E"  fi
3452     else  if test -n "$PKG_CONFIG"; then
3453       # Extract the first word of "egrep" to use in msg output      if test -n "$libsoup22_LIBS"; then
3454  if test -z "$EGREP"; then          pkg_cv_libsoup22_LIBS="$libsoup22_LIBS"
3455  set dummy egrep; ac_prog_name=$2      else
3456  if test "${ac_cv_path_EGREP+set}" = set; then          if test -n "$PKG_CONFIG" && \
3457    echo $ECHO_N "(cached) $ECHO_C" >&6      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5
3458      ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5
3459      ac_status=$?
3460      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461      (exit $ac_status); }; then
3462      pkg_cv_libsoup22_LIBS=`$PKG_CONFIG --libs "libsoup-2.2" 2>/dev/null`
3463  else  else
3464    ac_path_EGREP_found=false    pkg_failed=yes
3465  # Loop through the user's path and test for each of PROGNAME-LIST  fi
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_prog in egrep; do  
   for ac_exec_ext in '' $ac_executable_extensions; do  
     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"  
     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue  
     # Check for GNU ac_path_EGREP and select it if it is found.  
   # Check for GNU $ac_path_EGREP  
 case `"$ac_path_EGREP" --version 2>&1` in  
 *GNU*)  
   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;  
 *)  
   ac_count=0  
   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"  
   while :  
   do  
     cat "conftest.in" "conftest.in" >"conftest.tmp"  
     mv "conftest.tmp" "conftest.in"  
     cp "conftest.in" "conftest.nl"  
     echo 'EGREP' >> "conftest.nl"  
     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break  
     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break  
     ac_count=`expr $ac_count + 1`  
     if test $ac_count -gt ${ac_path_EGREP_max-0}; then  
       # Best one so far, save it but keep looking for a better one  
       ac_cv_path_EGREP="$ac_path_EGREP"  
       ac_path_EGREP_max=$ac_count  
3466      fi      fi
3467      # 10*(2^10) chars as input seems more than enough  else
3468      test $ac_count -gt 10 && break          pkg_failed=untried
3469    done  fi
   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;  
 esac  
   
   
     $ac_path_EGREP_found && break 3  
   done  
 done  
   
 done  
 IFS=$as_save_IFS  
3470    
3471    
 fi  
3472    
3473  EGREP="$ac_cv_path_EGREP"  if test $pkg_failed = yes; then
 if test -z "$EGREP"; then  
   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5  
 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}  
    { (exit 1); exit 1; }; }  
 fi  
3474    
3475    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3476            _pkg_short_errors_supported=yes
3477  else  else
3478    ac_cv_path_EGREP=$EGREP          _pkg_short_errors_supported=no
3479  fi  fi
3480            if test $_pkg_short_errors_supported = yes; then
3481                    libsoup22_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.2"`
3482            else
3483                    libsoup22_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.2"`
3484            fi
3485            # Put the nasty error message in config.log where it belongs
3486            echo "$libsoup22_PKG_ERRORS" >&5
3487    
3488            { echo "$as_me:$LINENO: result: no" >&5
3489    echo "${ECHO_T}no" >&6; }
3490    
3491     fi      { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5
3492  fi  echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}
 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5  
 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }  
  EGREP="$ac_cv_path_EGREP"  
3493    
3494    elif test $pkg_failed = untried; then
3495    
3496  { echo "$as_me:$LINENO: checking for ANSI C header files" >&5      { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5
3497  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }  echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}
 if test "${ac_cv_header_stdc+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <stdlib.h>  
 #include <stdarg.h>  
 #include <string.h>  
 #include <float.h>  
   
 int  
 main ()  
 {  
3498    
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (ac_try="$ac_compile"  
 case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5  
   (eval "$ac_compile") 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && {  
          test -z "$ac_c_werror_flag" ||  
          test ! -s conftest.err  
        } && test -s conftest.$ac_objext; then  
   ac_cv_header_stdc=yes  
3499  else  else
3500    echo "$as_me: failed program was:" >&5          libsoup22_CFLAGS=$pkg_cv_libsoup22_CFLAGS
3501  sed 's/^/| /' conftest.$ac_ext >&5          libsoup22_LIBS=$pkg_cv_libsoup22_LIBS
3502            { echo "$as_me:$LINENO: result: yes" >&5
3503          ac_cv_header_stdc=no  echo "${ECHO_T}yes" >&6; }
 fi  
   
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
3504    
3505  if test $ac_cv_header_stdc = yes; then      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"
3506    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.      CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"
3507    cat >conftest.$ac_ext <<_ACEOF      LIBS="$LIBS $libsoup22_LIBS"
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <string.h>  
3508    
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "memchr" >/dev/null 2>&1; then  
   :  
 else  
   ac_cv_header_stdc=no  
3509  fi  fi
 rm -f conftest*  
3510    
3511  fi  else
3512            libsoup24_CFLAGS=$pkg_cv_libsoup24_CFLAGS
3513            libsoup24_LIBS=$pkg_cv_libsoup24_LIBS
3514            { echo "$as_me:$LINENO: result: yes" >&5
3515    echo "${ECHO_T}yes" >&6; }
3516    
3517  if test $ac_cv_header_stdc = yes; then    EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"
3518    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    CFLAGS="$CFLAGS $libsoup24_CFLAGS -DENABLE_OSM_GPS_MAP"
3519    cat >conftest.$ac_ext <<_ACEOF    LIBS="$LIBS $libsoup24_LIBS"
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <stdlib.h>  
3520    
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "free" >/dev/null 2>&1; then  
   :  
 else  
   ac_cv_header_stdc=no  
3521  fi  fi
 rm -f conftest*  
3522    
3523  fi  # check for gtkhtml-3.14
3524    
3525  if test $ac_cv_header_stdc = yes; then  pkg_failed=no
3526    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.  { echo "$as_me:$LINENO: checking for libgtkhtml3_14" >&5
3527    if test "$cross_compiling" = yes; then  echo $ECHO_N "checking for libgtkhtml3_14... $ECHO_C" >&6; }
   :  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ctype.h>  
 #include <stdlib.h>  
 #if ((' ' & 0x0FF) == 0x020)  
 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  
 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))  
 #else  
 # define ISLOWER(c) \  
                    (('a' <= (c) && (c) <= 'i') \  
                      || ('j' <= (c) && (c) <= 'r') \  
                      || ('s' <= (c) && (c) <= 'z'))  
 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))  
 #endif  
3528    
3529  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))  if test -n "$PKG_CONFIG"; then
3530  int      if test -n "$libgtkhtml3_14_CFLAGS"; then
3531  main ()          pkg_cv_libgtkhtml3_14_CFLAGS="$libgtkhtml3_14_CFLAGS"
3532  {      else
3533    int i;          if test -n "$PKG_CONFIG" && \
3534    for (i = 0; i < 256; i++)      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.14\"") >&5
3535      if (XOR (islower (i), ISLOWER (i))    ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.14") 2>&5
         || toupper (i) != TOUPPER (i))  
       return 2;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest$ac_exeext  
 if { (ac_try="$ac_link"  
 case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5  
   (eval "$ac_link") 2>&5  
3536    ac_status=$?    ac_status=$?
3537    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); }; then
3539    { (case "(($ac_try" in    pkg_cv_libgtkhtml3_14_CFLAGS=`$PKG_CONFIG --cflags "libgtkhtml-3.14" 2>/dev/null`
3540    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  else
3541    *) ac_try_echo=$ac_try;;    pkg_failed=yes
3542  esac  fi
3543  eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5      fi
3544    (eval "$ac_try") 2>&5  else
3545            pkg_failed=untried
3546    fi
3547    if test -n "$PKG_CONFIG"; then
3548        if test -n "$libgtkhtml3_14_LIBS"; then
3549            pkg_cv_libgtkhtml3_14_LIBS="$libgtkhtml3_14_LIBS"
3550        else
3551            if test -n "$PKG_CONFIG" && \
3552        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.14\"") >&5
3553      ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.14") 2>&5
3554    ac_status=$?    ac_status=$?
3555    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556    (exit $ac_status); }; }; then    (exit $ac_status); }; then
3557    :    pkg_cv_libgtkhtml3_14_LIBS=`$PKG_CONFIG --libs "libgtkhtml-3.14" 2>/dev/null`
3558  else  else
3559    echo "$as_me: program exited with status $ac_status" >&5    pkg_failed=yes
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 ac_cv_header_stdc=no  
3560  fi  fi
3561  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext      fi
3562    else
3563            pkg_failed=untried
3564  fi  fi
3565    
3566    
 fi  
 fi  
 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5  
 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }  
 if test $ac_cv_header_stdc = yes; then  
3567    
3568  cat >>confdefs.h <<\_ACEOF  if test $pkg_failed = yes; then
 #define STDC_HEADERS 1  
 _ACEOF  
3569    
3570    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3571            _pkg_short_errors_supported=yes
3572    else
3573            _pkg_short_errors_supported=no
3574  fi  fi
3575            if test $_pkg_short_errors_supported = yes; then
3576                    libgtkhtml3_14_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgtkhtml-3.14"`
3577            else
3578                    libgtkhtml3_14_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgtkhtml-3.14"`
3579            fi
3580            # Put the nasty error message in config.log where it belongs
3581            echo "$libgtkhtml3_14_PKG_ERRORS" >&5
3582    
3583  # On IRIX 5.3, sys/types and inttypes.h are conflicting.          { echo "$as_me:$LINENO: result: no" >&5
3584    echo "${ECHO_T}no" >&6; }
   
3585    
3586      # ok, we can also live with 3.8
3587    
3588    pkg_failed=no
3589    { echo "$as_me:$LINENO: checking for libgtkhtml3_8" >&5
3590    echo $ECHO_N "checking for libgtkhtml3_8... $ECHO_C" >&6; }
3591    
3592    if test -n "$PKG_CONFIG"; then
3593        if test -n "$libgtkhtml3_8_CFLAGS"; then
3594            pkg_cv_libgtkhtml3_8_CFLAGS="$libgtkhtml3_8_CFLAGS"
3595        else
3596            if test -n "$PKG_CONFIG" && \
3597        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.8\"") >&5
3598      ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.8") 2>&5
3599      ac_status=$?
3600      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601      (exit $ac_status); }; then
3602      pkg_cv_libgtkhtml3_8_CFLAGS=`$PKG_CONFIG --cflags "libgtkhtml-3.8" 2>/dev/null`
3603    else
3604      pkg_failed=yes
3605    fi
3606        fi
3607    else
3608            pkg_failed=untried
3609    fi
3610    if test -n "$PKG_CONFIG"; then
3611        if test -n "$libgtkhtml3_8_LIBS"; then
3612            pkg_cv_libgtkhtml3_8_LIBS="$libgtkhtml3_8_LIBS"
3613        else
3614            if test -n "$PKG_CONFIG" && \
3615        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.8\"") >&5
3616      ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.8") 2>&5
3617      ac_status=$?
3618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619      (exit $ac_status); }; then
3620      pkg_cv_libgtkhtml3_8_LIBS=`$PKG_CONFIG --libs "libgtkhtml-3.8" 2>/dev/null`
3621    else
3622      pkg_failed=yes
3623    fi
3624        fi
3625    else
3626            pkg_failed=untried
3627    fi
3628    
3629    
3630    
3631    if test $pkg_failed = yes; then
3632    
3633  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3634                    inttypes.h stdint.h unistd.h          _pkg_short_errors_supported=yes
 do  
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  
 { echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }  
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
3635  else  else
3636    cat >conftest.$ac_ext <<_ACEOF          _pkg_short_errors_supported=no
3637  /* confdefs.h.  */  fi
3638  _ACEOF          if test $_pkg_short_errors_supported = yes; then
3639  cat confdefs.h >>conftest.$ac_ext                  libgtkhtml3_8_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgtkhtml-3.8"`
3640  cat >>conftest.$ac_ext <<_ACEOF          else
3641  /* end confdefs.h.  */                  libgtkhtml3_8_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgtkhtml-3.8"`
3642  $ac_includes_default          fi
3643            # Put the nasty error message in config.log where it belongs
3644            echo "$libgtkhtml3_8_PKG_ERRORS" >&5
3645    
3646  #include <$ac_header>          { echo "$as_me:$LINENO: result: no" >&5
3647  _ACEOF  echo "${ECHO_T}no" >&6; }
3648  rm -f conftest.$ac_objext                  { { echo "$as_me:$LINENO: error: libgtkhtml-3 missing" >&5
3649  if { (ac_try="$ac_compile"  echo "$as_me: error: libgtkhtml-3 missing" >&2;}
3650  case "(($ac_try" in     { (exit 1); exit 1; }; }
3651    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  elif test $pkg_failed = untried; then
3652    *) ac_try_echo=$ac_try;;          { { echo "$as_me:$LINENO: error: libgtkhtml-3 missing" >&5
3653  esac  echo "$as_me: error: libgtkhtml-3 missing" >&2;}
3654  eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5     { (exit 1); exit 1; }; }
3655    (eval "$ac_compile") 2>conftest.er1  else
3656            libgtkhtml3_8_CFLAGS=$pkg_cv_libgtkhtml3_8_CFLAGS
3657            libgtkhtml3_8_LIBS=$pkg_cv_libgtkhtml3_8_LIBS
3658            { echo "$as_me:$LINENO: result: yes" >&5
3659    echo "${ECHO_T}yes" >&6; }
3660    
3661        CFLAGS="$CFLAGS $libgtkhtml3_8_CFLAGS"
3662        LIBS="$LIBS $libgtkhtml3_8_LIBS"
3663    
3664    fi
3665    
3666    elif test $pkg_failed = untried; then
3667    
3668      # ok, we can also live with 3.8
3669    
3670    pkg_failed=no
3671    { echo "$as_me:$LINENO: checking for libgtkhtml3_8" >&5
3672    echo $ECHO_N "checking for libgtkhtml3_8... $ECHO_C" >&6; }
3673    
3674    if test -n "$PKG_CONFIG"; then
3675        if test -n "$libgtkhtml3_8_CFLAGS"; then
3676            pkg_cv_libgtkhtml3_8_CFLAGS="$libgtkhtml3_8_CFLAGS"
3677        else
3678            if test -n "$PKG_CONFIG" && \
3679        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.8\"") >&5
3680      ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.8") 2>&5
3681    ac_status=$?    ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
3682    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683    (exit $ac_status); } && {    (exit $ac_status); }; then
3684           test -z "$ac_c_werror_flag" ||    pkg_cv_libgtkhtml3_8_CFLAGS=`$PKG_CONFIG --cflags "libgtkhtml-3.8" 2>/dev/null`
          test ! -s conftest.err  
        } && test -s conftest.$ac_objext; then  
   eval "$as_ac_Header=yes"  
3685  else  else
3686    echo "$as_me: failed program was:" >&5    pkg_failed=yes
3687  sed 's/^/| /' conftest.$ac_ext >&5  fi
3688        fi
3689          eval "$as_ac_Header=no"  else
3690            pkg_failed=untried
3691    fi
3692    if test -n "$PKG_CONFIG"; then
3693        if test -n "$libgtkhtml3_8_LIBS"; then
3694            pkg_cv_libgtkhtml3_8_LIBS="$libgtkhtml3_8_LIBS"
3695        else
3696            if test -n "$PKG_CONFIG" && \
3697        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.8\"") >&5
3698      ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.8") 2>&5
3699      ac_status=$?
3700      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701      (exit $ac_status); }; then
3702      pkg_cv_libgtkhtml3_8_LIBS=`$PKG_CONFIG --libs "libgtkhtml-3.8" 2>/dev/null`
3703    else
3704      pkg_failed=yes
3705    fi
3706        fi
3707    else
3708            pkg_failed=untried
3709  fi  fi
3710    
3711  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
3712    
3713    if test $pkg_failed = yes; then
3714    
3715    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3716            _pkg_short_errors_supported=yes
3717    else
3718            _pkg_short_errors_supported=no
3719  fi  fi
3720  ac_res=`eval echo '${'$as_ac_Header'}'`          if test $_pkg_short_errors_supported = yes; then
3721                 { echo "$as_me:$LINENO: result: $ac_res" >&5                  libgtkhtml3_8_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgtkhtml-3.8"`
3722  echo "${ECHO_T}$ac_res" >&6; }          else
3723  if test `eval echo '${'$as_ac_Header'}'` = yes; then                  libgtkhtml3_8_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgtkhtml-3.8"`
3724    cat >>confdefs.h <<_ACEOF          fi
3725  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1          # Put the nasty error message in config.log where it belongs
3726  _ACEOF          echo "$libgtkhtml3_8_PKG_ERRORS" >&5
3727    
3728            { echo "$as_me:$LINENO: result: no" >&5
3729    echo "${ECHO_T}no" >&6; }
3730                    { { echo "$as_me:$LINENO: error: libgtkhtml-3 missing" >&5
3731    echo "$as_me: error: libgtkhtml-3 missing" >&2;}
3732       { (exit 1); exit 1; }; }
3733    elif test $pkg_failed = untried; then
3734            { { echo "$as_me:$LINENO: error: libgtkhtml-3 missing" >&5
3735    echo "$as_me: error: libgtkhtml-3 missing" >&2;}
3736       { (exit 1); exit 1; }; }
3737    else
3738            libgtkhtml3_8_CFLAGS=$pkg_cv_libgtkhtml3_8_CFLAGS
3739            libgtkhtml3_8_LIBS=$pkg_cv_libgtkhtml3_8_LIBS
3740            { echo "$as_me:$LINENO: result: yes" >&5
3741    echo "${ECHO_T}yes" >&6; }
3742    
3743        CFLAGS="$CFLAGS $libgtkhtml3_8_CFLAGS"
3744        LIBS="$LIBS $libgtkhtml3_8_LIBS"
3745    
3746  fi  fi
3747    
3748  done  else
3749            libgtkhtml3_14_CFLAGS=$pkg_cv_libgtkhtml3_14_CFLAGS
3750            libgtkhtml3_14_LIBS=$pkg_cv_libgtkhtml3_14_LIBS
3751            { echo "$as_me:$LINENO: result: yes" >&5
3752    echo "${ECHO_T}yes" >&6; }
3753    
3754      CFLAGS="$CFLAGS $libgtkhtml3_14_CFLAGS"
3755      LIBS="$LIBS $libgtkhtml3_14_LIBS"
3756    
3757    fi
3758    
3759  for ac_header in espeak/speak_lib.h  # check for maemo
3760  do  { echo "$as_me:$LINENO: checking for Maemo" >&5
3761  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  echo $ECHO_N "checking for Maemo... $ECHO_C" >&6; }
3762  if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then  
3763    { echo "$as_me:$LINENO: checking for $ac_header" >&5  ac_ext=c
3764  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }  ac_cpp='$CPP $CPPFLAGS'
3765  if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766    echo $ECHO_N "(cached) $ECHO_C" >&6  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  fi
3774  ac_res=`eval echo '${'$as_ac_Header'}'`  if test -z "$CPP"; then
3775                 { echo "$as_me:$LINENO: result: $ac_res" >&5    if test "${ac_cv_prog_CPP+set}" = set; then
3776  echo "${ECHO_T}$ac_res" >&6; }    echo $ECHO_N "(cached) $ECHO_C" >&6
3777  else  else
3778    # Is the header compilable?        # Double quotes because CPP needs to be expanded
3779  { echo "$as_me:$LINENO: checking $ac_header usability" >&5      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }      do
3781  cat >conftest.$ac_ext <<_ACEOF        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.  */  /* confdefs.h.  */
3792  _ACEOF  _ACEOF
3793  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3794  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3795  /* end confdefs.h.  */  /* end confdefs.h.  */
3796  $ac_includes_default  #ifdef __STDC__
3797  #include <$ac_header>  # include <limits.h>
3798    #else
3799    # include <assert.h>
3800    #endif
3801                         Syntax error
3802  _ACEOF  _ACEOF
3803  rm -f conftest.$ac_objext  if { (ac_try="$ac_cpp conftest.$ac_ext"
 if { (ac_try="$ac_compile"  
3804  case "(($ac_try" in  case "(($ac_try" in
3805    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806    *) ac_try_echo=$ac_try;;    *) ac_try_echo=$ac_try;;
3807  esac  esac
3808  eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5  eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809    (eval "$ac_compile") 2>conftest.er1    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810    ac_status=$?    ac_status=$?
3811    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
3812    rm -f conftest.er1    rm -f conftest.er1
3813    cat conftest.err >&5    cat conftest.err >&5
3814    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815    (exit $ac_status); } && {    (exit $ac_status); } >/dev/null && {
3816           test -z "$ac_c_werror_flag" ||           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817           test ! -s conftest.err           test ! -s conftest.err
3818         } && test -s conftest.$ac_objext; then         }; then
3819    ac_header_compiler=yes    :
3820  else  else
3821    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3822  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3823    
3824          ac_header_compiler=no    # Broken: fails on valid input.
3825    continue
3826  fi  fi
3827    
3828  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6; }  
3829    
3830  # Is the header present?    # OK, works on sane cases.  Now check whether nonexistent headers
3831  { echo "$as_me:$LINENO: checking $ac_header presence" >&5    # can be detected and how.
3832  echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }    cat >conftest.$ac_ext <<_ACEOF
 cat >conftest.$ac_ext <<_ACEOF  
3833  /* confdefs.h.  */  /* confdefs.h.  */
3834  _ACEOF  _ACEOF
3835  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3836  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3837  /* end confdefs.h.  */  /* end confdefs.h.  */
3838  #include <$ac_header>  #include <ac_nonexistent.h>
3839  _ACEOF  _ACEOF
3840  if { (ac_try="$ac_cpp conftest.$ac_ext"  if { (ac_try="$ac_cpp conftest.$ac_ext"
3841  case "(($ac_try" in  case "(($ac_try" in
# Line 3993  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 3853  eval "echo \"\$as_me:$LINENO: $ac_try_ec
3853           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854           test ! -s conftest.err           test ! -s conftest.err
3855         }; then         }; then
3856    ac_header_preproc=yes    # Broken: success on invalid input.
3857    continue
3858  else  else
3859    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3860  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3861    
3862    ac_header_preproc=no    # Passes both tests.
3863    ac_preproc_ok=:
3864    break
3865  fi  fi
3866    
3867  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6; }  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     ( cat <<\_ASBOX  
 ## ------------------------------- ##  
 ## Report this to till@harbaum.org ##  
 ## ------------------------------- ##  
 _ASBOX  
      ) | sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 { echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }  
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 ac_res=`eval echo '${'$as_ac_Header'}'`  
                { echo "$as_me:$LINENO: result: $ac_res" >&5  
 echo "${ECHO_T}$ac_res" >&6; }  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
   
 CFLAGS="$CFLAGS -DESPEAK"  
 LIBS="$LIBS -lespeak"  
   
 fi  
3868    
3869  done  done
3870    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871    rm -f conftest.err conftest.$ac_ext
3872  # check for libsoup  if $ac_preproc_ok; then
3873      break
 pkg_failed=no  
 { echo "$as_me:$LINENO: checking for libsoup24" >&5  
 echo $ECHO_N "checking for libsoup24... $ECHO_C" >&6; }  
   
 if test -n "$PKG_CONFIG"; then  
     if test -n "$libsoup24_CFLAGS"; then  
         pkg_cv_libsoup24_CFLAGS="$libsoup24_CFLAGS"  
     else  
         if test -n "$PKG_CONFIG" && \  
     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5  
   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   pkg_cv_libsoup24_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`  
 else  
   pkg_failed=yes  
 fi  
     fi  
 else  
         pkg_failed=untried  
 fi  
 if test -n "$PKG_CONFIG"; then  
     if test -n "$libsoup24_LIBS"; then  
         pkg_cv_libsoup24_LIBS="$libsoup24_LIBS"  
     else  
         if test -n "$PKG_CONFIG" && \  
     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5  
   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   pkg_cv_libsoup24_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`  
 else  
   pkg_failed=yes  
 fi  
     fi  
 else  
         pkg_failed=untried  
3874  fi  fi
3875    
3876        done
3877        ac_cv_prog_CPP=$CPP
3878    
   
 if test $pkg_failed = yes; then  
   
 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then  
         _pkg_short_errors_supported=yes  
 else  
         _pkg_short_errors_supported=no  
 fi  
         if test $_pkg_short_errors_supported = yes; then  
                 libsoup24_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`  
         else  
                 libsoup24_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`  
         fi  
         # Put the nasty error message in config.log where it belongs  
         echo "$libsoup24_PKG_ERRORS" >&5  
   
         { echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6; }  
   
   
 pkg_failed=no  
 { echo "$as_me:$LINENO: checking for libsoup22" >&5  
 echo $ECHO_N "checking for libsoup22... $ECHO_C" >&6; }  
   
 if test -n "$PKG_CONFIG"; then  
     if test -n "$libsoup22_CFLAGS"; then  
         pkg_cv_libsoup22_CFLAGS="$libsoup22_CFLAGS"  
     else  
         if test -n "$PKG_CONFIG" && \  
     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5  
   ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   pkg_cv_libsoup22_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.2" 2>/dev/null`  
 else  
   pkg_failed=yes  
3879  fi  fi
3880      fi    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 "$libsoup22_LIBS"; then  echo "${ECHO_T}$CPP" >&6; }
3886          pkg_cv_libsoup22_LIBS="$libsoup22_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 \"libsoup-2.2\"") >&5    # Use a header file that comes with gcc, so configuring glibc
3890    ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 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_libsoup22_LIBS=`$PKG_CONFIG --libs "libsoup-2.2" 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  
 else  
         pkg_failed=untried  
 fi  
   
   
   
 if test $pkg_failed = yes; then  
   
 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then  
         _pkg_short_errors_supported=yes  
 else  
         _pkg_short_errors_supported=no  
 fi  
         if test $_pkg_short_errors_supported = yes; then  
                 libsoup22_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.2"`  
         else  
                 libsoup22_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.2"`  
         fi  
         # Put the nasty error message in config.log where it belongs  
         echo "$libsoup22_PKG_ERRORS" >&5  
   
         { echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6; }  
   
     { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5  
 echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}  
   
 elif test $pkg_failed = untried; then  
   
     { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5  
 echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}  
   
3925  else  else
3926          libsoup22_CFLAGS=$pkg_cv_libsoup22_CFLAGS    echo "$as_me: failed program was:" >&5
3927          libsoup22_LIBS=$pkg_cv_libsoup22_LIBS  sed 's/^/| /' conftest.$ac_ext >&5
         { echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6; }  
   
     EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"  
     CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"  
     LIBS="$LIBS $libsoup22_LIBS"  
3928    
3929      # Broken: fails on valid input.
3930    continue
3931  fi  fi
3932    
3933  elif test $pkg_failed = untried; then  rm -f conftest.err conftest.$ac_ext
   
   
 pkg_failed=no  
 { echo "$as_me:$LINENO: checking for libsoup22" >&5  
 echo $ECHO_N "checking for libsoup22... $ECHO_C" >&6; }  
3934    
3935  if test -n "$PKG_CONFIG"; then    # OK, works on sane cases.  Now check whether nonexistent headers
3936      if test -n "$libsoup22_CFLAGS"; then    # can be detected and how.
3937          pkg_cv_libsoup22_CFLAGS="$libsoup22_CFLAGS"    cat >conftest.$ac_ext <<_ACEOF
3938      else  /* confdefs.h.  */
3939          if test -n "$PKG_CONFIG" && \  _ACEOF
3940      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5  cat confdefs.h >>conftest.$ac_ext
3941    ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5  cat >>conftest.$ac_ext <<_ACEOF
3942    ac_status=$?  /* end confdefs.h.  */
3943    echo "$as_me:$LINENO: \$? = $ac_status" >&5  #include <ac_nonexistent.h>
3944    (exit $ac_status); }; then  _ACEOF
3945    pkg_cv_libsoup22_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.2" 2>/dev/null`  if { (ac_try="$ac_cpp conftest.$ac_ext"
3946  else  case "(($ac_try" in
3947    pkg_failed=yes    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948  fi    *) ac_try_echo=$ac_try;;
3949      fi  esac
3950  else  eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951          pkg_failed=untried    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 fi  
 if test -n "$PKG_CONFIG"; then  
     if test -n "$libsoup22_LIBS"; then  
         pkg_cv_libsoup22_LIBS="$libsoup22_LIBS"  
     else  
         if test -n "$PKG_CONFIG" && \  
     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5  
   ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5  
3952    ac_status=$?    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    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957    (exit $ac_status); }; then    (exit $ac_status); } >/dev/null && {
3958    pkg_cv_libsoup22_LIBS=`$PKG_CONFIG --libs "libsoup-2.2" 2>/dev/null`           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_failed=yes    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
3971      fi  
3972    rm -f conftest.err conftest.$ac_ext
3973    
3974    done
3975    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976    rm -f conftest.err conftest.$ac_ext
3977    if $ac_preproc_ok; then
3978      :
3979  else  else
3980          pkg_failed=untried    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3981    See \`config.log' for more details." >&5
3982    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3983    See \`config.log' for more details." >&2;}
3984       { (exit 1); exit 1; }; }
3985  fi  fi
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    
3993    
3994  if test $pkg_failed = yes; then  { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3995    echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3996  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then  if test "${ac_cv_path_GREP+set}" = set; then
3997          _pkg_short_errors_supported=yes    echo $ECHO_N "(cached) $ECHO_C" >&6
3998  else  else
3999          _pkg_short_errors_supported=no    # Extract the first word of "grep ggrep" to use in msg output
4000  fi  if test -z "$GREP"; then
4001          if test $_pkg_short_errors_supported = yes; then  set dummy grep ggrep; ac_prog_name=$2
4002                  libsoup22_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.2"`  if test "${ac_cv_path_GREP+set}" = set; then
4003          else    echo $ECHO_N "(cached) $ECHO_C" >&6
4004                  libsoup22_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.2"`  else
4005          fi    ac_path_GREP_found=false
4006          # Put the nasty error message in config.log where it belongs  # Loop through the user's path and test for each of PROGNAME-LIST
4007          echo "$libsoup22_PKG_ERRORS" >&5  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009          { echo "$as_me:$LINENO: result: no" >&5  do
4010  echo "${ECHO_T}no" >&6; }    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    
     { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5  
 echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}  
4044    
4045  elif test $pkg_failed = untried; then      $ac_path_GREP_found && break 3
4046      done
4047    done
4048    
4049      { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5  done
4050  echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}  IFS=$as_save_IFS
4051    
 else  
         libsoup22_CFLAGS=$pkg_cv_libsoup22_CFLAGS  
         libsoup22_LIBS=$pkg_cv_libsoup22_LIBS  
         { echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6; }  
4052    
4053      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"  fi
     CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"  
     LIBS="$LIBS $libsoup22_LIBS"  
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  fi
4061    
4062  else  else
4063          libsoup24_CFLAGS=$pkg_cv_libsoup24_CFLAGS    ac_cv_path_GREP=$GREP
4064          libsoup24_LIBS=$pkg_cv_libsoup24_LIBS  fi
         { echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6; }  
4065    
   EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"  
   CFLAGS="$CFLAGS $libsoup24_CFLAGS -DENABLE_OSM_GPS_MAP"  
   LIBS="$LIBS $libsoup24_LIBS"  
4066    
4067  fi  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    
 # check for gtkhtml-3.14  
   
 pkg_failed=no  
 { echo "$as_me:$LINENO: checking for libgtkhtml3_14" >&5  
 echo $ECHO_N "checking for libgtkhtml3_14... $ECHO_C" >&6; }  
4072    
4073  if test -n "$PKG_CONFIG"; then  { echo "$as_me:$LINENO: checking for egrep" >&5
4074      if test -n "$libgtkhtml3_14_CFLAGS"; then  echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4075          pkg_cv_libgtkhtml3_14_CFLAGS="$libgtkhtml3_14_CFLAGS"  if test "${ac_cv_path_EGREP+set}" = set; then
4076      else    echo $ECHO_N "(cached) $ECHO_C" >&6
         if test -n "$PKG_CONFIG" && \  
     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.14\"") >&5  
   ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.14") 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   pkg_cv_libgtkhtml3_14_CFLAGS=`$PKG_CONFIG --cflags "libgtkhtml-3.14" 2>/dev/null`  
 else  
   pkg_failed=yes  
 fi  
     fi  
4077  else  else
4078          pkg_failed=untried    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4079  fi     then ac_cv_path_EGREP="$GREP -E"
4080  if test -n "$PKG_CONFIG"; then     else
4081      if test -n "$libgtkhtml3_14_LIBS"; then       # Extract the first word of "egrep" to use in msg output
4082          pkg_cv_libgtkhtml3_14_LIBS="$libgtkhtml3_14_LIBS"  if test -z "$EGREP"; then
4083      else  set dummy egrep; ac_prog_name=$2
4084          if test -n "$PKG_CONFIG" && \  if test "${ac_cv_path_EGREP+set}" = set; then
4085      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.14\"") >&5    echo $ECHO_N "(cached) $ECHO_C" >&6
   ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.14") 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   pkg_cv_libgtkhtml3_14_LIBS=`$PKG_CONFIG --libs "libgtkhtml-3.14" 2>/dev/null`  
4086  else  else
4087    pkg_failed=yes    ac_path_EGREP_found=false
4088  fi  # 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      fi
4120  else      # 10*(2^10) chars as input seems more than enough
4121          pkg_failed=untried      test $ac_count -gt 10 && break
4122  fi    done
4123      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124    esac
4125    
4126    
4127  if test $pkg_failed = yes; then      $ac_path_EGREP_found && break 3
4128      done
4129    done
4130    
4131  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then  done
4132          _pkg_short_errors_supported=yes  IFS=$as_save_IFS
 else  
         _pkg_short_errors_supported=no  
 fi  
         if test $_pkg_short_errors_supported = yes; then  
                 libgtkhtml3_14_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgtkhtml-3.14"`  
         else  
                 libgtkhtml3_14_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgtkhtml-3.14"`  
         fi  
         # Put the nasty error message in config.log where it belongs  
         echo "$libgtkhtml3_14_PKG_ERRORS" >&5  
4133    
         { echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6; }  
4134    
4135    # ok, we can also live with 3.8  fi
4136    
4137  pkg_failed=no  EGREP="$ac_cv_path_EGREP"
4138  { echo "$as_me:$LINENO: checking for libgtkhtml3_8" >&5  if test -z "$EGREP"; then
4139  echo $ECHO_N "checking for libgtkhtml3_8... $ECHO_C" >&6; }    { { 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    
 if test -n "$PKG_CONFIG"; then  
     if test -n "$libgtkhtml3_8_CFLAGS"; then  
         pkg_cv_libgtkhtml3_8_CFLAGS="$libgtkhtml3_8_CFLAGS"  
     else  
         if test -n "$PKG_CONFIG" && \  
     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.8\"") >&5  
   ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.8") 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   pkg_cv_libgtkhtml3_8_CFLAGS=`$PKG_CONFIG --cflags "libgtkhtml-3.8" 2>/dev/null`  
4144  else  else
4145    pkg_failed=yes    ac_cv_path_EGREP=$EGREP
4146  fi  fi
4147      fi  
4148  else  
4149          pkg_failed=untried     fi
4150  fi  fi
4151  if test -n "$PKG_CONFIG"; then  { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4152      if test -n "$libgtkhtml3_8_LIBS"; then  echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4153          pkg_cv_libgtkhtml3_8_LIBS="$libgtkhtml3_8_LIBS"   EGREP="$ac_cv_path_EGREP"
4154      else  
4155          if test -n "$PKG_CONFIG" && \  
4156      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.8\"") >&5  { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4157    ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.8") 2>&5  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=$?    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    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193    (exit $ac_status); }; then    (exit $ac_status); } && {
4194    pkg_cv_libgtkhtml3_8_LIBS=`$PKG_CONFIG --libs "libgtkhtml-3.8" 2>/dev/null`           test -z "$ac_c_werror_flag" ||
4195  else           test ! -s conftest.err
4196    pkg_failed=yes         } && test -s conftest.$ac_objext; then
4197  fi    ac_cv_header_stdc=yes
     fi  
4198  else  else
4199          pkg_failed=untried    echo "$as_me: failed program was:" >&5
4200  fi  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 $pkg_failed = yes; then  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  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then  _ACEOF
4218          _pkg_short_errors_supported=yes  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219      $EGREP "memchr" >/dev/null 2>&1; then
4220      :
4221  else  else
4222          _pkg_short_errors_supported=no    ac_cv_header_stdc=no
4223  fi  fi
4224          if test $_pkg_short_errors_supported = yes; then  rm -f conftest*
                 libgtkhtml3_8_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgtkhtml-3.8"`  
         else  
                 libgtkhtml3_8_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgtkhtml-3.8"`  
         fi  
         # Put the nasty error message in config.log where it belongs  
         echo "$libgtkhtml3_8_PKG_ERRORS" >&5  
4225    
4226          { echo "$as_me:$LINENO: result: no" >&5  fi
 echo "${ECHO_T}no" >&6; }  
                 { { echo "$as_me:$LINENO: error: libgtkhtml-3 missing" >&5  
 echo "$as_me: error: libgtkhtml-3 missing" >&2;}  
    { (exit 1); exit 1; }; }  
 elif test $pkg_failed = untried; then  
         { { echo "$as_me:$LINENO: error: libgtkhtml-3 missing" >&5  
 echo "$as_me: error: libgtkhtml-3 missing" >&2;}  
    { (exit 1); exit 1; }; }  
 else  
         libgtkhtml3_8_CFLAGS=$pkg_cv_libgtkhtml3_8_CFLAGS  
         libgtkhtml3_8_LIBS=$pkg_cv_libgtkhtml3_8_LIBS  
         { echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6; }  
4227    
4228      CFLAGS="$CFLAGS $libgtkhtml3_8_CFLAGS"  if test $ac_cv_header_stdc = yes; then
4229      LIBS="$LIBS $libgtkhtml3_8_LIBS"    # 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  fi
4245    rm -f conftest*
4246    
4247  elif test $pkg_failed = untried; then  fi
   
   # ok, we can also live with 3.8  
4248    
4249  pkg_failed=no  if test $ac_cv_header_stdc = yes; then
4250  { echo "$as_me:$LINENO: checking for libgtkhtml3_8" >&5    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4251  echo $ECHO_N "checking for libgtkhtml3_8... $ECHO_C" >&6; }    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  if test -n "$PKG_CONFIG"; then  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4274      if test -n "$libgtkhtml3_8_CFLAGS"; then  int
4275          pkg_cv_libgtkhtml3_8_CFLAGS="$libgtkhtml3_8_CFLAGS"  main ()
4276      else  {
4277          if test -n "$PKG_CONFIG" && \    int i;
4278      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.8\"") >&5    for (i = 0; i < 256; i++)
4279    ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.8") 2>&5      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=$?    ac_status=$?
4294    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295    (exit $ac_status); }; then    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296    pkg_cv_libgtkhtml3_8_CFLAGS=`$PKG_CONFIG --cflags "libgtkhtml-3.8" 2>/dev/null`    { (case "(($ac_try" in
4297  else    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298    pkg_failed=yes    *) ac_try_echo=$ac_try;;
4299  fi  esac
4300      fi  eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301  else    (eval "$ac_try") 2>&5
         pkg_failed=untried  
 fi  
 if test -n "$PKG_CONFIG"; then  
     if test -n "$libgtkhtml3_8_LIBS"; then  
         pkg_cv_libgtkhtml3_8_LIBS="$libgtkhtml3_8_LIBS"  
     else  
         if test -n "$PKG_CONFIG" && \  
     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgtkhtml-3.8\"") >&5  
   ($PKG_CONFIG --exists --print-errors "libgtkhtml-3.8") 2>&5  
4302    ac_status=$?    ac_status=$?
4303    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304    (exit $ac_status); }; then    (exit $ac_status); }; }; then
4305    pkg_cv_libgtkhtml3_8_LIBS=`$PKG_CONFIG --libs "libgtkhtml-3.8" 2>/dev/null`    :
4306  else  else
4307    pkg_failed=yes    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  fi
4314      fi  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4315  else  fi
4316          pkg_failed=untried  
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  fi
4329    
4330    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4331    
4332    
 if test $pkg_failed = yes; then  
4333    
4334  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then  
4335          _pkg_short_errors_supported=yes  
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  else
4349          _pkg_short_errors_supported=no    cat >conftest.$ac_ext <<_ACEOF
4350  fi  /* confdefs.h.  */
4351          if test $_pkg_short_errors_supported = yes; then  _ACEOF
4352                  libgtkhtml3_8_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgtkhtml-3.8"`  cat confdefs.h >>conftest.$ac_ext
4353          else  cat >>conftest.$ac_ext <<_ACEOF
4354                  libgtkhtml3_8_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgtkhtml-3.8"`  /* end confdefs.h.  */
4355          fi  $ac_includes_default
         # Put the nasty error message in config.log where it belongs  
         echo "$libgtkhtml3_8_PKG_ERRORS" >&5  
4356    
4357          { echo "$as_me:$LINENO: result: no" >&5  #include <$ac_header>
4358  echo "${ECHO_T}no" >&6; }  _ACEOF
4359                  { { echo "$as_me:$LINENO: error: libgtkhtml-3 missing" >&5  rm -f conftest.$ac_objext
4360  echo "$as_me: error: libgtkhtml-3 missing" >&2;}  if { (ac_try="$ac_compile"
4361     { (exit 1); exit 1; }; }  case "(($ac_try" in
4362  elif test $pkg_failed = untried; then    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363          { { echo "$as_me:$LINENO: error: libgtkhtml-3 missing" >&5    *) ac_try_echo=$ac_try;;
4364  echo "$as_me: error: libgtkhtml-3 missing" >&2;}  esac
4365     { (exit 1); exit 1; }; }  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  else
4378          libgtkhtml3_8_CFLAGS=$pkg_cv_libgtkhtml3_8_CFLAGS    echo "$as_me: failed program was:" >&5
4379          libgtkhtml3_8_LIBS=$pkg_cv_libgtkhtml3_8_LIBS  sed 's/^/| /' conftest.$ac_ext >&5
         { echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6; }  
4380    
4381      CFLAGS="$CFLAGS $libgtkhtml3_8_CFLAGS"          eval "$as_ac_Header=no"
4382      LIBS="$LIBS $libgtkhtml3_8_LIBS"  fi
4383    
4384    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385  fi  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  else  fi
         libgtkhtml3_14_CFLAGS=$pkg_cv_libgtkhtml3_14_CFLAGS  
         libgtkhtml3_14_LIBS=$pkg_cv_libgtkhtml3_14_LIBS  
         { echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6; }  
4395    
4396    CFLAGS="$CFLAGS $libgtkhtml3_14_CFLAGS"  done
   LIBS="$LIBS $libgtkhtml3_14_LIBS"  
4397    
 fi  
4398    
 # check for maemo  
 { echo "$as_me:$LINENO: checking for Maemo" >&5  
 echo $ECHO_N "checking for Maemo... $ECHO_C" >&6; }  
4399  if test -n "$PKG_CONFIG" && \  if test -n "$PKG_CONFIG" && \
4400      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"maemo-version\"") >&5      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"maemo-version\"") >&5
4401    ($PKG_CONFIG --exists --print-errors "maemo-version") 2>&5    ($PKG_CONFIG --exists --print-errors "maemo-version") 2>&5
# Line 5214  fi Line 5070  fi
5070      CFLAGS="$CFLAGS -DENABLE_BROWSER_INTERFACE"      CFLAGS="$CFLAGS -DENABLE_BROWSER_INTERFACE"
5071    
5072  else  else
5073    { echo "$as_me:$LINENO: WARNING: No tablet-browser-interface found, disabling microb interface!" >&5    { echo "$as_me:$LINENO: WARNING: No tablet-browser-interface found, disabling microb interface!" >&5
5074  echo "$as_me: WARNING: No tablet-browser-interface found, disabling microb interface!" >&6;}  echo "$as_me: WARNING: No tablet-browser-interface found, disabling microb interface!" >&6;}
5075    fi
5076    
5077      if test -n "$PKG_CONFIG" && \
5078        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"maemo-version\"") >&5
5079      ($PKG_CONFIG --exists --print-errors "maemo-version") 2>&5
5080      ac_status=$?
5081      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082      (exit $ac_status); }; then
5083    
5084        VERSION=`pkg-config --modversion maemo-version`
5085        { echo "$as_me:$LINENO: Configuring for Maemo $VERSION" >&5
5086    echo "$as_me: Configuring for Maemo $VERSION" >&6;}
5087        CFLAGS="$CFLAGS -DMAEMO_VERSION=\\\"$VERSION\\\""
5088        MAJOR=`echo $VERSION | cut -b1 -`
5089        CFLAGS="$CFLAGS -DMAEMO_VERSION_MAJOR=$MAJOR"
5090    
5091        MAEMO_VERSION_MAJOR=$MAJOR
5092    
5093    
5094    else
5095    
5096        { { echo "$as_me:$LINENO: error: maemo-version not found" >&5
5097    echo "$as_me: error: maemo-version not found" >&2;}
5098       { (exit 1); exit 1; }; }
5099    
5100    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  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    if test -n "$PKG_CONFIG" && \  fi
5247      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"maemo-version\"") >&5  if test `eval echo '${'$as_ac_Header'}'` = yes; then
5248    ($PKG_CONFIG --exists --print-errors "maemo-version") 2>&5    cat >>confdefs.h <<_ACEOF
5249    ac_status=$?  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5250    echo "$as_me:$LINENO: \$? = $ac_status" >&5  _ACEOF
   (exit $ac_status); }; then  
   
     VERSION=`pkg-config --modversion maemo-version`  
     { echo "$as_me:$LINENO: Configuring for Maemo $VERSION" >&5  
 echo "$as_me: Configuring for Maemo $VERSION" >&6;}  
     CFLAGS="$CFLAGS -DMAEMO_VERSION=\\\"$VERSION\\\""  
     MAJOR=`echo $VERSION | cut -b1 -`  
     CFLAGS="$CFLAGS -DMAEMO_VERSION_MAJOR=$MAJOR"  
   
     MAEMO_VERSION_MAJOR=$MAJOR  
   
   
 else  
5251    
5252      { { echo "$as_me:$LINENO: error: maemo-version not found" >&5           CFLAGS="$CFLAGS -DESPEAK"
5253  echo "$as_me: error: maemo-version not found" >&2;}           LIBS="$LIBS -lespeak"
    { (exit 1); exit 1; }; }  
5254    
5255  fi  fi
5256    
5257    INSTALL_PLATTFORM="install-maemo"  done
5258    
   # fremantle uses icons of 48x48 pixels for the app installer,  
   # older versions used 26x26  
   if [ "$MAJOR" == "5" ]; then  
      ICONNAME=48x48/gpxview.png  
      datarootdir=/opt  
5259    else    else
5260       ICONNAME=26x26/gpxview.png       ICONNAME=26x26/gpxview.png
5261       { echo "$as_me:$LINENO: Enabling Maemo Mapper support" >&5       { echo "$as_me:$LINENO: Enabling Maemo Mapper support" >&5
# Line 5441  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"    ICON=" No icon"
# Line 5879  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.9.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 5922  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.9.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 6142  libxml2_CFLAGS!$libxml2_CFLAGS$ac_delim Line 6376  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  libcurl_CFLAGS!$libcurl_CFLAGS$ac_delim
6378  libcurl_LIBS!$libcurl_LIBS$ac_delim  libcurl_LIBS!$libcurl_LIBS$ac_delim
 CPP!$CPP$ac_delim  
 GREP!$GREP$ac_delim  
 EGREP!$EGREP$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 6168  gpsbt_LIBS!$gpsbt_LIBS$ac_delim Line 6399  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  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  ICON!$ICON$ac_delim
6413  INSTALL_PLATTFORM!$INSTALL_PLATTFORM$ac_delim  INSTALL_PLATTFORM!$INSTALL_PLATTFORM$ac_delim
# Line 6179  LIBOBJS!$LIBOBJS$ac_delim Line 6415  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` = 92; 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.246  
changed lines
  Added in v.282