1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for GPSBabel 1.4.4.
4#
5# Report bugs to <BUG-REPORT-ADDRESS>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='GPSBabel'
576PACKAGE_TARNAME='gpsbabel'
577PACKAGE_VERSION='1.4.4'
578PACKAGE_STRING='GPSBabel 1.4.4'
579PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
580
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654PACKAGE_RELEASE
655DOCVERSION
656GBMAJOR
657GBMINOR
658GBMICRO
659GBBUILD
660build
661build_cpu
662build_vendor
663build_os
664host
665host_cpu
666host_vendor
667host_os
668target
669target_cpu
670target_vendor
671target_os
672CC
673CFLAGS
674LDFLAGS
675CPPFLAGS
676ac_ct_CC
677EXEEXT
678OBJEXT
679INSTALL_PROGRAM
680INSTALL_SCRIPT
681INSTALL_DATA
682SET_MAKE
683CPP
684GREP
685EGREP
686PALM_DB_CMT
687FMTS
688FILEINFO
689RC
690LIBUSBCONFIG
691USB_LIBS
692USB_CFLAGS
693OSJEEPS
694GBSER
695ZLIB
696EXPAT_LIB
697EFENCE_LIB
698GPSBABEL_DEBUG
699INSTALL_DEBUG
700DOCDIR
701LIBOBJS
702LTLIBOBJS'
703ac_subst_files=''
704      ac_precious_vars='build_alias
705host_alias
706target_alias
707CC
708CFLAGS
709LDFLAGS
710LIBS
711CPPFLAGS
712CPP'
713
714
715# Initialize some variables set by options.
716ac_init_help=
717ac_init_version=false
718# The variables have the same names as the options, with
719# dashes changed to underlines.
720cache_file=/dev/null
721exec_prefix=NONE
722no_create=
723no_recursion=
724prefix=NONE
725program_prefix=NONE
726program_suffix=NONE
727program_transform_name=s,x,x,
728silent=
729site=
730srcdir=
731verbose=
732x_includes=NONE
733x_libraries=NONE
734
735# Installation directory options.
736# These are left unexpanded so users can "make install exec_prefix=/foo"
737# and all the variables that are supposed to be based on exec_prefix
738# by default will actually change.
739# Use braces instead of parens because sh, perl, etc. also accept them.
740# (The list follows the same order as the GNU Coding Standards.)
741bindir='${exec_prefix}/bin'
742sbindir='${exec_prefix}/sbin'
743libexecdir='${exec_prefix}/libexec'
744datarootdir='${prefix}/share'
745datadir='${datarootdir}'
746sysconfdir='${prefix}/etc'
747sharedstatedir='${prefix}/com'
748localstatedir='${prefix}/var'
749includedir='${prefix}/include'
750oldincludedir='/usr/include'
751docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
752infodir='${datarootdir}/info'
753htmldir='${docdir}'
754dvidir='${docdir}'
755pdfdir='${docdir}'
756psdir='${docdir}'
757libdir='${exec_prefix}/lib'
758localedir='${datarootdir}/locale'
759mandir='${datarootdir}/man'
760
761ac_prev=
762ac_dashdash=
763for ac_option
764do
765  # If the previous option needs an argument, assign it.
766  if test -n "$ac_prev"; then
767    eval $ac_prev=\$ac_option
768    ac_prev=
769    continue
770  fi
771
772  case $ac_option in
773  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774  *)	ac_optarg=yes ;;
775  esac
776
777  # Accept the important Cygnus configure options, so we can diagnose typos.
778
779  case $ac_dashdash$ac_option in
780  --)
781    ac_dashdash=yes ;;
782
783  -bindir | --bindir | --bindi | --bind | --bin | --bi)
784    ac_prev=bindir ;;
785  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786    bindir=$ac_optarg ;;
787
788  -build | --build | --buil | --bui | --bu)
789    ac_prev=build_alias ;;
790  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
791    build_alias=$ac_optarg ;;
792
793  -cache-file | --cache-file | --cache-fil | --cache-fi \
794  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
795    ac_prev=cache_file ;;
796  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
797  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
798    cache_file=$ac_optarg ;;
799
800  --config-cache | -C)
801    cache_file=config.cache ;;
802
803  -datadir | --datadir | --datadi | --datad)
804    ac_prev=datadir ;;
805  -datadir=* | --datadir=* | --datadi=* | --datad=*)
806    datadir=$ac_optarg ;;
807
808  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
809  | --dataroo | --dataro | --datar)
810    ac_prev=datarootdir ;;
811  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
812  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
813    datarootdir=$ac_optarg ;;
814
815  -disable-* | --disable-*)
816    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
817    # Reject names that are not valid shell variable names.
818    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820   { (exit 1); exit 1; }; }
821    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822    eval enable_$ac_feature=no ;;
823
824  -docdir | --docdir | --docdi | --doc | --do)
825    ac_prev=docdir ;;
826  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827    docdir=$ac_optarg ;;
828
829  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
830    ac_prev=dvidir ;;
831  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832    dvidir=$ac_optarg ;;
833
834  -enable-* | --enable-*)
835    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
836    # Reject names that are not valid shell variable names.
837    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
838      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
839   { (exit 1); exit 1; }; }
840    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
841    eval enable_$ac_feature=\$ac_optarg ;;
842
843  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845  | --exec | --exe | --ex)
846    ac_prev=exec_prefix ;;
847  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849  | --exec=* | --exe=* | --ex=*)
850    exec_prefix=$ac_optarg ;;
851
852  -gas | --gas | --ga | --g)
853    # Obsolete; use --with-gas.
854    with_gas=yes ;;
855
856  -help | --help | --hel | --he | -h)
857    ac_init_help=long ;;
858  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859    ac_init_help=recursive ;;
860  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861    ac_init_help=short ;;
862
863  -host | --host | --hos | --ho)
864    ac_prev=host_alias ;;
865  -host=* | --host=* | --hos=* | --ho=*)
866    host_alias=$ac_optarg ;;
867
868  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869    ac_prev=htmldir ;;
870  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871  | --ht=*)
872    htmldir=$ac_optarg ;;
873
874  -includedir | --includedir | --includedi | --included | --include \
875  | --includ | --inclu | --incl | --inc)
876    ac_prev=includedir ;;
877  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878  | --includ=* | --inclu=* | --incl=* | --inc=*)
879    includedir=$ac_optarg ;;
880
881  -infodir | --infodir | --infodi | --infod | --info | --inf)
882    ac_prev=infodir ;;
883  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884    infodir=$ac_optarg ;;
885
886  -libdir | --libdir | --libdi | --libd)
887    ac_prev=libdir ;;
888  -libdir=* | --libdir=* | --libdi=* | --libd=*)
889    libdir=$ac_optarg ;;
890
891  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892  | --libexe | --libex | --libe)
893    ac_prev=libexecdir ;;
894  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895  | --libexe=* | --libex=* | --libe=*)
896    libexecdir=$ac_optarg ;;
897
898  -localedir | --localedir | --localedi | --localed | --locale)
899    ac_prev=localedir ;;
900  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901    localedir=$ac_optarg ;;
902
903  -localstatedir | --localstatedir | --localstatedi | --localstated \
904  | --localstate | --localstat | --localsta | --localst | --locals)
905    ac_prev=localstatedir ;;
906  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908    localstatedir=$ac_optarg ;;
909
910  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911    ac_prev=mandir ;;
912  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913    mandir=$ac_optarg ;;
914
915  -nfp | --nfp | --nf)
916    # Obsolete; use --without-fp.
917    with_fp=no ;;
918
919  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920  | --no-cr | --no-c | -n)
921    no_create=yes ;;
922
923  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925    no_recursion=yes ;;
926
927  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929  | --oldin | --oldi | --old | --ol | --o)
930    ac_prev=oldincludedir ;;
931  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934    oldincludedir=$ac_optarg ;;
935
936  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937    ac_prev=prefix ;;
938  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939    prefix=$ac_optarg ;;
940
941  -program-prefix | --program-prefix | --program-prefi | --program-pref \
942  | --program-pre | --program-pr | --program-p)
943    ac_prev=program_prefix ;;
944  -program-prefix=* | --program-prefix=* | --program-prefi=* \
945  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946    program_prefix=$ac_optarg ;;
947
948  -program-suffix | --program-suffix | --program-suffi | --program-suff \
949  | --program-suf | --program-su | --program-s)
950    ac_prev=program_suffix ;;
951  -program-suffix=* | --program-suffix=* | --program-suffi=* \
952  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953    program_suffix=$ac_optarg ;;
954
955  -program-transform-name | --program-transform-name \
956  | --program-transform-nam | --program-transform-na \
957  | --program-transform-n | --program-transform- \
958  | --program-transform | --program-transfor \
959  | --program-transfo | --program-transf \
960  | --program-trans | --program-tran \
961  | --progr-tra | --program-tr | --program-t)
962    ac_prev=program_transform_name ;;
963  -program-transform-name=* | --program-transform-name=* \
964  | --program-transform-nam=* | --program-transform-na=* \
965  | --program-transform-n=* | --program-transform-=* \
966  | --program-transform=* | --program-transfor=* \
967  | --program-transfo=* | --program-transf=* \
968  | --program-trans=* | --program-tran=* \
969  | --progr-tra=* | --program-tr=* | --program-t=*)
970    program_transform_name=$ac_optarg ;;
971
972  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973    ac_prev=pdfdir ;;
974  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975    pdfdir=$ac_optarg ;;
976
977  -psdir | --psdir | --psdi | --psd | --ps)
978    ac_prev=psdir ;;
979  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980    psdir=$ac_optarg ;;
981
982  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983  | -silent | --silent | --silen | --sile | --sil)
984    silent=yes ;;
985
986  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
987    ac_prev=sbindir ;;
988  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
989  | --sbi=* | --sb=*)
990    sbindir=$ac_optarg ;;
991
992  -sharedstatedir | --sharedstatedir | --sharedstatedi \
993  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
994  | --sharedst | --shareds | --shared | --share | --shar \
995  | --sha | --sh)
996    ac_prev=sharedstatedir ;;
997  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
998  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
999  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1000  | --sha=* | --sh=*)
1001    sharedstatedir=$ac_optarg ;;
1002
1003  -site | --site | --sit)
1004    ac_prev=site ;;
1005  -site=* | --site=* | --sit=*)
1006    site=$ac_optarg ;;
1007
1008  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1009    ac_prev=srcdir ;;
1010  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1011    srcdir=$ac_optarg ;;
1012
1013  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1014  | --syscon | --sysco | --sysc | --sys | --sy)
1015    ac_prev=sysconfdir ;;
1016  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1017  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1018    sysconfdir=$ac_optarg ;;
1019
1020  -target | --target | --targe | --targ | --tar | --ta | --t)
1021    ac_prev=target_alias ;;
1022  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1023    target_alias=$ac_optarg ;;
1024
1025  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026    verbose=yes ;;
1027
1028  -version | --version | --versio | --versi | --vers | -V)
1029    ac_init_version=: ;;
1030
1031  -with-* | --with-*)
1032    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033    # Reject names that are not valid shell variable names.
1034    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1035      { echo "$as_me: error: invalid package name: $ac_package" >&2
1036   { (exit 1); exit 1; }; }
1037    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1038    eval with_$ac_package=\$ac_optarg ;;
1039
1040  -without-* | --without-*)
1041    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044      { echo "$as_me: error: invalid package name: $ac_package" >&2
1045   { (exit 1); exit 1; }; }
1046    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1047    eval with_$ac_package=no ;;
1048
1049  --x)
1050    # Obsolete; use --with-x.
1051    with_x=yes ;;
1052
1053  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1054  | --x-incl | --x-inc | --x-in | --x-i)
1055    ac_prev=x_includes ;;
1056  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1057  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1058    x_includes=$ac_optarg ;;
1059
1060  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1061  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1062    ac_prev=x_libraries ;;
1063  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1064  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1065    x_libraries=$ac_optarg ;;
1066
1067  -*) { echo "$as_me: error: unrecognized option: $ac_option
1068Try \`$0 --help' for more information." >&2
1069   { (exit 1); exit 1; }; }
1070    ;;
1071
1072  *=*)
1073    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1076      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1077   { (exit 1); exit 1; }; }
1078    eval $ac_envvar=\$ac_optarg
1079    export $ac_envvar ;;
1080
1081  *)
1082    # FIXME: should be removed in autoconf 3.0.
1083    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1084    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1086    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1087    ;;
1088
1089  esac
1090done
1091
1092if test -n "$ac_prev"; then
1093  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1094  { echo "$as_me: error: missing argument to $ac_option" >&2
1095   { (exit 1); exit 1; }; }
1096fi
1097
1098# Be sure to have absolute directory names.
1099for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1100		datadir sysconfdir sharedstatedir localstatedir includedir \
1101		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1102		libdir localedir mandir
1103do
1104  eval ac_val=\$$ac_var
1105  case $ac_val in
1106    [\\/$]* | ?:[\\/]* )  continue;;
1107    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1108  esac
1109  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1110   { (exit 1); exit 1; }; }
1111done
1112
1113# There might be people who depend on the old broken behavior: `$host'
1114# used to hold the argument of --host etc.
1115# FIXME: To remove some day.
1116build=$build_alias
1117host=$host_alias
1118target=$target_alias
1119
1120# FIXME: To remove some day.
1121if test "x$host_alias" != x; then
1122  if test "x$build_alias" = x; then
1123    cross_compiling=maybe
1124    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1125    If a cross compiler is detected then cross compile mode will be used." >&2
1126  elif test "x$build_alias" != "x$host_alias"; then
1127    cross_compiling=yes
1128  fi
1129fi
1130
1131ac_tool_prefix=
1132test -n "$host_alias" && ac_tool_prefix=$host_alias-
1133
1134test "$silent" = yes && exec 6>/dev/null
1135
1136
1137ac_pwd=`pwd` && test -n "$ac_pwd" &&
1138ac_ls_di=`ls -di .` &&
1139ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1140  { echo "$as_me: error: Working directory cannot be determined" >&2
1141   { (exit 1); exit 1; }; }
1142test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1143  { echo "$as_me: error: pwd does not report name of working directory" >&2
1144   { (exit 1); exit 1; }; }
1145
1146
1147# Find the source files, if location was not specified.
1148if test -z "$srcdir"; then
1149  ac_srcdir_defaulted=yes
1150  # Try the directory containing this script, then the parent directory.
1151  ac_confdir=`$as_dirname -- "$0" ||
1152$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1153	 X"$0" : 'X\(//\)[^/]' \| \
1154	 X"$0" : 'X\(//\)$' \| \
1155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1156echo X"$0" |
1157    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1158	    s//\1/
1159	    q
1160	  }
1161	  /^X\(\/\/\)[^/].*/{
1162	    s//\1/
1163	    q
1164	  }
1165	  /^X\(\/\/\)$/{
1166	    s//\1/
1167	    q
1168	  }
1169	  /^X\(\/\).*/{
1170	    s//\1/
1171	    q
1172	  }
1173	  s/.*/./; q'`
1174  srcdir=$ac_confdir
1175  if test ! -r "$srcdir/$ac_unique_file"; then
1176    srcdir=..
1177  fi
1178else
1179  ac_srcdir_defaulted=no
1180fi
1181if test ! -r "$srcdir/$ac_unique_file"; then
1182  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1183  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1184   { (exit 1); exit 1; }; }
1185fi
1186ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1187ac_abs_confdir=`(
1188	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1189   { (exit 1); exit 1; }; }
1190	pwd)`
1191# When building in place, set srcdir=.
1192if test "$ac_abs_confdir" = "$ac_pwd"; then
1193  srcdir=.
1194fi
1195# Remove unnecessary trailing slashes from srcdir.
1196# Double slashes in file names in object file debugging info
1197# mess up M-x gdb in Emacs.
1198case $srcdir in
1199*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1200esac
1201for ac_var in $ac_precious_vars; do
1202  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1203  eval ac_env_${ac_var}_value=\$${ac_var}
1204  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1205  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1206done
1207
1208#
1209# Report the --help message.
1210#
1211if test "$ac_init_help" = "long"; then
1212  # Omit some internal or obsolete options to make the list less imposing.
1213  # This message is too long to be a string in the A/UX 3.1 sh.
1214  cat <<_ACEOF
1215\`configure' configures GPSBabel 1.4.4 to adapt to many kinds of systems.
1216
1217Usage: $0 [OPTION]... [VAR=VALUE]...
1218
1219To assign environment variables (e.g., CC, CFLAGS...), specify them as
1220VAR=VALUE.  See below for descriptions of some of the useful variables.
1221
1222Defaults for the options are specified in brackets.
1223
1224Configuration:
1225  -h, --help              display this help and exit
1226      --help=short        display options specific to this package
1227      --help=recursive    display the short help of all the included packages
1228  -V, --version           display version information and exit
1229  -q, --quiet, --silent   do not print \`checking...' messages
1230      --cache-file=FILE   cache test results in FILE [disabled]
1231  -C, --config-cache      alias for \`--cache-file=config.cache'
1232  -n, --no-create         do not create output files
1233      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1234
1235Installation directories:
1236  --prefix=PREFIX         install architecture-independent files in PREFIX
1237			  [$ac_default_prefix]
1238  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1239			  [PREFIX]
1240
1241By default, \`make install' will install all the files in
1242\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1243an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1244for instance \`--prefix=\$HOME'.
1245
1246For better control, use the options below.
1247
1248Fine tuning of the installation directories:
1249  --bindir=DIR           user executables [EPREFIX/bin]
1250  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1251  --libexecdir=DIR       program executables [EPREFIX/libexec]
1252  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1253  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1254  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1255  --libdir=DIR           object code libraries [EPREFIX/lib]
1256  --includedir=DIR       C header files [PREFIX/include]
1257  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1258  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1259  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1260  --infodir=DIR          info documentation [DATAROOTDIR/info]
1261  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1262  --mandir=DIR           man documentation [DATAROOTDIR/man]
1263  --docdir=DIR           documentation root [DATAROOTDIR/doc/gpsbabel]
1264  --htmldir=DIR          html documentation [DOCDIR]
1265  --dvidir=DIR           dvi documentation [DOCDIR]
1266  --pdfdir=DIR           pdf documentation [DOCDIR]
1267  --psdir=DIR            ps documentation [DOCDIR]
1268_ACEOF
1269
1270  cat <<\_ACEOF
1271
1272System types:
1273  --build=BUILD     configure for building on BUILD [guessed]
1274  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1275  --target=TARGET   configure for building compilers for TARGET [HOST]
1276_ACEOF
1277fi
1278
1279if test -n "$ac_init_help"; then
1280  case $ac_init_help in
1281     short | recursive ) echo "Configuration of GPSBabel 1.4.4:";;
1282   esac
1283  cat <<\_ACEOF
1284
1285Optional Features:
1286  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1287  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1288  --enable-shapefile=(yes)|no
1289  --enable-pdb=(yes)|no
1290  --enable-csv=(yes)|no
1291  --enable-most=(yes)|no
1292  --enable-filters=(yes)|no
1293  --enable-efence=yes|(no)
1294
1295Optional Packages:
1296  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1297  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1298  --with-cet=(default,all,minimal)
1299  --with-zlib=(included)|system|no
1300  --with-expathdr=DIR   Use this to specify the location of expat.h
1301  --with-libexpat=DIR   Use this to specify expat library .
1302  --with-doc=DIR        Path where the documentation will be stored.
1303
1304Some influential environment variables:
1305  CC          C compiler command
1306  CFLAGS      C compiler flags
1307  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1308              nonstandard directory <lib dir>
1309  LIBS        libraries to pass to the linker, e.g. -l<library>
1310  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1311              you have headers in a nonstandard directory <include dir>
1312  CPP         C preprocessor
1313
1314Use these variables to override the choices made by `configure' or to help
1315it to find libraries and programs with nonstandard names/locations.
1316
1317Report bugs to <BUG-REPORT-ADDRESS>.
1318_ACEOF
1319ac_status=$?
1320fi
1321
1322if test "$ac_init_help" = "recursive"; then
1323  # If there are subdirs, report their specific --help.
1324  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1325    test -d "$ac_dir" || continue
1326    ac_builddir=.
1327
1328case "$ac_dir" in
1329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330*)
1331  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1332  # A ".." for each directory in $ac_dir_suffix.
1333  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1334  case $ac_top_builddir_sub in
1335  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1337  esac ;;
1338esac
1339ac_abs_top_builddir=$ac_pwd
1340ac_abs_builddir=$ac_pwd$ac_dir_suffix
1341# for backward compatibility:
1342ac_top_builddir=$ac_top_build_prefix
1343
1344case $srcdir in
1345  .)  # We are building in place.
1346    ac_srcdir=.
1347    ac_top_srcdir=$ac_top_builddir_sub
1348    ac_abs_top_srcdir=$ac_pwd ;;
1349  [\\/]* | ?:[\\/]* )  # Absolute name.
1350    ac_srcdir=$srcdir$ac_dir_suffix;
1351    ac_top_srcdir=$srcdir
1352    ac_abs_top_srcdir=$srcdir ;;
1353  *) # Relative name.
1354    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1355    ac_top_srcdir=$ac_top_build_prefix$srcdir
1356    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1357esac
1358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1359
1360    cd "$ac_dir" || { ac_status=$?; continue; }
1361    # Check for guested configure.
1362    if test -f "$ac_srcdir/configure.gnu"; then
1363      echo &&
1364      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1365    elif test -f "$ac_srcdir/configure"; then
1366      echo &&
1367      $SHELL "$ac_srcdir/configure" --help=recursive
1368    else
1369      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1370    fi || ac_status=$?
1371    cd "$ac_pwd" || { ac_status=$?; break; }
1372  done
1373fi
1374
1375test -n "$ac_init_help" && exit $ac_status
1376if $ac_init_version; then
1377  cat <<\_ACEOF
1378GPSBabel configure 1.4.4
1379generated by GNU Autoconf 2.61
1380
1381Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13822002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1383This configure script is free software; the Free Software Foundation
1384gives unlimited permission to copy, distribute and modify it.
1385_ACEOF
1386  exit
1387fi
1388cat >config.log <<_ACEOF
1389This file contains any messages produced by compilers while
1390running configure, to aid debugging if configure makes a mistake.
1391
1392It was created by GPSBabel $as_me 1.4.4, which was
1393generated by GNU Autoconf 2.61.  Invocation command line was
1394
1395  $ $0 $@
1396
1397_ACEOF
1398exec 5>>config.log
1399{
1400cat <<_ASUNAME
1401## --------- ##
1402## Platform. ##
1403## --------- ##
1404
1405hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1406uname -m = `(uname -m) 2>/dev/null || echo unknown`
1407uname -r = `(uname -r) 2>/dev/null || echo unknown`
1408uname -s = `(uname -s) 2>/dev/null || echo unknown`
1409uname -v = `(uname -v) 2>/dev/null || echo unknown`
1410
1411/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1412/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1413
1414/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1415/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1416/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1417/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1418/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1419/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1420/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1421
1422_ASUNAME
1423
1424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
1427  IFS=$as_save_IFS
1428  test -z "$as_dir" && as_dir=.
1429  echo "PATH: $as_dir"
1430done
1431IFS=$as_save_IFS
1432
1433} >&5
1434
1435cat >&5 <<_ACEOF
1436
1437
1438## ----------- ##
1439## Core tests. ##
1440## ----------- ##
1441
1442_ACEOF
1443
1444
1445# Keep a trace of the command line.
1446# Strip out --no-create and --no-recursion so they do not pile up.
1447# Strip out --silent because we don't want to record it for future runs.
1448# Also quote any args containing shell meta-characters.
1449# Make two passes to allow for proper duplicate-argument suppression.
1450ac_configure_args=
1451ac_configure_args0=
1452ac_configure_args1=
1453ac_must_keep_next=false
1454for ac_pass in 1 2
1455do
1456  for ac_arg
1457  do
1458    case $ac_arg in
1459    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1460    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1461    | -silent | --silent | --silen | --sile | --sil)
1462      continue ;;
1463    *\'*)
1464      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1465    esac
1466    case $ac_pass in
1467    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1468    2)
1469      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1470      if test $ac_must_keep_next = true; then
1471	ac_must_keep_next=false # Got value, back to normal.
1472      else
1473	case $ac_arg in
1474	  *=* | --config-cache | -C | -disable-* | --disable-* \
1475	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1476	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1477	  | -with-* | --with-* | -without-* | --without-* | --x)
1478	    case "$ac_configure_args0 " in
1479	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1480	    esac
1481	    ;;
1482	  -* ) ac_must_keep_next=true ;;
1483	esac
1484      fi
1485      ac_configure_args="$ac_configure_args '$ac_arg'"
1486      ;;
1487    esac
1488  done
1489done
1490$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1491$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1492
1493# When interrupted or exit'd, cleanup temporary files, and complete
1494# config.log.  We remove comments because anyway the quotes in there
1495# would cause problems or look ugly.
1496# WARNING: Use '\'' to represent an apostrophe within the trap.
1497# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1498trap 'exit_status=$?
1499  # Save into config.log some information that might help in debugging.
1500  {
1501    echo
1502
1503    cat <<\_ASBOX
1504## ---------------- ##
1505## Cache variables. ##
1506## ---------------- ##
1507_ASBOX
1508    echo
1509    # The following way of writing the cache mishandles newlines in values,
1510(
1511  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1512    eval ac_val=\$$ac_var
1513    case $ac_val in #(
1514    *${as_nl}*)
1515      case $ac_var in #(
1516      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1517echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1518      esac
1519      case $ac_var in #(
1520      _ | IFS | as_nl) ;; #(
1521      *) $as_unset $ac_var ;;
1522      esac ;;
1523    esac
1524  done
1525  (set) 2>&1 |
1526    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1527    *${as_nl}ac_space=\ *)
1528      sed -n \
1529	"s/'\''/'\''\\\\'\'''\''/g;
1530	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1531      ;; #(
1532    *)
1533      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1534      ;;
1535    esac |
1536    sort
1537)
1538    echo
1539
1540    cat <<\_ASBOX
1541## ----------------- ##
1542## Output variables. ##
1543## ----------------- ##
1544_ASBOX
1545    echo
1546    for ac_var in $ac_subst_vars
1547    do
1548      eval ac_val=\$$ac_var
1549      case $ac_val in
1550      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551      esac
1552      echo "$ac_var='\''$ac_val'\''"
1553    done | sort
1554    echo
1555
1556    if test -n "$ac_subst_files"; then
1557      cat <<\_ASBOX
1558## ------------------- ##
1559## File substitutions. ##
1560## ------------------- ##
1561_ASBOX
1562      echo
1563      for ac_var in $ac_subst_files
1564      do
1565	eval ac_val=\$$ac_var
1566	case $ac_val in
1567	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568	esac
1569	echo "$ac_var='\''$ac_val'\''"
1570      done | sort
1571      echo
1572    fi
1573
1574    if test -s confdefs.h; then
1575      cat <<\_ASBOX
1576## ----------- ##
1577## confdefs.h. ##
1578## ----------- ##
1579_ASBOX
1580      echo
1581      cat confdefs.h
1582      echo
1583    fi
1584    test "$ac_signal" != 0 &&
1585      echo "$as_me: caught signal $ac_signal"
1586    echo "$as_me: exit $exit_status"
1587  } >&5
1588  rm -f core *.core core.conftest.* &&
1589    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1590    exit $exit_status
1591' 0
1592for ac_signal in 1 2 13 15; do
1593  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1594done
1595ac_signal=0
1596
1597# confdefs.h avoids OS command line length limits that DEFS can exceed.
1598rm -f -r conftest* confdefs.h
1599
1600# Predefined preprocessor variables.
1601
1602cat >>confdefs.h <<_ACEOF
1603#define PACKAGE_NAME "$PACKAGE_NAME"
1604_ACEOF
1605
1606
1607cat >>confdefs.h <<_ACEOF
1608#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1609_ACEOF
1610
1611
1612cat >>confdefs.h <<_ACEOF
1613#define PACKAGE_VERSION "$PACKAGE_VERSION"
1614_ACEOF
1615
1616
1617cat >>confdefs.h <<_ACEOF
1618#define PACKAGE_STRING "$PACKAGE_STRING"
1619_ACEOF
1620
1621
1622cat >>confdefs.h <<_ACEOF
1623#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1624_ACEOF
1625
1626
1627# Let the site file select an alternate cache file if it wants to.
1628# Prefer explicitly selected file to automatically selected ones.
1629if test -n "$CONFIG_SITE"; then
1630  set x "$CONFIG_SITE"
1631elif test "x$prefix" != xNONE; then
1632  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1633else
1634  set x "$ac_default_prefix/share/config.site" \
1635	"$ac_default_prefix/etc/config.site"
1636fi
1637shift
1638for ac_site_file
1639do
1640  if test -r "$ac_site_file"; then
1641    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1642echo "$as_me: loading site script $ac_site_file" >&6;}
1643    sed 's/^/| /' "$ac_site_file" >&5
1644    . "$ac_site_file"
1645  fi
1646done
1647
1648if test -r "$cache_file"; then
1649  # Some versions of bash will fail to source /dev/null (special
1650  # files actually), so we avoid doing that.
1651  if test -f "$cache_file"; then
1652    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1653echo "$as_me: loading cache $cache_file" >&6;}
1654    case $cache_file in
1655      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1656      *)                      . "./$cache_file";;
1657    esac
1658  fi
1659else
1660  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1661echo "$as_me: creating cache $cache_file" >&6;}
1662  >$cache_file
1663fi
1664
1665# Check that the precious variables saved in the cache have kept the same
1666# value.
1667ac_cache_corrupted=false
1668for ac_var in $ac_precious_vars; do
1669  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1670  eval ac_new_set=\$ac_env_${ac_var}_set
1671  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1672  eval ac_new_val=\$ac_env_${ac_var}_value
1673  case $ac_old_set,$ac_new_set in
1674    set,)
1675      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1676echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1677      ac_cache_corrupted=: ;;
1678    ,set)
1679      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1680echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1681      ac_cache_corrupted=: ;;
1682    ,);;
1683    *)
1684      if test "x$ac_old_val" != "x$ac_new_val"; then
1685	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1686echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1687	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1688echo "$as_me:   former value:  $ac_old_val" >&2;}
1689	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1690echo "$as_me:   current value: $ac_new_val" >&2;}
1691	ac_cache_corrupted=:
1692      fi;;
1693  esac
1694  # Pass precious variables to config.status.
1695  if test "$ac_new_set" = set; then
1696    case $ac_new_val in
1697    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1698    *) ac_arg=$ac_var=$ac_new_val ;;
1699    esac
1700    case " $ac_configure_args " in
1701      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1702      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1703    esac
1704  fi
1705done
1706if $ac_cache_corrupted; then
1707  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1708echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1709  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1710echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1711   { (exit 1); exit 1; }; }
1712fi
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738ac_ext=c
1739ac_cpp='$CPP $CPPFLAGS'
1740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742ac_compiler_gnu=$ac_cv_c_compiler_gnu
1743
1744
1745DOCVERSION=`echo $PACKAGE_VERSION`
1746
1747DOCVERSION=1.4.4
1748
1749
1750# Increase GBBUILD for a new release
1751GBBUILD=24
1752# YYYYMMDD, please, if beta, i.e. "-beta20060413"
1753# PACKAGE_RELEASE="-beta20120114"
1754# DOCVERSION=development
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE_RELEASE "$PACKAGE_RELEASE"
1758_ACEOF
1759
1760
1761
1762
1763
1764
1765
1766GBMAJOR=`echo $PACKAGE_VERSION | (IFS="."; read major minor micro; echo $major)`
1767GBMINOR=`echo $PACKAGE_VERSION | (IFS="."; read major minor micro; echo $minor)`
1768GBMICRO=`echo $PACKAGE_VERSION | (IFS="."; read major minor micro; echo $micro)`
1769
1770
1771
1772
1773
1774# AC_CONFIG_SRCDIR([nmea.c])
1775ac_config_headers="$ac_config_headers config.h"
1776
1777
1778ac_aux_dir=
1779for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1780  if test -f "$ac_dir/install-sh"; then
1781    ac_aux_dir=$ac_dir
1782    ac_install_sh="$ac_aux_dir/install-sh -c"
1783    break
1784  elif test -f "$ac_dir/install.sh"; then
1785    ac_aux_dir=$ac_dir
1786    ac_install_sh="$ac_aux_dir/install.sh -c"
1787    break
1788  elif test -f "$ac_dir/shtool"; then
1789    ac_aux_dir=$ac_dir
1790    ac_install_sh="$ac_aux_dir/shtool install -c"
1791    break
1792  fi
1793done
1794if test -z "$ac_aux_dir"; then
1795  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1796echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1797   { (exit 1); exit 1; }; }
1798fi
1799
1800# These three variables are undocumented and unsupported,
1801# and are intended to be withdrawn in a future Autoconf release.
1802# They can cause serious problems if a builder's source tree is in a directory
1803# whose full name contains unusual characters.
1804ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1805ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1806ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1807
1808
1809# Make sure we can run config.sub.
1810$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1811  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1812echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1813   { (exit 1); exit 1; }; }
1814
1815{ echo "$as_me:$LINENO: checking build system type" >&5
1816echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1817if test "${ac_cv_build+set}" = set; then
1818  echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820  ac_build_alias=$build_alias
1821test "x$ac_build_alias" = x &&
1822  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1823test "x$ac_build_alias" = x &&
1824  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1825echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1826   { (exit 1); exit 1; }; }
1827ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1828  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1829echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1830   { (exit 1); exit 1; }; }
1831
1832fi
1833{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1834echo "${ECHO_T}$ac_cv_build" >&6; }
1835case $ac_cv_build in
1836*-*-*) ;;
1837*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1838echo "$as_me: error: invalid value of canonical build" >&2;}
1839   { (exit 1); exit 1; }; };;
1840esac
1841build=$ac_cv_build
1842ac_save_IFS=$IFS; IFS='-'
1843set x $ac_cv_build
1844shift
1845build_cpu=$1
1846build_vendor=$2
1847shift; shift
1848# Remember, the first character of IFS is used to create $*,
1849# except with old shells:
1850build_os=$*
1851IFS=$ac_save_IFS
1852case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1853
1854
1855{ echo "$as_me:$LINENO: checking host system type" >&5
1856echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1857if test "${ac_cv_host+set}" = set; then
1858  echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860  if test "x$host_alias" = x; then
1861  ac_cv_host=$ac_cv_build
1862else
1863  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1864    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1865echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1866   { (exit 1); exit 1; }; }
1867fi
1868
1869fi
1870{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1871echo "${ECHO_T}$ac_cv_host" >&6; }
1872case $ac_cv_host in
1873*-*-*) ;;
1874*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1875echo "$as_me: error: invalid value of canonical host" >&2;}
1876   { (exit 1); exit 1; }; };;
1877esac
1878host=$ac_cv_host
1879ac_save_IFS=$IFS; IFS='-'
1880set x $ac_cv_host
1881shift
1882host_cpu=$1
1883host_vendor=$2
1884shift; shift
1885# Remember, the first character of IFS is used to create $*,
1886# except with old shells:
1887host_os=$*
1888IFS=$ac_save_IFS
1889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1890
1891
1892{ echo "$as_me:$LINENO: checking target system type" >&5
1893echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1894if test "${ac_cv_target+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  if test "x$target_alias" = x; then
1898  ac_cv_target=$ac_cv_host
1899else
1900  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1901    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1902echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1903   { (exit 1); exit 1; }; }
1904fi
1905
1906fi
1907{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1908echo "${ECHO_T}$ac_cv_target" >&6; }
1909case $ac_cv_target in
1910*-*-*) ;;
1911*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1912echo "$as_me: error: invalid value of canonical target" >&2;}
1913   { (exit 1); exit 1; }; };;
1914esac
1915target=$ac_cv_target
1916ac_save_IFS=$IFS; IFS='-'
1917set x $ac_cv_target
1918shift
1919target_cpu=$1
1920target_vendor=$2
1921shift; shift
1922# Remember, the first character of IFS is used to create $*,
1923# except with old shells:
1924target_os=$*
1925IFS=$ac_save_IFS
1926case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1927
1928
1929# The aliases save the names the user supplied, while $host etc.
1930# will get canonicalized.
1931test -n "$target_alias" &&
1932  test "$program_prefix$program_suffix$program_transform_name" = \
1933    NONENONEs,x,x, &&
1934  program_prefix=${target_alias}-
1935
1936# Checks for programs.
1937ac_ext=c
1938ac_cpp='$CPP $CPPFLAGS'
1939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942if test -n "$ac_tool_prefix"; then
1943  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1944set dummy ${ac_tool_prefix}gcc; ac_word=$2
1945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1947if test "${ac_cv_prog_CC+set}" = set; then
1948  echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950  if test -n "$CC"; then
1951  ac_cv_prog_CC="$CC" # Let the user override the test.
1952else
1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956  IFS=$as_save_IFS
1957  test -z "$as_dir" && as_dir=.
1958  for ac_exec_ext in '' $ac_executable_extensions; do
1959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1960    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1961    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962    break 2
1963  fi
1964done
1965done
1966IFS=$as_save_IFS
1967
1968fi
1969fi
1970CC=$ac_cv_prog_CC
1971if test -n "$CC"; then
1972  { echo "$as_me:$LINENO: result: $CC" >&5
1973echo "${ECHO_T}$CC" >&6; }
1974else
1975  { echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6; }
1977fi
1978
1979
1980fi
1981if test -z "$ac_cv_prog_CC"; then
1982  ac_ct_CC=$CC
1983  # Extract the first word of "gcc", so it can be a program name with args.
1984set dummy gcc; ac_word=$2
1985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  if test -n "$ac_ct_CC"; then
1991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2000    ac_cv_prog_ac_ct_CC="gcc"
2001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002    break 2
2003  fi
2004done
2005done
2006IFS=$as_save_IFS
2007
2008fi
2009fi
2010ac_ct_CC=$ac_cv_prog_ac_ct_CC
2011if test -n "$ac_ct_CC"; then
2012  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2013echo "${ECHO_T}$ac_ct_CC" >&6; }
2014else
2015  { echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6; }
2017fi
2018
2019  if test "x$ac_ct_CC" = x; then
2020    CC=""
2021  else
2022    case $cross_compiling:$ac_tool_warned in
2023yes:)
2024{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2025whose name does not start with the host triplet.  If you think this
2026configuration is useful to you, please write to autoconf@gnu.org." >&5
2027echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2028whose name does not start with the host triplet.  If you think this
2029configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2030ac_tool_warned=yes ;;
2031esac
2032    CC=$ac_ct_CC
2033  fi
2034else
2035  CC="$ac_cv_prog_CC"
2036fi
2037
2038if test -z "$CC"; then
2039          if test -n "$ac_tool_prefix"; then
2040    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2041set dummy ${ac_tool_prefix}cc; ac_word=$2
2042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2044if test "${ac_cv_prog_CC+set}" = set; then
2045  echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
2047  if test -n "$CC"; then
2048  ac_cv_prog_CC="$CC" # Let the user override the test.
2049else
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055  for ac_exec_ext in '' $ac_executable_extensions; do
2056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2057    ac_cv_prog_CC="${ac_tool_prefix}cc"
2058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059    break 2
2060  fi
2061done
2062done
2063IFS=$as_save_IFS
2064
2065fi
2066fi
2067CC=$ac_cv_prog_CC
2068if test -n "$CC"; then
2069  { echo "$as_me:$LINENO: result: $CC" >&5
2070echo "${ECHO_T}$CC" >&6; }
2071else
2072  { echo "$as_me:$LINENO: result: no" >&5
2073echo "${ECHO_T}no" >&6; }
2074fi
2075
2076
2077  fi
2078fi
2079if test -z "$CC"; then
2080  # Extract the first word of "cc", so it can be a program name with args.
2081set dummy cc; ac_word=$2
2082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084if test "${ac_cv_prog_CC+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087  if test -n "$CC"; then
2088  ac_cv_prog_CC="$CC" # Let the user override the test.
2089else
2090  ac_prog_rejected=no
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2098    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2099       ac_prog_rejected=yes
2100       continue
2101     fi
2102    ac_cv_prog_CC="cc"
2103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104    break 2
2105  fi
2106done
2107done
2108IFS=$as_save_IFS
2109
2110if test $ac_prog_rejected = yes; then
2111  # We found a bogon in the path, so make sure we never use it.
2112  set dummy $ac_cv_prog_CC
2113  shift
2114  if test $# != 0; then
2115    # We chose a different compiler from the bogus one.
2116    # However, it has the same basename, so the bogon will be chosen
2117    # first if we set CC to just the basename; use the full file name.
2118    shift
2119    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2120  fi
2121fi
2122fi
2123fi
2124CC=$ac_cv_prog_CC
2125if test -n "$CC"; then
2126  { echo "$as_me:$LINENO: result: $CC" >&5
2127echo "${ECHO_T}$CC" >&6; }
2128else
2129  { echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6; }
2131fi
2132
2133
2134fi
2135if test -z "$CC"; then
2136  if test -n "$ac_tool_prefix"; then
2137  for ac_prog in cl.exe
2138  do
2139    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143if test "${ac_cv_prog_CC+set}" = set; then
2144  echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146  if test -n "$CC"; then
2147  ac_cv_prog_CC="$CC" # Let the user override the test.
2148else
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152  IFS=$as_save_IFS
2153  test -z "$as_dir" && as_dir=.
2154  for ac_exec_ext in '' $ac_executable_extensions; do
2155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158    break 2
2159  fi
2160done
2161done
2162IFS=$as_save_IFS
2163
2164fi
2165fi
2166CC=$ac_cv_prog_CC
2167if test -n "$CC"; then
2168  { echo "$as_me:$LINENO: result: $CC" >&5
2169echo "${ECHO_T}$CC" >&6; }
2170else
2171  { echo "$as_me:$LINENO: result: no" >&5
2172echo "${ECHO_T}no" >&6; }
2173fi
2174
2175
2176    test -n "$CC" && break
2177  done
2178fi
2179if test -z "$CC"; then
2180  ac_ct_CC=$CC
2181  for ac_prog in cl.exe
2182do
2183  # Extract the first word of "$ac_prog", so it can be a program name with args.
2184set dummy $ac_prog; ac_word=$2
2185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  if test -n "$ac_ct_CC"; then
2191  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196  IFS=$as_save_IFS
2197  test -z "$as_dir" && as_dir=.
2198  for ac_exec_ext in '' $ac_executable_extensions; do
2199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200    ac_cv_prog_ac_ct_CC="$ac_prog"
2201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202    break 2
2203  fi
2204done
2205done
2206IFS=$as_save_IFS
2207
2208fi
2209fi
2210ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211if test -n "$ac_ct_CC"; then
2212  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213echo "${ECHO_T}$ac_ct_CC" >&6; }
2214else
2215  { echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6; }
2217fi
2218
2219
2220  test -n "$ac_ct_CC" && break
2221done
2222
2223  if test "x$ac_ct_CC" = x; then
2224    CC=""
2225  else
2226    case $cross_compiling:$ac_tool_warned in
2227yes:)
2228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2229whose name does not start with the host triplet.  If you think this
2230configuration is useful to you, please write to autoconf@gnu.org." >&5
2231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2232whose name does not start with the host triplet.  If you think this
2233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2234ac_tool_warned=yes ;;
2235esac
2236    CC=$ac_ct_CC
2237  fi
2238fi
2239
2240fi
2241
2242
2243test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: no acceptable C compiler found in \$PATH
2246See \`config.log' for more details." >&2;}
2247   { (exit 1); exit 1; }; }
2248
2249# Provide some information about the compiler.
2250echo "$as_me:$LINENO: checking for C compiler version" >&5
2251ac_compiler=`set X $ac_compile; echo $2`
2252{ (ac_try="$ac_compiler --version >&5"
2253case "(($ac_try" in
2254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255  *) ac_try_echo=$ac_try;;
2256esac
2257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258  (eval "$ac_compiler --version >&5") 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }
2262{ (ac_try="$ac_compiler -v >&5"
2263case "(($ac_try" in
2264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265  *) ac_try_echo=$ac_try;;
2266esac
2267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268  (eval "$ac_compiler -v >&5") 2>&5
2269  ac_status=$?
2270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271  (exit $ac_status); }
2272{ (ac_try="$ac_compiler -V >&5"
2273case "(($ac_try" in
2274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275  *) ac_try_echo=$ac_try;;
2276esac
2277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2278  (eval "$ac_compiler -V >&5") 2>&5
2279  ac_status=$?
2280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281  (exit $ac_status); }
2282
2283cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h.  */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h.  */
2289
2290int
2291main ()
2292{
2293
2294  ;
2295  return 0;
2296}
2297_ACEOF
2298ac_clean_files_save=$ac_clean_files
2299ac_clean_files="$ac_clean_files a.out a.exe b.out"
2300# Try to create an executable without -o first, disregard a.out.
2301# It will help us diagnose broken compilers, and finding out an intuition
2302# of exeext.
2303{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2304echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2305ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2306#
2307# List of possible output files, starting from the most likely.
2308# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2309# only as a last resort.  b.out is created by i960 compilers.
2310ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2311#
2312# The IRIX 6 linker writes into existing files which may not be
2313# executable, retaining their permissions.  Remove them first so a
2314# subsequent execution test works.
2315ac_rmfiles=
2316for ac_file in $ac_files
2317do
2318  case $ac_file in
2319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2320    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2321  esac
2322done
2323rm -f $ac_rmfiles
2324
2325if { (ac_try="$ac_link_default"
2326case "(($ac_try" in
2327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328  *) ac_try_echo=$ac_try;;
2329esac
2330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2331  (eval "$ac_link_default") 2>&5
2332  ac_status=$?
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); }; then
2335  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2336# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2337# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2338# so that the user can short-circuit this test for compilers unknown to
2339# Autoconf.
2340for ac_file in $ac_files ''
2341do
2342  test -f "$ac_file" || continue
2343  case $ac_file in
2344    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2345	;;
2346    [ab].out )
2347	# We found the default executable, but exeext='' is most
2348	# certainly right.
2349	break;;
2350    *.* )
2351        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2352	then :; else
2353	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2354	fi
2355	# We set ac_cv_exeext here because the later test for it is not
2356	# safe: cross compilers may not add the suffix if given an `-o'
2357	# argument, so we may need to know it at that point already.
2358	# Even if this section looks crufty: it has the advantage of
2359	# actually working.
2360	break;;
2361    * )
2362	break;;
2363  esac
2364done
2365test "$ac_cv_exeext" = no && ac_cv_exeext=
2366
2367else
2368  ac_file=''
2369fi
2370
2371{ echo "$as_me:$LINENO: result: $ac_file" >&5
2372echo "${ECHO_T}$ac_file" >&6; }
2373if test -z "$ac_file"; then
2374  echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2378See \`config.log' for more details." >&5
2379echo "$as_me: error: C compiler cannot create executables
2380See \`config.log' for more details." >&2;}
2381   { (exit 77); exit 77; }; }
2382fi
2383
2384ac_exeext=$ac_cv_exeext
2385
2386# Check that the compiler produces executables we can run.  If not, either
2387# the compiler is broken, or we cross compile.
2388{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2389echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2390# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2391# If not cross compiling, check that we can run a simple program.
2392if test "$cross_compiling" != yes; then
2393  if { ac_try='./$ac_file'
2394  { (case "(($ac_try" in
2395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396  *) ac_try_echo=$ac_try;;
2397esac
2398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399  (eval "$ac_try") 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; }; then
2403    cross_compiling=no
2404  else
2405    if test "$cross_compiling" = maybe; then
2406	cross_compiling=yes
2407    else
2408	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2409If you meant to cross compile, use \`--host'.
2410See \`config.log' for more details." >&5
2411echo "$as_me: error: cannot run C compiled programs.
2412If you meant to cross compile, use \`--host'.
2413See \`config.log' for more details." >&2;}
2414   { (exit 1); exit 1; }; }
2415    fi
2416  fi
2417fi
2418{ echo "$as_me:$LINENO: result: yes" >&5
2419echo "${ECHO_T}yes" >&6; }
2420
2421rm -f a.out a.exe conftest$ac_cv_exeext b.out
2422ac_clean_files=$ac_clean_files_save
2423# Check that the compiler produces executables we can run.  If not, either
2424# the compiler is broken, or we cross compile.
2425{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2426echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2427{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2428echo "${ECHO_T}$cross_compiling" >&6; }
2429
2430{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2431echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2432if { (ac_try="$ac_link"
2433case "(($ac_try" in
2434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435  *) ac_try_echo=$ac_try;;
2436esac
2437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2438  (eval "$ac_link") 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; then
2442  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2443# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2444# work properly (i.e., refer to `conftest.exe'), while it won't with
2445# `rm'.
2446for ac_file in conftest.exe conftest conftest.*; do
2447  test -f "$ac_file" || continue
2448  case $ac_file in
2449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2450    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2451	  break;;
2452    * ) break;;
2453  esac
2454done
2455else
2456  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2457See \`config.log' for more details." >&5
2458echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2459See \`config.log' for more details." >&2;}
2460   { (exit 1); exit 1; }; }
2461fi
2462
2463rm -f conftest$ac_cv_exeext
2464{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2465echo "${ECHO_T}$ac_cv_exeext" >&6; }
2466
2467rm -f conftest.$ac_ext
2468EXEEXT=$ac_cv_exeext
2469ac_exeext=$EXEEXT
2470{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2471echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2472if test "${ac_cv_objext+set}" = set; then
2473  echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475  cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h.  */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h.  */
2481
2482int
2483main ()
2484{
2485
2486  ;
2487  return 0;
2488}
2489_ACEOF
2490rm -f conftest.o conftest.obj
2491if { (ac_try="$ac_compile"
2492case "(($ac_try" in
2493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494  *) ac_try_echo=$ac_try;;
2495esac
2496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497  (eval "$ac_compile") 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; then
2501  for ac_file in conftest.o conftest.obj conftest.*; do
2502  test -f "$ac_file" || continue;
2503  case $ac_file in
2504    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2505    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2506       break;;
2507  esac
2508done
2509else
2510  echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2514See \`config.log' for more details." >&5
2515echo "$as_me: error: cannot compute suffix of object files: cannot compile
2516See \`config.log' for more details." >&2;}
2517   { (exit 1); exit 1; }; }
2518fi
2519
2520rm -f conftest.$ac_cv_objext conftest.$ac_ext
2521fi
2522{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2523echo "${ECHO_T}$ac_cv_objext" >&6; }
2524OBJEXT=$ac_cv_objext
2525ac_objext=$OBJEXT
2526{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2527echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2528if test "${ac_cv_c_compiler_gnu+set}" = set; then
2529  echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531  cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h.  */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h.  */
2537
2538int
2539main ()
2540{
2541#ifndef __GNUC__
2542       choke me
2543#endif
2544
2545  ;
2546  return 0;
2547}
2548_ACEOF
2549rm -f conftest.$ac_objext
2550if { (ac_try="$ac_compile"
2551case "(($ac_try" in
2552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553  *) ac_try_echo=$ac_try;;
2554esac
2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556  (eval "$ac_compile") 2>conftest.er1
2557  ac_status=$?
2558  grep -v '^ *+' conftest.er1 >conftest.err
2559  rm -f conftest.er1
2560  cat conftest.err >&5
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } && {
2563	 test -z "$ac_c_werror_flag" ||
2564	 test ! -s conftest.err
2565       } && test -s conftest.$ac_objext; then
2566  ac_compiler_gnu=yes
2567else
2568  echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571	ac_compiler_gnu=no
2572fi
2573
2574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575ac_cv_c_compiler_gnu=$ac_compiler_gnu
2576
2577fi
2578{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2579echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2580GCC=`test $ac_compiler_gnu = yes && echo yes`
2581ac_test_CFLAGS=${CFLAGS+set}
2582ac_save_CFLAGS=$CFLAGS
2583{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2584echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2585if test "${ac_cv_prog_cc_g+set}" = set; then
2586  echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588  ac_save_c_werror_flag=$ac_c_werror_flag
2589   ac_c_werror_flag=yes
2590   ac_cv_prog_cc_g=no
2591   CFLAGS="-g"
2592   cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h.  */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h.  */
2598
2599int
2600main ()
2601{
2602
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (ac_try="$ac_compile"
2609case "(($ac_try" in
2610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611  *) ac_try_echo=$ac_try;;
2612esac
2613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614  (eval "$ac_compile") 2>conftest.er1
2615  ac_status=$?
2616  grep -v '^ *+' conftest.er1 >conftest.err
2617  rm -f conftest.er1
2618  cat conftest.err >&5
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); } && {
2621	 test -z "$ac_c_werror_flag" ||
2622	 test ! -s conftest.err
2623       } && test -s conftest.$ac_objext; then
2624  ac_cv_prog_cc_g=yes
2625else
2626  echo "$as_me: failed program was:" >&5
2627sed 's/^/| /' conftest.$ac_ext >&5
2628
2629	CFLAGS=""
2630      cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h.  */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h.  */
2636
2637int
2638main ()
2639{
2640
2641  ;
2642  return 0;
2643}
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (ac_try="$ac_compile"
2647case "(($ac_try" in
2648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649  *) ac_try_echo=$ac_try;;
2650esac
2651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652  (eval "$ac_compile") 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } && {
2659	 test -z "$ac_c_werror_flag" ||
2660	 test ! -s conftest.err
2661       } && test -s conftest.$ac_objext; then
2662  :
2663else
2664  echo "$as_me: failed program was:" >&5
2665sed 's/^/| /' conftest.$ac_ext >&5
2666
2667	ac_c_werror_flag=$ac_save_c_werror_flag
2668	 CFLAGS="-g"
2669	 cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675
2676int
2677main ()
2678{
2679
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688  *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691  (eval "$ac_compile") 2>conftest.er1
2692  ac_status=$?
2693  grep -v '^ *+' conftest.er1 >conftest.err
2694  rm -f conftest.er1
2695  cat conftest.err >&5
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); } && {
2698	 test -z "$ac_c_werror_flag" ||
2699	 test ! -s conftest.err
2700       } && test -s conftest.$ac_objext; then
2701  ac_cv_prog_cc_g=yes
2702else
2703  echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706
2707fi
2708
2709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710fi
2711
2712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713fi
2714
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716   ac_c_werror_flag=$ac_save_c_werror_flag
2717fi
2718{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2719echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2720if test "$ac_test_CFLAGS" = set; then
2721  CFLAGS=$ac_save_CFLAGS
2722elif test $ac_cv_prog_cc_g = yes; then
2723  if test "$GCC" = yes; then
2724    CFLAGS="-g -O2"
2725  else
2726    CFLAGS="-g"
2727  fi
2728else
2729  if test "$GCC" = yes; then
2730    CFLAGS="-O2"
2731  else
2732    CFLAGS=
2733  fi
2734fi
2735{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2736echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2737if test "${ac_cv_prog_cc_c89+set}" = set; then
2738  echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740  ac_cv_prog_cc_c89=no
2741ac_save_CC=$CC
2742cat >conftest.$ac_ext <<_ACEOF
2743/* confdefs.h.  */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h.  */
2748#include <stdarg.h>
2749#include <stdio.h>
2750#include <sys/types.h>
2751#include <sys/stat.h>
2752/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2753struct buf { int x; };
2754FILE * (*rcsopen) (struct buf *, struct stat *, int);
2755static char *e (p, i)
2756     char **p;
2757     int i;
2758{
2759  return p[i];
2760}
2761static char *f (char * (*g) (char **, int), char **p, ...)
2762{
2763  char *s;
2764  va_list v;
2765  va_start (v,p);
2766  s = g (p, va_arg (v,int));
2767  va_end (v);
2768  return s;
2769}
2770
2771/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2772   function prototypes and stuff, but not '\xHH' hex character constants.
2773   These don't provoke an error unfortunately, instead are silently treated
2774   as 'x'.  The following induces an error, until -std is added to get
2775   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2776   array size at least.  It's necessary to write '\x00'==0 to get something
2777   that's true only with -std.  */
2778int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2779
2780/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2781   inside strings and character constants.  */
2782#define FOO(x) 'x'
2783int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2784
2785int test (int i, double x);
2786struct s1 {int (*f) (int a);};
2787struct s2 {int (*f) (double a);};
2788int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2789int argc;
2790char **argv;
2791int
2792main ()
2793{
2794return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2795  ;
2796  return 0;
2797}
2798_ACEOF
2799for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2800	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2801do
2802  CC="$ac_save_CC $ac_arg"
2803  rm -f conftest.$ac_objext
2804if { (ac_try="$ac_compile"
2805case "(($ac_try" in
2806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807  *) ac_try_echo=$ac_try;;
2808esac
2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810  (eval "$ac_compile") 2>conftest.er1
2811  ac_status=$?
2812  grep -v '^ *+' conftest.er1 >conftest.err
2813  rm -f conftest.er1
2814  cat conftest.err >&5
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); } && {
2817	 test -z "$ac_c_werror_flag" ||
2818	 test ! -s conftest.err
2819       } && test -s conftest.$ac_objext; then
2820  ac_cv_prog_cc_c89=$ac_arg
2821else
2822  echo "$as_me: failed program was:" >&5
2823sed 's/^/| /' conftest.$ac_ext >&5
2824
2825
2826fi
2827
2828rm -f core conftest.err conftest.$ac_objext
2829  test "x$ac_cv_prog_cc_c89" != "xno" && break
2830done
2831rm -f conftest.$ac_ext
2832CC=$ac_save_CC
2833
2834fi
2835# AC_CACHE_VAL
2836case "x$ac_cv_prog_cc_c89" in
2837  x)
2838    { echo "$as_me:$LINENO: result: none needed" >&5
2839echo "${ECHO_T}none needed" >&6; } ;;
2840  xno)
2841    { echo "$as_me:$LINENO: result: unsupported" >&5
2842echo "${ECHO_T}unsupported" >&6; } ;;
2843  *)
2844    CC="$CC $ac_cv_prog_cc_c89"
2845    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2846echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2847esac
2848
2849
2850ac_ext=c
2851ac_cpp='$CPP $CPPFLAGS'
2852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855
2856# Find a good install program.  We prefer a C program (faster),
2857# so one script is as good as another.  But avoid the broken or
2858# incompatible versions:
2859# SysV /etc/install, /usr/sbin/install
2860# SunOS /usr/etc/install
2861# IRIX /sbin/install
2862# AIX /bin/install
2863# AmigaOS /C/install, which installs bootblocks on floppy discs
2864# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867# OS/2's system install, which has a completely different semantic
2868# ./install, which can be erroneously created by make from ./install.sh.
2869{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2870echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2871if test -z "$INSTALL"; then
2872if test "${ac_cv_path_install+set}" = set; then
2873  echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  test -z "$as_dir" && as_dir=.
2880  # Account for people who put trailing slashes in PATH elements.
2881case $as_dir/ in
2882  ./ | .// | /cC/* | \
2883  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2885  /usr/ucb/* ) ;;
2886  *)
2887    # OSF1 and SCO ODT 3.0 have their own names for install.
2888    # Don't use installbsd from OSF since it installs stuff as root
2889    # by default.
2890    for ac_prog in ginstall scoinst install; do
2891      for ac_exec_ext in '' $ac_executable_extensions; do
2892	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2893	  if test $ac_prog = install &&
2894	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895	    # AIX install.  It has an incompatible calling convention.
2896	    :
2897	  elif test $ac_prog = install &&
2898	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899	    # program-specific install script used by HP pwplus--don't use.
2900	    :
2901	  else
2902	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2903	    break 3
2904	  fi
2905	fi
2906      done
2907    done
2908    ;;
2909esac
2910done
2911IFS=$as_save_IFS
2912
2913
2914fi
2915  if test "${ac_cv_path_install+set}" = set; then
2916    INSTALL=$ac_cv_path_install
2917  else
2918    # As a last resort, use the slow shell script.  Don't cache a
2919    # value for INSTALL within a source directory, because that will
2920    # break other packages using the cache if that directory is
2921    # removed, or if the value is a relative name.
2922    INSTALL=$ac_install_sh
2923  fi
2924fi
2925{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2926echo "${ECHO_T}$INSTALL" >&6; }
2927
2928# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929# It thinks the first close brace ends the variable substitution.
2930test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931
2932test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933
2934test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935
2936{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2937echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2938set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2939if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2940  echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
2942  cat >conftest.make <<\_ACEOF
2943SHELL = /bin/sh
2944all:
2945	@echo '@@@%%%=$(MAKE)=@@@%%%'
2946_ACEOF
2947# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2948case `${MAKE-make} -f conftest.make 2>/dev/null` in
2949  *@@@%%%=?*=@@@%%%*)
2950    eval ac_cv_prog_make_${ac_make}_set=yes;;
2951  *)
2952    eval ac_cv_prog_make_${ac_make}_set=no;;
2953esac
2954rm -f conftest.make
2955fi
2956if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2957  { echo "$as_me:$LINENO: result: yes" >&5
2958echo "${ECHO_T}yes" >&6; }
2959  SET_MAKE=
2960else
2961  { echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6; }
2963  SET_MAKE="MAKE=${MAKE-make}"
2964fi
2965
2966
2967
2968
2969ac_ext=c
2970ac_cpp='$CPP $CPPFLAGS'
2971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2975echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2976# On Suns, sometimes $CPP names a directory.
2977if test -n "$CPP" && test -d "$CPP"; then
2978  CPP=
2979fi
2980if test -z "$CPP"; then
2981  if test "${ac_cv_prog_CPP+set}" = set; then
2982  echo $ECHO_N "(cached) $ECHO_C" >&6
2983else
2984      # Double quotes because CPP needs to be expanded
2985    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2986    do
2987      ac_preproc_ok=false
2988for ac_c_preproc_warn_flag in '' yes
2989do
2990  # Use a header file that comes with gcc, so configuring glibc
2991  # with a fresh cross-compiler works.
2992  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993  # <limits.h> exists even on freestanding compilers.
2994  # On the NeXT, cc -E runs the code through the compiler's parser,
2995  # not just through cpp. "Syntax error" is here to catch this case.
2996  cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h.  */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h.  */
3002#ifdef __STDC__
3003# include <limits.h>
3004#else
3005# include <assert.h>
3006#endif
3007		     Syntax error
3008_ACEOF
3009if { (ac_try="$ac_cpp conftest.$ac_ext"
3010case "(($ac_try" in
3011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012  *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3016  ac_status=$?
3017  grep -v '^ *+' conftest.er1 >conftest.err
3018  rm -f conftest.er1
3019  cat conftest.err >&5
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); } >/dev/null && {
3022	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3023	 test ! -s conftest.err
3024       }; then
3025  :
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030  # Broken: fails on valid input.
3031continue
3032fi
3033
3034rm -f conftest.err conftest.$ac_ext
3035
3036  # OK, works on sane cases.  Now check whether nonexistent headers
3037  # can be detected and how.
3038  cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044#include <ac_nonexistent.h>
3045_ACEOF
3046if { (ac_try="$ac_cpp conftest.$ac_ext"
3047case "(($ac_try" in
3048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049  *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3053  ac_status=$?
3054  grep -v '^ *+' conftest.er1 >conftest.err
3055  rm -f conftest.er1
3056  cat conftest.err >&5
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); } >/dev/null && {
3059	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3060	 test ! -s conftest.err
3061       }; then
3062  # Broken: success on invalid input.
3063continue
3064else
3065  echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068  # Passes both tests.
3069ac_preproc_ok=:
3070break
3071fi
3072
3073rm -f conftest.err conftest.$ac_ext
3074
3075done
3076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3077rm -f conftest.err conftest.$ac_ext
3078if $ac_preproc_ok; then
3079  break
3080fi
3081
3082    done
3083    ac_cv_prog_CPP=$CPP
3084
3085fi
3086  CPP=$ac_cv_prog_CPP
3087else
3088  ac_cv_prog_CPP=$CPP
3089fi
3090{ echo "$as_me:$LINENO: result: $CPP" >&5
3091echo "${ECHO_T}$CPP" >&6; }
3092ac_preproc_ok=false
3093for ac_c_preproc_warn_flag in '' yes
3094do
3095  # Use a header file that comes with gcc, so configuring glibc
3096  # with a fresh cross-compiler works.
3097  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3098  # <limits.h> exists even on freestanding compilers.
3099  # On the NeXT, cc -E runs the code through the compiler's parser,
3100  # not just through cpp. "Syntax error" is here to catch this case.
3101  cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h.  */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h.  */
3107#ifdef __STDC__
3108# include <limits.h>
3109#else
3110# include <assert.h>
3111#endif
3112		     Syntax error
3113_ACEOF
3114if { (ac_try="$ac_cpp conftest.$ac_ext"
3115case "(($ac_try" in
3116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117  *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3121  ac_status=$?
3122  grep -v '^ *+' conftest.er1 >conftest.err
3123  rm -f conftest.er1
3124  cat conftest.err >&5
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); } >/dev/null && {
3127	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3128	 test ! -s conftest.err
3129       }; then
3130  :
3131else
3132  echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135  # Broken: fails on valid input.
3136continue
3137fi
3138
3139rm -f conftest.err conftest.$ac_ext
3140
3141  # OK, works on sane cases.  Now check whether nonexistent headers
3142  # can be detected and how.
3143  cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h.  */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h.  */
3149#include <ac_nonexistent.h>
3150_ACEOF
3151if { (ac_try="$ac_cpp conftest.$ac_ext"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3158  ac_status=$?
3159  grep -v '^ *+' conftest.er1 >conftest.err
3160  rm -f conftest.er1
3161  cat conftest.err >&5
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); } >/dev/null && {
3164	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3165	 test ! -s conftest.err
3166       }; then
3167  # Broken: success on invalid input.
3168continue
3169else
3170  echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173  # Passes both tests.
3174ac_preproc_ok=:
3175break
3176fi
3177
3178rm -f conftest.err conftest.$ac_ext
3179
3180done
3181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3182rm -f conftest.err conftest.$ac_ext
3183if $ac_preproc_ok; then
3184  :
3185else
3186  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3187See \`config.log' for more details." >&5
3188echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3189See \`config.log' for more details." >&2;}
3190   { (exit 1); exit 1; }; }
3191fi
3192
3193ac_ext=c
3194ac_cpp='$CPP $CPPFLAGS'
3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198
3199
3200{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3201echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3202if test "${ac_cv_path_GREP+set}" = set; then
3203  echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205  # Extract the first word of "grep ggrep" to use in msg output
3206if test -z "$GREP"; then
3207set dummy grep ggrep; ac_prog_name=$2
3208if test "${ac_cv_path_GREP+set}" = set; then
3209  echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211  ac_path_GREP_found=false
3212# Loop through the user's path and test for each of PROGNAME-LIST
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215do
3216  IFS=$as_save_IFS
3217  test -z "$as_dir" && as_dir=.
3218  for ac_prog in grep ggrep; do
3219  for ac_exec_ext in '' $ac_executable_extensions; do
3220    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3221    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3222    # Check for GNU ac_path_GREP and select it if it is found.
3223  # Check for GNU $ac_path_GREP
3224case `"$ac_path_GREP" --version 2>&1` in
3225*GNU*)
3226  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227*)
3228  ac_count=0
3229  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230  while :
3231  do
3232    cat "conftest.in" "conftest.in" >"conftest.tmp"
3233    mv "conftest.tmp" "conftest.in"
3234    cp "conftest.in" "conftest.nl"
3235    echo 'GREP' >> "conftest.nl"
3236    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3237    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3238    ac_count=`expr $ac_count + 1`
3239    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3240      # Best one so far, save it but keep looking for a better one
3241      ac_cv_path_GREP="$ac_path_GREP"
3242      ac_path_GREP_max=$ac_count
3243    fi
3244    # 10*(2^10) chars as input seems more than enough
3245    test $ac_count -gt 10 && break
3246  done
3247  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248esac
3249
3250
3251    $ac_path_GREP_found && break 3
3252  done
3253done
3254
3255done
3256IFS=$as_save_IFS
3257
3258
3259fi
3260
3261GREP="$ac_cv_path_GREP"
3262if test -z "$GREP"; then
3263  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3264echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3265   { (exit 1); exit 1; }; }
3266fi
3267
3268else
3269  ac_cv_path_GREP=$GREP
3270fi
3271
3272
3273fi
3274{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3275echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3276 GREP="$ac_cv_path_GREP"
3277
3278
3279{ echo "$as_me:$LINENO: checking for egrep" >&5
3280echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3281if test "${ac_cv_path_EGREP+set}" = set; then
3282  echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285   then ac_cv_path_EGREP="$GREP -E"
3286   else
3287     # Extract the first word of "egrep" to use in msg output
3288if test -z "$EGREP"; then
3289set dummy egrep; ac_prog_name=$2
3290if test "${ac_cv_path_EGREP+set}" = set; then
3291  echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293  ac_path_EGREP_found=false
3294# Loop through the user's path and test for each of PROGNAME-LIST
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297do
3298  IFS=$as_save_IFS
3299  test -z "$as_dir" && as_dir=.
3300  for ac_prog in egrep; do
3301  for ac_exec_ext in '' $ac_executable_extensions; do
3302    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3303    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3304    # Check for GNU ac_path_EGREP and select it if it is found.
3305  # Check for GNU $ac_path_EGREP
3306case `"$ac_path_EGREP" --version 2>&1` in
3307*GNU*)
3308  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309*)
3310  ac_count=0
3311  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312  while :
3313  do
3314    cat "conftest.in" "conftest.in" >"conftest.tmp"
3315    mv "conftest.tmp" "conftest.in"
3316    cp "conftest.in" "conftest.nl"
3317    echo 'EGREP' >> "conftest.nl"
3318    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320    ac_count=`expr $ac_count + 1`
3321    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3322      # Best one so far, save it but keep looking for a better one
3323      ac_cv_path_EGREP="$ac_path_EGREP"
3324      ac_path_EGREP_max=$ac_count
3325    fi
3326    # 10*(2^10) chars as input seems more than enough
3327    test $ac_count -gt 10 && break
3328  done
3329  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330esac
3331
3332
3333    $ac_path_EGREP_found && break 3
3334  done
3335done
3336
3337done
3338IFS=$as_save_IFS
3339
3340
3341fi
3342
3343EGREP="$ac_cv_path_EGREP"
3344if test -z "$EGREP"; then
3345  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347   { (exit 1); exit 1; }; }
3348fi
3349
3350else
3351  ac_cv_path_EGREP=$EGREP
3352fi
3353
3354
3355   fi
3356fi
3357{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3358echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3359 EGREP="$ac_cv_path_EGREP"
3360
3361
3362{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3363echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3364if test "${ac_cv_header_stdc+set}" = set; then
3365  echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367  cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h.  */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h.  */
3373#include <stdlib.h>
3374#include <stdarg.h>
3375#include <string.h>
3376#include <float.h>
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
3387if { (ac_try="$ac_compile"
3388case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393  (eval "$ac_compile") 2>conftest.er1
3394  ac_status=$?
3395  grep -v '^ *+' conftest.er1 >conftest.err
3396  rm -f conftest.er1
3397  cat conftest.err >&5
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); } && {
3400	 test -z "$ac_c_werror_flag" ||
3401	 test ! -s conftest.err
3402       } && test -s conftest.$ac_objext; then
3403  ac_cv_header_stdc=yes
3404else
3405  echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408	ac_cv_header_stdc=no
3409fi
3410
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412
3413if test $ac_cv_header_stdc = yes; then
3414  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415  cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h.  */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h.  */
3421#include <string.h>
3422
3423_ACEOF
3424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425  $EGREP "memchr" >/dev/null 2>&1; then
3426  :
3427else
3428  ac_cv_header_stdc=no
3429fi
3430rm -f -r conftest*
3431
3432fi
3433
3434if test $ac_cv_header_stdc = yes; then
3435  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436  cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h.  */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h.  */
3442#include <stdlib.h>
3443
3444_ACEOF
3445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446  $EGREP "free" >/dev/null 2>&1; then
3447  :
3448else
3449  ac_cv_header_stdc=no
3450fi
3451rm -f -r conftest*
3452
3453fi
3454
3455if test $ac_cv_header_stdc = yes; then
3456  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457  if test "$cross_compiling" = yes; then
3458  :
3459else
3460  cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h.  */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h.  */
3466#include <ctype.h>
3467#include <stdlib.h>
3468#if ((' ' & 0x0FF) == 0x020)
3469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3471#else
3472# define ISLOWER(c) \
3473		   (('a' <= (c) && (c) <= 'i') \
3474		     || ('j' <= (c) && (c) <= 'r') \
3475		     || ('s' <= (c) && (c) <= 'z'))
3476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477#endif
3478
3479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480int
3481main ()
3482{
3483  int i;
3484  for (i = 0; i < 256; i++)
3485    if (XOR (islower (i), ISLOWER (i))
3486	|| toupper (i) != TOUPPER (i))
3487      return 2;
3488  return 0;
3489}
3490_ACEOF
3491rm -f conftest$ac_exeext
3492if { (ac_try="$ac_link"
3493case "(($ac_try" in
3494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495  *) ac_try_echo=$ac_try;;
3496esac
3497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498  (eval "$ac_link") 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3502  { (case "(($ac_try" in
3503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504  *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507  (eval "$ac_try") 2>&5
3508  ac_status=$?
3509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510  (exit $ac_status); }; }; then
3511  :
3512else
3513  echo "$as_me: program exited with status $ac_status" >&5
3514echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517( exit $ac_status )
3518ac_cv_header_stdc=no
3519fi
3520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521fi
3522
3523
3524fi
3525fi
3526{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3527echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3528if test $ac_cv_header_stdc = yes; then
3529
3530cat >>confdefs.h <<\_ACEOF
3531#define STDC_HEADERS 1
3532_ACEOF
3533
3534fi
3535
3536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3547		  inttypes.h stdint.h unistd.h
3548do
3549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3553  echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555  cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h.  */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h.  */
3561$ac_includes_default
3562
3563#include <$ac_header>
3564_ACEOF
3565rm -f conftest.$ac_objext
3566if { (ac_try="$ac_compile"
3567case "(($ac_try" in
3568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569  *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572  (eval "$ac_compile") 2>conftest.er1
3573  ac_status=$?
3574  grep -v '^ *+' conftest.er1 >conftest.err
3575  rm -f conftest.er1
3576  cat conftest.err >&5
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); } && {
3579	 test -z "$ac_c_werror_flag" ||
3580	 test ! -s conftest.err
3581       } && test -s conftest.$ac_objext; then
3582  eval "$as_ac_Header=yes"
3583else
3584  echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587	eval "$as_ac_Header=no"
3588fi
3589
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591fi
3592ac_res=`eval echo '${'$as_ac_Header'}'`
3593	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3594echo "${ECHO_T}$ac_res" >&6; }
3595if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596  cat >>confdefs.h <<_ACEOF
3597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598_ACEOF
3599
3600fi
3601
3602done
3603
3604
3605{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3606echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3607if test "${ac_cv_c_bigendian+set}" = set; then
3608  echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610  # See if sys/param.h defines the BYTE_ORDER macro.
3611cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h.  */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h.  */
3617#include <sys/types.h>
3618#include <sys/param.h>
3619
3620int
3621main ()
3622{
3623#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3624	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3625 bogus endian macros
3626#endif
3627
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632rm -f conftest.$ac_objext
3633if { (ac_try="$ac_compile"
3634case "(($ac_try" in
3635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636  *) ac_try_echo=$ac_try;;
3637esac
3638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639  (eval "$ac_compile") 2>conftest.er1
3640  ac_status=$?
3641  grep -v '^ *+' conftest.er1 >conftest.err
3642  rm -f conftest.er1
3643  cat conftest.err >&5
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); } && {
3646	 test -z "$ac_c_werror_flag" ||
3647	 test ! -s conftest.err
3648       } && test -s conftest.$ac_objext; then
3649  # It does; now see whether it defined to BIG_ENDIAN or not.
3650cat >conftest.$ac_ext <<_ACEOF
3651/* confdefs.h.  */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h.  */
3656#include <sys/types.h>
3657#include <sys/param.h>
3658
3659int
3660main ()
3661{
3662#if BYTE_ORDER != BIG_ENDIAN
3663 not big endian
3664#endif
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext
3671if { (ac_try="$ac_compile"
3672case "(($ac_try" in
3673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674  *) ac_try_echo=$ac_try;;
3675esac
3676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677  (eval "$ac_compile") 2>conftest.er1
3678  ac_status=$?
3679  grep -v '^ *+' conftest.er1 >conftest.err
3680  rm -f conftest.er1
3681  cat conftest.err >&5
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); } && {
3684	 test -z "$ac_c_werror_flag" ||
3685	 test ! -s conftest.err
3686       } && test -s conftest.$ac_objext; then
3687  ac_cv_c_bigendian=yes
3688else
3689  echo "$as_me: failed program was:" >&5
3690sed 's/^/| /' conftest.$ac_ext >&5
3691
3692	ac_cv_c_bigendian=no
3693fi
3694
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696else
3697  echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700	# It does not; compile a test program.
3701if test "$cross_compiling" = yes; then
3702  # try to guess the endianness by grepping values into an object file
3703  ac_cv_c_bigendian=unknown
3704  cat >conftest.$ac_ext <<_ACEOF
3705/* confdefs.h.  */
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h.  */
3710short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3711short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3712void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3713short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3714short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3715void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3716int
3717main ()
3718{
3719 _ascii (); _ebcdic ();
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724rm -f conftest.$ac_objext
3725if { (ac_try="$ac_compile"
3726case "(($ac_try" in
3727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728  *) ac_try_echo=$ac_try;;
3729esac
3730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731  (eval "$ac_compile") 2>conftest.er1
3732  ac_status=$?
3733  grep -v '^ *+' conftest.er1 >conftest.err
3734  rm -f conftest.er1
3735  cat conftest.err >&5
3736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737  (exit $ac_status); } && {
3738	 test -z "$ac_c_werror_flag" ||
3739	 test ! -s conftest.err
3740       } && test -s conftest.$ac_objext; then
3741  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3742  ac_cv_c_bigendian=yes
3743fi
3744if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3745  if test "$ac_cv_c_bigendian" = unknown; then
3746    ac_cv_c_bigendian=no
3747  else
3748    # finding both strings is unlikely to happen, but who knows?
3749    ac_cv_c_bigendian=unknown
3750  fi
3751fi
3752else
3753  echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756
3757fi
3758
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760else
3761  cat >conftest.$ac_ext <<_ACEOF
3762/* confdefs.h.  */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h.  */
3767$ac_includes_default
3768int
3769main ()
3770{
3771
3772  /* Are we little or big endian?  From Harbison&Steele.  */
3773  union
3774  {
3775    long int l;
3776    char c[sizeof (long int)];
3777  } u;
3778  u.l = 1;
3779  return u.c[sizeof (long int) - 1] == 1;
3780
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest$ac_exeext
3786if { (ac_try="$ac_link"
3787case "(($ac_try" in
3788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789  *) ac_try_echo=$ac_try;;
3790esac
3791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792  (eval "$ac_link") 2>&5
3793  ac_status=$?
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3796  { (case "(($ac_try" in
3797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798  *) ac_try_echo=$ac_try;;
3799esac
3800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801  (eval "$ac_try") 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; }; then
3805  ac_cv_c_bigendian=no
3806else
3807  echo "$as_me: program exited with status $ac_status" >&5
3808echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811( exit $ac_status )
3812ac_cv_c_bigendian=yes
3813fi
3814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3815fi
3816
3817
3818fi
3819
3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821fi
3822{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3823echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3824case $ac_cv_c_bigendian in
3825  yes)
3826
3827cat >>confdefs.h <<\_ACEOF
3828#define WORDS_BIGENDIAN 1
3829_ACEOF
3830 ;;
3831  no)
3832     ;;
3833  *)
3834    { { echo "$as_me:$LINENO: error: unknown endianness
3835presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3836echo "$as_me: error: unknown endianness
3837presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3838   { (exit 1); exit 1; }; } ;;
3839esac
3840
3841
3842# Checks for libraries.
3843
3844{ echo "$as_me:$LINENO: checking for cos in -lm" >&5
3845echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
3846if test "${ac_cv_lib_m_cos+set}" = set; then
3847  echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849  ac_check_lib_save_LIBS=$LIBS
3850LIBS="-lm  $LIBS"
3851cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h.  */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h.  */
3857
3858/* Override any GCC internal prototype to avoid an error.
3859   Use char because int might match the return type of a GCC
3860   builtin and then its argument prototype would still apply.  */
3861#ifdef __cplusplus
3862extern "C"
3863#endif
3864char cos ();
3865int
3866main ()
3867{
3868return cos ();
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873rm -f conftest.$ac_objext conftest$ac_exeext
3874if { (ac_try="$ac_link"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880  (eval "$ac_link") 2>conftest.er1
3881  ac_status=$?
3882  grep -v '^ *+' conftest.er1 >conftest.err
3883  rm -f conftest.er1
3884  cat conftest.err >&5
3885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886  (exit $ac_status); } && {
3887	 test -z "$ac_c_werror_flag" ||
3888	 test ! -s conftest.err
3889       } && test -s conftest$ac_exeext &&
3890       $as_test_x conftest$ac_exeext; then
3891  ac_cv_lib_m_cos=yes
3892else
3893  echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5
3895
3896	ac_cv_lib_m_cos=no
3897fi
3898
3899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3900      conftest$ac_exeext conftest.$ac_ext
3901LIBS=$ac_check_lib_save_LIBS
3902fi
3903{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
3904echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
3905if test $ac_cv_lib_m_cos = yes; then
3906  cat >>confdefs.h <<_ACEOF
3907#define HAVE_LIBM 1
3908_ACEOF
3909
3910  LIBS="-lm $LIBS"
3911
3912fi
3913
3914
3915
3916# Check whether --with-cet was given.
3917if test "${with_cet+set}" = set; then
3918  withval=$with_cet; cet="$withval"
3919else
3920  cet="default"
3921fi
3922
3923
3924if test $GCC = yes; then
3925 CFLAGS="$CFLAGS -Wall"
3926fi
3927
3928if test "$cet" = "all"; then
3929
3930cat >>confdefs.h <<\_ACEOF
3931#define CET_WANTED 1
3932_ACEOF
3933
3934fi
3935if test "$cet" = "default"; then
3936
3937cat >>confdefs.h <<\_ACEOF
3938#define CET_WANTED 0
3939_ACEOF
3940
3941fi
3942
3943{ echo "$as_me:$LINENO: checking whether to support shapefiles" >&5
3944echo $ECHO_N "checking whether to support shapefiles... $ECHO_C" >&6; }
3945# Check whether --enable-shapefile was given.
3946if test "${enable_shapefile+set}" = set; then
3947  enableval=$enable_shapefile;  enable_shapefile="$enableval"
3948else
3949  enable_shapefile="yes"
3950fi
3951
3952    if test "$enable_shapefile" != "no" ; then
3953
3954cat >>confdefs.h <<\_ACEOF
3955#define SHAPELIB_ENABLED 1
3956_ACEOF
3957
3958	{ echo "$as_me:$LINENO: result: yes" >&5
3959echo "${ECHO_T}yes" >&6; }
3960    else
3961	{ echo "$as_me:$LINENO: result: no" >&5
3962echo "${ECHO_T}no" >&6; }
3963    fi
3964
3965{ echo "$as_me:$LINENO: checking whether to support Palm/OS pdb formats" >&5
3966echo $ECHO_N "checking whether to support Palm/OS pdb formats... $ECHO_C" >&6; }
3967# Check whether --enable-pdb was given.
3968if test "${enable_pdb+set}" = set; then
3969  enableval=$enable_pdb;  enable_pdb="$enableval"
3970else
3971  enable_pdb="yes"
3972fi
3973
3974    if test "$enable_pdb" != "no" ; then
3975
3976cat >>confdefs.h <<\_ACEOF
3977#define PDBFMTS_ENABLED 1
3978_ACEOF
3979
3980	{ echo "$as_me:$LINENO: result: yes" >&5
3981echo "${ECHO_T}yes" >&6; }
3982    else
3983	PALM_DB_CMT=#
3984	{ echo "$as_me:$LINENO: result: no" >&5
3985echo "${ECHO_T}no" >&6; }
3986    fi
3987
3988
3989{ echo "$as_me:$LINENO: checking whether to support csv formats" >&5
3990echo $ECHO_N "checking whether to support csv formats... $ECHO_C" >&6; }
3991# Check whether --enable-csv was given.
3992if test "${enable_csv+set}" = set; then
3993  enableval=$enable_csv;  enable_csv="$enableval"
3994else
3995  enable_csv="yes"
3996fi
3997
3998    if test "$enable_csv" != "no" ; then
3999
4000cat >>confdefs.h <<\_ACEOF
4001#define CSVFMTS_ENABLED 1
4002_ACEOF
4003
4004	{ echo "$as_me:$LINENO: result: yes" >&5
4005echo "${ECHO_T}yes" >&6; }
4006    else
4007	{ echo "$as_me:$LINENO: result: no" >&5
4008echo "${ECHO_T}no" >&6; }
4009    fi
4010
4011{ echo "$as_me:$LINENO: checking whether to support maximum number of formats" >&5
4012echo $ECHO_N "checking whether to support maximum number of formats... $ECHO_C" >&6; }
4013# Check whether --enable-most was given.
4014if test "${enable_most+set}" = set; then
4015  enableval=$enable_most;  enable_most="$enableval"
4016else
4017  enable_most="yes"
4018fi
4019
4020    if test "$enable_most" != "no" ; then
4021	{ echo "$as_me:$LINENO: result: yes" >&5
4022echo "${ECHO_T}yes" >&6; }
4023
4024cat >>confdefs.h <<\_ACEOF
4025#define MAXIMAL_ENABLED 1
4026_ACEOF
4027
4028	FMTS='$(ALL_FMTS)'
4029    else
4030	{ echo "$as_me:$LINENO: result: no" >&5
4031echo "${ECHO_T}no" >&6; }
4032	FMTS='$(MINIMAL_FMTS)'
4033    fi
4034
4035
4036{ echo "$as_me:$LINENO: checking whether to support filters" >&5
4037echo $ECHO_N "checking whether to support filters... $ECHO_C" >&6; }
4038# Check whether --enable-filters was given.
4039if test "${enable_filters+set}" = set; then
4040  enableval=$enable_filters;  enable_filters="$enableval"
4041else
4042  enable_filters="yes"
4043fi
4044
4045    if test "$enable_filters" != "no" ; then
4046
4047cat >>confdefs.h <<\_ACEOF
4048#define FILTERS_ENABLED 1
4049_ACEOF
4050
4051	{ echo "$as_me:$LINENO: result: yes" >&5
4052echo "${ECHO_T}yes" >&6; }
4053    else
4054	{ echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6; }
4056    fi
4057
4058{ echo "$as_me:$LINENO: checking whether to support zlib" >&5
4059echo $ECHO_N "checking whether to support zlib... $ECHO_C" >&6; }
4060
4061# Check whether --with-zlib was given.
4062if test "${with_zlib+set}" = set; then
4063  withval=$with_zlib;
4064fi
4065
4066  case $with_zlib in
4067    "system")
4068
4069{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
4070echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
4071if test "${ac_cv_lib_z_gzopen+set}" = set; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  ac_check_lib_save_LIBS=$LIBS
4075LIBS="-lz  $LIBS"
4076cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h.  */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h.  */
4082
4083/* Override any GCC internal prototype to avoid an error.
4084   Use char because int might match the return type of a GCC
4085   builtin and then its argument prototype would still apply.  */
4086#ifdef __cplusplus
4087extern "C"
4088#endif
4089char gzopen ();
4090int
4091main ()
4092{
4093return gzopen ();
4094  ;
4095  return 0;
4096}
4097_ACEOF
4098rm -f conftest.$ac_objext conftest$ac_exeext
4099if { (ac_try="$ac_link"
4100case "(($ac_try" in
4101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102  *) ac_try_echo=$ac_try;;
4103esac
4104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105  (eval "$ac_link") 2>conftest.er1
4106  ac_status=$?
4107  grep -v '^ *+' conftest.er1 >conftest.err
4108  rm -f conftest.er1
4109  cat conftest.err >&5
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); } && {
4112	 test -z "$ac_c_werror_flag" ||
4113	 test ! -s conftest.err
4114       } && test -s conftest$ac_exeext &&
4115       $as_test_x conftest$ac_exeext; then
4116  ac_cv_lib_z_gzopen=yes
4117else
4118  echo "$as_me: failed program was:" >&5
4119sed 's/^/| /' conftest.$ac_ext >&5
4120
4121	ac_cv_lib_z_gzopen=no
4122fi
4123
4124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4125      conftest$ac_exeext conftest.$ac_ext
4126LIBS=$ac_check_lib_save_LIBS
4127fi
4128{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
4129echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
4130if test $ac_cv_lib_z_gzopen = yes; then
4131  cat >>confdefs.h <<_ACEOF
4132#define HAVE_LIBZ 1
4133_ACEOF
4134
4135  LIBS="-lz $LIBS"
4136
4137fi
4138
4139	;;
4140    "no")
4141
4142cat >>confdefs.h <<\_ACEOF
4143#define ZLIB_INHIBITED 1
4144_ACEOF
4145
4146	{ echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6; }
4148	;;
4149    *) 	ZLIB="\$(ZLIB)"
4150	{ echo "$as_me:$LINENO: result: using included version" >&5
4151echo "${ECHO_T}using included version" >&6; };;
4152  esac
4153
4154case "$target" in
4155    *-*-mingw32*)
4156	FILEINFO=fileinfo.o
4157	if test "$CC" = gcc ; then
4158		RC=windres
4159	else
4160		RC=`echo "$CC" | sed -e 's/gcc$/windres/'`
4161	fi
4162	;;
4163    *)
4164    	RC=false
4165	;;
4166esac
4167
4168
4169
4170case "$target" in
4171    *-*-cygwin* | *-*-mingw32*)
4172
4173	GBSER=gbser_win.o
4174
4175	if test "$with_libusb" = no ; then
4176		{ echo "$as_me:$LINENO: result: USB skipped" >&5
4177echo "${ECHO_T}USB skipped" >&6; }
4178		OSJEEPS=jeeps/gpsusbstub.o
4179	else
4180		OSJEEPS=jeeps/gpsusbwin.o
4181		USB_LIBS="-lsetupapi"
4182		{ echo "$as_me:$LINENO: checking for Windows DDK" >&5
4183echo $ECHO_N "checking for Windows DDK... $ECHO_C" >&6; }
4184		old_LIBS="$LIBS"
4185		LIBS="$LIBS -lhid"
4186		cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h.  */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h.  */
4192#include <windows.h>
4193			#include <hidsdi.h>
4194int
4195main ()
4196{
4197HANDLE              HidDeviceObject;
4198			HIDD_ATTRIBUTES    Attributes;
4199			HidD_GetAttributes(HidDeviceObject, &Attributes);
4200  ;
4201  return 0;
4202}
4203_ACEOF
4204rm -f conftest.$ac_objext conftest$ac_exeext
4205if { (ac_try="$ac_link"
4206case "(($ac_try" in
4207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208  *) ac_try_echo=$ac_try;;
4209esac
4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211  (eval "$ac_link") 2>conftest.er1
4212  ac_status=$?
4213  grep -v '^ *+' conftest.er1 >conftest.err
4214  rm -f conftest.er1
4215  cat conftest.err >&5
4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); } && {
4218	 test -z "$ac_c_werror_flag" ||
4219	 test ! -s conftest.err
4220       } && test -s conftest$ac_exeext &&
4221       $as_test_x conftest$ac_exeext; then
4222  { echo "$as_me:$LINENO: result: yes" >&5
4223echo "${ECHO_T}yes" >&6; }
4224
4225cat >>confdefs.h <<\_ACEOF
4226#define HAVE_WDK 1
4227_ACEOF
4228
4229			USB_LIBS=${USB_LIBS}" -lhid"
4230else
4231  echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234	{ echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6; }
4236
4237fi
4238
4239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4240      conftest$ac_exeext conftest.$ac_ext
4241                LIBS="$old_LIBS"
4242	fi
4243	;;
4244    *-*-darwin*)
4245      GBSER=gbser_posix.o
4246      OSJEEPS="jeeps/gpslibusb.o \
4247      mac/libusb/darwin.o \
4248      mac/libusb/descriptors.o \
4249      mac/libusb/error.o \
4250      mac/libusb/usb.o "
4251      USB_LIBS="-framework  IOKit -framework CoreFoundation"
4252      cat >>confdefs.h <<\_ACEOF
4253#define HAVE_LIBUSB 1
4254_ACEOF
4255
4256      CFLAGS="$CFLAGS -Imac/libusb/"
4257      ;;
4258    *)
4259	GBSER=gbser_posix.o
4260	{ echo "$as_me:$LINENO: checking for libusb" >&5
4261echo $ECHO_N "checking for libusb... $ECHO_C" >&6; }
4262	if test "$with_libusb" = no ; then
4263		{ echo "$as_me:$LINENO: result: check not done" >&5
4264echo "${ECHO_T}check not done" >&6; }
4265		OSJEEPS=jeeps/gpsusbstub.o
4266	else
4267		# Extract the first word of "libusb-config", so it can be a program name with args.
4268set dummy libusb-config; ac_word=$2
4269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271if test "${ac_cv_prog_LIBUSBCONFIG+set}" = set; then
4272  echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
4274  if test -n "$LIBUSBCONFIG"; then
4275  ac_cv_prog_LIBUSBCONFIG="$LIBUSBCONFIG" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280  IFS=$as_save_IFS
4281  test -z "$as_dir" && as_dir=.
4282  for ac_exec_ext in '' $ac_executable_extensions; do
4283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284    ac_cv_prog_LIBUSBCONFIG="true"
4285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286    break 2
4287  fi
4288done
4289done
4290IFS=$as_save_IFS
4291
4292  test -z "$ac_cv_prog_LIBUSBCONFIG" && ac_cv_prog_LIBUSBCONFIG="false"
4293fi
4294fi
4295LIBUSBCONFIG=$ac_cv_prog_LIBUSBCONFIG
4296if test -n "$LIBUSBCONFIG"; then
4297  { echo "$as_me:$LINENO: result: $LIBUSBCONFIG" >&5
4298echo "${ECHO_T}$LIBUSBCONFIG" >&6; }
4299else
4300  { echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6; }
4302fi
4303
4304
4305	    if test "$LIBUSBCONFIG" = true; then
4306		OLDFLAGS=$LDFLAGS
4307		OCFLAGS=$CFLAGS
4308		LDFLAGS="$LDFLAGS `libusb-config --libs`"
4309		CFLAGS="$OCFLAGS `libusb-config --cflags`"
4310
4311		{ echo "$as_me:$LINENO: checking for usb_interrupt_read in -lusb" >&5
4312echo $ECHO_N "checking for usb_interrupt_read in -lusb... $ECHO_C" >&6; }
4313if test "${ac_cv_lib_usb_usb_interrupt_read+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  ac_check_lib_save_LIBS=$LIBS
4317LIBS="-lusb  $LIBS"
4318cat >conftest.$ac_ext <<_ACEOF
4319/* confdefs.h.  */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h.  */
4324
4325/* Override any GCC internal prototype to avoid an error.
4326   Use char because int might match the return type of a GCC
4327   builtin and then its argument prototype would still apply.  */
4328#ifdef __cplusplus
4329extern "C"
4330#endif
4331char usb_interrupt_read ();
4332int
4333main ()
4334{
4335return usb_interrupt_read ();
4336  ;
4337  return 0;
4338}
4339_ACEOF
4340rm -f conftest.$ac_objext conftest$ac_exeext
4341if { (ac_try="$ac_link"
4342case "(($ac_try" in
4343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344  *) ac_try_echo=$ac_try;;
4345esac
4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347  (eval "$ac_link") 2>conftest.er1
4348  ac_status=$?
4349  grep -v '^ *+' conftest.er1 >conftest.err
4350  rm -f conftest.er1
4351  cat conftest.err >&5
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); } && {
4354	 test -z "$ac_c_werror_flag" ||
4355	 test ! -s conftest.err
4356       } && test -s conftest$ac_exeext &&
4357       $as_test_x conftest$ac_exeext; then
4358  ac_cv_lib_usb_usb_interrupt_read=yes
4359else
4360  echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363	ac_cv_lib_usb_usb_interrupt_read=no
4364fi
4365
4366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4367      conftest$ac_exeext conftest.$ac_ext
4368LIBS=$ac_check_lib_save_LIBS
4369fi
4370{ echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
4371echo "${ECHO_T}$ac_cv_lib_usb_usb_interrupt_read" >&6; }
4372if test $ac_cv_lib_usb_usb_interrupt_read = yes; then
4373
4374cat >>confdefs.h <<\_ACEOF
4375#define HAVE_LIBUSB 1
4376_ACEOF
4377
4378			USB_CFLAGS="`libusb-config --cflags`"
4379			USB_LIBS="`libusb-config --libs`"
4380#			,[AC_MSG_ERROR([libusb >= 0.1.8 is needed])]
4381
4382fi
4383
4384		OSJEEPS=jeeps/gpslibusb.o
4385		CFLAGS="$OCFLAGS"
4386	#	LIBS="$LIBS `libusb-config --libs`"
4387	    else
4388		OSJEEPS=jeeps/gpsusbstub.o
4389	    fi
4390	fi
4391	;;
4392esac
4393
4394
4395
4396
4397
4398
4399
4400case "$target" in
4401	*-linux-*)
4402	{ echo "$as_me:$LINENO: checking for Linux HID interface" >&5
4403echo $ECHO_N "checking for Linux HID interface... $ECHO_C" >&6; }
4404	cat >conftest.$ac_ext <<_ACEOF
4405
4406		#include <sys/ioctl.h>
4407		#include <linux/types.h>
4408		#include <linux/hiddev.h>
4409		#include <linux/hidraw.h>
4410		void f(void) {
4411			struct hidraw_devinfo info;
4412			struct hiddev_field_info finfo;
4413			struct hiddev_usage_ref_multi urefm;
4414			struct hiddev_report_info rinfo;
4415			ioctl(0, HIDIOCGRAWINFO, &info);
4416			ioctl(0, HIDIOCGFIELDINFO, &finfo);
4417			ioctl(0, HIDIOCSUSAGES, &urefm);
4418			ioctl(0, HIDIOCSREPORT, &rinfo);
4419		}
4420_ACEOF
4421rm -f conftest.$ac_objext
4422if { (ac_try="$ac_compile"
4423case "(($ac_try" in
4424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425  *) ac_try_echo=$ac_try;;
4426esac
4427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4428  (eval "$ac_compile") 2>conftest.er1
4429  ac_status=$?
4430  grep -v '^ *+' conftest.er1 >conftest.err
4431  rm -f conftest.er1
4432  cat conftest.err >&5
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); } && {
4435	 test -z "$ac_c_werror_flag" ||
4436	 test ! -s conftest.err
4437       } && test -s conftest.$ac_objext; then
4438  { echo "$as_me:$LINENO: result: yes" >&5
4439echo "${ECHO_T}yes" >&6; }
4440
4441cat >>confdefs.h <<\_ACEOF
4442#define HAVE_LINUX_HID 1
4443_ACEOF
4444
4445else
4446  echo "$as_me: failed program was:" >&5
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
4449	{ echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6; }
4451fi
4452
4453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454	;;
4455esac
4456
4457{ echo "$as_me:$LINENO: checking for random stuff to make you feel better" >&5
4458echo $ECHO_N "checking for random stuff to make you feel better... $ECHO_C" >&6; }
4459{ echo "$as_me:$LINENO: result: failed" >&5
4460echo "${ECHO_T}failed" >&6; }
4461
4462
4463# Check whether --with-expathdr was given.
4464if test "${with_expathdr+set}" = set; then
4465  withval=$with_expathdr;  xpathdr="$withval"
4466else
4467
4468	case "$target" in
4469	*-*-darwin6*|*-*-darwin7*|*-*-darwin8*)
4470		# Restrict test to OS/X 10.4 and earlier.  Leopard (10.5)
4471		# provides expat and in a sensible location.
4472		if test -f /sw/include/expat.h ; then
4473			xpathdr=/sw/include/
4474		fi
4475		;;
4476	*-gentoo-freebsd*)
4477		;;
4478	*-*-freebsd*)
4479 		if test -f /usr/local/include/expat.h ; then
4480			xpathdr=/usr/local/include
4481		fi
4482		;;
4483	*) 	;;
4484	esac
4485
4486
4487fi
4488
4489
4490if test "x-$xpathdr" != "x-" ; then
4491	CFLAGS="$CFLAGS -I$xpathdr"
4492fi
4493
4494{ echo "$as_me:$LINENO: checking for libexpat" >&5
4495echo $ECHO_N "checking for libexpat... $ECHO_C" >&6; }
4496
4497# Check whether --with-libexpat was given.
4498if test "${with_libexpat+set}" = set; then
4499  withval=$with_libexpat;
4500    # If the developer specified a reference
4501    # to a FILE and not a directory, assume they are a highly
4502    # trained professional that has specified a .a to to be used.
4503    if test -f $withval ; then
4504      EXPAT_LIB=$withval
4505    else
4506      CFLAGS="$CFLAGS -L$withval"
4507      EXPAT_LIB="-L$withval -lexpat"
4508    fi
4509
4510else
4511
4512	case "$target" in
4513	*-*-darwin6*|*-*-darwin7*|*-*-darwin8*)
4514		# Restrict test to OS/X 10.4 and earlier.  Leopard (10.5)
4515		# provides expat and in a sensible location.
4516		if test -f /sw/lib/libexpat.a ; then
4517			# libexpat installed via fink
4518			EXPAT_LIB=/sw/lib/libexpat.a
4519			LIBS="$LIBS -L/sw/lib"
4520		fi
4521		if test -f /opt/local/lib/libexpat.a ; then
4522			# libexpat installed via macports
4523			EXPAT_LIB=/opt/local/lib/libexpat.a
4524			LIBS="$LIBS -L/opt/local/lib"
4525		fi
4526		if test -f /usr/local/lib/libexpat.a ; then
4527			# libexpat installed from source
4528			EXPAT_LIB=/usr/local/lib/libexpat.a
4529			LIBS="$LIBS -L/usr/local/lib"
4530		fi
4531		;;
4532	*-gentoo-freebsd*)
4533		EXPAT_LIB=-lexpa
4534		;;
4535	*-*-freebsd*)
4536		if test -f /usr/local/lib/libexpat.a ; then
4537			EXPAT_LIB=/usr/local/lib/libexpat.a
4538		fi
4539		;;
4540	esac
4541
4542
4543fi
4544
4545
4546if ! test "x${EXPAT_LIB}" = x; then
4547  { echo "$as_me:$LINENO: result: $EXPAT_LIB" >&5
4548echo "${ECHO_T}$EXPAT_LIB" >&6; }
4549
4550cat >>confdefs.h <<\_ACEOF
4551#define HAVE_LIBEXPAT 1
4552_ACEOF
4553
4554else
4555  { echo "$as_me:$LINENO: result: try to autodetect" >&5
4556echo "${ECHO_T}try to autodetect" >&6; }
4557  { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
4558echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
4559if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
4560  echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562  ac_check_lib_save_LIBS=$LIBS
4563LIBS="-lexpat  $LIBS"
4564cat >conftest.$ac_ext <<_ACEOF
4565/* confdefs.h.  */
4566_ACEOF
4567cat confdefs.h >>conftest.$ac_ext
4568cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h.  */
4570
4571/* Override any GCC internal prototype to avoid an error.
4572   Use char because int might match the return type of a GCC
4573   builtin and then its argument prototype would still apply.  */
4574#ifdef __cplusplus
4575extern "C"
4576#endif
4577char XML_ParserCreate ();
4578int
4579main ()
4580{
4581return XML_ParserCreate ();
4582  ;
4583  return 0;
4584}
4585_ACEOF
4586rm -f conftest.$ac_objext conftest$ac_exeext
4587if { (ac_try="$ac_link"
4588case "(($ac_try" in
4589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590  *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593  (eval "$ac_link") 2>conftest.er1
4594  ac_status=$?
4595  grep -v '^ *+' conftest.er1 >conftest.err
4596  rm -f conftest.er1
4597  cat conftest.err >&5
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); } && {
4600	 test -z "$ac_c_werror_flag" ||
4601	 test ! -s conftest.err
4602       } && test -s conftest$ac_exeext &&
4603       $as_test_x conftest$ac_exeext; then
4604  ac_cv_lib_expat_XML_ParserCreate=yes
4605else
4606  echo "$as_me: failed program was:" >&5
4607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609	ac_cv_lib_expat_XML_ParserCreate=no
4610fi
4611
4612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4613      conftest$ac_exeext conftest.$ac_ext
4614LIBS=$ac_check_lib_save_LIBS
4615fi
4616{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
4617echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
4618if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
4619
4620cat >>confdefs.h <<\_ACEOF
4621#define HAVE_LIBEXPAT 1
4622_ACEOF
4623
4624    EXPAT_LIB=-lexpat
4625
4626fi
4627
4628fi
4629
4630
4631{ echo "$as_me:$LINENO: checking for efence" >&5
4632echo $ECHO_N "checking for efence... $ECHO_C" >&6; }
4633# Check whether --enable-efence was given.
4634if test "${enable_efence+set}" = set; then
4635  enableval=$enable_efence;  if test "$enable_efence" != "no" ; then
4636  	EFENCE_LIB=-lefence
4637	GPSBABEL_DEBUG=gpsbabel-debug
4638	INSTALL_DEBUG=install-debug
4639    fi
4640fi
4641
4642
4643
4644
4645{ echo "$as_me:$LINENO: result: $EFENCE_LIB" >&5
4646echo "${ECHO_T}$EFENCE_LIB" >&6; }
4647
4648{ echo "$as_me:$LINENO: checking for docdir" >&5
4649echo $ECHO_N "checking for docdir... $ECHO_C" >&6; }
4650
4651# Check whether --with-doc was given.
4652if test "${with_doc+set}" = set; then
4653  withval=$with_doc; DOCDIR="$withval"
4654else
4655  DOCDIR="../babelweb/"
4656fi
4657
4658
4659
4660# Checks for header files.
4661# AC_HEADER_STDC
4662
4663# AC_CHECK_HEADERS([fcntl.h inttypes.h libintl.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/time.h termios.h unistd.h])
4664
4665# Checks for typedefs, structures, and compiler characteristics.
4666# AC_C_CONST
4667# AC_C_INLINE
4668# AC_TYPE_OFF_T
4669# AC_TYPE_SIZE_T
4670# AC_HEADER_TIME
4671# AC_STRUCT_TM
4672# AC_STRUCT_TIMEZONE
4673
4674# Checks for library functions.
4675# AC_FUNC_MALLOC
4676# AC_FUNC_MEMCMP
4677# AC_FUNC_MKTIME
4678# AC_FUNC_REALLOC
4679# AC_FUNC_SELECT_ARGTYPES
4680# AC_FUNC_STRFTIME
4681# AC_FUNC_STRTOD
4682# AC_FUNC_VPRINTF
4683# AC_CHECK_FUNCS([atexit floor localtime_r memmove memset pow select sqrt strchr strcspn strdup strerror strncasecmp strrchr strspn strstr strtol strtoul])
4684
4685
4686
4687
4688for ac_func in nanosleep sleep uname glob
4689do
4690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4694  echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696  cat >conftest.$ac_ext <<_ACEOF
4697/* confdefs.h.  */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h.  */
4702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4703   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4704#define $ac_func innocuous_$ac_func
4705
4706/* System header to define __stub macros and hopefully few prototypes,
4707    which can conflict with char $ac_func (); below.
4708    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709    <limits.h> exists even on freestanding compilers.  */
4710
4711#ifdef __STDC__
4712# include <limits.h>
4713#else
4714# include <assert.h>
4715#endif
4716
4717#undef $ac_func
4718
4719/* Override any GCC internal prototype to avoid an error.
4720   Use char because int might match the return type of a GCC
4721   builtin and then its argument prototype would still apply.  */
4722#ifdef __cplusplus
4723extern "C"
4724#endif
4725char $ac_func ();
4726/* The GNU C library defines this for functions which it implements
4727    to always fail with ENOSYS.  Some functions are actually named
4728    something starting with __ and the normal name is an alias.  */
4729#if defined __stub_$ac_func || defined __stub___$ac_func
4730choke me
4731#endif
4732
4733int
4734main ()
4735{
4736return $ac_func ();
4737  ;
4738  return 0;
4739}
4740_ACEOF
4741rm -f conftest.$ac_objext conftest$ac_exeext
4742if { (ac_try="$ac_link"
4743case "(($ac_try" in
4744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745  *) ac_try_echo=$ac_try;;
4746esac
4747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748  (eval "$ac_link") 2>conftest.er1
4749  ac_status=$?
4750  grep -v '^ *+' conftest.er1 >conftest.err
4751  rm -f conftest.er1
4752  cat conftest.err >&5
4753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754  (exit $ac_status); } && {
4755	 test -z "$ac_c_werror_flag" ||
4756	 test ! -s conftest.err
4757       } && test -s conftest$ac_exeext &&
4758       $as_test_x conftest$ac_exeext; then
4759  eval "$as_ac_var=yes"
4760else
4761  echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764	eval "$as_ac_var=no"
4765fi
4766
4767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4768      conftest$ac_exeext conftest.$ac_ext
4769fi
4770ac_res=`eval echo '${'$as_ac_var'}'`
4771	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4772echo "${ECHO_T}$ac_res" >&6; }
4773if test `eval echo '${'$as_ac_var'}'` = yes; then
4774  cat >>confdefs.h <<_ACEOF
4775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4776_ACEOF
4777
4778fi
4779done
4780
4781
4782#
4783# Checks for how the system handles va_list
4784# paul.bromiley@man.ac.uk
4785#
4786{ echo "$as_me:$LINENO: checking for va_copy" >&5
4787echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
4788if test "${ac_cv_c_va_copy+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797#include <stdarg.h>
4798int
4799main ()
4800{
4801va_list ap1, ap2;
4802    va_copy(ap1,ap2);
4803
4804  ;
4805  return 0;
4806}
4807_ACEOF
4808rm -f conftest.$ac_objext conftest$ac_exeext
4809if { (ac_try="$ac_link"
4810case "(($ac_try" in
4811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812  *) ac_try_echo=$ac_try;;
4813esac
4814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815  (eval "$ac_link") 2>conftest.er1
4816  ac_status=$?
4817  grep -v '^ *+' conftest.er1 >conftest.err
4818  rm -f conftest.er1
4819  cat conftest.err >&5
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); } && {
4822	 test -z "$ac_c_werror_flag" ||
4823	 test ! -s conftest.err
4824       } && test -s conftest$ac_exeext &&
4825       $as_test_x conftest$ac_exeext; then
4826  ac_cv_c_va_copy="yes"
4827else
4828  echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831	ac_cv_c_va_copy="no"
4832fi
4833
4834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4835      conftest$ac_exeext conftest.$ac_ext
4836
4837fi
4838{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
4839echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
4840if test "$ac_cv_c_va_copy" = "yes"
4841then
4842
4843cat >>confdefs.h <<\_ACEOF
4844#define HAVE_VA_COPY 1
4845_ACEOF
4846
4847fi
4848{ echo "$as_me:$LINENO: checking for __va_copy" >&5
4849echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
4850if test "${ac_cv_c___va_copy+set}" = set; then
4851  echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853  cat >conftest.$ac_ext <<_ACEOF
4854/* confdefs.h.  */
4855_ACEOF
4856cat confdefs.h >>conftest.$ac_ext
4857cat >>conftest.$ac_ext <<_ACEOF
4858/* end confdefs.h.  */
4859#include <stdarg.h>
4860int
4861main ()
4862{
4863va_list ap1, ap2;
4864    __va_copy(ap1,ap2);
4865
4866  ;
4867  return 0;
4868}
4869_ACEOF
4870rm -f conftest.$ac_objext conftest$ac_exeext
4871if { (ac_try="$ac_link"
4872case "(($ac_try" in
4873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874  *) ac_try_echo=$ac_try;;
4875esac
4876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877  (eval "$ac_link") 2>conftest.er1
4878  ac_status=$?
4879  grep -v '^ *+' conftest.er1 >conftest.err
4880  rm -f conftest.er1
4881  cat conftest.err >&5
4882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883  (exit $ac_status); } && {
4884	 test -z "$ac_c_werror_flag" ||
4885	 test ! -s conftest.err
4886       } && test -s conftest$ac_exeext &&
4887       $as_test_x conftest$ac_exeext; then
4888  ac_cv_c___va_copy="yes"
4889else
4890  echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893	ac_cv_c___va_copy="no"
4894fi
4895
4896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4897      conftest$ac_exeext conftest.$ac_ext
4898
4899fi
4900{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
4901echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
4902if test "$ac_cv_c___va_copy" = "yes"
4903then
4904
4905cat >>confdefs.h <<\_ACEOF
4906#define HAVE___VA_COPY 1
4907_ACEOF
4908
4909fi
4910
4911#
4912# Does this platform require array notation to assign to a va_list?
4913#
4914{ echo "$as_me:$LINENO: checking va_list assignments need array notation" >&5
4915echo $ECHO_N "checking va_list assignments need array notation... $ECHO_C" >&6; }
4916if test "${ac_cv_valistisarray+set}" = set; then
4917  echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919  if test "$cross_compiling" = yes; then
4920  ac_cv_valistisarray=false
4921else
4922  cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928#include <stdlib.h>
4929                    #include <stdarg.h>
4930                    void foo(int i, ...) {
4931                       va_list ap1, ap2;
4932                       va_start(ap1, i);
4933                       ap2 = ap1;
4934                       if (va_arg(ap2, int) != 123 || va_arg(ap1, int) != 123) { exit(1); }
4935                       va_end(ap1); va_end(ap2);
4936                    }
4937                    int main()
4938                    { foo(0, 123); return(0); }
4939_ACEOF
4940rm -f conftest$ac_exeext
4941if { (ac_try="$ac_link"
4942case "(($ac_try" in
4943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944  *) ac_try_echo=$ac_try;;
4945esac
4946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947  (eval "$ac_link") 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4951  { (case "(($ac_try" in
4952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953  *) ac_try_echo=$ac_try;;
4954esac
4955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956  (eval "$ac_try") 2>&5
4957  ac_status=$?
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); }; }; then
4960  ac_cv_valistisarray=false
4961else
4962  echo "$as_me: program exited with status $ac_status" >&5
4963echo "$as_me: failed program was:" >&5
4964sed 's/^/| /' conftest.$ac_ext >&5
4965
4966( exit $ac_status )
4967ac_cv_valistisarray=true
4968fi
4969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4970fi
4971
4972
4973fi
4974
4975
4976if test "$ac_cv_valistisarray" = true ; then
4977
4978cat >>confdefs.h <<\_ACEOF
4979#define HAVE_VA_LIST_AS_ARRAY 1
4980_ACEOF
4981
4982       { echo "$as_me:$LINENO: result: yes" >&5
4983echo "${ECHO_T}yes" >&6; }
4984else
4985       { echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6; }
4987fi
4988ac_config_files="$ac_config_files Makefile gbversion.h gui/setup.iss gui/makelinuxdist.sh xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty"
4989
4990cat >confcache <<\_ACEOF
4991# This file is a shell script that caches the results of configure
4992# tests run on this system so they can be shared between configure
4993# scripts and configure runs, see configure's option --config-cache.
4994# It is not useful on other systems.  If it contains results you don't
4995# want to keep, you may remove or edit it.
4996#
4997# config.status only pays attention to the cache file if you give it
4998# the --recheck option to rerun configure.
4999#
5000# `ac_cv_env_foo' variables (set or unset) will be overridden when
5001# loading this file, other *unset* `ac_cv_foo' will be assigned the
5002# following values.
5003
5004_ACEOF
5005
5006# The following way of writing the cache mishandles newlines in values,
5007# but we know of no workaround that is simple, portable, and efficient.
5008# So, we kill variables containing newlines.
5009# Ultrix sh set writes to stderr and can't be redirected directly,
5010# and sets the high bit in the cache file unless we assign to the vars.
5011(
5012  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5013    eval ac_val=\$$ac_var
5014    case $ac_val in #(
5015    *${as_nl}*)
5016      case $ac_var in #(
5017      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5018echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5019      esac
5020      case $ac_var in #(
5021      _ | IFS | as_nl) ;; #(
5022      *) $as_unset $ac_var ;;
5023      esac ;;
5024    esac
5025  done
5026
5027  (set) 2>&1 |
5028    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5029    *${as_nl}ac_space=\ *)
5030      # `set' does not quote correctly, so add quotes (double-quote
5031      # substitution turns \\\\ into \\, and sed turns \\ into \).
5032      sed -n \
5033	"s/'/'\\\\''/g;
5034	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5035      ;; #(
5036    *)
5037      # `set' quotes correctly as required by POSIX, so do not add quotes.
5038      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5039      ;;
5040    esac |
5041    sort
5042) |
5043  sed '
5044     /^ac_cv_env_/b end
5045     t clear
5046     :clear
5047     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5048     t end
5049     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5050     :end' >>confcache
5051if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5052  if test -w "$cache_file"; then
5053    test "x$cache_file" != "x/dev/null" &&
5054      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5055echo "$as_me: updating cache $cache_file" >&6;}
5056    cat confcache >$cache_file
5057  else
5058    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5059echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5060  fi
5061fi
5062rm -f confcache
5063
5064test "x$prefix" = xNONE && prefix=$ac_default_prefix
5065# Let make expand exec_prefix.
5066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5067
5068DEFS=-DHAVE_CONFIG_H
5069
5070ac_libobjs=
5071ac_ltlibobjs=
5072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5073  # 1. Remove the extension, and $U if already installed.
5074  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5075  ac_i=`echo "$ac_i" | sed "$ac_script"`
5076  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5077  #    will be set to the directory where LIBOBJS objects are built.
5078  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5079  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5080done
5081LIBOBJS=$ac_libobjs
5082
5083LTLIBOBJS=$ac_ltlibobjs
5084
5085
5086
5087: ${CONFIG_STATUS=./config.status}
5088ac_clean_files_save=$ac_clean_files
5089ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5090{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5091echo "$as_me: creating $CONFIG_STATUS" >&6;}
5092cat >$CONFIG_STATUS <<_ACEOF
5093#! $SHELL
5094# Generated by $as_me.
5095# Run this file to recreate the current configuration.
5096# Compiler output produced by configure, useful for debugging
5097# configure, is in config.log if it exists.
5098
5099debug=false
5100ac_cs_recheck=false
5101ac_cs_silent=false
5102SHELL=\${CONFIG_SHELL-$SHELL}
5103_ACEOF
5104
5105cat >>$CONFIG_STATUS <<\_ACEOF
5106## --------------------- ##
5107## M4sh Initialization.  ##
5108## --------------------- ##
5109
5110# Be more Bourne compatible
5111DUALCASE=1; export DUALCASE # for MKS sh
5112if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5113  emulate sh
5114  NULLCMD=:
5115  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5116  # is contrary to our usage.  Disable this feature.
5117  alias -g '${1+"$@"}'='"$@"'
5118  setopt NO_GLOB_SUBST
5119else
5120  case `(set -o) 2>/dev/null` in
5121  *posix*) set -o posix ;;
5122esac
5123
5124fi
5125
5126
5127
5128
5129# PATH needs CR
5130# Avoid depending upon Character Ranges.
5131as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5132as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5133as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5134as_cr_digits='0123456789'
5135as_cr_alnum=$as_cr_Letters$as_cr_digits
5136
5137# The user is always right.
5138if test "${PATH_SEPARATOR+set}" != set; then
5139  echo "#! /bin/sh" >conf$$.sh
5140  echo  "exit 0"   >>conf$$.sh
5141  chmod +x conf$$.sh
5142  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5143    PATH_SEPARATOR=';'
5144  else
5145    PATH_SEPARATOR=:
5146  fi
5147  rm -f conf$$.sh
5148fi
5149
5150# Support unset when possible.
5151if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5152  as_unset=unset
5153else
5154  as_unset=false
5155fi
5156
5157
5158# IFS
5159# We need space, tab and new line, in precisely that order.  Quoting is
5160# there to prevent editors from complaining about space-tab.
5161# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5162# splitting by setting IFS to empty value.)
5163as_nl='
5164'
5165IFS=" ""	$as_nl"
5166
5167# Find who we are.  Look in the path if we contain no directory separator.
5168case $0 in
5169  *[\\/]* ) as_myself=$0 ;;
5170  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173  IFS=$as_save_IFS
5174  test -z "$as_dir" && as_dir=.
5175  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5176done
5177IFS=$as_save_IFS
5178
5179     ;;
5180esac
5181# We did not find ourselves, most probably we were run as `sh COMMAND'
5182# in which case we are not to be found in the path.
5183if test "x$as_myself" = x; then
5184  as_myself=$0
5185fi
5186if test ! -f "$as_myself"; then
5187  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5188  { (exit 1); exit 1; }
5189fi
5190
5191# Work around bugs in pre-3.0 UWIN ksh.
5192for as_var in ENV MAIL MAILPATH
5193do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5194done
5195PS1='$ '
5196PS2='> '
5197PS4='+ '
5198
5199# NLS nuisances.
5200for as_var in \
5201  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5202  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5203  LC_TELEPHONE LC_TIME
5204do
5205  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5206    eval $as_var=C; export $as_var
5207  else
5208    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5209  fi
5210done
5211
5212# Required to use basename.
5213if expr a : '\(a\)' >/dev/null 2>&1 &&
5214   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5215  as_expr=expr
5216else
5217  as_expr=false
5218fi
5219
5220if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5221  as_basename=basename
5222else
5223  as_basename=false
5224fi
5225
5226
5227# Name of the executable.
5228as_me=`$as_basename -- "$0" ||
5229$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5230	 X"$0" : 'X\(//\)$' \| \
5231	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5232echo X/"$0" |
5233    sed '/^.*\/\([^/][^/]*\)\/*$/{
5234	    s//\1/
5235	    q
5236	  }
5237	  /^X\/\(\/\/\)$/{
5238	    s//\1/
5239	    q
5240	  }
5241	  /^X\/\(\/\).*/{
5242	    s//\1/
5243	    q
5244	  }
5245	  s/.*/./; q'`
5246
5247# CDPATH.
5248$as_unset CDPATH
5249
5250
5251
5252  as_lineno_1=$LINENO
5253  as_lineno_2=$LINENO
5254  test "x$as_lineno_1" != "x$as_lineno_2" &&
5255  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5256
5257  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5258  # uniformly replaced by the line number.  The first 'sed' inserts a
5259  # line-number line after each line using $LINENO; the second 'sed'
5260  # does the real work.  The second script uses 'N' to pair each
5261  # line-number line with the line containing $LINENO, and appends
5262  # trailing '-' during substitution so that $LINENO is not a special
5263  # case at line end.
5264  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5265  # scripts with optimization help from Paolo Bonzini.  Blame Lee
5266  # E. McMahon (1931-1989) for sed's syntax.  :-)
5267  sed -n '
5268    p
5269    /[$]LINENO/=
5270  ' <$as_myself |
5271    sed '
5272      s/[$]LINENO.*/&-/
5273      t lineno
5274      b
5275      :lineno
5276      N
5277      :loop
5278      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5279      t loop
5280      s/-\n.*//
5281    ' >$as_me.lineno &&
5282  chmod +x "$as_me.lineno" ||
5283    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5284   { (exit 1); exit 1; }; }
5285
5286  # Don't try to exec as it changes $[0], causing all sort of problems
5287  # (the dirname of $[0] is not the place where we might find the
5288  # original and so on.  Autoconf is especially sensitive to this).
5289  . "./$as_me.lineno"
5290  # Exit status is that of the last command.
5291  exit
5292}
5293
5294
5295if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5296  as_dirname=dirname
5297else
5298  as_dirname=false
5299fi
5300
5301ECHO_C= ECHO_N= ECHO_T=
5302case `echo -n x` in
5303-n*)
5304  case `echo 'x\c'` in
5305  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5306  *)   ECHO_C='\c';;
5307  esac;;
5308*)
5309  ECHO_N='-n';;
5310esac
5311
5312if expr a : '\(a\)' >/dev/null 2>&1 &&
5313   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5314  as_expr=expr
5315else
5316  as_expr=false
5317fi
5318
5319rm -f conf$$ conf$$.exe conf$$.file
5320if test -d conf$$.dir; then
5321  rm -f conf$$.dir/conf$$.file
5322else
5323  rm -f conf$$.dir
5324  mkdir conf$$.dir
5325fi
5326echo >conf$$.file
5327if ln -s conf$$.file conf$$ 2>/dev/null; then
5328  as_ln_s='ln -s'
5329  # ... but there are two gotchas:
5330  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5331  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5332  # In both cases, we have to default to `cp -p'.
5333  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5334    as_ln_s='cp -p'
5335elif ln conf$$.file conf$$ 2>/dev/null; then
5336  as_ln_s=ln
5337else
5338  as_ln_s='cp -p'
5339fi
5340rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5341rmdir conf$$.dir 2>/dev/null
5342
5343if mkdir -p . 2>/dev/null; then
5344  as_mkdir_p=:
5345else
5346  test -d ./-p && rmdir ./-p
5347  as_mkdir_p=false
5348fi
5349
5350if test -x / >/dev/null 2>&1; then
5351  as_test_x='test -x'
5352else
5353  if ls -dL / >/dev/null 2>&1; then
5354    as_ls_L_option=L
5355  else
5356    as_ls_L_option=
5357  fi
5358  as_test_x='
5359    eval sh -c '\''
5360      if test -d "$1"; then
5361        test -d "$1/.";
5362      else
5363	case $1 in
5364        -*)set "./$1";;
5365	esac;
5366	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5367	???[sx]*):;;*)false;;esac;fi
5368    '\'' sh
5369  '
5370fi
5371as_executable_p=$as_test_x
5372
5373# Sed expression to map a string onto a valid CPP name.
5374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5375
5376# Sed expression to map a string onto a valid variable name.
5377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5378
5379
5380exec 6>&1
5381
5382# Save the log message, to keep $[0] and so on meaningful, and to
5383# report actual input values of CONFIG_FILES etc. instead of their
5384# values after options handling.
5385ac_log="
5386This file was extended by GPSBabel $as_me 1.4.4, which was
5387generated by GNU Autoconf 2.61.  Invocation command line was
5388
5389  CONFIG_FILES    = $CONFIG_FILES
5390  CONFIG_HEADERS  = $CONFIG_HEADERS
5391  CONFIG_LINKS    = $CONFIG_LINKS
5392  CONFIG_COMMANDS = $CONFIG_COMMANDS
5393  $ $0 $@
5394
5395on `(hostname || uname -n) 2>/dev/null | sed 1q`
5396"
5397
5398_ACEOF
5399
5400cat >>$CONFIG_STATUS <<_ACEOF
5401# Files that config.status was made for.
5402config_files="$ac_config_files"
5403config_headers="$ac_config_headers"
5404
5405_ACEOF
5406
5407cat >>$CONFIG_STATUS <<\_ACEOF
5408ac_cs_usage="\
5409\`$as_me' instantiates files from templates according to the
5410current configuration.
5411
5412Usage: $0 [OPTIONS] [FILE]...
5413
5414  -h, --help       print this help, then exit
5415  -V, --version    print version number and configuration settings, then exit
5416  -q, --quiet      do not print progress messages
5417  -d, --debug      don't remove temporary files
5418      --recheck    update $as_me by reconfiguring in the same conditions
5419  --file=FILE[:TEMPLATE]
5420		   instantiate the configuration file FILE
5421  --header=FILE[:TEMPLATE]
5422		   instantiate the configuration header FILE
5423
5424Configuration files:
5425$config_files
5426
5427Configuration headers:
5428$config_headers
5429
5430Report bugs to <bug-autoconf@gnu.org>."
5431
5432_ACEOF
5433cat >>$CONFIG_STATUS <<_ACEOF
5434ac_cs_version="\\
5435GPSBabel config.status 1.4.4
5436configured by $0, generated by GNU Autoconf 2.61,
5437  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5438
5439Copyright (C) 2006 Free Software Foundation, Inc.
5440This config.status script is free software; the Free Software Foundation
5441gives unlimited permission to copy, distribute and modify it."
5442
5443ac_pwd='$ac_pwd'
5444srcdir='$srcdir'
5445INSTALL='$INSTALL'
5446_ACEOF
5447
5448cat >>$CONFIG_STATUS <<\_ACEOF
5449# If no file are specified by the user, then we need to provide default
5450# value.  By we need to know if files were specified by the user.
5451ac_need_defaults=:
5452while test $# != 0
5453do
5454  case $1 in
5455  --*=*)
5456    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5457    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5458    ac_shift=:
5459    ;;
5460  *)
5461    ac_option=$1
5462    ac_optarg=$2
5463    ac_shift=shift
5464    ;;
5465  esac
5466
5467  case $ac_option in
5468  # Handling of the options.
5469  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5470    ac_cs_recheck=: ;;
5471  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5472    echo "$ac_cs_version"; exit ;;
5473  --debug | --debu | --deb | --de | --d | -d )
5474    debug=: ;;
5475  --file | --fil | --fi | --f )
5476    $ac_shift
5477    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5478    ac_need_defaults=false;;
5479  --header | --heade | --head | --hea )
5480    $ac_shift
5481    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5482    ac_need_defaults=false;;
5483  --he | --h)
5484    # Conflict between --help and --header
5485    { echo "$as_me: error: ambiguous option: $1
5486Try \`$0 --help' for more information." >&2
5487   { (exit 1); exit 1; }; };;
5488  --help | --hel | -h )
5489    echo "$ac_cs_usage"; exit ;;
5490  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5491  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5492    ac_cs_silent=: ;;
5493
5494  # This is an error.
5495  -*) { echo "$as_me: error: unrecognized option: $1
5496Try \`$0 --help' for more information." >&2
5497   { (exit 1); exit 1; }; } ;;
5498
5499  *) ac_config_targets="$ac_config_targets $1"
5500     ac_need_defaults=false ;;
5501
5502  esac
5503  shift
5504done
5505
5506ac_configure_extra_args=
5507
5508if $ac_cs_silent; then
5509  exec 6>/dev/null
5510  ac_configure_extra_args="$ac_configure_extra_args --silent"
5511fi
5512
5513_ACEOF
5514cat >>$CONFIG_STATUS <<_ACEOF
5515if \$ac_cs_recheck; then
5516  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5517  CONFIG_SHELL=$SHELL
5518  export CONFIG_SHELL
5519  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5520fi
5521
5522_ACEOF
5523cat >>$CONFIG_STATUS <<\_ACEOF
5524exec 5>>config.log
5525{
5526  echo
5527  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5528## Running $as_me. ##
5529_ASBOX
5530  echo "$ac_log"
5531} >&5
5532
5533_ACEOF
5534cat >>$CONFIG_STATUS <<_ACEOF
5535_ACEOF
5536
5537cat >>$CONFIG_STATUS <<\_ACEOF
5538
5539# Handling of arguments.
5540for ac_config_target in $ac_config_targets
5541do
5542  case $ac_config_target in
5543    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5544    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5545    "gbversion.h") CONFIG_FILES="$CONFIG_FILES gbversion.h" ;;
5546    "gui/setup.iss") CONFIG_FILES="$CONFIG_FILES gui/setup.iss" ;;
5547    "gui/makelinuxdist.sh") CONFIG_FILES="$CONFIG_FILES gui/makelinuxdist.sh" ;;
5548    "xmldoc/makedoc") CONFIG_FILES="$CONFIG_FILES xmldoc/makedoc" ;;
5549    "tools/mkcapabilities") CONFIG_FILES="$CONFIG_FILES tools/mkcapabilities" ;;
5550    "win32/gpsbabel.rc") CONFIG_FILES="$CONFIG_FILES win32/gpsbabel.rc" ;;
5551    "jeeps/Makefile") CONFIG_FILES="$CONFIG_FILES jeeps/Makefile" ;;
5552    "shapelib/Makefile") CONFIG_FILES="$CONFIG_FILES shapelib/Makefile" ;;
5553    "zlib/empty") CONFIG_FILES="$CONFIG_FILES zlib/empty" ;;
5554
5555  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5556echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5557   { (exit 1); exit 1; }; };;
5558  esac
5559done
5560
5561
5562# If the user did not use the arguments to specify the items to instantiate,
5563# then the envvar interface is used.  Set only those that are not.
5564# We use the long form for the default assignment because of an extremely
5565# bizarre bug on SunOS 4.1.3.
5566if $ac_need_defaults; then
5567  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5568  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5569fi
5570
5571# Have a temporary directory for convenience.  Make it in the build tree
5572# simply because there is no reason against having it here, and in addition,
5573# creating and moving files from /tmp can sometimes cause problems.
5574# Hook for its removal unless debugging.
5575# Note that there is a small window in which the directory will not be cleaned:
5576# after its creation but before its name has been assigned to `$tmp'.
5577$debug ||
5578{
5579  tmp=
5580  trap 'exit_status=$?
5581  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5582' 0
5583  trap '{ (exit 1); exit 1; }' 1 2 13 15
5584}
5585# Create a (secure) tmp directory for tmp files.
5586
5587{
5588  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5589  test -n "$tmp" && test -d "$tmp"
5590}  ||
5591{
5592  tmp=./conf$$-$RANDOM
5593  (umask 077 && mkdir "$tmp")
5594} ||
5595{
5596   echo "$me: cannot create a temporary directory in ." >&2
5597   { (exit 1); exit 1; }
5598}
5599
5600#
5601# Set up the sed scripts for CONFIG_FILES section.
5602#
5603
5604# No need to generate the scripts if there are no CONFIG_FILES.
5605# This happens for instance when ./config.status config.h
5606if test -n "$CONFIG_FILES"; then
5607
5608_ACEOF
5609
5610
5611
5612ac_delim='%!_!# '
5613for ac_last_try in false false false false false :; do
5614  cat >conf$$subs.sed <<_ACEOF
5615SHELL!$SHELL$ac_delim
5616PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5617PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5618PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5619PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5620PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5621PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5622exec_prefix!$exec_prefix$ac_delim
5623prefix!$prefix$ac_delim
5624program_transform_name!$program_transform_name$ac_delim
5625bindir!$bindir$ac_delim
5626sbindir!$sbindir$ac_delim
5627libexecdir!$libexecdir$ac_delim
5628datarootdir!$datarootdir$ac_delim
5629datadir!$datadir$ac_delim
5630sysconfdir!$sysconfdir$ac_delim
5631sharedstatedir!$sharedstatedir$ac_delim
5632localstatedir!$localstatedir$ac_delim
5633includedir!$includedir$ac_delim
5634oldincludedir!$oldincludedir$ac_delim
5635docdir!$docdir$ac_delim
5636infodir!$infodir$ac_delim
5637htmldir!$htmldir$ac_delim
5638dvidir!$dvidir$ac_delim
5639pdfdir!$pdfdir$ac_delim
5640psdir!$psdir$ac_delim
5641libdir!$libdir$ac_delim
5642localedir!$localedir$ac_delim
5643mandir!$mandir$ac_delim
5644DEFS!$DEFS$ac_delim
5645ECHO_C!$ECHO_C$ac_delim
5646ECHO_N!$ECHO_N$ac_delim
5647ECHO_T!$ECHO_T$ac_delim
5648LIBS!$LIBS$ac_delim
5649build_alias!$build_alias$ac_delim
5650host_alias!$host_alias$ac_delim
5651target_alias!$target_alias$ac_delim
5652PACKAGE_RELEASE!$PACKAGE_RELEASE$ac_delim
5653DOCVERSION!$DOCVERSION$ac_delim
5654GBMAJOR!$GBMAJOR$ac_delim
5655GBMINOR!$GBMINOR$ac_delim
5656GBMICRO!$GBMICRO$ac_delim
5657GBBUILD!$GBBUILD$ac_delim
5658build!$build$ac_delim
5659build_cpu!$build_cpu$ac_delim
5660build_vendor!$build_vendor$ac_delim
5661build_os!$build_os$ac_delim
5662host!$host$ac_delim
5663host_cpu!$host_cpu$ac_delim
5664host_vendor!$host_vendor$ac_delim
5665host_os!$host_os$ac_delim
5666target!$target$ac_delim
5667target_cpu!$target_cpu$ac_delim
5668target_vendor!$target_vendor$ac_delim
5669target_os!$target_os$ac_delim
5670CC!$CC$ac_delim
5671CFLAGS!$CFLAGS$ac_delim
5672LDFLAGS!$LDFLAGS$ac_delim
5673CPPFLAGS!$CPPFLAGS$ac_delim
5674ac_ct_CC!$ac_ct_CC$ac_delim
5675EXEEXT!$EXEEXT$ac_delim
5676OBJEXT!$OBJEXT$ac_delim
5677INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5678INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5679INSTALL_DATA!$INSTALL_DATA$ac_delim
5680SET_MAKE!$SET_MAKE$ac_delim
5681CPP!$CPP$ac_delim
5682GREP!$GREP$ac_delim
5683EGREP!$EGREP$ac_delim
5684PALM_DB_CMT!$PALM_DB_CMT$ac_delim
5685FMTS!$FMTS$ac_delim
5686FILEINFO!$FILEINFO$ac_delim
5687RC!$RC$ac_delim
5688LIBUSBCONFIG!$LIBUSBCONFIG$ac_delim
5689USB_LIBS!$USB_LIBS$ac_delim
5690USB_CFLAGS!$USB_CFLAGS$ac_delim
5691OSJEEPS!$OSJEEPS$ac_delim
5692GBSER!$GBSER$ac_delim
5693ZLIB!$ZLIB$ac_delim
5694EXPAT_LIB!$EXPAT_LIB$ac_delim
5695EFENCE_LIB!$EFENCE_LIB$ac_delim
5696GPSBABEL_DEBUG!$GPSBABEL_DEBUG$ac_delim
5697INSTALL_DEBUG!$INSTALL_DEBUG$ac_delim
5698DOCDIR!$DOCDIR$ac_delim
5699LIBOBJS!$LIBOBJS$ac_delim
5700LTLIBOBJS!$LTLIBOBJS$ac_delim
5701_ACEOF
5702
5703  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
5704    break
5705  elif $ac_last_try; then
5706    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5707echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5708   { (exit 1); exit 1; }; }
5709  else
5710    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5711  fi
5712done
5713
5714ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5715if test -n "$ac_eof"; then
5716  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5717  ac_eof=`expr $ac_eof + 1`
5718fi
5719
5720cat >>$CONFIG_STATUS <<_ACEOF
5721cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5722/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5723_ACEOF
5724sed '
5725s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5726s/^/s,@/; s/!/@,|#_!!_#|/
5727:n
5728t n
5729s/'"$ac_delim"'$/,g/; t
5730s/$/\\/; p
5731N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5732' >>$CONFIG_STATUS <conf$$subs.sed
5733rm -f conf$$subs.sed
5734cat >>$CONFIG_STATUS <<_ACEOF
5735:end
5736s/|#_!!_#|//g
5737CEOF$ac_eof
5738_ACEOF
5739
5740
5741# VPATH may cause trouble with some makes, so we remove $(srcdir),
5742# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5743# trailing colons and then remove the whole line if VPATH becomes empty
5744# (actually we leave an empty line to preserve line numbers).
5745if test "x$srcdir" = x.; then
5746  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5747s/:*\$(srcdir):*/:/
5748s/:*\${srcdir}:*/:/
5749s/:*@srcdir@:*/:/
5750s/^\([^=]*=[	 ]*\):*/\1/
5751s/:*$//
5752s/^[^=]*=[	 ]*$//
5753}'
5754fi
5755
5756cat >>$CONFIG_STATUS <<\_ACEOF
5757fi # test -n "$CONFIG_FILES"
5758
5759
5760for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
5761do
5762  case $ac_tag in
5763  :[FHLC]) ac_mode=$ac_tag; continue;;
5764  esac
5765  case $ac_mode$ac_tag in
5766  :[FHL]*:*);;
5767  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5768echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5769   { (exit 1); exit 1; }; };;
5770  :[FH]-) ac_tag=-:-;;
5771  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5772  esac
5773  ac_save_IFS=$IFS
5774  IFS=:
5775  set x $ac_tag
5776  IFS=$ac_save_IFS
5777  shift
5778  ac_file=$1
5779  shift
5780
5781  case $ac_mode in
5782  :L) ac_source=$1;;
5783  :[FH])
5784    ac_file_inputs=
5785    for ac_f
5786    do
5787      case $ac_f in
5788      -) ac_f="$tmp/stdin";;
5789      *) # Look for the file first in the build tree, then in the source tree
5790	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5791	 # because $ac_f cannot contain `:'.
5792	 test -f "$ac_f" ||
5793	   case $ac_f in
5794	   [\\/$]*) false;;
5795	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5796	   esac ||
5797	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5798echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5799   { (exit 1); exit 1; }; };;
5800      esac
5801      ac_file_inputs="$ac_file_inputs $ac_f"
5802    done
5803
5804    # Let's still pretend it is `configure' which instantiates (i.e., don't
5805    # use $as_me), people would be surprised to read:
5806    #    /* config.h.  Generated by config.status.  */
5807    configure_input="Generated from "`IFS=:
5808	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5809    if test x"$ac_file" != x-; then
5810      configure_input="$ac_file.  $configure_input"
5811      { echo "$as_me:$LINENO: creating $ac_file" >&5
5812echo "$as_me: creating $ac_file" >&6;}
5813    fi
5814
5815    case $ac_tag in
5816    *:-:* | *:-) cat >"$tmp/stdin";;
5817    esac
5818    ;;
5819  esac
5820
5821  ac_dir=`$as_dirname -- "$ac_file" ||
5822$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5823	 X"$ac_file" : 'X\(//\)[^/]' \| \
5824	 X"$ac_file" : 'X\(//\)$' \| \
5825	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5826echo X"$ac_file" |
5827    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5828	    s//\1/
5829	    q
5830	  }
5831	  /^X\(\/\/\)[^/].*/{
5832	    s//\1/
5833	    q
5834	  }
5835	  /^X\(\/\/\)$/{
5836	    s//\1/
5837	    q
5838	  }
5839	  /^X\(\/\).*/{
5840	    s//\1/
5841	    q
5842	  }
5843	  s/.*/./; q'`
5844  { as_dir="$ac_dir"
5845  case $as_dir in #(
5846  -*) as_dir=./$as_dir;;
5847  esac
5848  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5849    as_dirs=
5850    while :; do
5851      case $as_dir in #(
5852      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5853      *) as_qdir=$as_dir;;
5854      esac
5855      as_dirs="'$as_qdir' $as_dirs"
5856      as_dir=`$as_dirname -- "$as_dir" ||
5857$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5858	 X"$as_dir" : 'X\(//\)[^/]' \| \
5859	 X"$as_dir" : 'X\(//\)$' \| \
5860	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5861echo X"$as_dir" |
5862    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5863	    s//\1/
5864	    q
5865	  }
5866	  /^X\(\/\/\)[^/].*/{
5867	    s//\1/
5868	    q
5869	  }
5870	  /^X\(\/\/\)$/{
5871	    s//\1/
5872	    q
5873	  }
5874	  /^X\(\/\).*/{
5875	    s//\1/
5876	    q
5877	  }
5878	  s/.*/./; q'`
5879      test -d "$as_dir" && break
5880    done
5881    test -z "$as_dirs" || eval "mkdir $as_dirs"
5882  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5883echo "$as_me: error: cannot create directory $as_dir" >&2;}
5884   { (exit 1); exit 1; }; }; }
5885  ac_builddir=.
5886
5887case "$ac_dir" in
5888.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5889*)
5890  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5891  # A ".." for each directory in $ac_dir_suffix.
5892  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5893  case $ac_top_builddir_sub in
5894  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5895  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5896  esac ;;
5897esac
5898ac_abs_top_builddir=$ac_pwd
5899ac_abs_builddir=$ac_pwd$ac_dir_suffix
5900# for backward compatibility:
5901ac_top_builddir=$ac_top_build_prefix
5902
5903case $srcdir in
5904  .)  # We are building in place.
5905    ac_srcdir=.
5906    ac_top_srcdir=$ac_top_builddir_sub
5907    ac_abs_top_srcdir=$ac_pwd ;;
5908  [\\/]* | ?:[\\/]* )  # Absolute name.
5909    ac_srcdir=$srcdir$ac_dir_suffix;
5910    ac_top_srcdir=$srcdir
5911    ac_abs_top_srcdir=$srcdir ;;
5912  *) # Relative name.
5913    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5914    ac_top_srcdir=$ac_top_build_prefix$srcdir
5915    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5916esac
5917ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5918
5919
5920  case $ac_mode in
5921  :F)
5922  #
5923  # CONFIG_FILE
5924  #
5925
5926  case $INSTALL in
5927  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5928  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5929  esac
5930_ACEOF
5931
5932cat >>$CONFIG_STATUS <<\_ACEOF
5933# If the template does not know about datarootdir, expand it.
5934# FIXME: This hack should be removed a few years after 2.60.
5935ac_datarootdir_hack=; ac_datarootdir_seen=
5936
5937case `sed -n '/datarootdir/ {
5938  p
5939  q
5940}
5941/@datadir@/p
5942/@docdir@/p
5943/@infodir@/p
5944/@localedir@/p
5945/@mandir@/p
5946' $ac_file_inputs` in
5947*datarootdir*) ac_datarootdir_seen=yes;;
5948*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5949  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5950echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5951_ACEOF
5952cat >>$CONFIG_STATUS <<_ACEOF
5953  ac_datarootdir_hack='
5954  s&@datadir@&$datadir&g
5955  s&@docdir@&$docdir&g
5956  s&@infodir@&$infodir&g
5957  s&@localedir@&$localedir&g
5958  s&@mandir@&$mandir&g
5959    s&\\\${datarootdir}&$datarootdir&g' ;;
5960esac
5961_ACEOF
5962
5963# Neutralize VPATH when `$srcdir' = `.'.
5964# Shell code in configure.ac might set extrasub.
5965# FIXME: do we really want to maintain this feature?
5966cat >>$CONFIG_STATUS <<_ACEOF
5967  sed "$ac_vpsub
5968$extrasub
5969_ACEOF
5970cat >>$CONFIG_STATUS <<\_ACEOF
5971:t
5972/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5973s&@configure_input@&$configure_input&;t t
5974s&@top_builddir@&$ac_top_builddir_sub&;t t
5975s&@srcdir@&$ac_srcdir&;t t
5976s&@abs_srcdir@&$ac_abs_srcdir&;t t
5977s&@top_srcdir@&$ac_top_srcdir&;t t
5978s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5979s&@builddir@&$ac_builddir&;t t
5980s&@abs_builddir@&$ac_abs_builddir&;t t
5981s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5982s&@INSTALL@&$ac_INSTALL&;t t
5983$ac_datarootdir_hack
5984" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5985
5986test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5987  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5988  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5989  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5990which seems to be undefined.  Please make sure it is defined." >&5
5991echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5992which seems to be undefined.  Please make sure it is defined." >&2;}
5993
5994  rm -f "$tmp/stdin"
5995  case $ac_file in
5996  -) cat "$tmp/out"; rm -f "$tmp/out";;
5997  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5998  esac
5999 ;;
6000  :H)
6001  #
6002  # CONFIG_HEADER
6003  #
6004_ACEOF
6005
6006# Transform confdefs.h into a sed script `conftest.defines', that
6007# substitutes the proper values into config.h.in to produce config.h.
6008rm -f conftest.defines conftest.tail
6009# First, append a space to every undef/define line, to ease matching.
6010echo 's/$/ /' >conftest.defines
6011# Then, protect against being on the right side of a sed subst, or in
6012# an unquoted here document, in config.status.  If some macros were
6013# called several times there might be several #defines for the same
6014# symbol, which is useless.  But do not sort them, since the last
6015# AC_DEFINE must be honored.
6016ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6017# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6018# NAME is the cpp macro being defined, VALUE is the value it is being given.
6019# PARAMS is the parameter list in the macro definition--in most cases, it's
6020# just an empty string.
6021ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
6022ac_dB='\\)[	 (].*,\\1define\\2'
6023ac_dC=' '
6024ac_dD=' ,'
6025
6026uniq confdefs.h |
6027  sed -n '
6028	t rset
6029	:rset
6030	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
6031	t ok
6032	d
6033	:ok
6034	s/[\\&,]/\\&/g
6035	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6036	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6037  ' >>conftest.defines
6038
6039# Remove the space that was appended to ease matching.
6040# Then replace #undef with comments.  This is necessary, for
6041# example, in the case of _POSIX_SOURCE, which is predefined and required
6042# on some systems where configure will not decide to define it.
6043# (The regexp can be short, since the line contains either #define or #undef.)
6044echo 's/ $//
6045s,^[	 #]*u.*,/* & */,' >>conftest.defines
6046
6047# Break up conftest.defines:
6048ac_max_sed_lines=50
6049
6050# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6051# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6052# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6053# et cetera.
6054ac_in='$ac_file_inputs'
6055ac_out='"$tmp/out1"'
6056ac_nxt='"$tmp/out2"'
6057
6058while :
6059do
6060  # Write a here document:
6061    cat >>$CONFIG_STATUS <<_ACEOF
6062    # First, check the format of the line:
6063    cat >"\$tmp/defines.sed" <<\\CEOF
6064/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
6065/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
6066b
6067:def
6068_ACEOF
6069  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6070  echo 'CEOF
6071    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6072  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6073  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6074  grep . conftest.tail >/dev/null || break
6075  rm -f conftest.defines
6076  mv conftest.tail conftest.defines
6077done
6078rm -f conftest.defines conftest.tail
6079
6080echo "ac_result=$ac_in" >>$CONFIG_STATUS
6081cat >>$CONFIG_STATUS <<\_ACEOF
6082  if test x"$ac_file" != x-; then
6083    echo "/* $configure_input  */" >"$tmp/config.h"
6084    cat "$ac_result" >>"$tmp/config.h"
6085    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6086      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6087echo "$as_me: $ac_file is unchanged" >&6;}
6088    else
6089      rm -f $ac_file
6090      mv "$tmp/config.h" $ac_file
6091    fi
6092  else
6093    echo "/* $configure_input  */"
6094    cat "$ac_result"
6095  fi
6096  rm -f "$tmp/out12"
6097 ;;
6098
6099
6100  esac
6101
6102done # for ac_tag
6103
6104
6105{ (exit 0); exit 0; }
6106_ACEOF
6107chmod +x $CONFIG_STATUS
6108ac_clean_files=$ac_clean_files_save
6109
6110
6111# configure is writing to config.log, and then calls config.status.
6112# config.status does its own redirection, appending to config.log.
6113# Unfortunately, on DOS this fails, as config.log is still kept open
6114# by configure, so config.status won't be able to write to it; its
6115# output is simply discarded.  So we exec the FD to /dev/null,
6116# effectively closing config.log, so it can be properly (re)opened and
6117# appended to by config.status.  When coming back to configure, we
6118# need to make the FD available again.
6119if test "$no_create" != yes; then
6120  ac_cs_success=:
6121  ac_config_status_args=
6122  test "$silent" = yes &&
6123    ac_config_status_args="$ac_config_status_args --quiet"
6124  exec 5>/dev/null
6125  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6126  exec 5>>config.log
6127  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6128  # would make configure fail if this is the last instruction.
6129  $ac_cs_success || { (exit 1); exit 1; }
6130fi
6131
6132
6133