]> Shamusworld >> Repos - architektonas/blob - fparser/configure
Forgot to add enums.cpp...
[architektonas] / fparser / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/fparser.cpp"
274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA FIND MAKEDEPEND X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIBOBJS LTLIBOBJS'
275 ac_subst_files=''
276
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
296
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
314
315 ac_prev=
316 for ac_option
317 do
318   # If the previous option needs an argument, assign it.
319   if test -n "$ac_prev"; then
320     eval "$ac_prev=\$ac_option"
321     ac_prev=
322     continue
323   fi
324
325   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327   # Accept the important Cygnus configure options, so we can diagnose typos.
328
329   case $ac_option in
330
331   -bindir | --bindir | --bindi | --bind | --bin | --bi)
332     ac_prev=bindir ;;
333   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334     bindir=$ac_optarg ;;
335
336   -build | --build | --buil | --bui | --bu)
337     ac_prev=build_alias ;;
338   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339     build_alias=$ac_optarg ;;
340
341   -cache-file | --cache-file | --cache-fil | --cache-fi \
342   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343     ac_prev=cache_file ;;
344   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346     cache_file=$ac_optarg ;;
347
348   --config-cache | -C)
349     cache_file=config.cache ;;
350
351   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352     ac_prev=datadir ;;
353   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354   | --da=*)
355     datadir=$ac_optarg ;;
356
357   -disable-* | --disable-*)
358     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359     # Reject names that are not valid shell variable names.
360     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362    { (exit 1); exit 1; }; }
363     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364     eval "enable_$ac_feature=no" ;;
365
366   -enable-* | --enable-*)
367     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368     # Reject names that are not valid shell variable names.
369     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371    { (exit 1); exit 1; }; }
372     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373     case $ac_option in
374       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375       *) ac_optarg=yes ;;
376     esac
377     eval "enable_$ac_feature='$ac_optarg'" ;;
378
379   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381   | --exec | --exe | --ex)
382     ac_prev=exec_prefix ;;
383   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385   | --exec=* | --exe=* | --ex=*)
386     exec_prefix=$ac_optarg ;;
387
388   -gas | --gas | --ga | --g)
389     # Obsolete; use --with-gas.
390     with_gas=yes ;;
391
392   -help | --help | --hel | --he | -h)
393     ac_init_help=long ;;
394   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395     ac_init_help=recursive ;;
396   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397     ac_init_help=short ;;
398
399   -host | --host | --hos | --ho)
400     ac_prev=host_alias ;;
401   -host=* | --host=* | --hos=* | --ho=*)
402     host_alias=$ac_optarg ;;
403
404   -includedir | --includedir | --includedi | --included | --include \
405   | --includ | --inclu | --incl | --inc)
406     ac_prev=includedir ;;
407   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408   | --includ=* | --inclu=* | --incl=* | --inc=*)
409     includedir=$ac_optarg ;;
410
411   -infodir | --infodir | --infodi | --infod | --info | --inf)
412     ac_prev=infodir ;;
413   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414     infodir=$ac_optarg ;;
415
416   -libdir | --libdir | --libdi | --libd)
417     ac_prev=libdir ;;
418   -libdir=* | --libdir=* | --libdi=* | --libd=*)
419     libdir=$ac_optarg ;;
420
421   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422   | --libexe | --libex | --libe)
423     ac_prev=libexecdir ;;
424   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425   | --libexe=* | --libex=* | --libe=*)
426     libexecdir=$ac_optarg ;;
427
428   -localstatedir | --localstatedir | --localstatedi | --localstated \
429   | --localstate | --localstat | --localsta | --localst \
430   | --locals | --local | --loca | --loc | --lo)
431     ac_prev=localstatedir ;;
432   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435     localstatedir=$ac_optarg ;;
436
437   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438     ac_prev=mandir ;;
439   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440     mandir=$ac_optarg ;;
441
442   -nfp | --nfp | --nf)
443     # Obsolete; use --without-fp.
444     with_fp=no ;;
445
446   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447   | --no-cr | --no-c | -n)
448     no_create=yes ;;
449
450   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452     no_recursion=yes ;;
453
454   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456   | --oldin | --oldi | --old | --ol | --o)
457     ac_prev=oldincludedir ;;
458   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461     oldincludedir=$ac_optarg ;;
462
463   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464     ac_prev=prefix ;;
465   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466     prefix=$ac_optarg ;;
467
468   -program-prefix | --program-prefix | --program-prefi | --program-pref \
469   | --program-pre | --program-pr | --program-p)
470     ac_prev=program_prefix ;;
471   -program-prefix=* | --program-prefix=* | --program-prefi=* \
472   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473     program_prefix=$ac_optarg ;;
474
475   -program-suffix | --program-suffix | --program-suffi | --program-suff \
476   | --program-suf | --program-su | --program-s)
477     ac_prev=program_suffix ;;
478   -program-suffix=* | --program-suffix=* | --program-suffi=* \
479   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480     program_suffix=$ac_optarg ;;
481
482   -program-transform-name | --program-transform-name \
483   | --program-transform-nam | --program-transform-na \
484   | --program-transform-n | --program-transform- \
485   | --program-transform | --program-transfor \
486   | --program-transfo | --program-transf \
487   | --program-trans | --program-tran \
488   | --progr-tra | --program-tr | --program-t)
489     ac_prev=program_transform_name ;;
490   -program-transform-name=* | --program-transform-name=* \
491   | --program-transform-nam=* | --program-transform-na=* \
492   | --program-transform-n=* | --program-transform-=* \
493   | --program-transform=* | --program-transfor=* \
494   | --program-transfo=* | --program-transf=* \
495   | --program-trans=* | --program-tran=* \
496   | --progr-tra=* | --program-tr=* | --program-t=*)
497     program_transform_name=$ac_optarg ;;
498
499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500   | -silent | --silent | --silen | --sile | --sil)
501     silent=yes ;;
502
503   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504     ac_prev=sbindir ;;
505   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506   | --sbi=* | --sb=*)
507     sbindir=$ac_optarg ;;
508
509   -sharedstatedir | --sharedstatedir | --sharedstatedi \
510   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511   | --sharedst | --shareds | --shared | --share | --shar \
512   | --sha | --sh)
513     ac_prev=sharedstatedir ;;
514   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517   | --sha=* | --sh=*)
518     sharedstatedir=$ac_optarg ;;
519
520   -site | --site | --sit)
521     ac_prev=site ;;
522   -site=* | --site=* | --sit=*)
523     site=$ac_optarg ;;
524
525   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526     ac_prev=srcdir ;;
527   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528     srcdir=$ac_optarg ;;
529
530   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531   | --syscon | --sysco | --sysc | --sys | --sy)
532     ac_prev=sysconfdir ;;
533   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535     sysconfdir=$ac_optarg ;;
536
537   -target | --target | --targe | --targ | --tar | --ta | --t)
538     ac_prev=target_alias ;;
539   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540     target_alias=$ac_optarg ;;
541
542   -v | -verbose | --verbose | --verbos | --verbo | --verb)
543     verbose=yes ;;
544
545   -version | --version | --versio | --versi | --vers | -V)
546     ac_init_version=: ;;
547
548   -with-* | --with-*)
549     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid package name: $ac_package" >&2
553    { (exit 1); exit 1; }; }
554     ac_package=`echo $ac_package| sed 's/-/_/g'`
555     case $ac_option in
556       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557       *) ac_optarg=yes ;;
558     esac
559     eval "with_$ac_package='$ac_optarg'" ;;
560
561   -without-* | --without-*)
562     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid package name: $ac_package" >&2
566    { (exit 1); exit 1; }; }
567     ac_package=`echo $ac_package | sed 's/-/_/g'`
568     eval "with_$ac_package=no" ;;
569
570   --x)
571     # Obsolete; use --with-x.
572     with_x=yes ;;
573
574   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575   | --x-incl | --x-inc | --x-in | --x-i)
576     ac_prev=x_includes ;;
577   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579     x_includes=$ac_optarg ;;
580
581   -x-libraries | --x-libraries | --x-librarie | --x-librari \
582   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583     ac_prev=x_libraries ;;
584   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586     x_libraries=$ac_optarg ;;
587
588   -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590    { (exit 1); exit 1; }; }
591     ;;
592
593   *=*)
594     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595     # Reject names that are not valid shell variable names.
596     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598    { (exit 1); exit 1; }; }
599     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600     eval "$ac_envvar='$ac_optarg'"
601     export $ac_envvar ;;
602
603   *)
604     # FIXME: should be removed in autoconf 3.0.
605     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609     ;;
610
611   esac
612 done
613
614 if test -n "$ac_prev"; then
615   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616   { echo "$as_me: error: missing argument to $ac_option" >&2
617    { (exit 1); exit 1; }; }
618 fi
619
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
622 do
623   eval ac_val=$`echo $ac_var`
624   case $ac_val in
625     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627    { (exit 1); exit 1; }; };;
628   esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633               localstatedir libdir includedir oldincludedir infodir mandir
634 do
635   eval ac_val=$`echo $ac_var`
636   case $ac_val in
637     [\\/$]* | ?:[\\/]* ) ;;
638     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639    { (exit 1); exit 1; }; };;
640   esac
641 done
642
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
649
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652   if test "x$build_alias" = x; then
653     cross_compiling=maybe
654     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655     If a cross compiler is detected then cross compile mode will be used." >&2
656   elif test "x$build_alias" != "x$host_alias"; then
657     cross_compiling=yes
658   fi
659 fi
660
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664 test "$silent" = yes && exec 6>/dev/null
665
666
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669   ac_srcdir_defaulted=yes
670   # Try the directory containing this script, then its parent.
671   ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673          X"$0" : 'X\(//\)[^/]' \| \
674          X"$0" : 'X\(//\)$' \| \
675          X"$0" : 'X\(/\)' \| \
676          .     : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680           /^X\(\/\/\)$/{ s//\1/; q; }
681           /^X\(\/\).*/{ s//\1/; q; }
682           s/.*/./; q'`
683   srcdir=$ac_confdir
684   if test ! -r $srcdir/$ac_unique_file; then
685     srcdir=..
686   fi
687 else
688   ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691   if test "$ac_srcdir_defaulted" = yes; then
692     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693    { (exit 1); exit 1; }; }
694   else
695     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696    { (exit 1); exit 1; }; }
697   fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701    { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715 ac_env_CC_set=${CC+set}
716 ac_env_CC_value=$CC
717 ac_cv_env_CC_set=${CC+set}
718 ac_cv_env_CC_value=$CC
719 ac_env_CFLAGS_set=${CFLAGS+set}
720 ac_env_CFLAGS_value=$CFLAGS
721 ac_cv_env_CFLAGS_set=${CFLAGS+set}
722 ac_cv_env_CFLAGS_value=$CFLAGS
723 ac_env_LDFLAGS_set=${LDFLAGS+set}
724 ac_env_LDFLAGS_value=$LDFLAGS
725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_cv_env_LDFLAGS_value=$LDFLAGS
727 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728 ac_env_CPPFLAGS_value=$CPPFLAGS
729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731 ac_env_CPP_set=${CPP+set}
732 ac_env_CPP_value=$CPP
733 ac_cv_env_CPP_set=${CPP+set}
734 ac_cv_env_CPP_value=$CPP
735
736 #
737 # Report the --help message.
738 #
739 if test "$ac_init_help" = "long"; then
740   # Omit some internal or obsolete options to make the list less imposing.
741   # This message is too long to be a string in the A/UX 3.1 sh.
742   cat <<_ACEOF
743 \`configure' configures this package to adapt to many kinds of systems.
744
745 Usage: $0 [OPTION]... [VAR=VALUE]...
746
747 To assign environment variables (e.g., CC, CFLAGS...), specify them as
748 VAR=VALUE.  See below for descriptions of some of the useful variables.
749
750 Defaults for the options are specified in brackets.
751
752 Configuration:
753   -h, --help              display this help and exit
754       --help=short        display options specific to this package
755       --help=recursive    display the short help of all the included packages
756   -V, --version           display version information and exit
757   -q, --quiet, --silent   do not print \`checking...' messages
758       --cache-file=FILE   cache test results in FILE [disabled]
759   -C, --config-cache      alias for \`--cache-file=config.cache'
760   -n, --no-create         do not create output files
761       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
762
763 _ACEOF
764
765   cat <<_ACEOF
766 Installation directories:
767   --prefix=PREFIX         install architecture-independent files in PREFIX
768                           [$ac_default_prefix]
769   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
770                           [PREFIX]
771
772 By default, \`make install' will install all the files in
773 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
774 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
775 for instance \`--prefix=\$HOME'.
776
777 For better control, use the options below.
778
779 Fine tuning of the installation directories:
780   --bindir=DIR           user executables [EPREFIX/bin]
781   --sbindir=DIR          system admin executables [EPREFIX/sbin]
782   --libexecdir=DIR       program executables [EPREFIX/libexec]
783   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
784   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
785   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
786   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
787   --libdir=DIR           object code libraries [EPREFIX/lib]
788   --includedir=DIR       C header files [PREFIX/include]
789   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
790   --infodir=DIR          info documentation [PREFIX/info]
791   --mandir=DIR           man documentation [PREFIX/man]
792 _ACEOF
793
794   cat <<\_ACEOF
795
796 X features:
797   --x-includes=DIR    X include files are in DIR
798   --x-libraries=DIR   X library files are in DIR
799
800 System types:
801   --build=BUILD     configure for building on BUILD [guessed]
802   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
803 _ACEOF
804 fi
805
806 if test -n "$ac_init_help"; then
807
808   cat <<\_ACEOF
809
810 Optional Packages:
811   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
812   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
813   --with-x                use the X Window System
814
815 Some influential environment variables:
816   CC          C compiler command
817   CFLAGS      C compiler flags
818   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
819               nonstandard directory <lib dir>
820   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
821               headers in a nonstandard directory <include dir>
822   CPP         C preprocessor
823
824 Use these variables to override the choices made by `configure' or to help
825 it to find libraries and programs with nonstandard names/locations.
826
827 _ACEOF
828 fi
829
830 if test "$ac_init_help" = "recursive"; then
831   # If there are subdirs, report their specific --help.
832   ac_popdir=`pwd`
833   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
834     test -d $ac_dir || continue
835     ac_builddir=.
836
837 if test "$ac_dir" != .; then
838   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
839   # A "../" for each directory in $ac_dir_suffix.
840   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
841 else
842   ac_dir_suffix= ac_top_builddir=
843 fi
844
845 case $srcdir in
846   .)  # No --srcdir option.  We are building in place.
847     ac_srcdir=.
848     if test -z "$ac_top_builddir"; then
849        ac_top_srcdir=.
850     else
851        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
852     fi ;;
853   [\\/]* | ?:[\\/]* )  # Absolute path.
854     ac_srcdir=$srcdir$ac_dir_suffix;
855     ac_top_srcdir=$srcdir ;;
856   *) # Relative path.
857     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
858     ac_top_srcdir=$ac_top_builddir$srcdir ;;
859 esac
860 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
861 # absolute.
862 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
863 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
864 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
865 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
866
867     cd $ac_dir
868     # Check for guested configure; otherwise get Cygnus style configure.
869     if test -f $ac_srcdir/configure.gnu; then
870       echo
871       $SHELL $ac_srcdir/configure.gnu  --help=recursive
872     elif test -f $ac_srcdir/configure; then
873       echo
874       $SHELL $ac_srcdir/configure  --help=recursive
875     elif test -f $ac_srcdir/configure.ac ||
876            test -f $ac_srcdir/configure.in; then
877       echo
878       $ac_configure --help
879     else
880       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
881     fi
882     cd $ac_popdir
883   done
884 fi
885
886 test -n "$ac_init_help" && exit 0
887 if $ac_init_version; then
888   cat <<\_ACEOF
889
890 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
891 Free Software Foundation, Inc.
892 This configure script is free software; the Free Software Foundation
893 gives unlimited permission to copy, distribute and modify it.
894 _ACEOF
895   exit 0
896 fi
897 exec 5>config.log
898 cat >&5 <<_ACEOF
899 This file contains any messages produced by compilers while
900 running configure, to aid debugging if configure makes a mistake.
901
902 It was created by $as_me, which was
903 generated by GNU Autoconf 2.57.  Invocation command line was
904
905   $ $0 $@
906
907 _ACEOF
908 {
909 cat <<_ASUNAME
910 ## --------- ##
911 ## Platform. ##
912 ## --------- ##
913
914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
919
920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
921 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
922
923 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
924 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
926 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
927 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
928 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
929 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
930
931 _ASUNAME
932
933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
934 for as_dir in $PATH
935 do
936   IFS=$as_save_IFS
937   test -z "$as_dir" && as_dir=.
938   echo "PATH: $as_dir"
939 done
940
941 } >&5
942
943 cat >&5 <<_ACEOF
944
945
946 ## ----------- ##
947 ## Core tests. ##
948 ## ----------- ##
949
950 _ACEOF
951
952
953 # Keep a trace of the command line.
954 # Strip out --no-create and --no-recursion so they do not pile up.
955 # Strip out --silent because we don't want to record it for future runs.
956 # Also quote any args containing shell meta-characters.
957 # Make two passes to allow for proper duplicate-argument suppression.
958 ac_configure_args=
959 ac_configure_args0=
960 ac_configure_args1=
961 ac_sep=
962 ac_must_keep_next=false
963 for ac_pass in 1 2
964 do
965   for ac_arg
966   do
967     case $ac_arg in
968     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
969     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
970     | -silent | --silent | --silen | --sile | --sil)
971       continue ;;
972     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
973       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
974     esac
975     case $ac_pass in
976     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
977     2)
978       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
979       if test $ac_must_keep_next = true; then
980         ac_must_keep_next=false # Got value, back to normal.
981       else
982         case $ac_arg in
983           *=* | --config-cache | -C | -disable-* | --disable-* \
984           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
985           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
986           | -with-* | --with-* | -without-* | --without-* | --x)
987             case "$ac_configure_args0 " in
988               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
989             esac
990             ;;
991           -* ) ac_must_keep_next=true ;;
992         esac
993       fi
994       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
995       # Get rid of the leading space.
996       ac_sep=" "
997       ;;
998     esac
999   done
1000 done
1001 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1002 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1003
1004 # When interrupted or exit'd, cleanup temporary files, and complete
1005 # config.log.  We remove comments because anyway the quotes in there
1006 # would cause problems or look ugly.
1007 # WARNING: Be sure not to use single quotes in there, as some shells,
1008 # such as our DU 5.0 friend, will then `close' the trap.
1009 trap 'exit_status=$?
1010   # Save into config.log some information that might help in debugging.
1011   {
1012     echo
1013
1014     cat <<\_ASBOX
1015 ## ---------------- ##
1016 ## Cache variables. ##
1017 ## ---------------- ##
1018 _ASBOX
1019     echo
1020     # The following way of writing the cache mishandles newlines in values,
1021 {
1022   (set) 2>&1 |
1023     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1024     *ac_space=\ *)
1025       sed -n \
1026         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1028       ;;
1029     *)
1030       sed -n \
1031         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1032       ;;
1033     esac;
1034 }
1035     echo
1036
1037     cat <<\_ASBOX
1038 ## ----------------- ##
1039 ## Output variables. ##
1040 ## ----------------- ##
1041 _ASBOX
1042     echo
1043     for ac_var in $ac_subst_vars
1044     do
1045       eval ac_val=$`echo $ac_var`
1046       echo "$ac_var='"'"'$ac_val'"'"'"
1047     done | sort
1048     echo
1049
1050     if test -n "$ac_subst_files"; then
1051       cat <<\_ASBOX
1052 ## ------------- ##
1053 ## Output files. ##
1054 ## ------------- ##
1055 _ASBOX
1056       echo
1057       for ac_var in $ac_subst_files
1058       do
1059         eval ac_val=$`echo $ac_var`
1060         echo "$ac_var='"'"'$ac_val'"'"'"
1061       done | sort
1062       echo
1063     fi
1064
1065     if test -s confdefs.h; then
1066       cat <<\_ASBOX
1067 ## ----------- ##
1068 ## confdefs.h. ##
1069 ## ----------- ##
1070 _ASBOX
1071       echo
1072       sed "/^$/d" confdefs.h | sort
1073       echo
1074     fi
1075     test "$ac_signal" != 0 &&
1076       echo "$as_me: caught signal $ac_signal"
1077     echo "$as_me: exit $exit_status"
1078   } >&5
1079   rm -f core core.* *.core &&
1080   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1081     exit $exit_status
1082      ' 0
1083 for ac_signal in 1 2 13 15; do
1084   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1085 done
1086 ac_signal=0
1087
1088 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1089 rm -rf conftest* confdefs.h
1090 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1091 echo >confdefs.h
1092
1093 # Predefined preprocessor variables.
1094
1095 cat >>confdefs.h <<_ACEOF
1096 #define PACKAGE_NAME "$PACKAGE_NAME"
1097 _ACEOF
1098
1099
1100 cat >>confdefs.h <<_ACEOF
1101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1102 _ACEOF
1103
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_STRING "$PACKAGE_STRING"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1117 _ACEOF
1118
1119
1120 # Let the site file select an alternate cache file if it wants to.
1121 # Prefer explicitly selected file to automatically selected ones.
1122 if test -z "$CONFIG_SITE"; then
1123   if test "x$prefix" != xNONE; then
1124     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1125   else
1126     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1127   fi
1128 fi
1129 for ac_site_file in $CONFIG_SITE; do
1130   if test -r "$ac_site_file"; then
1131     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1132 echo "$as_me: loading site script $ac_site_file" >&6;}
1133     sed 's/^/| /' "$ac_site_file" >&5
1134     . "$ac_site_file"
1135   fi
1136 done
1137
1138 if test -r "$cache_file"; then
1139   # Some versions of bash will fail to source /dev/null (special
1140   # files actually), so we avoid doing that.
1141   if test -f "$cache_file"; then
1142     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1143 echo "$as_me: loading cache $cache_file" >&6;}
1144     case $cache_file in
1145       [\\/]* | ?:[\\/]* ) . $cache_file;;
1146       *)                      . ./$cache_file;;
1147     esac
1148   fi
1149 else
1150   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1151 echo "$as_me: creating cache $cache_file" >&6;}
1152   >$cache_file
1153 fi
1154
1155 # Check that the precious variables saved in the cache have kept the same
1156 # value.
1157 ac_cache_corrupted=false
1158 for ac_var in `(set) 2>&1 |
1159                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1160   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1161   eval ac_new_set=\$ac_env_${ac_var}_set
1162   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1163   eval ac_new_val="\$ac_env_${ac_var}_value"
1164   case $ac_old_set,$ac_new_set in
1165     set,)
1166       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1167 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1168       ac_cache_corrupted=: ;;
1169     ,set)
1170       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1171 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1172       ac_cache_corrupted=: ;;
1173     ,);;
1174     *)
1175       if test "x$ac_old_val" != "x$ac_new_val"; then
1176         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1177 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1178         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1179 echo "$as_me:   former value:  $ac_old_val" >&2;}
1180         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1181 echo "$as_me:   current value: $ac_new_val" >&2;}
1182         ac_cache_corrupted=:
1183       fi;;
1184   esac
1185   # Pass precious variables to config.status.
1186   if test "$ac_new_set" = set; then
1187     case $ac_new_val in
1188     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1189       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1190     *) ac_arg=$ac_var=$ac_new_val ;;
1191     esac
1192     case " $ac_configure_args " in
1193       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1194       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1195     esac
1196   fi
1197 done
1198 if $ac_cache_corrupted; then
1199   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1200 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1201   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1202 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1203    { (exit 1); exit 1; }; }
1204 fi
1205
1206 ac_ext=c
1207 ac_cpp='$CPP $CPPFLAGS'
1208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231 PRODUCT=fparser
1232
1233 #
1234 # check cannonical system name
1235 #
1236 ac_aux_dir=
1237 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1238   if test -f $ac_dir/install-sh; then
1239     ac_aux_dir=$ac_dir
1240     ac_install_sh="$ac_aux_dir/install-sh -c"
1241     break
1242   elif test -f $ac_dir/install.sh; then
1243     ac_aux_dir=$ac_dir
1244     ac_install_sh="$ac_aux_dir/install.sh -c"
1245     break
1246   elif test -f $ac_dir/shtool; then
1247     ac_aux_dir=$ac_dir
1248     ac_install_sh="$ac_aux_dir/shtool install -c"
1249     break
1250   fi
1251 done
1252 if test -z "$ac_aux_dir"; then
1253   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1254 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1255    { (exit 1); exit 1; }; }
1256 fi
1257 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1258 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1259 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1260
1261 # Make sure we can run config.sub.
1262 $ac_config_sub sun4 >/dev/null 2>&1 ||
1263   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1264 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1265    { (exit 1); exit 1; }; }
1266
1267 echo "$as_me:$LINENO: checking build system type" >&5
1268 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1269 if test "${ac_cv_build+set}" = set; then
1270   echo $ECHO_N "(cached) $ECHO_C" >&6
1271 else
1272   ac_cv_build_alias=$build_alias
1273 test -z "$ac_cv_build_alias" &&
1274   ac_cv_build_alias=`$ac_config_guess`
1275 test -z "$ac_cv_build_alias" &&
1276   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1277 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1278    { (exit 1); exit 1; }; }
1279 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1280   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1281 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1282    { (exit 1); exit 1; }; }
1283
1284 fi
1285 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1286 echo "${ECHO_T}$ac_cv_build" >&6
1287 build=$ac_cv_build
1288 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1289 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1290 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1291
1292
1293 echo "$as_me:$LINENO: checking host system type" >&5
1294 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1295 if test "${ac_cv_host+set}" = set; then
1296   echo $ECHO_N "(cached) $ECHO_C" >&6
1297 else
1298   ac_cv_host_alias=$host_alias
1299 test -z "$ac_cv_host_alias" &&
1300   ac_cv_host_alias=$ac_cv_build_alias
1301 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1302   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1303 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1304    { (exit 1); exit 1; }; }
1305
1306 fi
1307 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1308 echo "${ECHO_T}$ac_cv_host" >&6
1309 host=$ac_cv_host
1310 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1311 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1312 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1313
1314
1315 case "$host" in
1316 *-linux-gnu )  cat >>confdefs.h <<\_ACEOF
1317 #define LINUX 1
1318 _ACEOF
1319  ;;
1320      *-aix* )  cat >>confdefs.h <<\_ACEOF
1321 #define AIX 1
1322 _ACEOF
1323  ;;
1324           * )  cat >>confdefs.h <<\_ACEOF
1325 #define UNIX 1
1326 _ACEOF
1327  ;;
1328 esac
1329
1330 #
1331 # check C compiler, preprocesor, etc.
1332 #
1333 ac_ext=c
1334 ac_cpp='$CPP $CPPFLAGS'
1335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 if test -n "$ac_tool_prefix"; then
1339   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1341 echo "$as_me:$LINENO: checking for $ac_word" >&5
1342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1343 if test "${ac_cv_prog_CC+set}" = set; then
1344   echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346   if test -n "$CC"; then
1347   ac_cv_prog_CC="$CC" # Let the user override the test.
1348 else
1349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1350 for as_dir in $PATH
1351 do
1352   IFS=$as_save_IFS
1353   test -z "$as_dir" && as_dir=.
1354   for ac_exec_ext in '' $ac_executable_extensions; do
1355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1356     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1358     break 2
1359   fi
1360 done
1361 done
1362
1363 fi
1364 fi
1365 CC=$ac_cv_prog_CC
1366 if test -n "$CC"; then
1367   echo "$as_me:$LINENO: result: $CC" >&5
1368 echo "${ECHO_T}$CC" >&6
1369 else
1370   echo "$as_me:$LINENO: result: no" >&5
1371 echo "${ECHO_T}no" >&6
1372 fi
1373
1374 fi
1375 if test -z "$ac_cv_prog_CC"; then
1376   ac_ct_CC=$CC
1377   # Extract the first word of "gcc", so it can be a program name with args.
1378 set dummy gcc; ac_word=$2
1379 echo "$as_me:$LINENO: checking for $ac_word" >&5
1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1382   echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384   if test -n "$ac_ct_CC"; then
1385   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1386 else
1387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 for as_dir in $PATH
1389 do
1390   IFS=$as_save_IFS
1391   test -z "$as_dir" && as_dir=.
1392   for ac_exec_ext in '' $ac_executable_extensions; do
1393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1394     ac_cv_prog_ac_ct_CC="gcc"
1395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1396     break 2
1397   fi
1398 done
1399 done
1400
1401 fi
1402 fi
1403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1404 if test -n "$ac_ct_CC"; then
1405   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1406 echo "${ECHO_T}$ac_ct_CC" >&6
1407 else
1408   echo "$as_me:$LINENO: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1410 fi
1411
1412   CC=$ac_ct_CC
1413 else
1414   CC="$ac_cv_prog_CC"
1415 fi
1416
1417 if test -z "$CC"; then
1418   if test -n "$ac_tool_prefix"; then
1419   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1420 set dummy ${ac_tool_prefix}cc; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_CC+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   if test -n "$CC"; then
1427   ac_cv_prog_CC="$CC" # Let the user override the test.
1428 else
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1431 do
1432   IFS=$as_save_IFS
1433   test -z "$as_dir" && as_dir=.
1434   for ac_exec_ext in '' $ac_executable_extensions; do
1435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436     ac_cv_prog_CC="${ac_tool_prefix}cc"
1437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438     break 2
1439   fi
1440 done
1441 done
1442
1443 fi
1444 fi
1445 CC=$ac_cv_prog_CC
1446 if test -n "$CC"; then
1447   echo "$as_me:$LINENO: result: $CC" >&5
1448 echo "${ECHO_T}$CC" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454 fi
1455 if test -z "$ac_cv_prog_CC"; then
1456   ac_ct_CC=$CC
1457   # Extract the first word of "cc", so it can be a program name with args.
1458 set dummy cc; ac_word=$2
1459 echo "$as_me:$LINENO: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1462   echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464   if test -n "$ac_ct_CC"; then
1465   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1466 else
1467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 for as_dir in $PATH
1469 do
1470   IFS=$as_save_IFS
1471   test -z "$as_dir" && as_dir=.
1472   for ac_exec_ext in '' $ac_executable_extensions; do
1473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474     ac_cv_prog_ac_ct_CC="cc"
1475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476     break 2
1477   fi
1478 done
1479 done
1480
1481 fi
1482 fi
1483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1484 if test -n "$ac_ct_CC"; then
1485   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1486 echo "${ECHO_T}$ac_ct_CC" >&6
1487 else
1488   echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1490 fi
1491
1492   CC=$ac_ct_CC
1493 else
1494   CC="$ac_cv_prog_CC"
1495 fi
1496
1497 fi
1498 if test -z "$CC"; then
1499   # Extract the first word of "cc", so it can be a program name with args.
1500 set dummy cc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_CC+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   if test -n "$CC"; then
1507   ac_cv_prog_CC="$CC" # Let the user override the test.
1508 else
1509   ac_prog_rejected=no
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513   IFS=$as_save_IFS
1514   test -z "$as_dir" && as_dir=.
1515   for ac_exec_ext in '' $ac_executable_extensions; do
1516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1518        ac_prog_rejected=yes
1519        continue
1520      fi
1521     ac_cv_prog_CC="cc"
1522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523     break 2
1524   fi
1525 done
1526 done
1527
1528 if test $ac_prog_rejected = yes; then
1529   # We found a bogon in the path, so make sure we never use it.
1530   set dummy $ac_cv_prog_CC
1531   shift
1532   if test $# != 0; then
1533     # We chose a different compiler from the bogus one.
1534     # However, it has the same basename, so the bogon will be chosen
1535     # first if we set CC to just the basename; use the full file name.
1536     shift
1537     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1538   fi
1539 fi
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544   echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 fi
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   for ac_prog in cl
1555   do
1556     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_CC+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   if test -n "$CC"; then
1564   ac_cv_prog_CC="$CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   for ac_exec_ext in '' $ac_executable_extensions; do
1572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575     break 2
1576   fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 CC=$ac_cv_prog_CC
1583 if test -n "$CC"; then
1584   echo "$as_me:$LINENO: result: $CC" >&5
1585 echo "${ECHO_T}$CC" >&6
1586 else
1587   echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591     test -n "$CC" && break
1592   done
1593 fi
1594 if test -z "$CC"; then
1595   ac_ct_CC=$CC
1596   for ac_prog in cl
1597 do
1598   # Extract the first word of "$ac_prog", so it can be a program name with args.
1599 set dummy $ac_prog; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$ac_ct_CC"; then
1606   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1607 else
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     ac_cv_prog_ac_ct_CC="$ac_prog"
1616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617     break 2
1618   fi
1619 done
1620 done
1621
1622 fi
1623 fi
1624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1625 if test -n "$ac_ct_CC"; then
1626   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1627 echo "${ECHO_T}$ac_ct_CC" >&6
1628 else
1629   echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1631 fi
1632
1633   test -n "$ac_ct_CC" && break
1634 done
1635
1636   CC=$ac_ct_CC
1637 fi
1638
1639 fi
1640
1641
1642 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1643 See \`config.log' for more details." >&5
1644 echo "$as_me: error: no acceptable C compiler found in \$PATH
1645 See \`config.log' for more details." >&2;}
1646    { (exit 1); exit 1; }; }
1647
1648 # Provide some information about the compiler.
1649 echo "$as_me:$LINENO:" \
1650      "checking for C compiler version" >&5
1651 ac_compiler=`set X $ac_compile; echo $2`
1652 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1653   (eval $ac_compiler --version </dev/null >&5) 2>&5
1654   ac_status=$?
1655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1656   (exit $ac_status); }
1657 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1658   (eval $ac_compiler -v </dev/null >&5) 2>&5
1659   ac_status=$?
1660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661   (exit $ac_status); }
1662 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1663   (eval $ac_compiler -V </dev/null >&5) 2>&5
1664   ac_status=$?
1665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666   (exit $ac_status); }
1667
1668 cat >conftest.$ac_ext <<_ACEOF
1669 #line $LINENO "configure"
1670 /* confdefs.h.  */
1671 _ACEOF
1672 cat confdefs.h >>conftest.$ac_ext
1673 cat >>conftest.$ac_ext <<_ACEOF
1674 /* end confdefs.h.  */
1675
1676 int
1677 main ()
1678 {
1679
1680   ;
1681   return 0;
1682 }
1683 _ACEOF
1684 ac_clean_files_save=$ac_clean_files
1685 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1686 # Try to create an executable without -o first, disregard a.out.
1687 # It will help us diagnose broken compilers, and finding out an intuition
1688 # of exeext.
1689 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1690 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1691 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1692 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1693   (eval $ac_link_default) 2>&5
1694   ac_status=$?
1695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696   (exit $ac_status); }; then
1697   # Find the output, starting from the most likely.  This scheme is
1698 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1699 # resort.
1700
1701 # Be careful to initialize this variable, since it used to be cached.
1702 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1703 ac_cv_exeext=
1704 # b.out is created by i960 compilers.
1705 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1706 do
1707   test -f "$ac_file" || continue
1708   case $ac_file in
1709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1710         ;;
1711     conftest.$ac_ext )
1712         # This is the source file.
1713         ;;
1714     [ab].out )
1715         # We found the default executable, but exeext='' is most
1716         # certainly right.
1717         break;;
1718     *.* )
1719         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1720         # FIXME: I believe we export ac_cv_exeext for Libtool,
1721         # but it would be cool to find out if it's true.  Does anybody
1722         # maintain Libtool? --akim.
1723         export ac_cv_exeext
1724         break;;
1725     * )
1726         break;;
1727   esac
1728 done
1729 else
1730   echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1734 See \`config.log' for more details." >&5
1735 echo "$as_me: error: C compiler cannot create executables
1736 See \`config.log' for more details." >&2;}
1737    { (exit 77); exit 77; }; }
1738 fi
1739
1740 ac_exeext=$ac_cv_exeext
1741 echo "$as_me:$LINENO: result: $ac_file" >&5
1742 echo "${ECHO_T}$ac_file" >&6
1743
1744 # Check the compiler produces executables we can run.  If not, either
1745 # the compiler is broken, or we cross compile.
1746 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1747 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1748 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1749 # If not cross compiling, check that we can run a simple program.
1750 if test "$cross_compiling" != yes; then
1751   if { ac_try='./$ac_file'
1752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1753   (eval $ac_try) 2>&5
1754   ac_status=$?
1755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756   (exit $ac_status); }; }; then
1757     cross_compiling=no
1758   else
1759     if test "$cross_compiling" = maybe; then
1760         cross_compiling=yes
1761     else
1762         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1763 If you meant to cross compile, use \`--host'.
1764 See \`config.log' for more details." >&5
1765 echo "$as_me: error: cannot run C compiled programs.
1766 If you meant to cross compile, use \`--host'.
1767 See \`config.log' for more details." >&2;}
1768    { (exit 1); exit 1; }; }
1769     fi
1770   fi
1771 fi
1772 echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1774
1775 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1776 ac_clean_files=$ac_clean_files_save
1777 # Check the compiler produces executables we can run.  If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1780 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1781 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1782 echo "${ECHO_T}$cross_compiling" >&6
1783
1784 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1785 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1787   (eval $ac_link) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }; then
1791   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1792 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1793 # work properly (i.e., refer to `conftest.exe'), while it won't with
1794 # `rm'.
1795 for ac_file in conftest.exe conftest conftest.*; do
1796   test -f "$ac_file" || continue
1797   case $ac_file in
1798     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1799     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1800           export ac_cv_exeext
1801           break;;
1802     * ) break;;
1803   esac
1804 done
1805 else
1806   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1807 See \`config.log' for more details." >&5
1808 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1809 See \`config.log' for more details." >&2;}
1810    { (exit 1); exit 1; }; }
1811 fi
1812
1813 rm -f conftest$ac_cv_exeext
1814 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1815 echo "${ECHO_T}$ac_cv_exeext" >&6
1816
1817 rm -f conftest.$ac_ext
1818 EXEEXT=$ac_cv_exeext
1819 ac_exeext=$EXEEXT
1820 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1821 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1822 if test "${ac_cv_objext+set}" = set; then
1823   echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825   cat >conftest.$ac_ext <<_ACEOF
1826 #line $LINENO "configure"
1827 /* confdefs.h.  */
1828 _ACEOF
1829 cat confdefs.h >>conftest.$ac_ext
1830 cat >>conftest.$ac_ext <<_ACEOF
1831 /* end confdefs.h.  */
1832
1833 int
1834 main ()
1835 {
1836
1837   ;
1838   return 0;
1839 }
1840 _ACEOF
1841 rm -f conftest.o conftest.obj
1842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1843   (eval $ac_compile) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }; then
1847   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1848   case $ac_file in
1849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1850     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851        break;;
1852   esac
1853 done
1854 else
1855   echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1861 See \`config.log' for more details." >&2;}
1862    { (exit 1); exit 1; }; }
1863 fi
1864
1865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1866 fi
1867 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1868 echo "${ECHO_T}$ac_cv_objext" >&6
1869 OBJEXT=$ac_cv_objext
1870 ac_objext=$OBJEXT
1871 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   cat >conftest.$ac_ext <<_ACEOF
1877 #line $LINENO "configure"
1878 /* confdefs.h.  */
1879 _ACEOF
1880 cat confdefs.h >>conftest.$ac_ext
1881 cat >>conftest.$ac_ext <<_ACEOF
1882 /* end confdefs.h.  */
1883
1884 int
1885 main ()
1886 {
1887 #ifndef __GNUC__
1888        choke me
1889 #endif
1890
1891   ;
1892   return 0;
1893 }
1894 _ACEOF
1895 rm -f conftest.$ac_objext
1896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1897   (eval $ac_compile) 2>&5
1898   ac_status=$?
1899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900   (exit $ac_status); } &&
1901          { ac_try='test -s conftest.$ac_objext'
1902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1903   (eval $ac_try) 2>&5
1904   ac_status=$?
1905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906   (exit $ac_status); }; }; then
1907   ac_compiler_gnu=yes
1908 else
1909   echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_compiler_gnu=no
1913 fi
1914 rm -f conftest.$ac_objext conftest.$ac_ext
1915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1916
1917 fi
1918 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1920 GCC=`test $ac_compiler_gnu = yes && echo yes`
1921 ac_test_CFLAGS=${CFLAGS+set}
1922 ac_save_CFLAGS=$CFLAGS
1923 CFLAGS="-g"
1924 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1925 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1926 if test "${ac_cv_prog_cc_g+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   cat >conftest.$ac_ext <<_ACEOF
1930 #line $LINENO "configure"
1931 /* confdefs.h.  */
1932 _ACEOF
1933 cat confdefs.h >>conftest.$ac_ext
1934 cat >>conftest.$ac_ext <<_ACEOF
1935 /* end confdefs.h.  */
1936
1937 int
1938 main ()
1939 {
1940
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 rm -f conftest.$ac_objext
1946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947   (eval $ac_compile) 2>&5
1948   ac_status=$?
1949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950   (exit $ac_status); } &&
1951          { ac_try='test -s conftest.$ac_objext'
1952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953   (eval $ac_try) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }; }; then
1957   ac_cv_prog_cc_g=yes
1958 else
1959   echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_cv_prog_cc_g=no
1963 fi
1964 rm -f conftest.$ac_objext conftest.$ac_ext
1965 fi
1966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1968 if test "$ac_test_CFLAGS" = set; then
1969   CFLAGS=$ac_save_CFLAGS
1970 elif test $ac_cv_prog_cc_g = yes; then
1971   if test "$GCC" = yes; then
1972     CFLAGS="-g -O2"
1973   else
1974     CFLAGS="-g"
1975   fi
1976 else
1977   if test "$GCC" = yes; then
1978     CFLAGS="-O2"
1979   else
1980     CFLAGS=
1981   fi
1982 fi
1983 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1984 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1985 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   ac_cv_prog_cc_stdc=no
1989 ac_save_CC=$CC
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line $LINENO "configure"
1992 /* confdefs.h.  */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h.  */
1997 #include <stdarg.h>
1998 #include <stdio.h>
1999 #include <sys/types.h>
2000 #include <sys/stat.h>
2001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2002 struct buf { int x; };
2003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2004 static char *e (p, i)
2005      char **p;
2006      int i;
2007 {
2008   return p[i];
2009 }
2010 static char *f (char * (*g) (char **, int), char **p, ...)
2011 {
2012   char *s;
2013   va_list v;
2014   va_start (v,p);
2015   s = g (p, va_arg (v,int));
2016   va_end (v);
2017   return s;
2018 }
2019 int test (int i, double x);
2020 struct s1 {int (*f) (int a);};
2021 struct s2 {int (*f) (double a);};
2022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2023 int argc;
2024 char **argv;
2025 int
2026 main ()
2027 {
2028 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 # Don't try gcc -ansi; that turns off useful extensions and
2034 # breaks some systems' header files.
2035 # AIX                   -qlanglvl=ansi
2036 # Ultrix and OSF/1      -std1
2037 # HP-UX 10.20 and later -Ae
2038 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2039 # SVR4                  -Xc -D__EXTENSIONS__
2040 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2041 do
2042   CC="$ac_save_CC $ac_arg"
2043   rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045   (eval $ac_compile) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); } &&
2049          { ac_try='test -s conftest.$ac_objext'
2050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051   (eval $ac_try) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; }; then
2055   ac_cv_prog_cc_stdc=$ac_arg
2056 break
2057 else
2058   echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 fi
2062 rm -f conftest.$ac_objext
2063 done
2064 rm -f conftest.$ac_ext conftest.$ac_objext
2065 CC=$ac_save_CC
2066
2067 fi
2068
2069 case "x$ac_cv_prog_cc_stdc" in
2070   x|xno)
2071     echo "$as_me:$LINENO: result: none needed" >&5
2072 echo "${ECHO_T}none needed" >&6 ;;
2073   *)
2074     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2075 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2076     CC="$CC $ac_cv_prog_cc_stdc" ;;
2077 esac
2078
2079 # Some people use a C++ compiler to compile C.  Since we use `exit',
2080 # in C++ we need to declare it.  In case someone uses the same compiler
2081 # for both compiling C and C++ we need to have the C++ compiler decide
2082 # the declaration of exit, since it's the most demanding environment.
2083 cat >conftest.$ac_ext <<_ACEOF
2084 #ifndef __cplusplus
2085   choke me
2086 #endif
2087 _ACEOF
2088 rm -f conftest.$ac_objext
2089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090   (eval $ac_compile) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); } &&
2094          { ac_try='test -s conftest.$ac_objext'
2095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096   (eval $ac_try) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; }; then
2100   for ac_declaration in \
2101    ''\
2102    '#include <stdlib.h>' \
2103    'extern "C" void std::exit (int) throw (); using std::exit;' \
2104    'extern "C" void std::exit (int); using std::exit;' \
2105    'extern "C" void exit (int) throw ();' \
2106    'extern "C" void exit (int);' \
2107    'void exit (int);'
2108 do
2109   cat >conftest.$ac_ext <<_ACEOF
2110 #line $LINENO "configure"
2111 /* confdefs.h.  */
2112 _ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h.  */
2116 #include <stdlib.h>
2117 $ac_declaration
2118 int
2119 main ()
2120 {
2121 exit (42);
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128   (eval $ac_compile) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); } &&
2132          { ac_try='test -s conftest.$ac_objext'
2133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134   (eval $ac_try) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }; }; then
2138   :
2139 else
2140   echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 continue
2144 fi
2145 rm -f conftest.$ac_objext conftest.$ac_ext
2146   cat >conftest.$ac_ext <<_ACEOF
2147 #line $LINENO "configure"
2148 /* confdefs.h.  */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h.  */
2153 $ac_declaration
2154 int
2155 main ()
2156 {
2157 exit (42);
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164   (eval $ac_compile) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); } &&
2168          { ac_try='test -s conftest.$ac_objext'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; }; then
2174   break
2175 else
2176   echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 fi
2180 rm -f conftest.$ac_objext conftest.$ac_ext
2181 done
2182 rm -f conftest*
2183 if test -n "$ac_declaration"; then
2184   echo '#ifdef __cplusplus' >>confdefs.h
2185   echo $ac_declaration      >>confdefs.h
2186   echo '#endif'             >>confdefs.h
2187 fi
2188
2189 else
2190   echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 fi
2194 rm -f conftest.$ac_objext conftest.$ac_ext
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200
2201 ac_ext=c
2202 ac_cpp='$CPP $CPPFLAGS'
2203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2207 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2208 # On Suns, sometimes $CPP names a directory.
2209 if test -n "$CPP" && test -d "$CPP"; then
2210   CPP=
2211 fi
2212 if test -z "$CPP"; then
2213   if test "${ac_cv_prog_CPP+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216       # Double quotes because CPP needs to be expanded
2217     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2218     do
2219       ac_preproc_ok=false
2220 for ac_c_preproc_warn_flag in '' yes
2221 do
2222   # Use a header file that comes with gcc, so configuring glibc
2223   # with a fresh cross-compiler works.
2224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2225   # <limits.h> exists even on freestanding compilers.
2226   # On the NeXT, cc -E runs the code through the compiler's parser,
2227   # not just through cpp. "Syntax error" is here to catch this case.
2228   cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2230 /* confdefs.h.  */
2231 _ACEOF
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h.  */
2235 #ifdef __STDC__
2236 # include <limits.h>
2237 #else
2238 # include <assert.h>
2239 #endif
2240                      Syntax error
2241 _ACEOF
2242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2244   ac_status=$?
2245   grep -v '^ *+' conftest.er1 >conftest.err
2246   rm -f conftest.er1
2247   cat conftest.err >&5
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); } >/dev/null; then
2250   if test -s conftest.err; then
2251     ac_cpp_err=$ac_c_preproc_warn_flag
2252   else
2253     ac_cpp_err=
2254   fi
2255 else
2256   ac_cpp_err=yes
2257 fi
2258 if test -z "$ac_cpp_err"; then
2259   :
2260 else
2261   echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264   # Broken: fails on valid input.
2265 continue
2266 fi
2267 rm -f conftest.err conftest.$ac_ext
2268
2269   # OK, works on sane cases.  Now check whether non-existent headers
2270   # can be detected and how.
2271   cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2273 /* confdefs.h.  */
2274 _ACEOF
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h.  */
2278 #include <ac_nonexistent.h>
2279 _ACEOF
2280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2282   ac_status=$?
2283   grep -v '^ *+' conftest.er1 >conftest.err
2284   rm -f conftest.er1
2285   cat conftest.err >&5
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); } >/dev/null; then
2288   if test -s conftest.err; then
2289     ac_cpp_err=$ac_c_preproc_warn_flag
2290   else
2291     ac_cpp_err=
2292   fi
2293 else
2294   ac_cpp_err=yes
2295 fi
2296 if test -z "$ac_cpp_err"; then
2297   # Broken: success on invalid input.
2298 continue
2299 else
2300   echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303   # Passes both tests.
2304 ac_preproc_ok=:
2305 break
2306 fi
2307 rm -f conftest.err conftest.$ac_ext
2308
2309 done
2310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2311 rm -f conftest.err conftest.$ac_ext
2312 if $ac_preproc_ok; then
2313   break
2314 fi
2315
2316     done
2317     ac_cv_prog_CPP=$CPP
2318
2319 fi
2320   CPP=$ac_cv_prog_CPP
2321 else
2322   ac_cv_prog_CPP=$CPP
2323 fi
2324 echo "$as_me:$LINENO: result: $CPP" >&5
2325 echo "${ECHO_T}$CPP" >&6
2326 ac_preproc_ok=false
2327 for ac_c_preproc_warn_flag in '' yes
2328 do
2329   # Use a header file that comes with gcc, so configuring glibc
2330   # with a fresh cross-compiler works.
2331   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2332   # <limits.h> exists even on freestanding compilers.
2333   # On the NeXT, cc -E runs the code through the compiler's parser,
2334   # not just through cpp. "Syntax error" is here to catch this case.
2335   cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342 #ifdef __STDC__
2343 # include <limits.h>
2344 #else
2345 # include <assert.h>
2346 #endif
2347                      Syntax error
2348 _ACEOF
2349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351   ac_status=$?
2352   grep -v '^ *+' conftest.er1 >conftest.err
2353   rm -f conftest.er1
2354   cat conftest.err >&5
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); } >/dev/null; then
2357   if test -s conftest.err; then
2358     ac_cpp_err=$ac_c_preproc_warn_flag
2359   else
2360     ac_cpp_err=
2361   fi
2362 else
2363   ac_cpp_err=yes
2364 fi
2365 if test -z "$ac_cpp_err"; then
2366   :
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371   # Broken: fails on valid input.
2372 continue
2373 fi
2374 rm -f conftest.err conftest.$ac_ext
2375
2376   # OK, works on sane cases.  Now check whether non-existent headers
2377   # can be detected and how.
2378   cat >conftest.$ac_ext <<_ACEOF
2379 #line $LINENO "configure"
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385 #include <ac_nonexistent.h>
2386 _ACEOF
2387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } >/dev/null; then
2395   if test -s conftest.err; then
2396     ac_cpp_err=$ac_c_preproc_warn_flag
2397   else
2398     ac_cpp_err=
2399   fi
2400 else
2401   ac_cpp_err=yes
2402 fi
2403 if test -z "$ac_cpp_err"; then
2404   # Broken: success on invalid input.
2405 continue
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410   # Passes both tests.
2411 ac_preproc_ok=:
2412 break
2413 fi
2414 rm -f conftest.err conftest.$ac_ext
2415
2416 done
2417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2418 rm -f conftest.err conftest.$ac_ext
2419 if $ac_preproc_ok; then
2420   :
2421 else
2422   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2425 See \`config.log' for more details." >&2;}
2426    { (exit 1); exit 1; }; }
2427 fi
2428
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434
2435 # Find a good install program.  We prefer a C program (faster),
2436 # so one script is as good as another.  But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2441 # AIX /bin/install
2442 # AmigaOS /C/install, which installs bootblocks on floppy discs
2443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446 # ./install, which can be erroneously created by make from ./install.sh.
2447 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2448 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2449 if test -z "$INSTALL"; then
2450 if test "${ac_cv_path_install+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458   # Account for people who put trailing slashes in PATH elements.
2459 case $as_dir/ in
2460   ./ | .// | /cC/* | \
2461   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462   /usr/ucb/* ) ;;
2463   *)
2464     # OSF1 and SCO ODT 3.0 have their own names for install.
2465     # Don't use installbsd from OSF since it installs stuff as root
2466     # by default.
2467     for ac_prog in ginstall scoinst install; do
2468       for ac_exec_ext in '' $ac_executable_extensions; do
2469         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2470           if test $ac_prog = install &&
2471             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2472             # AIX install.  It has an incompatible calling convention.
2473             :
2474           elif test $ac_prog = install &&
2475             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2476             # program-specific install script used by HP pwplus--don't use.
2477             :
2478           else
2479             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2480             break 3
2481           fi
2482         fi
2483       done
2484     done
2485     ;;
2486 esac
2487 done
2488
2489
2490 fi
2491   if test "${ac_cv_path_install+set}" = set; then
2492     INSTALL=$ac_cv_path_install
2493   else
2494     # As a last resort, use the slow shell script.  We don't cache a
2495     # path for INSTALL within a source directory, because that will
2496     # break other packages using the cache if that directory is
2497     # removed, or if the path is relative.
2498     INSTALL=$ac_install_sh
2499   fi
2500 fi
2501 echo "$as_me:$LINENO: result: $INSTALL" >&5
2502 echo "${ECHO_T}$INSTALL" >&6
2503
2504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2505 # It thinks the first close brace ends the variable substitution.
2506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2507
2508 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2509
2510 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2511
2512 # Extract the first word of "find", so it can be a program name with args.
2513 set dummy find; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_FIND+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$FIND"; then
2520   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529     ac_cv_prog_FIND="find"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535
2536   test -z "$ac_cv_prog_FIND" && ac_cv_prog_FIND=":"
2537 fi
2538 fi
2539 FIND=$ac_cv_prog_FIND
2540 if test -n "$FIND"; then
2541   echo "$as_me:$LINENO: result: $FIND" >&5
2542 echo "${ECHO_T}$FIND" >&6
2543 else
2544   echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2546 fi
2547
2548 # Extract the first word of "makedepend", so it can be a program name with args.
2549 set dummy makedepend; ac_word=$2
2550 echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2552 if test "${ac_cv_prog_MAKEDEPEND+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   if test -n "$MAKEDEPEND"; then
2556   ac_cv_prog_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561   IFS=$as_save_IFS
2562   test -z "$as_dir" && as_dir=.
2563   for ac_exec_ext in '' $ac_executable_extensions; do
2564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565     ac_cv_prog_MAKEDEPEND="makedepend"
2566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567     break 2
2568   fi
2569 done
2570 done
2571
2572   test -z "$ac_cv_prog_MAKEDEPEND" && ac_cv_prog_MAKEDEPEND=":"
2573 fi
2574 fi
2575 MAKEDEPEND=$ac_cv_prog_MAKEDEPEND
2576 if test -n "$MAKEDEPEND"; then
2577   echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2578 echo "${ECHO_T}$MAKEDEPEND" >&6
2579 else
2580   echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2582 fi
2583
2584
2585 #
2586 # Try to locate the X Window System include files and libraries
2587 # and add /usr/local to include and lib path and add -lm (for testing)
2588 #
2589
2590
2591 echo "$as_me:$LINENO: checking for X" >&5
2592 echo $ECHO_N "checking for X... $ECHO_C" >&6
2593
2594
2595 # Check whether --with-x or --without-x was given.
2596 if test "${with_x+set}" = set; then
2597   withval="$with_x"
2598
2599 fi;
2600 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2601 if test "x$with_x" = xno; then
2602   # The user explicitly disabled X.
2603   have_x=disabled
2604 else
2605   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2606     # Both variables are already set.
2607     have_x=yes
2608   else
2609     if test "${ac_cv_have_x+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   # One or both of the vars are not set, and there is no cached value.
2613 ac_x_includes=no ac_x_libraries=no
2614 rm -fr conftest.dir
2615 if mkdir conftest.dir; then
2616   cd conftest.dir
2617   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2618   cat >Imakefile <<'_ACEOF'
2619 acfindx:
2620         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2621 _ACEOF
2622   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2623     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2624     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2625     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2626     for ac_extension in a so sl; do
2627       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2628          test -f $ac_im_libdir/libX11.$ac_extension; then
2629         ac_im_usrlibdir=$ac_im_libdir; break
2630       fi
2631     done
2632     # Screen out bogus values from the imake configuration.  They are
2633     # bogus both because they are the default anyway, and because
2634     # using them would break gcc on systems where it needs fixed includes.
2635     case $ac_im_incroot in
2636         /usr/include) ;;
2637         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2638     esac
2639     case $ac_im_usrlibdir in
2640         /usr/lib | /lib) ;;
2641         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2642     esac
2643   fi
2644   cd ..
2645   rm -fr conftest.dir
2646 fi
2647
2648 # Standard set of common directories for X headers.
2649 # Check X11 before X11Rn because it is often a symlink to the current release.
2650 ac_x_header_dirs='
2651 /usr/X11/include
2652 /usr/X11R6/include
2653 /usr/X11R5/include
2654 /usr/X11R4/include
2655
2656 /usr/include/X11
2657 /usr/include/X11R6
2658 /usr/include/X11R5
2659 /usr/include/X11R4
2660
2661 /usr/local/X11/include
2662 /usr/local/X11R6/include
2663 /usr/local/X11R5/include
2664 /usr/local/X11R4/include
2665
2666 /usr/local/include/X11
2667 /usr/local/include/X11R6
2668 /usr/local/include/X11R5
2669 /usr/local/include/X11R4
2670
2671 /usr/X386/include
2672 /usr/x386/include
2673 /usr/XFree86/include/X11
2674
2675 /usr/include
2676 /usr/local/include
2677 /usr/unsupported/include
2678 /usr/athena/include
2679 /usr/local/x11r5/include
2680 /usr/lpp/Xamples/include
2681
2682 /usr/openwin/include
2683 /usr/openwin/share/include'
2684
2685 if test "$ac_x_includes" = no; then
2686   # Guess where to find include files, by looking for Intrinsic.h.
2687   # First, try using that file with no special directory specified.
2688   cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695 #include <X11/Intrinsic.h>
2696 _ACEOF
2697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } >/dev/null; then
2705   if test -s conftest.err; then
2706     ac_cpp_err=$ac_c_preproc_warn_flag
2707   else
2708     ac_cpp_err=
2709   fi
2710 else
2711   ac_cpp_err=yes
2712 fi
2713 if test -z "$ac_cpp_err"; then
2714   # We can compile using X headers with no special include directory.
2715 ac_x_includes=
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720   for ac_dir in $ac_x_header_dirs; do
2721   if test -r "$ac_dir/X11/Intrinsic.h"; then
2722     ac_x_includes=$ac_dir
2723     break
2724   fi
2725 done
2726 fi
2727 rm -f conftest.err conftest.$ac_ext
2728 fi # $ac_x_includes = no
2729
2730 if test "$ac_x_libraries" = no; then
2731   # Check for the libraries.
2732   # See if we find them without any special options.
2733   # Don't add to $LIBS permanently.
2734   ac_save_LIBS=$LIBS
2735   LIBS="-lXt $LIBS"
2736   cat >conftest.$ac_ext <<_ACEOF
2737 #line $LINENO "configure"
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743 #include <X11/Intrinsic.h>
2744 int
2745 main ()
2746 {
2747 XtMalloc (0)
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.$ac_objext conftest$ac_exeext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2754   (eval $ac_link) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } &&
2758          { ac_try='test -s conftest$ac_exeext'
2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; }; then
2764   LIBS=$ac_save_LIBS
2765 # We can link X programs with no special library path.
2766 ac_x_libraries=
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 LIBS=$ac_save_LIBS
2772 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2773 do
2774   # Don't even attempt the hair of trying to link an X program!
2775   for ac_extension in a so sl; do
2776     if test -r $ac_dir/libXt.$ac_extension; then
2777       ac_x_libraries=$ac_dir
2778       break 2
2779     fi
2780   done
2781 done
2782 fi
2783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2784 fi # $ac_x_libraries = no
2785
2786 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2787   # Didn't find X anywhere.  Cache the known absence of X.
2788   ac_cv_have_x="have_x=no"
2789 else
2790   # Record where we found X for the cache.
2791   ac_cv_have_x="have_x=yes \
2792                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2793 fi
2794 fi
2795
2796   fi
2797   eval "$ac_cv_have_x"
2798 fi # $with_x != no
2799
2800 if test "$have_x" != yes; then
2801   echo "$as_me:$LINENO: result: $have_x" >&5
2802 echo "${ECHO_T}$have_x" >&6
2803   no_x=yes
2804 else
2805   # If each of the values was on the command line, it overrides each guess.
2806   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2807   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2808   # Update the cache value to reflect the command line values.
2809   ac_cv_have_x="have_x=yes \
2810                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2811   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2812 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2813 fi
2814
2815 if test "$no_x" = yes; then
2816   # Not all programs may use this symbol, but it does not hurt to define it.
2817
2818 cat >>confdefs.h <<\_ACEOF
2819 #define X_DISPLAY_MISSING 1
2820 _ACEOF
2821
2822   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2823 else
2824   if test -n "$x_includes"; then
2825     X_CFLAGS="$X_CFLAGS -I$x_includes"
2826   fi
2827
2828   # It would also be nice to do this for all -L options, not just this one.
2829   if test -n "$x_libraries"; then
2830     X_LIBS="$X_LIBS -L$x_libraries"
2831     # For Solaris; some versions of Sun CC require a space after -R and
2832     # others require no space.  Words are not sufficient . . . .
2833     case `(uname -sr) 2>/dev/null` in
2834     "SunOS 5"*)
2835       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2836 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2837       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2838       cat >conftest.$ac_ext <<_ACEOF
2839 #line $LINENO "configure"
2840 /* confdefs.h.  */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h.  */
2845
2846 int
2847 main ()
2848 {
2849
2850   ;
2851   return 0;
2852 }
2853 _ACEOF
2854 rm -f conftest.$ac_objext conftest$ac_exeext
2855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2856   (eval $ac_link) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); } &&
2860          { ac_try='test -s conftest$ac_exeext'
2861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; }; then
2866   ac_R_nospace=yes
2867 else
2868   echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2870
2871 ac_R_nospace=no
2872 fi
2873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2874       if test $ac_R_nospace = yes; then
2875         echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6
2877         X_LIBS="$X_LIBS -R$x_libraries"
2878       else
2879         LIBS="$ac_xsave_LIBS -R $x_libraries"
2880         cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 /* confdefs.h.  */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h.  */
2887
2888 int
2889 main ()
2890 {
2891
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 rm -f conftest.$ac_objext conftest$ac_exeext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2898   (eval $ac_link) 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); } &&
2902          { ac_try='test -s conftest$ac_exeext'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; }; then
2908   ac_R_space=yes
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 ac_R_space=no
2914 fi
2915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2916         if test $ac_R_space = yes; then
2917           echo "$as_me:$LINENO: result: yes" >&5
2918 echo "${ECHO_T}yes" >&6
2919           X_LIBS="$X_LIBS -R $x_libraries"
2920         else
2921           echo "$as_me:$LINENO: result: neither works" >&5
2922 echo "${ECHO_T}neither works" >&6
2923         fi
2924       fi
2925       LIBS=$ac_xsave_LIBS
2926     esac
2927   fi
2928
2929   # Check for system-dependent libraries X programs must link with.
2930   # Do this before checking for the system-independent R6 libraries
2931   # (-lICE), since we may need -lsocket or whatever for X linking.
2932
2933   if test "$ISC" = yes; then
2934     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2935   else
2936     # Martyn Johnson says this is needed for Ultrix, if the X
2937     # libraries were built with DECnet support.  And Karl Berry says
2938     # the Alpha needs dnet_stub (dnet does not exist).
2939     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2940     cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947
2948 /* Override any gcc2 internal prototype to avoid an error.  */
2949 #ifdef __cplusplus
2950 extern "C"
2951 #endif
2952 /* We use char because int might match the return type of a gcc2
2953    builtin and then its argument prototype would still apply.  */
2954 char XOpenDisplay ();
2955 int
2956 main ()
2957 {
2958 XOpenDisplay ();
2959   ;
2960   return 0;
2961 }
2962 _ACEOF
2963 rm -f conftest.$ac_objext conftest$ac_exeext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965   (eval $ac_link) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } &&
2969          { ac_try='test -s conftest$ac_exeext'
2970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971   (eval $ac_try) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; }; then
2975   :
2976 else
2977   echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2981 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2982 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2983   echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985   ac_check_lib_save_LIBS=$LIBS
2986 LIBS="-ldnet  $LIBS"
2987 cat >conftest.$ac_ext <<_ACEOF
2988 #line $LINENO "configure"
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994
2995 /* Override any gcc2 internal prototype to avoid an error.  */
2996 #ifdef __cplusplus
2997 extern "C"
2998 #endif
2999 /* We use char because int might match the return type of a gcc2
3000    builtin and then its argument prototype would still apply.  */
3001 char dnet_ntoa ();
3002 int
3003 main ()
3004 {
3005 dnet_ntoa ();
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.$ac_objext conftest$ac_exeext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3012   (eval $ac_link) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } &&
3016          { ac_try='test -s conftest$ac_exeext'
3017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018   (eval $ac_try) 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }; }; then
3022   ac_cv_lib_dnet_dnet_ntoa=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027 ac_cv_lib_dnet_dnet_ntoa=no
3028 fi
3029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3030 LIBS=$ac_check_lib_save_LIBS
3031 fi
3032 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3033 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3034 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3035   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3036 fi
3037
3038     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3039       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3040 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3041 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   ac_check_lib_save_LIBS=$LIBS
3045 LIBS="-ldnet_stub  $LIBS"
3046 cat >conftest.$ac_ext <<_ACEOF
3047 #line $LINENO "configure"
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053
3054 /* Override any gcc2 internal prototype to avoid an error.  */
3055 #ifdef __cplusplus
3056 extern "C"
3057 #endif
3058 /* We use char because int might match the return type of a gcc2
3059    builtin and then its argument prototype would still apply.  */
3060 char dnet_ntoa ();
3061 int
3062 main ()
3063 {
3064 dnet_ntoa ();
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext conftest$ac_exeext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071   (eval $ac_link) 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } &&
3075          { ac_try='test -s conftest$ac_exeext'
3076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077   (eval $ac_try) 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); }; }; then
3081   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3082 else
3083   echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086 ac_cv_lib_dnet_stub_dnet_ntoa=no
3087 fi
3088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3089 LIBS=$ac_check_lib_save_LIBS
3090 fi
3091 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3092 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3093 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3094   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3095 fi
3096
3097     fi
3098 fi
3099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3100     LIBS="$ac_xsave_LIBS"
3101
3102     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3103     # to get the SysV transport functions.
3104     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3105     # needs -lnsl.
3106     # The nsl library prevents programs from opening the X display
3107     # on Irix 5.2, according to T.E. Dickey.
3108     # The functions gethostbyname, getservbyname, and inet_addr are
3109     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3110     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3111 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3112 if test "${ac_cv_func_gethostbyname+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 /* System header to define __stub macros and hopefully few prototypes,
3123     which can conflict with char gethostbyname (); below.
3124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125     <limits.h> exists even on freestanding compilers.  */
3126 #ifdef __STDC__
3127 # include <limits.h>
3128 #else
3129 # include <assert.h>
3130 #endif
3131 /* Override any gcc2 internal prototype to avoid an error.  */
3132 #ifdef __cplusplus
3133 extern "C"
3134 {
3135 #endif
3136 /* We use char because int might match the return type of a gcc2
3137    builtin and then its argument prototype would still apply.  */
3138 char gethostbyname ();
3139 /* The GNU C library defines this for functions which it implements
3140     to always fail with ENOSYS.  Some functions are actually named
3141     something starting with __ and the normal name is an alias.  */
3142 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3143 choke me
3144 #else
3145 char (*f) () = gethostbyname;
3146 #endif
3147 #ifdef __cplusplus
3148 }
3149 #endif
3150
3151 int
3152 main ()
3153 {
3154 return f != gethostbyname;
3155   ;
3156   return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.$ac_objext conftest$ac_exeext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3161   (eval $ac_link) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } &&
3165          { ac_try='test -s conftest$ac_exeext'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; }; then
3171   ac_cv_func_gethostbyname=yes
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 ac_cv_func_gethostbyname=no
3177 fi
3178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3179 fi
3180 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3181 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3182
3183     if test $ac_cv_func_gethostbyname = no; then
3184       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3185 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3186 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3187   echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189   ac_check_lib_save_LIBS=$LIBS
3190 LIBS="-lnsl  $LIBS"
3191 cat >conftest.$ac_ext <<_ACEOF
3192 #line $LINENO "configure"
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198
3199 /* Override any gcc2 internal prototype to avoid an error.  */
3200 #ifdef __cplusplus
3201 extern "C"
3202 #endif
3203 /* We use char because int might match the return type of a gcc2
3204    builtin and then its argument prototype would still apply.  */
3205 char gethostbyname ();
3206 int
3207 main ()
3208 {
3209 gethostbyname ();
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext conftest$ac_exeext
3215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3216   (eval $ac_link) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); } &&
3220          { ac_try='test -s conftest$ac_exeext'
3221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222   (eval $ac_try) 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); }; }; then
3226   ac_cv_lib_nsl_gethostbyname=yes
3227 else
3228   echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 ac_cv_lib_nsl_gethostbyname=no
3232 fi
3233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3234 LIBS=$ac_check_lib_save_LIBS
3235 fi
3236 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3237 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3238 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3239   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3240 fi
3241
3242       if test $ac_cv_lib_nsl_gethostbyname = no; then
3243         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3244 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3245 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248   ac_check_lib_save_LIBS=$LIBS
3249 LIBS="-lbsd  $LIBS"
3250 cat >conftest.$ac_ext <<_ACEOF
3251 #line $LINENO "configure"
3252 /* confdefs.h.  */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h.  */
3257
3258 /* Override any gcc2 internal prototype to avoid an error.  */
3259 #ifdef __cplusplus
3260 extern "C"
3261 #endif
3262 /* We use char because int might match the return type of a gcc2
3263    builtin and then its argument prototype would still apply.  */
3264 char gethostbyname ();
3265 int
3266 main ()
3267 {
3268 gethostbyname ();
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext conftest$ac_exeext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3275   (eval $ac_link) 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } &&
3279          { ac_try='test -s conftest$ac_exeext'
3280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281   (eval $ac_try) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); }; }; then
3285   ac_cv_lib_bsd_gethostbyname=yes
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 ac_cv_lib_bsd_gethostbyname=no
3291 fi
3292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3293 LIBS=$ac_check_lib_save_LIBS
3294 fi
3295 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3296 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3297 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3298   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3299 fi
3300
3301       fi
3302     fi
3303
3304     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3305     # socket/setsockopt and other routines are undefined under SCO ODT
3306     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3307     # on later versions), says Simon Leinen: it contains gethostby*
3308     # variants that don't use the name server (or something).  -lsocket
3309     # must be given before -lnsl if both are needed.  We assume that
3310     # if connect needs -lnsl, so does gethostbyname.
3311     echo "$as_me:$LINENO: checking for connect" >&5
3312 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3313 if test "${ac_cv_func_connect+set}" = set; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   cat >conftest.$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323 /* System header to define __stub macros and hopefully few prototypes,
3324     which can conflict with char connect (); below.
3325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3326     <limits.h> exists even on freestanding compilers.  */
3327 #ifdef __STDC__
3328 # include <limits.h>
3329 #else
3330 # include <assert.h>
3331 #endif
3332 /* Override any gcc2 internal prototype to avoid an error.  */
3333 #ifdef __cplusplus
3334 extern "C"
3335 {
3336 #endif
3337 /* We use char because int might match the return type of a gcc2
3338    builtin and then its argument prototype would still apply.  */
3339 char connect ();
3340 /* The GNU C library defines this for functions which it implements
3341     to always fail with ENOSYS.  Some functions are actually named
3342     something starting with __ and the normal name is an alias.  */
3343 #if defined (__stub_connect) || defined (__stub___connect)
3344 choke me
3345 #else
3346 char (*f) () = connect;
3347 #endif
3348 #ifdef __cplusplus
3349 }
3350 #endif
3351
3352 int
3353 main ()
3354 {
3355 return f != connect;
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext conftest$ac_exeext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3362   (eval $ac_link) 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -s conftest$ac_exeext'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; }; then
3372   ac_cv_func_connect=yes
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 ac_cv_func_connect=no
3378 fi
3379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3380 fi
3381 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3382 echo "${ECHO_T}$ac_cv_func_connect" >&6
3383
3384     if test $ac_cv_func_connect = no; then
3385       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3386 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3387 if test "${ac_cv_lib_socket_connect+set}" = set; then
3388   echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390   ac_check_lib_save_LIBS=$LIBS
3391 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3392 cat >conftest.$ac_ext <<_ACEOF
3393 #line $LINENO "configure"
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399
3400 /* Override any gcc2 internal prototype to avoid an error.  */
3401 #ifdef __cplusplus
3402 extern "C"
3403 #endif
3404 /* We use char because int might match the return type of a gcc2
3405    builtin and then its argument prototype would still apply.  */
3406 char connect ();
3407 int
3408 main ()
3409 {
3410 connect ();
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext conftest$ac_exeext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3417   (eval $ac_link) 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } &&
3421          { ac_try='test -s conftest$ac_exeext'
3422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423   (eval $ac_try) 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }; }; then
3427   ac_cv_lib_socket_connect=yes
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 ac_cv_lib_socket_connect=no
3433 fi
3434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3435 LIBS=$ac_check_lib_save_LIBS
3436 fi
3437 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3438 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3439 if test $ac_cv_lib_socket_connect = yes; then
3440   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3441 fi
3442
3443     fi
3444
3445     # Guillermo Gomez says -lposix is necessary on A/UX.
3446     echo "$as_me:$LINENO: checking for remove" >&5
3447 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3448 if test "${ac_cv_func_remove+set}" = set; then
3449   echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451   cat >conftest.$ac_ext <<_ACEOF
3452 #line $LINENO "configure"
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458 /* System header to define __stub macros and hopefully few prototypes,
3459     which can conflict with char remove (); below.
3460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461     <limits.h> exists even on freestanding compilers.  */
3462 #ifdef __STDC__
3463 # include <limits.h>
3464 #else
3465 # include <assert.h>
3466 #endif
3467 /* Override any gcc2 internal prototype to avoid an error.  */
3468 #ifdef __cplusplus
3469 extern "C"
3470 {
3471 #endif
3472 /* We use char because int might match the return type of a gcc2
3473    builtin and then its argument prototype would still apply.  */
3474 char remove ();
3475 /* The GNU C library defines this for functions which it implements
3476     to always fail with ENOSYS.  Some functions are actually named
3477     something starting with __ and the normal name is an alias.  */
3478 #if defined (__stub_remove) || defined (__stub___remove)
3479 choke me
3480 #else
3481 char (*f) () = remove;
3482 #endif
3483 #ifdef __cplusplus
3484 }
3485 #endif
3486
3487 int
3488 main ()
3489 {
3490 return f != remove;
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext conftest$ac_exeext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3497   (eval $ac_link) 2>&5
3498   ac_status=$?
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } &&
3501          { ac_try='test -s conftest$ac_exeext'
3502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503   (eval $ac_try) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }; }; then
3507   ac_cv_func_remove=yes
3508 else
3509   echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 ac_cv_func_remove=no
3513 fi
3514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3517 echo "${ECHO_T}$ac_cv_func_remove" >&6
3518
3519     if test $ac_cv_func_remove = no; then
3520       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3521 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3522 if test "${ac_cv_lib_posix_remove+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   ac_check_lib_save_LIBS=$LIBS
3526 LIBS="-lposix  $LIBS"
3527 cat >conftest.$ac_ext <<_ACEOF
3528 #line $LINENO "configure"
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534
3535 /* Override any gcc2 internal prototype to avoid an error.  */
3536 #ifdef __cplusplus
3537 extern "C"
3538 #endif
3539 /* We use char because int might match the return type of a gcc2
3540    builtin and then its argument prototype would still apply.  */
3541 char remove ();
3542 int
3543 main ()
3544 {
3545 remove ();
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext conftest$ac_exeext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3552   (eval $ac_link) 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } &&
3556          { ac_try='test -s conftest$ac_exeext'
3557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558   (eval $ac_try) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; }; then
3562   ac_cv_lib_posix_remove=yes
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 ac_cv_lib_posix_remove=no
3568 fi
3569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3570 LIBS=$ac_check_lib_save_LIBS
3571 fi
3572 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3573 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3574 if test $ac_cv_lib_posix_remove = yes; then
3575   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3576 fi
3577
3578     fi
3579
3580     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3581     echo "$as_me:$LINENO: checking for shmat" >&5
3582 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3583 if test "${ac_cv_func_shmat+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   cat >conftest.$ac_ext <<_ACEOF
3587 #line $LINENO "configure"
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 /* System header to define __stub macros and hopefully few prototypes,
3594     which can conflict with char shmat (); below.
3595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3596     <limits.h> exists even on freestanding compilers.  */
3597 #ifdef __STDC__
3598 # include <limits.h>
3599 #else
3600 # include <assert.h>
3601 #endif
3602 /* Override any gcc2 internal prototype to avoid an error.  */
3603 #ifdef __cplusplus
3604 extern "C"
3605 {
3606 #endif
3607 /* We use char because int might match the return type of a gcc2
3608    builtin and then its argument prototype would still apply.  */
3609 char shmat ();
3610 /* The GNU C library defines this for functions which it implements
3611     to always fail with ENOSYS.  Some functions are actually named
3612     something starting with __ and the normal name is an alias.  */
3613 #if defined (__stub_shmat) || defined (__stub___shmat)
3614 choke me
3615 #else
3616 char (*f) () = shmat;
3617 #endif
3618 #ifdef __cplusplus
3619 }
3620 #endif
3621
3622 int
3623 main ()
3624 {
3625 return f != shmat;
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.$ac_objext conftest$ac_exeext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3632   (eval $ac_link) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } &&
3636          { ac_try='test -s conftest$ac_exeext'
3637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638   (eval $ac_try) 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); }; }; then
3642   ac_cv_func_shmat=yes
3643 else
3644   echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 ac_cv_func_shmat=no
3648 fi
3649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3650 fi
3651 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3652 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3653
3654     if test $ac_cv_func_shmat = no; then
3655       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3656 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3657 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   ac_check_lib_save_LIBS=$LIBS
3661 LIBS="-lipc  $LIBS"
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669
3670 /* Override any gcc2 internal prototype to avoid an error.  */
3671 #ifdef __cplusplus
3672 extern "C"
3673 #endif
3674 /* We use char because int might match the return type of a gcc2
3675    builtin and then its argument prototype would still apply.  */
3676 char shmat ();
3677 int
3678 main ()
3679 {
3680 shmat ();
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 rm -f conftest.$ac_objext conftest$ac_exeext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3687   (eval $ac_link) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } &&
3691          { ac_try='test -s conftest$ac_exeext'
3692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693   (eval $ac_try) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697   ac_cv_lib_ipc_shmat=yes
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 ac_cv_lib_ipc_shmat=no
3703 fi
3704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3705 LIBS=$ac_check_lib_save_LIBS
3706 fi
3707 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3708 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3709 if test $ac_cv_lib_ipc_shmat = yes; then
3710   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3711 fi
3712
3713     fi
3714   fi
3715
3716   # Check for libraries that X11R6 Xt/Xaw programs need.
3717   ac_save_LDFLAGS=$LDFLAGS
3718   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3719   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3720   # check for ICE first), but we must link in the order -lSM -lICE or
3721   # we get undefined symbols.  So assume we have SM if we have ICE.
3722   # These have to be linked with before -lX11, unlike the other
3723   # libraries we check for below, so use a different variable.
3724   # John Interrante, Karl Berry
3725   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3726 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3727 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   ac_check_lib_save_LIBS=$LIBS
3731 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3732 cat >conftest.$ac_ext <<_ACEOF
3733 #line $LINENO "configure"
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739
3740 /* Override any gcc2 internal prototype to avoid an error.  */
3741 #ifdef __cplusplus
3742 extern "C"
3743 #endif
3744 /* We use char because int might match the return type of a gcc2
3745    builtin and then its argument prototype would still apply.  */
3746 char IceConnectionNumber ();
3747 int
3748 main ()
3749 {
3750 IceConnectionNumber ();
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757   (eval $ac_link) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); } &&
3761          { ac_try='test -s conftest$ac_exeext'
3762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763   (eval $ac_try) 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); }; }; then
3767   ac_cv_lib_ICE_IceConnectionNumber=yes
3768 else
3769   echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 ac_cv_lib_ICE_IceConnectionNumber=no
3773 fi
3774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3775 LIBS=$ac_check_lib_save_LIBS
3776 fi
3777 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3778 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3779 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3780   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3781 fi
3782
3783   LDFLAGS=$ac_save_LDFLAGS
3784
3785 fi
3786
3787 #CFLAGS="$CFLAGS $X_CFLAGS -I/usr/local/include"
3788 CFLAGS="$CFLAGS $X_CFLAGS"
3789 LDFLAGS="$LDFLAGS $X_LIBS -L/usr/local/lib"
3790
3791
3792 #
3793 # Declare variables which we want substituted in the Makefile.in's
3794 #
3795 echo "$as_me:$LINENO: checking for egrep" >&5
3796 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3797 if test "${ac_cv_prog_egrep+set}" = set; then
3798   echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3801     then ac_cv_prog_egrep='grep -E'
3802     else ac_cv_prog_egrep='egrep'
3803     fi
3804 fi
3805 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3806 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3807  EGREP=$ac_cv_prog_egrep
3808
3809
3810 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3811 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3812 if test "${ac_cv_header_stdc+set}" = set; then
3813   echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815   cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 /* confdefs.h.  */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h.  */
3822 #include <stdlib.h>
3823 #include <stdarg.h>
3824 #include <string.h>
3825 #include <float.h>
3826
3827 int
3828 main ()
3829 {
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837   (eval $ac_compile) 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } &&
3841          { ac_try='test -s conftest.$ac_objext'
3842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843   (eval $ac_try) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); }; }; then
3847   ac_cv_header_stdc=yes
3848 else
3849   echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 ac_cv_header_stdc=no
3853 fi
3854 rm -f conftest.$ac_objext conftest.$ac_ext
3855
3856 if test $ac_cv_header_stdc = yes; then
3857   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3858   cat >conftest.$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3860 /* confdefs.h.  */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h.  */
3865 #include <string.h>
3866
3867 _ACEOF
3868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3869   $EGREP "memchr" >/dev/null 2>&1; then
3870   :
3871 else
3872   ac_cv_header_stdc=no
3873 fi
3874 rm -f conftest*
3875
3876 fi
3877
3878 if test $ac_cv_header_stdc = yes; then
3879   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3880   cat >conftest.$ac_ext <<_ACEOF
3881 #line $LINENO "configure"
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #include <stdlib.h>
3888
3889 _ACEOF
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891   $EGREP "free" >/dev/null 2>&1; then
3892   :
3893 else
3894   ac_cv_header_stdc=no
3895 fi
3896 rm -f conftest*
3897
3898 fi
3899
3900 if test $ac_cv_header_stdc = yes; then
3901   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902   if test "$cross_compiling" = yes; then
3903   :
3904 else
3905   cat >conftest.$ac_ext <<_ACEOF
3906 #line $LINENO "configure"
3907 /* confdefs.h.  */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h.  */
3912 #include <ctype.h>
3913 #if ((' ' & 0x0FF) == 0x020)
3914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3916 #else
3917 # define ISLOWER(c) \
3918                    (('a' <= (c) && (c) <= 'i') \
3919                      || ('j' <= (c) && (c) <= 'r') \
3920                      || ('s' <= (c) && (c) <= 'z'))
3921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3922 #endif
3923
3924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925 int
3926 main ()
3927 {
3928   int i;
3929   for (i = 0; i < 256; i++)
3930     if (XOR (islower (i), ISLOWER (i))
3931         || toupper (i) != TOUPPER (i))
3932       exit(2);
3933   exit (0);
3934 }
3935 _ACEOF
3936 rm -f conftest$ac_exeext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938   (eval $ac_link) 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; }; then
3947   :
3948 else
3949   echo "$as_me: program exited with status $ac_status" >&5
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3952
3953 ( exit $ac_status )
3954 ac_cv_header_stdc=no
3955 fi
3956 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3957 fi
3958 fi
3959 fi
3960 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3961 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3962 if test $ac_cv_header_stdc = yes; then
3963
3964 cat >>confdefs.h <<\_ACEOF
3965 #define STDC_HEADERS 1
3966 _ACEOF
3967
3968 fi
3969
3970
3971 #
3972 # finally create makefiles using Makefile.in
3973 #
3974 echo
3975           ac_config_files="$ac_config_files Makefile"
3976 cat >confcache <<\_ACEOF
3977 # This file is a shell script that caches the results of configure
3978 # tests run on this system so they can be shared between configure
3979 # scripts and configure runs, see configure's option --config-cache.
3980 # It is not useful on other systems.  If it contains results you don't
3981 # want to keep, you may remove or edit it.
3982 #
3983 # config.status only pays attention to the cache file if you give it
3984 # the --recheck option to rerun configure.
3985 #
3986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3988 # following values.
3989
3990 _ACEOF
3991
3992 # The following way of writing the cache mishandles newlines in values,
3993 # but we know of no workaround that is simple, portable, and efficient.
3994 # So, don't put newlines in cache variables' values.
3995 # Ultrix sh set writes to stderr and can't be redirected directly,
3996 # and sets the high bit in the cache file unless we assign to the vars.
3997 {
3998   (set) 2>&1 |
3999     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4000     *ac_space=\ *)
4001       # `set' does not quote correctly, so add quotes (double-quote
4002       # substitution turns \\\\ into \\, and sed turns \\ into \).
4003       sed -n \
4004         "s/'/'\\\\''/g;
4005           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4006       ;;
4007     *)
4008       # `set' quotes correctly as required by POSIX, so do not add quotes.
4009       sed -n \
4010         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4011       ;;
4012     esac;
4013 } |
4014   sed '
4015      t clear
4016      : clear
4017      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4018      t end
4019      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4020      : end' >>confcache
4021 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4022   if test -w $cache_file; then
4023     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4024     cat confcache >$cache_file
4025   else
4026     echo "not updating unwritable cache $cache_file"
4027   fi
4028 fi
4029 rm -f confcache
4030
4031 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4032 # Let make expand exec_prefix.
4033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4034
4035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4037 # trailing colons and then remove the whole line if VPATH becomes empty
4038 # (actually we leave an empty line to preserve line numbers).
4039 if test "x$srcdir" = x.; then
4040   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4041 s/:*\$(srcdir):*/:/;
4042 s/:*\${srcdir}:*/:/;
4043 s/:*@srcdir@:*/:/;
4044 s/^\([^=]*=[    ]*\):*/\1/;
4045 s/:*$//;
4046 s/^[^=]*=[      ]*$//;
4047 }'
4048 fi
4049
4050 # Transform confdefs.h into DEFS.
4051 # Protect against shell expansion while executing Makefile rules.
4052 # Protect against Makefile macro expansion.
4053 #
4054 # If the first sed substitution is executed (which looks for macros that
4055 # take arguments), then we branch to the quote section.  Otherwise,
4056 # look for a macro that doesn't take arguments.
4057 cat >confdef2opt.sed <<\_ACEOF
4058 t clear
4059 : clear
4060 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4061 t quote
4062 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4063 t quote
4064 d
4065 : quote
4066 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
4067 s,\[,\\&,g
4068 s,\],\\&,g
4069 s,\$,$$,g
4070 p
4071 _ACEOF
4072 # We use echo to avoid assuming a particular line-breaking character.
4073 # The extra dot is to prevent the shell from consuming trailing
4074 # line-breaks from the sub-command output.  A line-break within
4075 # single-quotes doesn't work because, if this script is created in a
4076 # platform that uses two characters for line-breaks (e.g., DOS), tr
4077 # would break.
4078 ac_LF_and_DOT=`echo; echo .`
4079 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4080 rm -f confdef2opt.sed
4081
4082
4083 ac_libobjs=
4084 ac_ltlibobjs=
4085 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4086   # 1. Remove the extension, and $U if already installed.
4087   ac_i=`echo "$ac_i" |
4088          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4089   # 2. Add them.
4090   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4091   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4092 done
4093 LIBOBJS=$ac_libobjs
4094
4095 LTLIBOBJS=$ac_ltlibobjs
4096
4097
4098
4099 : ${CONFIG_STATUS=./config.status}
4100 ac_clean_files_save=$ac_clean_files
4101 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4102 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4103 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4104 cat >$CONFIG_STATUS <<_ACEOF
4105 #! $SHELL
4106 # Generated by $as_me.
4107 # Run this file to recreate the current configuration.
4108 # Compiler output produced by configure, useful for debugging
4109 # configure, is in config.log if it exists.
4110
4111 debug=false
4112 ac_cs_recheck=false
4113 ac_cs_silent=false
4114 SHELL=\${CONFIG_SHELL-$SHELL}
4115 _ACEOF
4116
4117 cat >>$CONFIG_STATUS <<\_ACEOF
4118 ## --------------------- ##
4119 ## M4sh Initialization.  ##
4120 ## --------------------- ##
4121
4122 # Be Bourne compatible
4123 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4124   emulate sh
4125   NULLCMD=:
4126   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4127   # is contrary to our usage.  Disable this feature.
4128   alias -g '${1+"$@"}'='"$@"'
4129 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4130   set -o posix
4131 fi
4132
4133 # Support unset when possible.
4134 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4135   as_unset=unset
4136 else
4137   as_unset=false
4138 fi
4139
4140
4141 # Work around bugs in pre-3.0 UWIN ksh.
4142 $as_unset ENV MAIL MAILPATH
4143 PS1='$ '
4144 PS2='> '
4145 PS4='+ '
4146
4147 # NLS nuisances.
4148 for as_var in \
4149   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4150   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4151   LC_TELEPHONE LC_TIME
4152 do
4153   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4154     eval $as_var=C; export $as_var
4155   else
4156     $as_unset $as_var
4157   fi
4158 done
4159
4160 # Required to use basename.
4161 if expr a : '\(a\)' >/dev/null 2>&1; then
4162   as_expr=expr
4163 else
4164   as_expr=false
4165 fi
4166
4167 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4168   as_basename=basename
4169 else
4170   as_basename=false
4171 fi
4172
4173
4174 # Name of the executable.
4175 as_me=`$as_basename "$0" ||
4176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4177          X"$0" : 'X\(//\)$' \| \
4178          X"$0" : 'X\(/\)$' \| \
4179          .     : '\(.\)' 2>/dev/null ||
4180 echo X/"$0" |
4181     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4182           /^X\/\(\/\/\)$/{ s//\1/; q; }
4183           /^X\/\(\/\).*/{ s//\1/; q; }
4184           s/.*/./; q'`
4185
4186
4187 # PATH needs CR, and LINENO needs CR and PATH.
4188 # Avoid depending upon Character Ranges.
4189 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4190 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4191 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4192 as_cr_digits='0123456789'
4193 as_cr_alnum=$as_cr_Letters$as_cr_digits
4194
4195 # The user is always right.
4196 if test "${PATH_SEPARATOR+set}" != set; then
4197   echo "#! /bin/sh" >conf$$.sh
4198   echo  "exit 0"   >>conf$$.sh
4199   chmod +x conf$$.sh
4200   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4201     PATH_SEPARATOR=';'
4202   else
4203     PATH_SEPARATOR=:
4204   fi
4205   rm -f conf$$.sh
4206 fi
4207
4208
4209   as_lineno_1=$LINENO
4210   as_lineno_2=$LINENO
4211   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4212   test "x$as_lineno_1" != "x$as_lineno_2" &&
4213   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4214   # Find who we are.  Look in the path if we contain no path at all
4215   # relative or not.
4216   case $0 in
4217     *[\\/]* ) as_myself=$0 ;;
4218     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4224 done
4225
4226        ;;
4227   esac
4228   # We did not find ourselves, most probably we were run as `sh COMMAND'
4229   # in which case we are not to be found in the path.
4230   if test "x$as_myself" = x; then
4231     as_myself=$0
4232   fi
4233   if test ! -f "$as_myself"; then
4234     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4235 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4236    { (exit 1); exit 1; }; }
4237   fi
4238   case $CONFIG_SHELL in
4239   '')
4240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245   for as_base in sh bash ksh sh5; do
4246          case $as_dir in
4247          /*)
4248            if ("$as_dir/$as_base" -c '
4249   as_lineno_1=$LINENO
4250   as_lineno_2=$LINENO
4251   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4252   test "x$as_lineno_1" != "x$as_lineno_2" &&
4253   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4254              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4255              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4256              CONFIG_SHELL=$as_dir/$as_base
4257              export CONFIG_SHELL
4258              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4259            fi;;
4260          esac
4261        done
4262 done
4263 ;;
4264   esac
4265
4266   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4267   # uniformly replaced by the line number.  The first 'sed' inserts a
4268   # line-number line before each line; the second 'sed' does the real
4269   # work.  The second script uses 'N' to pair each line-number line
4270   # with the numbered line, and appends trailing '-' during
4271   # substitution so that $LINENO is not a special case at line end.
4272   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4273   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4274   sed '=' <$as_myself |
4275     sed '
4276       N
4277       s,$,-,
4278       : loop
4279       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4280       t loop
4281       s,-$,,
4282       s,^['$as_cr_digits']*\n,,
4283     ' >$as_me.lineno &&
4284   chmod +x $as_me.lineno ||
4285     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4286 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4287    { (exit 1); exit 1; }; }
4288
4289   # Don't try to exec as it changes $[0], causing all sort of problems
4290   # (the dirname of $[0] is not the place where we might find the
4291   # original and so on.  Autoconf is especially sensible to this).
4292   . ./$as_me.lineno
4293   # Exit status is that of the last command.
4294   exit
4295 }
4296
4297
4298 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4299   *c*,-n*) ECHO_N= ECHO_C='
4300 ' ECHO_T='      ' ;;
4301   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4302   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4303 esac
4304
4305 if expr a : '\(a\)' >/dev/null 2>&1; then
4306   as_expr=expr
4307 else
4308   as_expr=false
4309 fi
4310
4311 rm -f conf$$ conf$$.exe conf$$.file
4312 echo >conf$$.file
4313 if ln -s conf$$.file conf$$ 2>/dev/null; then
4314   # We could just check for DJGPP; but this test a) works b) is more generic
4315   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4316   if test -f conf$$.exe; then
4317     # Don't use ln at all; we don't have any links
4318     as_ln_s='cp -p'
4319   else
4320     as_ln_s='ln -s'
4321   fi
4322 elif ln conf$$.file conf$$ 2>/dev/null; then
4323   as_ln_s=ln
4324 else
4325   as_ln_s='cp -p'
4326 fi
4327 rm -f conf$$ conf$$.exe conf$$.file
4328
4329 if mkdir -p . 2>/dev/null; then
4330   as_mkdir_p=:
4331 else
4332   as_mkdir_p=false
4333 fi
4334
4335 as_executable_p="test -f"
4336
4337 # Sed expression to map a string onto a valid CPP name.
4338 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4339
4340 # Sed expression to map a string onto a valid variable name.
4341 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4342
4343
4344 # IFS
4345 # We need space, tab and new line, in precisely that order.
4346 as_nl='
4347 '
4348 IFS="   $as_nl"
4349
4350 # CDPATH.
4351 $as_unset CDPATH
4352
4353 exec 6>&1
4354
4355 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4356 # report actual input values of CONFIG_FILES etc. instead of their
4357 # values after options handling.  Logging --version etc. is OK.
4358 exec 5>>config.log
4359 {
4360   echo
4361   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4362 ## Running $as_me. ##
4363 _ASBOX
4364 } >&5
4365 cat >&5 <<_CSEOF
4366
4367 This file was extended by $as_me, which was
4368 generated by GNU Autoconf 2.57.  Invocation command line was
4369
4370   CONFIG_FILES    = $CONFIG_FILES
4371   CONFIG_HEADERS  = $CONFIG_HEADERS
4372   CONFIG_LINKS    = $CONFIG_LINKS
4373   CONFIG_COMMANDS = $CONFIG_COMMANDS
4374   $ $0 $@
4375
4376 _CSEOF
4377 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4378 echo >&5
4379 _ACEOF
4380
4381 # Files that config.status was made for.
4382 if test -n "$ac_config_files"; then
4383   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4384 fi
4385
4386 if test -n "$ac_config_headers"; then
4387   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4388 fi
4389
4390 if test -n "$ac_config_links"; then
4391   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4392 fi
4393
4394 if test -n "$ac_config_commands"; then
4395   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4396 fi
4397
4398 cat >>$CONFIG_STATUS <<\_ACEOF
4399
4400 ac_cs_usage="\
4401 \`$as_me' instantiates files from templates according to the
4402 current configuration.
4403
4404 Usage: $0 [OPTIONS] [FILE]...
4405
4406   -h, --help       print this help, then exit
4407   -V, --version    print version number, then exit
4408   -q, --quiet      do not print progress messages
4409   -d, --debug      don't remove temporary files
4410       --recheck    update $as_me by reconfiguring in the same conditions
4411   --file=FILE[:TEMPLATE]
4412                    instantiate the configuration file FILE
4413
4414 Configuration files:
4415 $config_files
4416
4417 Report bugs to <bug-autoconf@gnu.org>."
4418 _ACEOF
4419
4420 cat >>$CONFIG_STATUS <<_ACEOF
4421 ac_cs_version="\\
4422 config.status
4423 configured by $0, generated by GNU Autoconf 2.57,
4424   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4425
4426 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4427 Free Software Foundation, Inc.
4428 This config.status script is free software; the Free Software Foundation
4429 gives unlimited permission to copy, distribute and modify it."
4430 srcdir=$srcdir
4431 INSTALL="$INSTALL"
4432 _ACEOF
4433
4434 cat >>$CONFIG_STATUS <<\_ACEOF
4435 # If no file are specified by the user, then we need to provide default
4436 # value.  By we need to know if files were specified by the user.
4437 ac_need_defaults=:
4438 while test $# != 0
4439 do
4440   case $1 in
4441   --*=*)
4442     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4443     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4444     ac_shift=:
4445     ;;
4446   -*)
4447     ac_option=$1
4448     ac_optarg=$2
4449     ac_shift=shift
4450     ;;
4451   *) # This is not an option, so the user has probably given explicit
4452      # arguments.
4453      ac_option=$1
4454      ac_need_defaults=false;;
4455   esac
4456
4457   case $ac_option in
4458   # Handling of the options.
4459 _ACEOF
4460 cat >>$CONFIG_STATUS <<\_ACEOF
4461   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4462     ac_cs_recheck=: ;;
4463   --version | --vers* | -V )
4464     echo "$ac_cs_version"; exit 0 ;;
4465   --he | --h)
4466     # Conflict between --help and --header
4467     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4468 Try \`$0 --help' for more information." >&5
4469 echo "$as_me: error: ambiguous option: $1
4470 Try \`$0 --help' for more information." >&2;}
4471    { (exit 1); exit 1; }; };;
4472   --help | --hel | -h )
4473     echo "$ac_cs_usage"; exit 0 ;;
4474   --debug | --d* | -d )
4475     debug=: ;;
4476   --file | --fil | --fi | --f )
4477     $ac_shift
4478     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4479     ac_need_defaults=false;;
4480   --header | --heade | --head | --hea )
4481     $ac_shift
4482     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4483     ac_need_defaults=false;;
4484   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4485   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4486     ac_cs_silent=: ;;
4487
4488   # This is an error.
4489   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4490 Try \`$0 --help' for more information." >&5
4491 echo "$as_me: error: unrecognized option: $1
4492 Try \`$0 --help' for more information." >&2;}
4493    { (exit 1); exit 1; }; } ;;
4494
4495   *) ac_config_targets="$ac_config_targets $1" ;;
4496
4497   esac
4498   shift
4499 done
4500
4501 ac_configure_extra_args=
4502
4503 if $ac_cs_silent; then
4504   exec 6>/dev/null
4505   ac_configure_extra_args="$ac_configure_extra_args --silent"
4506 fi
4507
4508 _ACEOF
4509 cat >>$CONFIG_STATUS <<_ACEOF
4510 if \$ac_cs_recheck; then
4511   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4512   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4513 fi
4514
4515 _ACEOF
4516
4517
4518
4519
4520
4521 cat >>$CONFIG_STATUS <<\_ACEOF
4522 for ac_config_target in $ac_config_targets
4523 do
4524   case "$ac_config_target" in
4525   # Handling of arguments.
4526   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4527   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4529    { (exit 1); exit 1; }; };;
4530   esac
4531 done
4532
4533 # If the user did not use the arguments to specify the items to instantiate,
4534 # then the envvar interface is used.  Set only those that are not.
4535 # We use the long form for the default assignment because of an extremely
4536 # bizarre bug on SunOS 4.1.3.
4537 if $ac_need_defaults; then
4538   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4539 fi
4540
4541 # Have a temporary directory for convenience.  Make it in the build tree
4542 # simply because there is no reason to put it here, and in addition,
4543 # creating and moving files from /tmp can sometimes cause problems.
4544 # Create a temporary directory, and hook for its removal unless debugging.
4545 $debug ||
4546 {
4547   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4548   trap '{ (exit 1); exit 1; }' 1 2 13 15
4549 }
4550
4551 # Create a (secure) tmp directory for tmp files.
4552
4553 {
4554   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4555   test -n "$tmp" && test -d "$tmp"
4556 }  ||
4557 {
4558   tmp=./confstat$$-$RANDOM
4559   (umask 077 && mkdir $tmp)
4560 } ||
4561 {
4562    echo "$me: cannot create a temporary directory in ." >&2
4563    { (exit 1); exit 1; }
4564 }
4565
4566 _ACEOF
4567
4568 cat >>$CONFIG_STATUS <<_ACEOF
4569
4570 #
4571 # CONFIG_FILES section.
4572 #
4573
4574 # No need to generate the scripts if there are no CONFIG_FILES.
4575 # This happens for instance when ./config.status config.h
4576 if test -n "\$CONFIG_FILES"; then
4577   # Protect against being on the right side of a sed subst in config.status.
4578   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4579    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4580 s,@SHELL@,$SHELL,;t t
4581 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4582 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4583 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4584 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4585 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4586 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4587 s,@exec_prefix@,$exec_prefix,;t t
4588 s,@prefix@,$prefix,;t t
4589 s,@program_transform_name@,$program_transform_name,;t t
4590 s,@bindir@,$bindir,;t t
4591 s,@sbindir@,$sbindir,;t t
4592 s,@libexecdir@,$libexecdir,;t t
4593 s,@datadir@,$datadir,;t t
4594 s,@sysconfdir@,$sysconfdir,;t t
4595 s,@sharedstatedir@,$sharedstatedir,;t t
4596 s,@localstatedir@,$localstatedir,;t t
4597 s,@libdir@,$libdir,;t t
4598 s,@includedir@,$includedir,;t t
4599 s,@oldincludedir@,$oldincludedir,;t t
4600 s,@infodir@,$infodir,;t t
4601 s,@mandir@,$mandir,;t t
4602 s,@build_alias@,$build_alias,;t t
4603 s,@host_alias@,$host_alias,;t t
4604 s,@target_alias@,$target_alias,;t t
4605 s,@DEFS@,$DEFS,;t t
4606 s,@ECHO_C@,$ECHO_C,;t t
4607 s,@ECHO_N@,$ECHO_N,;t t
4608 s,@ECHO_T@,$ECHO_T,;t t
4609 s,@LIBS@,$LIBS,;t t
4610 s,@build@,$build,;t t
4611 s,@build_cpu@,$build_cpu,;t t
4612 s,@build_vendor@,$build_vendor,;t t
4613 s,@build_os@,$build_os,;t t
4614 s,@host@,$host,;t t
4615 s,@host_cpu@,$host_cpu,;t t
4616 s,@host_vendor@,$host_vendor,;t t
4617 s,@host_os@,$host_os,;t t
4618 s,@CC@,$CC,;t t
4619 s,@CFLAGS@,$CFLAGS,;t t
4620 s,@LDFLAGS@,$LDFLAGS,;t t
4621 s,@CPPFLAGS@,$CPPFLAGS,;t t
4622 s,@ac_ct_CC@,$ac_ct_CC,;t t
4623 s,@EXEEXT@,$EXEEXT,;t t
4624 s,@OBJEXT@,$OBJEXT,;t t
4625 s,@CPP@,$CPP,;t t
4626 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4627 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4628 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4629 s,@FIND@,$FIND,;t t
4630 s,@MAKEDEPEND@,$MAKEDEPEND,;t t
4631 s,@X_CFLAGS@,$X_CFLAGS,;t t
4632 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
4633 s,@X_LIBS@,$X_LIBS,;t t
4634 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
4635 s,@EGREP@,$EGREP,;t t
4636 s,@LIBOBJS@,$LIBOBJS,;t t
4637 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4638 CEOF
4639
4640 _ACEOF
4641
4642   cat >>$CONFIG_STATUS <<\_ACEOF
4643   # Split the substitutions into bite-sized pieces for seds with
4644   # small command number limits, like on Digital OSF/1 and HP-UX.
4645   ac_max_sed_lines=48
4646   ac_sed_frag=1 # Number of current file.
4647   ac_beg=1 # First line for current file.
4648   ac_end=$ac_max_sed_lines # Line after last line for current file.
4649   ac_more_lines=:
4650   ac_sed_cmds=
4651   while $ac_more_lines; do
4652     if test $ac_beg -gt 1; then
4653       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4654     else
4655       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4656     fi
4657     if test ! -s $tmp/subs.frag; then
4658       ac_more_lines=false
4659     else
4660       # The purpose of the label and of the branching condition is to
4661       # speed up the sed processing (if there are no `@' at all, there
4662       # is no need to browse any of the substitutions).
4663       # These are the two extra sed commands mentioned above.
4664       (echo ':t
4665   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4666       if test -z "$ac_sed_cmds"; then
4667         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4668       else
4669         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4670       fi
4671       ac_sed_frag=`expr $ac_sed_frag + 1`
4672       ac_beg=$ac_end
4673       ac_end=`expr $ac_end + $ac_max_sed_lines`
4674     fi
4675   done
4676   if test -z "$ac_sed_cmds"; then
4677     ac_sed_cmds=cat
4678   fi
4679 fi # test -n "$CONFIG_FILES"
4680
4681 _ACEOF
4682 cat >>$CONFIG_STATUS <<\_ACEOF
4683 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4684   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4685   case $ac_file in
4686   - | *:- | *:-:* ) # input from stdin
4687         cat >$tmp/stdin
4688         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4689         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4690   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4691         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4692   * )   ac_file_in=$ac_file.in ;;
4693   esac
4694
4695   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4696   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4698          X"$ac_file" : 'X\(//\)[^/]' \| \
4699          X"$ac_file" : 'X\(//\)$' \| \
4700          X"$ac_file" : 'X\(/\)' \| \
4701          .     : '\(.\)' 2>/dev/null ||
4702 echo X"$ac_file" |
4703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4705           /^X\(\/\/\)$/{ s//\1/; q; }
4706           /^X\(\/\).*/{ s//\1/; q; }
4707           s/.*/./; q'`
4708   { if $as_mkdir_p; then
4709     mkdir -p "$ac_dir"
4710   else
4711     as_dir="$ac_dir"
4712     as_dirs=
4713     while test ! -d "$as_dir"; do
4714       as_dirs="$as_dir $as_dirs"
4715       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4717          X"$as_dir" : 'X\(//\)[^/]' \| \
4718          X"$as_dir" : 'X\(//\)$' \| \
4719          X"$as_dir" : 'X\(/\)' \| \
4720          .     : '\(.\)' 2>/dev/null ||
4721 echo X"$as_dir" |
4722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4723           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4724           /^X\(\/\/\)$/{ s//\1/; q; }
4725           /^X\(\/\).*/{ s//\1/; q; }
4726           s/.*/./; q'`
4727     done
4728     test ! -n "$as_dirs" || mkdir $as_dirs
4729   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4730 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4731    { (exit 1); exit 1; }; }; }
4732
4733   ac_builddir=.
4734
4735 if test "$ac_dir" != .; then
4736   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4737   # A "../" for each directory in $ac_dir_suffix.
4738   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4739 else
4740   ac_dir_suffix= ac_top_builddir=
4741 fi
4742
4743 case $srcdir in
4744   .)  # No --srcdir option.  We are building in place.
4745     ac_srcdir=.
4746     if test -z "$ac_top_builddir"; then
4747        ac_top_srcdir=.
4748     else
4749        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4750     fi ;;
4751   [\\/]* | ?:[\\/]* )  # Absolute path.
4752     ac_srcdir=$srcdir$ac_dir_suffix;
4753     ac_top_srcdir=$srcdir ;;
4754   *) # Relative path.
4755     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4756     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4757 esac
4758 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4759 # absolute.
4760 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4761 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4762 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4763 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4764
4765
4766   case $INSTALL in
4767   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4768   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4769   esac
4770
4771   if test x"$ac_file" != x-; then
4772     { echo "$as_me:$LINENO: creating $ac_file" >&5
4773 echo "$as_me: creating $ac_file" >&6;}
4774     rm -f "$ac_file"
4775   fi
4776   # Let's still pretend it is `configure' which instantiates (i.e., don't
4777   # use $as_me), people would be surprised to read:
4778   #    /* config.h.  Generated by config.status.  */
4779   if test x"$ac_file" = x-; then
4780     configure_input=
4781   else
4782     configure_input="$ac_file.  "
4783   fi
4784   configure_input=$configure_input"Generated from `echo $ac_file_in |
4785                                      sed 's,.*/,,'` by configure."
4786
4787   # First look for the input files in the build tree, otherwise in the
4788   # src tree.
4789   ac_file_inputs=`IFS=:
4790     for f in $ac_file_in; do
4791       case $f in
4792       -) echo $tmp/stdin ;;
4793       [\\/$]*)
4794          # Absolute (can't be DOS-style, as IFS=:)
4795          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4796 echo "$as_me: error: cannot find input file: $f" >&2;}
4797    { (exit 1); exit 1; }; }
4798          echo $f;;
4799       *) # Relative
4800          if test -f "$f"; then
4801            # Build tree
4802            echo $f
4803          elif test -f "$srcdir/$f"; then
4804            # Source tree
4805            echo $srcdir/$f
4806          else
4807            # /dev/null tree
4808            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4809 echo "$as_me: error: cannot find input file: $f" >&2;}
4810    { (exit 1); exit 1; }; }
4811          fi;;
4812       esac
4813     done` || { (exit 1); exit 1; }
4814 _ACEOF
4815 cat >>$CONFIG_STATUS <<_ACEOF
4816   sed "$ac_vpsub
4817 $extrasub
4818 _ACEOF
4819 cat >>$CONFIG_STATUS <<\_ACEOF
4820 :t
4821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4822 s,@configure_input@,$configure_input,;t t
4823 s,@srcdir@,$ac_srcdir,;t t
4824 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4825 s,@top_srcdir@,$ac_top_srcdir,;t t
4826 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4827 s,@builddir@,$ac_builddir,;t t
4828 s,@abs_builddir@,$ac_abs_builddir,;t t
4829 s,@top_builddir@,$ac_top_builddir,;t t
4830 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4831 s,@INSTALL@,$ac_INSTALL,;t t
4832 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4833   rm -f $tmp/stdin
4834   if test x"$ac_file" != x-; then
4835     mv $tmp/out $ac_file
4836   else
4837     cat $tmp/out
4838     rm -f $tmp/out
4839   fi
4840
4841 done
4842 _ACEOF
4843
4844 cat >>$CONFIG_STATUS <<\_ACEOF
4845
4846 { (exit 0); exit 0; }
4847 _ACEOF
4848 chmod +x $CONFIG_STATUS
4849 ac_clean_files=$ac_clean_files_save
4850
4851
4852 # configure is writing to config.log, and then calls config.status.
4853 # config.status does its own redirection, appending to config.log.
4854 # Unfortunately, on DOS this fails, as config.log is still kept open
4855 # by configure, so config.status won't be able to write to it; its
4856 # output is simply discarded.  So we exec the FD to /dev/null,
4857 # effectively closing config.log, so it can be properly (re)opened and
4858 # appended to by config.status.  When coming back to configure, we
4859 # need to make the FD available again.
4860 if test "$no_create" != yes; then
4861   ac_cs_success=:
4862   ac_config_status_args=
4863   test "$silent" = yes &&
4864     ac_config_status_args="$ac_config_status_args --quiet"
4865   exec 5>/dev/null
4866   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4867   exec 5>>config.log
4868   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4869   # would make configure fail if this is the last instruction.
4870   $ac_cs_success || { (exit 1); exit 1; }
4871 fi
4872
4873
4874 echo
4875 echo "Run 'make depend' to create dependencies."
4876 echo