Directory structure is reorganized and prepared for GNU configure.
[gnucomo.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="src/gcm_input/message.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CXX_set=${CXX+set}
752 ac_env_CXX_value=$CXX
753 ac_cv_env_CXX_set=${CXX+set}
754 ac_cv_env_CXX_value=$CXX
755 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756 ac_env_CXXFLAGS_value=$CXXFLAGS
757 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759 ac_env_CPP_set=${CPP+set}
760 ac_env_CPP_value=$CPP
761 ac_cv_env_CPP_set=${CPP+set}
762 ac_cv_env_CPP_value=$CPP
763
764 #
765 # Report the --help message.
766 #
767 if test "$ac_init_help" = "long"; then
768   # Omit some internal or obsolete options to make the list less imposing.
769   # This message is too long to be a string in the A/UX 3.1 sh.
770   cat <<_ACEOF
771 \`configure' configures this package to adapt to many kinds of systems.
772
773 Usage: $0 [OPTION]... [VAR=VALUE]...
774
775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
776 VAR=VALUE.  See below for descriptions of some of the useful variables.
777
778 Defaults for the options are specified in brackets.
779
780 Configuration:
781   -h, --help              display this help and exit
782       --help=short        display options specific to this package
783       --help=recursive    display the short help of all the included packages
784   -V, --version           display version information and exit
785   -q, --quiet, --silent   do not print \`checking...' messages
786       --cache-file=FILE   cache test results in FILE [disabled]
787   -C, --config-cache      alias for \`--cache-file=config.cache'
788   -n, --no-create         do not create output files
789       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
790
791 _ACEOF
792
793   cat <<_ACEOF
794 Installation directories:
795   --prefix=PREFIX         install architecture-independent files in PREFIX
796                           [$ac_default_prefix]
797   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
798                           [PREFIX]
799
800 By default, \`make install' will install all the files in
801 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
802 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803 for instance \`--prefix=\$HOME'.
804
805 For better control, use the options below.
806
807 Fine tuning of the installation directories:
808   --bindir=DIR           user executables [EPREFIX/bin]
809   --sbindir=DIR          system admin executables [EPREFIX/sbin]
810   --libexecdir=DIR       program executables [EPREFIX/libexec]
811   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
812   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
813   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
814   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
815   --libdir=DIR           object code libraries [EPREFIX/lib]
816   --includedir=DIR       C header files [PREFIX/include]
817   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
818   --infodir=DIR          info documentation [PREFIX/info]
819   --mandir=DIR           man documentation [PREFIX/man]
820 _ACEOF
821
822   cat <<\_ACEOF
823
824 Program names:
825   --program-prefix=PREFIX            prepend PREFIX to installed program names
826   --program-suffix=SUFFIX            append SUFFIX to installed program names
827   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
828
829 X features:
830   --x-includes=DIR    X include files are in DIR
831   --x-libraries=DIR   X library files are in DIR
832 _ACEOF
833 fi
834
835 if test -n "$ac_init_help"; then
836
837   cat <<\_ACEOF
838
839 Optional Features:
840   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
841   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
842   --disable-dependency-tracking Speeds up one-time builds
843   --enable-dependency-tracking  Do not reject slow dependency extractors
844
845 Optional Packages:
846   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
847   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
848   --with-x                use the X Window System
849
850 Some influential environment variables:
851   CC          C compiler command
852   CFLAGS      C compiler flags
853   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
854               nonstandard directory <lib dir>
855   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
856               headers in a nonstandard directory <include dir>
857   CXX         C++ compiler command
858   CXXFLAGS    C++ compiler flags
859   CPP         C preprocessor
860
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
863
864 _ACEOF
865 fi
866
867 if test "$ac_init_help" = "recursive"; then
868   # If there are subdirs, report their specific --help.
869   ac_popdir=`pwd`
870   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871     test -d $ac_dir || continue
872     ac_builddir=.
873
874 if test "$ac_dir" != .; then
875   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876   # A "../" for each directory in $ac_dir_suffix.
877   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878 else
879   ac_dir_suffix= ac_top_builddir=
880 fi
881
882 case $srcdir in
883   .)  # No --srcdir option.  We are building in place.
884     ac_srcdir=.
885     if test -z "$ac_top_builddir"; then
886        ac_top_srcdir=.
887     else
888        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889     fi ;;
890   [\\/]* | ?:[\\/]* )  # Absolute path.
891     ac_srcdir=$srcdir$ac_dir_suffix;
892     ac_top_srcdir=$srcdir ;;
893   *) # Relative path.
894     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895     ac_top_srcdir=$ac_top_builddir$srcdir ;;
896 esac
897 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
898 # absolute.
899 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
900 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
901 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
902 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
903
904     cd $ac_dir
905     # Check for guested configure; otherwise get Cygnus style configure.
906     if test -f $ac_srcdir/configure.gnu; then
907       echo
908       $SHELL $ac_srcdir/configure.gnu  --help=recursive
909     elif test -f $ac_srcdir/configure; then
910       echo
911       $SHELL $ac_srcdir/configure  --help=recursive
912     elif test -f $ac_srcdir/configure.ac ||
913            test -f $ac_srcdir/configure.in; then
914       echo
915       $ac_configure --help
916     else
917       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918     fi
919     cd $ac_popdir
920   done
921 fi
922
923 test -n "$ac_init_help" && exit 0
924 if $ac_init_version; then
925   cat <<\_ACEOF
926
927 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
928 Free Software Foundation, Inc.
929 This configure script is free software; the Free Software Foundation
930 gives unlimited permission to copy, distribute and modify it.
931 _ACEOF
932   exit 0
933 fi
934 exec 5>config.log
935 cat >&5 <<_ACEOF
936 This file contains any messages produced by compilers while
937 running configure, to aid debugging if configure makes a mistake.
938
939 It was created by $as_me, which was
940 generated by GNU Autoconf 2.53.  Invocation command line was
941
942   $ $0 $@
943
944 _ACEOF
945 {
946 cat <<_ASUNAME
947 ## --------- ##
948 ## Platform. ##
949 ## --------- ##
950
951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
956
957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
958 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
959
960 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
961 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
963 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
964 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
965 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
966 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
967
968 _ASUNAME
969
970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
971 for as_dir in $PATH
972 do
973   IFS=$as_save_IFS
974   test -z "$as_dir" && as_dir=.
975   echo "PATH: $as_dir"
976 done
977
978 } >&5
979
980 cat >&5 <<_ACEOF
981
982
983 ## ----------- ##
984 ## Core tests. ##
985 ## ----------- ##
986
987 _ACEOF
988
989
990 # Keep a trace of the command line.
991 # Strip out --no-create and --no-recursion so they do not pile up.
992 # Also quote any args containing shell meta-characters.
993 ac_configure_args=
994 ac_sep=
995 for ac_arg
996 do
997   case $ac_arg in
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n ) continue ;;
1000   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002     continue ;;
1003   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1005   esac
1006   case " $ac_configure_args " in
1007     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1008     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1009        ac_sep=" " ;;
1010   esac
1011   # Get rid of the leading space.
1012 done
1013
1014 # When interrupted or exit'd, cleanup temporary files, and complete
1015 # config.log.  We remove comments because anyway the quotes in there
1016 # would cause problems or look ugly.
1017 # WARNING: Be sure not to use single quotes in there, as some shells,
1018 # such as our DU 5.0 friend, will then `close' the trap.
1019 trap 'exit_status=$?
1020   # Save into config.log some information that might help in debugging.
1021   {
1022     echo
1023     cat <<\_ASBOX
1024 ## ---------------- ##
1025 ## Cache variables. ##
1026 ## ---------------- ##
1027 _ASBOX
1028     echo
1029     # The following way of writing the cache mishandles newlines in values,
1030 {
1031   (set) 2>&1 |
1032     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1033     *ac_space=\ *)
1034       sed -n \
1035         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1036           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1037       ;;
1038     *)
1039       sed -n \
1040         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1041       ;;
1042     esac;
1043 }
1044     echo
1045     if test -s confdefs.h; then
1046       cat <<\_ASBOX
1047 ## ----------- ##
1048 ## confdefs.h. ##
1049 ## ----------- ##
1050 _ASBOX
1051       echo
1052       sed "/^$/d" confdefs.h
1053       echo
1054     fi
1055     test "$ac_signal" != 0 &&
1056       echo "$as_me: caught signal $ac_signal"
1057     echo "$as_me: exit $exit_status"
1058   } >&5
1059   rm -f core core.* *.core &&
1060   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1061     exit $exit_status
1062      ' 0
1063 for ac_signal in 1 2 13 15; do
1064   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1065 done
1066 ac_signal=0
1067
1068 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1069 rm -rf conftest* confdefs.h
1070 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1071 echo >confdefs.h
1072
1073 # Predefined preprocessor variables.
1074
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_NAME "$PACKAGE_NAME"
1077 _ACEOF
1078
1079
1080 cat >>confdefs.h <<_ACEOF
1081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1082 _ACEOF
1083
1084
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1087 _ACEOF
1088
1089
1090 cat >>confdefs.h <<_ACEOF
1091 #define PACKAGE_STRING "$PACKAGE_STRING"
1092 _ACEOF
1093
1094
1095 cat >>confdefs.h <<_ACEOF
1096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1097 _ACEOF
1098
1099
1100 # Let the site file select an alternate cache file if it wants to.
1101 # Prefer explicitly selected file to automatically selected ones.
1102 if test -z "$CONFIG_SITE"; then
1103   if test "x$prefix" != xNONE; then
1104     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1105   else
1106     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1107   fi
1108 fi
1109 for ac_site_file in $CONFIG_SITE; do
1110   if test -r "$ac_site_file"; then
1111     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1112 echo "$as_me: loading site script $ac_site_file" >&6;}
1113     sed 's/^/| /' "$ac_site_file" >&5
1114     . "$ac_site_file"
1115   fi
1116 done
1117
1118 if test -r "$cache_file"; then
1119   # Some versions of bash will fail to source /dev/null (special
1120   # files actually), so we avoid doing that.
1121   if test -f "$cache_file"; then
1122     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1123 echo "$as_me: loading cache $cache_file" >&6;}
1124     case $cache_file in
1125       [\\/]* | ?:[\\/]* ) . $cache_file;;
1126       *)                      . ./$cache_file;;
1127     esac
1128   fi
1129 else
1130   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1131 echo "$as_me: creating cache $cache_file" >&6;}
1132   >$cache_file
1133 fi
1134
1135 # Check that the precious variables saved in the cache have kept the same
1136 # value.
1137 ac_cache_corrupted=false
1138 for ac_var in `(set) 2>&1 |
1139                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1140   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1141   eval ac_new_set=\$ac_env_${ac_var}_set
1142   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1143   eval ac_new_val="\$ac_env_${ac_var}_value"
1144   case $ac_old_set,$ac_new_set in
1145     set,)
1146       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1147 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1148       ac_cache_corrupted=: ;;
1149     ,set)
1150       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1151 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1152       ac_cache_corrupted=: ;;
1153     ,);;
1154     *)
1155       if test "x$ac_old_val" != "x$ac_new_val"; then
1156         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1157 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1158         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1159 echo "$as_me:   former value:  $ac_old_val" >&2;}
1160         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1161 echo "$as_me:   current value: $ac_new_val" >&2;}
1162         ac_cache_corrupted=:
1163       fi;;
1164   esac
1165   # Pass precious variables to config.status.
1166   if test "$ac_new_set" = set; then
1167     case $ac_new_val in
1168     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1169       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1170     *) ac_arg=$ac_var=$ac_new_val ;;
1171     esac
1172     case " $ac_configure_args " in
1173       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1174       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1175     esac
1176   fi
1177 done
1178 if $ac_cache_corrupted; then
1179   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1180 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1181   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1182 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1183    { (exit 1); exit 1; }; }
1184 fi
1185
1186 ac_ext=c
1187 ac_cpp='$CPP $CPPFLAGS'
1188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209 am__api_version="1.6"
1210 ac_aux_dir=
1211 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1212   if test -f $ac_dir/install-sh; then
1213     ac_aux_dir=$ac_dir
1214     ac_install_sh="$ac_aux_dir/install-sh -c"
1215     break
1216   elif test -f $ac_dir/install.sh; then
1217     ac_aux_dir=$ac_dir
1218     ac_install_sh="$ac_aux_dir/install.sh -c"
1219     break
1220   elif test -f $ac_dir/shtool; then
1221     ac_aux_dir=$ac_dir
1222     ac_install_sh="$ac_aux_dir/shtool install -c"
1223     break
1224   fi
1225 done
1226 if test -z "$ac_aux_dir"; then
1227   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1228 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1229    { (exit 1); exit 1; }; }
1230 fi
1231 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1232 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1233 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1234
1235 # Find a good install program.  We prefer a C program (faster),
1236 # so one script is as good as another.  But avoid the broken or
1237 # incompatible versions:
1238 # SysV /etc/install, /usr/sbin/install
1239 # SunOS /usr/etc/install
1240 # IRIX /sbin/install
1241 # AIX /bin/install
1242 # AmigaOS /C/install, which installs bootblocks on floppy discs
1243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1246 # ./install, which can be erroneously created by make from ./install.sh.
1247 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1248 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1249 if test -z "$INSTALL"; then
1250 if test "${ac_cv_path_install+set}" = set; then
1251   echo $ECHO_N "(cached) $ECHO_C" >&6
1252 else
1253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254 for as_dir in $PATH
1255 do
1256   IFS=$as_save_IFS
1257   test -z "$as_dir" && as_dir=.
1258   # Account for people who put trailing slashes in PATH elements.
1259 case $as_dir/ in
1260   ./ | .// | /cC/* | \
1261   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1262   /usr/ucb/* ) ;;
1263   *)
1264     # OSF1 and SCO ODT 3.0 have their own names for install.
1265     # Don't use installbsd from OSF since it installs stuff as root
1266     # by default.
1267     for ac_prog in ginstall scoinst install; do
1268       for ac_exec_ext in '' $ac_executable_extensions; do
1269         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1270           if test $ac_prog = install &&
1271             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1272             # AIX install.  It has an incompatible calling convention.
1273             :
1274           elif test $ac_prog = install &&
1275             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1276             # program-specific install script used by HP pwplus--don't use.
1277             :
1278           else
1279             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1280             break 3
1281           fi
1282         fi
1283       done
1284     done
1285     ;;
1286 esac
1287 done
1288
1289
1290 fi
1291   if test "${ac_cv_path_install+set}" = set; then
1292     INSTALL=$ac_cv_path_install
1293   else
1294     # As a last resort, use the slow shell script.  We don't cache a
1295     # path for INSTALL within a source directory, because that will
1296     # break other packages using the cache if that directory is
1297     # removed, or if the path is relative.
1298     INSTALL=$ac_install_sh
1299   fi
1300 fi
1301 echo "$as_me:$LINENO: result: $INSTALL" >&5
1302 echo "${ECHO_T}$INSTALL" >&6
1303
1304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1305 # It thinks the first close brace ends the variable substitution.
1306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1307
1308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1309
1310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1311
1312 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1313 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1314 # Just in case
1315 sleep 1
1316 echo timestamp > conftest.file
1317 # Do `set' in a subshell so we don't clobber the current shell's
1318 # arguments.  Must try -L first in case configure is actually a
1319 # symlink; some systems play weird games with the mod time of symlinks
1320 # (eg FreeBSD returns the mod time of the symlink's containing
1321 # directory).
1322 if (
1323    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1324    if test "$*" = "X"; then
1325       # -L didn't work.
1326       set X `ls -t $srcdir/configure conftest.file`
1327    fi
1328    rm -f conftest.file
1329    if test "$*" != "X $srcdir/configure conftest.file" \
1330       && test "$*" != "X conftest.file $srcdir/configure"; then
1331
1332       # If neither matched, then we have a broken ls.  This can happen
1333       # if, for instance, CONFIG_SHELL is bash and it inherits a
1334       # broken ls alias from the environment.  This has actually
1335       # happened.  Such a system could not be considered "sane".
1336       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1337 alias in your environment" >&5
1338 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1339 alias in your environment" >&2;}
1340    { (exit 1); exit 1; }; }
1341    fi
1342
1343    test "$2" = conftest.file
1344    )
1345 then
1346    # Ok.
1347    :
1348 else
1349    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1350 Check your system clock" >&5
1351 echo "$as_me: error: newly created file is older than distributed files!
1352 Check your system clock" >&2;}
1353    { (exit 1); exit 1; }; }
1354 fi
1355 echo "$as_me:$LINENO: result: yes" >&5
1356 echo "${ECHO_T}yes" >&6
1357 test "$program_prefix" != NONE &&
1358   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1359 # Use a double $ so make ignores it.
1360 test "$program_suffix" != NONE &&
1361   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1362 # Double any \ or $.  echo might interpret backslashes.
1363 # By default was `s,x,x', remove it if useless.
1364 cat <<\_ACEOF >conftest.sed
1365 s/[\\$]/&&/g;s/;s,x,x,$//
1366 _ACEOF
1367 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1368 rm conftest.sed
1369
1370
1371 # expand $ac_aux_dir to an absolute path
1372 am_aux_dir=`cd $ac_aux_dir && pwd`
1373
1374 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1375 # Use eval to expand $SHELL
1376 if eval "$MISSING --run true"; then
1377   am_missing_run="$MISSING --run "
1378 else
1379   am_missing_run=
1380   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1381 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1382 fi
1383
1384 for ac_prog in gawk mawk nawk awk
1385 do
1386   # Extract the first word of "$ac_prog", so it can be a program name with args.
1387 set dummy $ac_prog; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_AWK+set}" = set; then
1391   echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393   if test -n "$AWK"; then
1394   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1395 else
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1398 do
1399   IFS=$as_save_IFS
1400   test -z "$as_dir" && as_dir=.
1401   for ac_exec_ext in '' $ac_executable_extensions; do
1402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403     ac_cv_prog_AWK="$ac_prog"
1404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405     break 2
1406   fi
1407 done
1408 done
1409
1410 fi
1411 fi
1412 AWK=$ac_cv_prog_AWK
1413 if test -n "$AWK"; then
1414   echo "$as_me:$LINENO: result: $AWK" >&5
1415 echo "${ECHO_T}$AWK" >&6
1416 else
1417   echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1419 fi
1420
1421   test -n "$AWK" && break
1422 done
1423
1424 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1425 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1426 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1427 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1428   echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430   cat >conftest.make <<\_ACEOF
1431 all:
1432         @echo 'ac_maketemp="${MAKE}"'
1433 _ACEOF
1434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1435 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1436 if test -n "$ac_maketemp"; then
1437   eval ac_cv_prog_make_${ac_make}_set=yes
1438 else
1439   eval ac_cv_prog_make_${ac_make}_set=no
1440 fi
1441 rm -f conftest.make
1442 fi
1443 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1444   echo "$as_me:$LINENO: result: yes" >&5
1445 echo "${ECHO_T}yes" >&6
1446   SET_MAKE=
1447 else
1448   echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450   SET_MAKE="MAKE=${MAKE-make}"
1451 fi
1452
1453  # test to see if srcdir already configured
1454 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1455    test -f $srcdir/config.status; then
1456   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1457 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1458    { (exit 1); exit 1; }; }
1459 fi
1460
1461 # Define the identity of the package.
1462  PACKAGE=GNUCOMO
1463  VERSION=0.0.3
1464
1465
1466 cat >>confdefs.h <<_ACEOF
1467 #define PACKAGE "$PACKAGE"
1468 _ACEOF
1469
1470
1471 cat >>confdefs.h <<_ACEOF
1472 #define VERSION "$VERSION"
1473 _ACEOF
1474
1475 # Some tools Automake needs.
1476
1477 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1478
1479
1480 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1481
1482
1483 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1484
1485
1486 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1487
1488
1489 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1490
1491
1492 AMTAR=${AMTAR-"${am_missing_run}tar"}
1493
1494 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1495
1496 # Installed binaries are usually stripped using `strip' when the user
1497 # run `make install-strip'.  However `strip' might not be the right
1498 # tool to use in cross-compilation environments, therefore Automake
1499 # will honor the `STRIP' environment variable to overrule this program.
1500 if test "$cross_compiling" != no; then
1501   if test -n "$ac_tool_prefix"; then
1502   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1503 set dummy ${ac_tool_prefix}strip; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_STRIP+set}" = set; then
1507   echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509   if test -n "$STRIP"; then
1510   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1511 else
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515   IFS=$as_save_IFS
1516   test -z "$as_dir" && as_dir=.
1517   for ac_exec_ext in '' $ac_executable_extensions; do
1518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521     break 2
1522   fi
1523 done
1524 done
1525
1526 fi
1527 fi
1528 STRIP=$ac_cv_prog_STRIP
1529 if test -n "$STRIP"; then
1530   echo "$as_me:$LINENO: result: $STRIP" >&5
1531 echo "${ECHO_T}$STRIP" >&6
1532 else
1533   echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 fi
1536
1537 fi
1538 if test -z "$ac_cv_prog_STRIP"; then
1539   ac_ct_STRIP=$STRIP
1540   # Extract the first word of "strip", so it can be a program name with args.
1541 set dummy strip; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   if test -n "$ac_ct_STRIP"; then
1548   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553   IFS=$as_save_IFS
1554   test -z "$as_dir" && as_dir=.
1555   for ac_exec_ext in '' $ac_executable_extensions; do
1556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557     ac_cv_prog_ac_ct_STRIP="strip"
1558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559     break 2
1560   fi
1561 done
1562 done
1563
1564   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1565 fi
1566 fi
1567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1568 if test -n "$ac_ct_STRIP"; then
1569   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1570 echo "${ECHO_T}$ac_ct_STRIP" >&6
1571 else
1572   echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576   STRIP=$ac_ct_STRIP
1577 else
1578   STRIP="$ac_cv_prog_STRIP"
1579 fi
1580
1581 fi
1582 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1583
1584 # We need awk for the "check" target.  The system "awk" is bad on
1585 # some platforms.
1586
1587
1588
1589
1590
1591 ac_ext=c
1592 ac_cpp='$CPP $CPPFLAGS'
1593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1596 if test -n "$ac_tool_prefix"; then
1597   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$CC"; then
1605   ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   for ac_exec_ext in '' $ac_executable_extensions; do
1613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616     break 2
1617   fi
1618 done
1619 done
1620
1621 fi
1622 fi
1623 CC=$ac_cv_prog_CC
1624 if test -n "$CC"; then
1625   echo "$as_me:$LINENO: result: $CC" >&5
1626 echo "${ECHO_T}$CC" >&6
1627 else
1628   echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1630 fi
1631
1632 fi
1633 if test -z "$ac_cv_prog_CC"; then
1634   ac_ct_CC=$CC
1635   # Extract the first word of "gcc", so it can be a program name with args.
1636 set dummy gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$ac_ct_CC"; then
1643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_ac_ct_CC="gcc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670   CC=$ac_ct_CC
1671 else
1672   CC="$ac_cv_prog_CC"
1673 fi
1674
1675 if test -z "$CC"; then
1676   if test -n "$ac_tool_prefix"; then
1677   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}cc; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CC+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$CC"; then
1685   ac_cv_prog_CC="$CC" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     ac_cv_prog_CC="${ac_tool_prefix}cc"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1700
1701 fi
1702 fi
1703 CC=$ac_cv_prog_CC
1704 if test -n "$CC"; then
1705   echo "$as_me:$LINENO: result: $CC" >&5
1706 echo "${ECHO_T}$CC" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712 fi
1713 if test -z "$ac_cv_prog_CC"; then
1714   ac_ct_CC=$CC
1715   # Extract the first word of "cc", so it can be a program name with args.
1716 set dummy cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$ac_ct_CC"; then
1723   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_ac_ct_CC="cc"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739 fi
1740 fi
1741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742 if test -n "$ac_ct_CC"; then
1743   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744 echo "${ECHO_T}$ac_ct_CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750   CC=$ac_ct_CC
1751 else
1752   CC="$ac_cv_prog_CC"
1753 fi
1754
1755 fi
1756 if test -z "$CC"; then
1757   # Extract the first word of "cc", so it can be a program name with args.
1758 set dummy cc; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   if test -n "$CC"; then
1765   ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767   ac_prog_rejected=no
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771   IFS=$as_save_IFS
1772   test -z "$as_dir" && as_dir=.
1773   for ac_exec_ext in '' $ac_executable_extensions; do
1774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1776        ac_prog_rejected=yes
1777        continue
1778      fi
1779     ac_cv_prog_CC="cc"
1780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781     break 2
1782   fi
1783 done
1784 done
1785
1786 if test $ac_prog_rejected = yes; then
1787   # We found a bogon in the path, so make sure we never use it.
1788   set dummy $ac_cv_prog_CC
1789   shift
1790   if test $# != 0; then
1791     # We chose a different compiler from the bogus one.
1792     # However, it has the same basename, so the bogon will be chosen
1793     # first if we set CC to just the basename; use the full file name.
1794     shift
1795     set dummy "$as_dir/$ac_word" ${1+"$@"}
1796     shift
1797     ac_cv_prog_CC="$@"
1798   fi
1799 fi
1800 fi
1801 fi
1802 CC=$ac_cv_prog_CC
1803 if test -n "$CC"; then
1804   echo "$as_me:$LINENO: result: $CC" >&5
1805 echo "${ECHO_T}$CC" >&6
1806 else
1807   echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809 fi
1810
1811 fi
1812 if test -z "$CC"; then
1813   if test -n "$ac_tool_prefix"; then
1814   for ac_prog in cl
1815   do
1816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   if test -n "$CC"; then
1824   ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   for ac_exec_ext in '' $ac_executable_extensions; do
1832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835     break 2
1836   fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844   echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847   echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851     test -n "$CC" && break
1852   done
1853 fi
1854 if test -z "$CC"; then
1855   ac_ct_CC=$CC
1856   for ac_prog in cl
1857 do
1858   # Extract the first word of "$ac_prog", so it can be a program name with args.
1859 set dummy $ac_prog; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_CC"; then
1866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_CC="$ac_prog"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   test -n "$ac_ct_CC" && break
1894 done
1895
1896   CC=$ac_ct_CC
1897 fi
1898
1899 fi
1900
1901
1902 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1903 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1904    { (exit 1); exit 1; }; }
1905
1906 # Provide some information about the compiler.
1907 echo "$as_me:$LINENO:" \
1908      "checking for C compiler version" >&5
1909 ac_compiler=`set X $ac_compile; echo $2`
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1911   (eval $ac_compiler --version </dev/null >&5) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }
1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1916   (eval $ac_compiler -v </dev/null >&5) 2>&5
1917   ac_status=$?
1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919   (exit $ac_status); }
1920 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1921   (eval $ac_compiler -V </dev/null >&5) 2>&5
1922   ac_status=$?
1923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924   (exit $ac_status); }
1925
1926 cat >conftest.$ac_ext <<_ACEOF
1927 #line $LINENO "configure"
1928 #include "confdefs.h"
1929
1930 #ifdef F77_DUMMY_MAIN
1931 #  ifdef __cplusplus
1932      extern "C"
1933 #  endif
1934    int F77_DUMMY_MAIN() { return 1; }
1935 #endif
1936 int
1937 main ()
1938 {
1939
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 ac_clean_files_save=$ac_clean_files
1945 ac_clean_files="$ac_clean_files a.out a.exe"
1946 # Try to create an executable without -o first, disregard a.out.
1947 # It will help us diagnose broken compilers, and finding out an intuition
1948 # of exeext.
1949 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1950 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1951 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1952 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1953   (eval $ac_link_default) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }; then
1957   # Find the output, starting from the most likely.  This scheme is
1958 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1959 # resort.
1960
1961 # Be careful to initialize this variable, since it used to be cached.
1962 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1963 ac_cv_exeext=
1964 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1965                 ls a.out conftest 2>/dev/null;
1966                 ls a.* conftest.* 2>/dev/null`; do
1967   case $ac_file in
1968     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1969     a.out ) # We found the default executable, but exeext='' is most
1970             # certainly right.
1971             break;;
1972     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1973           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1974           export ac_cv_exeext
1975           break;;
1976     * ) break;;
1977   esac
1978 done
1979 else
1980   echo "$as_me: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1983 echo "$as_me: error: C compiler cannot create executables" >&2;}
1984    { (exit 77); exit 77; }; }
1985 fi
1986
1987 ac_exeext=$ac_cv_exeext
1988 echo "$as_me:$LINENO: result: $ac_file" >&5
1989 echo "${ECHO_T}$ac_file" >&6
1990
1991 # Check the compiler produces executables we can run.  If not, either
1992 # the compiler is broken, or we cross compile.
1993 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1994 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1995 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1996 # If not cross compiling, check that we can run a simple program.
1997 if test "$cross_compiling" != yes; then
1998   if { ac_try='./$ac_file'
1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000   (eval $ac_try) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); }; }; then
2004     cross_compiling=no
2005   else
2006     if test "$cross_compiling" = maybe; then
2007         cross_compiling=yes
2008     else
2009         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2010 If you meant to cross compile, use \`--host'." >&5
2011 echo "$as_me: error: cannot run C compiled programs.
2012 If you meant to cross compile, use \`--host'." >&2;}
2013    { (exit 1); exit 1; }; }
2014     fi
2015   fi
2016 fi
2017 echo "$as_me:$LINENO: result: yes" >&5
2018 echo "${ECHO_T}yes" >&6
2019
2020 rm -f a.out a.exe conftest$ac_cv_exeext
2021 ac_clean_files=$ac_clean_files_save
2022 # Check the compiler produces executables we can run.  If not, either
2023 # the compiler is broken, or we cross compile.
2024 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2025 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2026 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2027 echo "${ECHO_T}$cross_compiling" >&6
2028
2029 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2030 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2032   (eval $ac_link) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }; then
2036   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2037 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2038 # work properly (i.e., refer to `conftest.exe'), while it won't with
2039 # `rm'.
2040 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2041   case $ac_file in
2042     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2043     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2044           export ac_cv_exeext
2045           break;;
2046     * ) break;;
2047   esac
2048 done
2049 else
2050   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2051 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2052    { (exit 1); exit 1; }; }
2053 fi
2054
2055 rm -f conftest$ac_cv_exeext
2056 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2057 echo "${ECHO_T}$ac_cv_exeext" >&6
2058
2059 rm -f conftest.$ac_ext
2060 EXEEXT=$ac_cv_exeext
2061 ac_exeext=$EXEEXT
2062 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2063 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2064 if test "${ac_cv_objext+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   cat >conftest.$ac_ext <<_ACEOF
2068 #line $LINENO "configure"
2069 #include "confdefs.h"
2070
2071 #ifdef F77_DUMMY_MAIN
2072 #  ifdef __cplusplus
2073      extern "C"
2074 #  endif
2075    int F77_DUMMY_MAIN() { return 1; }
2076 #endif
2077 int
2078 main ()
2079 {
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 rm -f conftest.o conftest.obj
2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087   (eval $ac_compile) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; then
2091   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2092   case $ac_file in
2093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2094     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2095        break;;
2096   esac
2097 done
2098 else
2099   echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2102 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2103    { (exit 1); exit 1; }; }
2104 fi
2105
2106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2107 fi
2108 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2109 echo "${ECHO_T}$ac_cv_objext" >&6
2110 OBJEXT=$ac_cv_objext
2111 ac_objext=$OBJEXT
2112 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2113 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2114 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   cat >conftest.$ac_ext <<_ACEOF
2118 #line $LINENO "configure"
2119 #include "confdefs.h"
2120
2121 #ifdef F77_DUMMY_MAIN
2122 #  ifdef __cplusplus
2123      extern "C"
2124 #  endif
2125    int F77_DUMMY_MAIN() { return 1; }
2126 #endif
2127 int
2128 main ()
2129 {
2130 #ifndef __GNUC__
2131        choke me
2132 #endif
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140   (eval $ac_compile) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); } &&
2144          { ac_try='test -s conftest.$ac_objext'
2145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146   (eval $ac_try) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }; }; then
2150   ac_compiler_gnu=yes
2151 else
2152   echo "$as_me: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 ac_compiler_gnu=no
2155 fi
2156 rm -f conftest.$ac_objext conftest.$ac_ext
2157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2158
2159 fi
2160 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2161 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2162 GCC=`test $ac_compiler_gnu = yes && echo yes`
2163 ac_test_CFLAGS=${CFLAGS+set}
2164 ac_save_CFLAGS=$CFLAGS
2165 CFLAGS="-g"
2166 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2167 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2168 if test "${ac_cv_prog_cc_g+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   cat >conftest.$ac_ext <<_ACEOF
2172 #line $LINENO "configure"
2173 #include "confdefs.h"
2174
2175 #ifdef F77_DUMMY_MAIN
2176 #  ifdef __cplusplus
2177      extern "C"
2178 #  endif
2179    int F77_DUMMY_MAIN() { return 1; }
2180 #endif
2181 int
2182 main ()
2183 {
2184
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191   (eval $ac_compile) 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); } &&
2195          { ac_try='test -s conftest.$ac_objext'
2196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197   (eval $ac_try) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; }; then
2201   ac_cv_prog_cc_g=yes
2202 else
2203   echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 ac_cv_prog_cc_g=no
2206 fi
2207 rm -f conftest.$ac_objext conftest.$ac_ext
2208 fi
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2211 if test "$ac_test_CFLAGS" = set; then
2212   CFLAGS=$ac_save_CFLAGS
2213 elif test $ac_cv_prog_cc_g = yes; then
2214   if test "$GCC" = yes; then
2215     CFLAGS="-g -O2"
2216   else
2217     CFLAGS="-g"
2218   fi
2219 else
2220   if test "$GCC" = yes; then
2221     CFLAGS="-O2"
2222   else
2223     CFLAGS=
2224   fi
2225 fi
2226 # Some people use a C++ compiler to compile C.  Since we use `exit',
2227 # in C++ we need to declare it.  In case someone uses the same compiler
2228 # for both compiling C and C++ we need to have the C++ compiler decide
2229 # the declaration of exit, since it's the most demanding environment.
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #ifndef __cplusplus
2232   choke me
2233 #endif
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237   (eval $ac_compile) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); } &&
2241          { ac_try='test -s conftest.$ac_objext'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; }; then
2247   for ac_declaration in \
2248    ''\
2249    '#include <stdlib.h>' \
2250    'extern "C" void std::exit (int) throw (); using std::exit;' \
2251    'extern "C" void std::exit (int); using std::exit;' \
2252    'extern "C" void exit (int) throw ();' \
2253    'extern "C" void exit (int);' \
2254    'void exit (int);'
2255 do
2256   cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 #include "confdefs.h"
2259 #include <stdlib.h>
2260 $ac_declaration
2261 #ifdef F77_DUMMY_MAIN
2262 #  ifdef __cplusplus
2263      extern "C"
2264 #  endif
2265    int F77_DUMMY_MAIN() { return 1; }
2266 #endif
2267 int
2268 main ()
2269 {
2270 exit (42);
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   :
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 continue
2292 fi
2293 rm -f conftest.$ac_objext conftest.$ac_ext
2294   cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 #include "confdefs.h"
2297 $ac_declaration
2298 #ifdef F77_DUMMY_MAIN
2299 #  ifdef __cplusplus
2300      extern "C"
2301 #  endif
2302    int F77_DUMMY_MAIN() { return 1; }
2303 #endif
2304 int
2305 main ()
2306 {
2307 exit (42);
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -s conftest.$ac_objext'
2319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; }; then
2324   break
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 done
2331 rm -f conftest*
2332 if test -n "$ac_declaration"; then
2333   echo '#ifdef __cplusplus' >>confdefs.h
2334   echo $ac_declaration      >>confdefs.h
2335   echo '#endif'             >>confdefs.h
2336 fi
2337
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 fi
2342 rm -f conftest.$ac_objext conftest.$ac_ext
2343 ac_ext=c
2344 ac_cpp='$CPP $CPPFLAGS'
2345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 rm -f .deps 2>/dev/null
2349 mkdir .deps 2>/dev/null
2350 if test -d .deps; then
2351   DEPDIR=.deps
2352 else
2353   # MS-DOS does not allow filenames that begin with a dot.
2354   DEPDIR=_deps
2355 fi
2356 rmdir .deps 2>/dev/null
2357
2358
2359 ac_config_commands="$ac_config_commands depfiles"
2360
2361
2362 am_make=${MAKE-make}
2363 cat > confinc << 'END'
2364 doit:
2365         @echo done
2366 END
2367 # If we don't find an include directive, just comment out the code.
2368 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2369 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2370 am__include="#"
2371 am__quote=
2372 _am_result=none
2373 # First try GNU make style include.
2374 echo "include confinc" > confmf
2375 # We grep out `Entering directory' and `Leaving directory'
2376 # messages which can occur if `w' ends up in MAKEFLAGS.
2377 # In particular we don't look at `^make:' because GNU make might
2378 # be invoked under some other name (usually "gmake"), in which
2379 # case it prints its new name instead of `make'.
2380 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2381    am__include=include
2382    am__quote=
2383    _am_result=GNU
2384 fi
2385 # Now try BSD make style include.
2386 if test "$am__include" = "#"; then
2387    echo '.include "confinc"' > confmf
2388    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2389       am__include=.include
2390       am__quote="\""
2391       _am_result=BSD
2392    fi
2393 fi
2394
2395
2396 echo "$as_me:$LINENO: result: $_am_result" >&5
2397 echo "${ECHO_T}$_am_result" >&6
2398 rm -f confinc confmf
2399
2400 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2401 if test "${enable_dependency_tracking+set}" = set; then
2402   enableval="$enable_dependency_tracking"
2403
2404 fi;
2405 if test "x$enable_dependency_tracking" != xno; then
2406   am_depcomp="$ac_aux_dir/depcomp"
2407   AMDEPBACKSLASH='\'
2408 fi
2409
2410
2411 if test "x$enable_dependency_tracking" != xno; then
2412   AMDEP_TRUE=
2413   AMDEP_FALSE='#'
2414 else
2415   AMDEP_TRUE='#'
2416   AMDEP_FALSE=
2417 fi
2418
2419
2420
2421
2422 depcc="$CC"   am_compiler_list=
2423
2424 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2426 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2430   # We make a subdir and do the tests there.  Otherwise we can end up
2431   # making bogus files that we don't know about and never remove.  For
2432   # instance it was reported that on HP-UX the gcc test will end up
2433   # making a dummy file named `D' -- because `-MD' means `put the output
2434   # in D'.
2435   mkdir conftest.dir
2436   # Copy depcomp to subdir because otherwise we won't find it if we're
2437   # using a relative directory.
2438   cp "$am_depcomp" conftest.dir
2439   cd conftest.dir
2440
2441   am_cv_CC_dependencies_compiler_type=none
2442   if test "$am_compiler_list" = ""; then
2443      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2444   fi
2445   for depmode in $am_compiler_list; do
2446     # We need to recreate these files for each test, as the compiler may
2447     # overwrite some of them when testing with obscure command lines.
2448     # This happens at least with the AIX C compiler.
2449     echo '#include "conftest.h"' > conftest.c
2450     echo 'int i;' > conftest.h
2451     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2452
2453     case $depmode in
2454     nosideeffect)
2455       # after this tag, mechanisms are not by side-effect, so they'll
2456       # only be used when explicitly requested
2457       if test "x$enable_dependency_tracking" = xyes; then
2458         continue
2459       else
2460         break
2461       fi
2462       ;;
2463     none) break ;;
2464     esac
2465     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2466     # mode.  It turns out that the SunPro C++ compiler does not properly
2467     # handle `-M -o', and we need to detect this.
2468     if depmode=$depmode \
2469        source=conftest.c object=conftest.o \
2470        depfile=conftest.Po tmpdepfile=conftest.TPo \
2471        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2472        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2473        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2474       am_cv_CC_dependencies_compiler_type=$depmode
2475       break
2476     fi
2477   done
2478
2479   cd ..
2480   rm -rf conftest.dir
2481 else
2482   am_cv_CC_dependencies_compiler_type=none
2483 fi
2484
2485 fi
2486 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2487 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2488 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2489
2490
2491 ac_ext=cc
2492 ac_cpp='$CXXCPP $CPPFLAGS'
2493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2496 if test -n "$ac_tool_prefix"; then
2497   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2498   do
2499     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2501 echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_CXX+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$CXX"; then
2507   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522
2523 fi
2524 fi
2525 CXX=$ac_cv_prog_CXX
2526 if test -n "$CXX"; then
2527   echo "$as_me:$LINENO: result: $CXX" >&5
2528 echo "${ECHO_T}$CXX" >&6
2529 else
2530   echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6
2532 fi
2533
2534     test -n "$CXX" && break
2535   done
2536 fi
2537 if test -z "$CXX"; then
2538   ac_ct_CXX=$CXX
2539   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2540 do
2541   # Extract the first word of "$ac_prog", so it can be a program name with args.
2542 set dummy $ac_prog; ac_word=$2
2543 echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2545 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2546   echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548   if test -n "$ac_ct_CXX"; then
2549   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556   for ac_exec_ext in '' $ac_executable_extensions; do
2557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2558     ac_cv_prog_ac_ct_CXX="$ac_prog"
2559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560     break 2
2561   fi
2562 done
2563 done
2564
2565 fi
2566 fi
2567 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2568 if test -n "$ac_ct_CXX"; then
2569   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2570 echo "${ECHO_T}$ac_ct_CXX" >&6
2571 else
2572   echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6
2574 fi
2575
2576   test -n "$ac_ct_CXX" && break
2577 done
2578 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2579
2580   CXX=$ac_ct_CXX
2581 fi
2582
2583
2584 # Provide some information about the compiler.
2585 echo "$as_me:$LINENO:" \
2586      "checking for C++ compiler version" >&5
2587 ac_compiler=`set X $ac_compile; echo $2`
2588 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2589   (eval $ac_compiler --version </dev/null >&5) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }
2593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2594   (eval $ac_compiler -v </dev/null >&5) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }
2598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2599   (eval $ac_compiler -V </dev/null >&5) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }
2603
2604 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2605 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2606 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 #include "confdefs.h"
2612
2613 #ifdef F77_DUMMY_MAIN
2614 #  ifdef __cplusplus
2615      extern "C"
2616 #  endif
2617    int F77_DUMMY_MAIN() { return 1; }
2618 #endif
2619 int
2620 main ()
2621 {
2622 #ifndef __GNUC__
2623        choke me
2624 #endif
2625
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632   (eval $ac_compile) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); } &&
2636          { ac_try='test -s conftest.$ac_objext'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; }; then
2642   ac_compiler_gnu=yes
2643 else
2644   echo "$as_me: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 ac_compiler_gnu=no
2647 fi
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2650
2651 fi
2652 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2654 GXX=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CXXFLAGS=${CXXFLAGS+set}
2656 ac_save_CXXFLAGS=$CXXFLAGS
2657 CXXFLAGS="-g"
2658 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2659 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cxx_g+set}" = set; then
2661   echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663   cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2665 #include "confdefs.h"
2666
2667 #ifdef F77_DUMMY_MAIN
2668 #  ifdef __cplusplus
2669      extern "C"
2670 #  endif
2671    int F77_DUMMY_MAIN() { return 1; }
2672 #endif
2673 int
2674 main ()
2675 {
2676
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683   (eval $ac_compile) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); } &&
2687          { ac_try='test -s conftest.$ac_objext'
2688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; }; then
2693   ac_cv_prog_cxx_g=yes
2694 else
2695   echo "$as_me: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2697 ac_cv_prog_cxx_g=no
2698 fi
2699 rm -f conftest.$ac_objext conftest.$ac_ext
2700 fi
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2703 if test "$ac_test_CXXFLAGS" = set; then
2704   CXXFLAGS=$ac_save_CXXFLAGS
2705 elif test $ac_cv_prog_cxx_g = yes; then
2706   if test "$GXX" = yes; then
2707     CXXFLAGS="-g -O2"
2708   else
2709     CXXFLAGS="-g"
2710   fi
2711 else
2712   if test "$GXX" = yes; then
2713     CXXFLAGS="-O2"
2714   else
2715     CXXFLAGS=
2716   fi
2717 fi
2718 for ac_declaration in \
2719    ''\
2720    '#include <stdlib.h>' \
2721    'extern "C" void std::exit (int) throw (); using std::exit;' \
2722    'extern "C" void std::exit (int); using std::exit;' \
2723    'extern "C" void exit (int) throw ();' \
2724    'extern "C" void exit (int);' \
2725    'void exit (int);'
2726 do
2727   cat >conftest.$ac_ext <<_ACEOF
2728 #line $LINENO "configure"
2729 #include "confdefs.h"
2730 #include <stdlib.h>
2731 $ac_declaration
2732 #ifdef F77_DUMMY_MAIN
2733 #  ifdef __cplusplus
2734      extern "C"
2735 #  endif
2736    int F77_DUMMY_MAIN() { return 1; }
2737 #endif
2738 int
2739 main ()
2740 {
2741 exit (42);
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748   (eval $ac_compile) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } &&
2752          { ac_try='test -s conftest.$ac_objext'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; }; then
2758   :
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2762 continue
2763 fi
2764 rm -f conftest.$ac_objext conftest.$ac_ext
2765   cat >conftest.$ac_ext <<_ACEOF
2766 #line $LINENO "configure"
2767 #include "confdefs.h"
2768 $ac_declaration
2769 #ifdef F77_DUMMY_MAIN
2770 #  ifdef __cplusplus
2771      extern "C"
2772 #  endif
2773    int F77_DUMMY_MAIN() { return 1; }
2774 #endif
2775 int
2776 main ()
2777 {
2778 exit (42);
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); } &&
2789          { ac_try='test -s conftest.$ac_objext'
2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791   (eval $ac_try) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; }; then
2795   break
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2799 fi
2800 rm -f conftest.$ac_objext conftest.$ac_ext
2801 done
2802 rm -f conftest*
2803 if test -n "$ac_declaration"; then
2804   echo '#ifdef __cplusplus' >>confdefs.h
2805   echo $ac_declaration      >>confdefs.h
2806   echo '#endif'             >>confdefs.h
2807 fi
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814
2815 depcc="$CXX"  am_compiler_list=
2816
2817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2819 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2820   echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2823   # We make a subdir and do the tests there.  Otherwise we can end up
2824   # making bogus files that we don't know about and never remove.  For
2825   # instance it was reported that on HP-UX the gcc test will end up
2826   # making a dummy file named `D' -- because `-MD' means `put the output
2827   # in D'.
2828   mkdir conftest.dir
2829   # Copy depcomp to subdir because otherwise we won't find it if we're
2830   # using a relative directory.
2831   cp "$am_depcomp" conftest.dir
2832   cd conftest.dir
2833
2834   am_cv_CXX_dependencies_compiler_type=none
2835   if test "$am_compiler_list" = ""; then
2836      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2837   fi
2838   for depmode in $am_compiler_list; do
2839     # We need to recreate these files for each test, as the compiler may
2840     # overwrite some of them when testing with obscure command lines.
2841     # This happens at least with the AIX C compiler.
2842     echo '#include "conftest.h"' > conftest.c
2843     echo 'int i;' > conftest.h
2844     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2845
2846     case $depmode in
2847     nosideeffect)
2848       # after this tag, mechanisms are not by side-effect, so they'll
2849       # only be used when explicitly requested
2850       if test "x$enable_dependency_tracking" = xyes; then
2851         continue
2852       else
2853         break
2854       fi
2855       ;;
2856     none) break ;;
2857     esac
2858     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2859     # mode.  It turns out that the SunPro C++ compiler does not properly
2860     # handle `-M -o', and we need to detect this.
2861     if depmode=$depmode \
2862        source=conftest.c object=conftest.o \
2863        depfile=conftest.Po tmpdepfile=conftest.TPo \
2864        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2865        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2866        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2867       am_cv_CXX_dependencies_compiler_type=$depmode
2868       break
2869     fi
2870   done
2871
2872   cd ..
2873   rm -rf conftest.dir
2874 else
2875   am_cv_CXX_dependencies_compiler_type=none
2876 fi
2877
2878 fi
2879 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2880 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2881 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2882
2883
2884 ac_ext=c
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2890 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2891 # On Suns, sometimes $CPP names a directory.
2892 if test -n "$CPP" && test -d "$CPP"; then
2893   CPP=
2894 fi
2895 if test -z "$CPP"; then
2896   if test "${ac_cv_prog_CPP+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899       # Double quotes because CPP needs to be expanded
2900     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2901     do
2902       ac_preproc_ok=false
2903 for ac_c_preproc_warn_flag in '' yes
2904 do
2905   # Use a header file that comes with gcc, so configuring glibc
2906   # with a fresh cross-compiler works.
2907   # On the NeXT, cc -E runs the code through the compiler's parser,
2908   # not just through cpp. "Syntax error" is here to catch this case.
2909   cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2911 #include "confdefs.h"
2912 #include <assert.h>
2913                      Syntax error
2914 _ACEOF
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2917   ac_status=$?
2918   egrep -v '^ *\+' conftest.er1 >conftest.err
2919   rm -f conftest.er1
2920   cat conftest.err >&5
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); } >/dev/null; then
2923   if test -s conftest.err; then
2924     ac_cpp_err=$ac_c_preproc_warn_flag
2925   else
2926     ac_cpp_err=
2927   fi
2928 else
2929   ac_cpp_err=yes
2930 fi
2931 if test -z "$ac_cpp_err"; then
2932   :
2933 else
2934   echo "$as_me: failed program was:" >&5
2935   cat conftest.$ac_ext >&5
2936   # Broken: fails on valid input.
2937 continue
2938 fi
2939 rm -f conftest.err conftest.$ac_ext
2940
2941   # OK, works on sane cases.  Now check whether non-existent headers
2942   # can be detected and how.
2943   cat >conftest.$ac_ext <<_ACEOF
2944 #line $LINENO "configure"
2945 #include "confdefs.h"
2946 #include <ac_nonexistent.h>
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950   ac_status=$?
2951   egrep -v '^ *\+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } >/dev/null; then
2956   if test -s conftest.err; then
2957     ac_cpp_err=$ac_c_preproc_warn_flag
2958   else
2959     ac_cpp_err=
2960   fi
2961 else
2962   ac_cpp_err=yes
2963 fi
2964 if test -z "$ac_cpp_err"; then
2965   # Broken: success on invalid input.
2966 continue
2967 else
2968   echo "$as_me: failed program was:" >&5
2969   cat conftest.$ac_ext >&5
2970   # Passes both tests.
2971 ac_preproc_ok=:
2972 break
2973 fi
2974 rm -f conftest.err conftest.$ac_ext
2975
2976 done
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2980   break
2981 fi
2982
2983     done
2984     ac_cv_prog_CPP=$CPP
2985
2986 fi
2987   CPP=$ac_cv_prog_CPP
2988 else
2989   ac_cv_prog_CPP=$CPP
2990 fi
2991 echo "$as_me:$LINENO: result: $CPP" >&5
2992 echo "${ECHO_T}$CPP" >&6
2993 ac_preproc_ok=false
2994 for ac_c_preproc_warn_flag in '' yes
2995 do
2996   # Use a header file that comes with gcc, so configuring glibc
2997   # with a fresh cross-compiler works.
2998   # On the NeXT, cc -E runs the code through the compiler's parser,
2999   # not just through cpp. "Syntax error" is here to catch this case.
3000   cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 #include "confdefs.h"
3003 #include <assert.h>
3004                      Syntax error
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008   ac_status=$?
3009   egrep -v '^ *\+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } >/dev/null; then
3014   if test -s conftest.err; then
3015     ac_cpp_err=$ac_c_preproc_warn_flag
3016   else
3017     ac_cpp_err=
3018   fi
3019 else
3020   ac_cpp_err=yes
3021 fi
3022 if test -z "$ac_cpp_err"; then
3023   :
3024 else
3025   echo "$as_me: failed program was:" >&5
3026   cat conftest.$ac_ext >&5
3027   # Broken: fails on valid input.
3028 continue
3029 fi
3030 rm -f conftest.err conftest.$ac_ext
3031
3032   # OK, works on sane cases.  Now check whether non-existent headers
3033   # can be detected and how.
3034   cat >conftest.$ac_ext <<_ACEOF
3035 #line $LINENO "configure"
3036 #include "confdefs.h"
3037 #include <ac_nonexistent.h>
3038 _ACEOF
3039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041   ac_status=$?
3042   egrep -v '^ *\+' conftest.er1 >conftest.err
3043   rm -f conftest.er1
3044   cat conftest.err >&5
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } >/dev/null; then
3047   if test -s conftest.err; then
3048     ac_cpp_err=$ac_c_preproc_warn_flag
3049   else
3050     ac_cpp_err=
3051   fi
3052 else
3053   ac_cpp_err=yes
3054 fi
3055 if test -z "$ac_cpp_err"; then
3056   # Broken: success on invalid input.
3057 continue
3058 else
3059   echo "$as_me: failed program was:" >&5
3060   cat conftest.$ac_ext >&5
3061   # Passes both tests.
3062 ac_preproc_ok=:
3063 break
3064 fi
3065 rm -f conftest.err conftest.$ac_ext
3066
3067 done
3068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3069 rm -f conftest.err conftest.$ac_ext
3070 if $ac_preproc_ok; then
3071   :
3072 else
3073   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3075    { (exit 1); exit 1; }; }
3076 fi
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083
3084
3085 for ac_prog in flex lex
3086 do
3087   # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091 if test "${ac_cv_prog_LEX+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   if test -n "$LEX"; then
3095   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102   for ac_exec_ext in '' $ac_executable_extensions; do
3103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104     ac_cv_prog_LEX="$ac_prog"
3105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109 done
3110
3111 fi
3112 fi
3113 LEX=$ac_cv_prog_LEX
3114 if test -n "$LEX"; then
3115   echo "$as_me:$LINENO: result: $LEX" >&5
3116 echo "${ECHO_T}$LEX" >&6
3117 else
3118   echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120 fi
3121
3122   test -n "$LEX" && break
3123 done
3124 test -n "$LEX" || LEX=":"
3125
3126 if test -z "$LEXLIB"
3127 then
3128   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3129 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3130 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3131   echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133   ac_check_lib_save_LIBS=$LIBS
3134 LIBS="-lfl  $LIBS"
3135 cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 #include "confdefs.h"
3138
3139 /* Override any gcc2 internal prototype to avoid an error.  */
3140 #ifdef __cplusplus
3141 extern "C"
3142 #endif
3143 /* We use char because int might match the return type of a gcc2
3144    builtin and then its argument prototype would still apply.  */
3145 char yywrap ();
3146 #ifdef F77_DUMMY_MAIN
3147 #  ifdef __cplusplus
3148      extern "C"
3149 #  endif
3150    int F77_DUMMY_MAIN() { return 1; }
3151 #endif
3152 int
3153 main ()
3154 {
3155 yywrap ();
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext conftest$ac_exeext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3162   (eval $ac_link) 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } &&
3166          { ac_try='test -s conftest$ac_exeext'
3167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168   (eval $ac_try) 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   ac_cv_lib_fl_yywrap=yes
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3176 ac_cv_lib_fl_yywrap=no
3177 fi
3178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3179 LIBS=$ac_check_lib_save_LIBS
3180 fi
3181 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3182 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3183 if test $ac_cv_lib_fl_yywrap = yes; then
3184   LEXLIB="-lfl"
3185 else
3186   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3187 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3188 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   ac_check_lib_save_LIBS=$LIBS
3192 LIBS="-ll  $LIBS"
3193 cat >conftest.$ac_ext <<_ACEOF
3194 #line $LINENO "configure"
3195 #include "confdefs.h"
3196
3197 /* Override any gcc2 internal prototype to avoid an error.  */
3198 #ifdef __cplusplus
3199 extern "C"
3200 #endif
3201 /* We use char because int might match the return type of a gcc2
3202    builtin and then its argument prototype would still apply.  */
3203 char yywrap ();
3204 #ifdef F77_DUMMY_MAIN
3205 #  ifdef __cplusplus
3206      extern "C"
3207 #  endif
3208    int F77_DUMMY_MAIN() { return 1; }
3209 #endif
3210 int
3211 main ()
3212 {
3213 yywrap ();
3214   ;
3215   return 0;
3216 }
3217 _ACEOF
3218 rm -f conftest.$ac_objext conftest$ac_exeext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3220   (eval $ac_link) 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } &&
3224          { ac_try='test -s conftest$ac_exeext'
3225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226   (eval $ac_try) 2>&5
3227   ac_status=$?
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); }; }; then
3230   ac_cv_lib_l_yywrap=yes
3231 else
3232   echo "$as_me: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3234 ac_cv_lib_l_yywrap=no
3235 fi
3236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3237 LIBS=$ac_check_lib_save_LIBS
3238 fi
3239 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3240 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3241 if test $ac_cv_lib_l_yywrap = yes; then
3242   LEXLIB="-ll"
3243 fi
3244
3245 fi
3246
3247 fi
3248
3249 if test "x$LEX" != "x:"; then
3250   echo "$as_me:$LINENO: checking lex output file root" >&5
3251 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3252 if test "${ac_cv_prog_lex_root+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   # The minimal lex program is just a single line: %%.  But some broken lexes
3256 # (Solaris, I think it was) want two %% lines, so accommodate them.
3257 cat >conftest.l <<_ACEOF
3258 %%
3259 %%
3260 _ACEOF
3261 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3262   (eval $LEX conftest.l) 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); }
3266 if test -f lex.yy.c; then
3267   ac_cv_prog_lex_root=lex.yy
3268 elif test -f lexyy.c; then
3269   ac_cv_prog_lex_root=lexyy
3270 else
3271   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3272 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3273    { (exit 1); exit 1; }; }
3274 fi
3275 fi
3276 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3277 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3278 rm -f conftest.l
3279 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3280
3281 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3282 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3283 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   # POSIX says lex can declare yytext either as a pointer or an array; the
3287 # default is implementation-dependent. Figure out which it is, since
3288 # not all implementations provide the %pointer and %array declarations.
3289 ac_cv_prog_lex_yytext_pointer=no
3290 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3291 ac_save_LIBS=$LIBS
3292 LIBS="$LIBS $LEXLIB"
3293 cat >conftest.$ac_ext <<_ACEOF
3294 `cat $LEX_OUTPUT_ROOT.c`
3295 _ACEOF
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298   (eval $ac_link) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } &&
3302          { ac_try='test -s conftest$ac_exeext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_cv_prog_lex_yytext_pointer=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 fi
3313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3314 LIBS=$ac_save_LIBS
3315 rm -f "${LEX_OUTPUT_ROOT}.c"
3316
3317 fi
3318 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3319 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3320 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3321
3322 cat >>confdefs.h <<\_ACEOF
3323 #define YYTEXT_POINTER 1
3324 _ACEOF
3325
3326 fi
3327
3328 fi
3329 if test "$LEX" = :; then
3330   LEX=${am_missing_run}flex
3331 fi
3332 # Find a good install program.  We prefer a C program (faster),
3333 # so one script is as good as another.  But avoid the broken or
3334 # incompatible versions:
3335 # SysV /etc/install, /usr/sbin/install
3336 # SunOS /usr/etc/install
3337 # IRIX /sbin/install
3338 # AIX /bin/install
3339 # AmigaOS /C/install, which installs bootblocks on floppy discs
3340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3343 # ./install, which can be erroneously created by make from ./install.sh.
3344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3346 if test -z "$INSTALL"; then
3347 if test "${ac_cv_path_install+set}" = set; then
3348   echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   # Account for people who put trailing slashes in PATH elements.
3356 case $as_dir/ in
3357   ./ | .// | /cC/* | \
3358   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3359   /usr/ucb/* ) ;;
3360   *)
3361     # OSF1 and SCO ODT 3.0 have their own names for install.
3362     # Don't use installbsd from OSF since it installs stuff as root
3363     # by default.
3364     for ac_prog in ginstall scoinst install; do
3365       for ac_exec_ext in '' $ac_executable_extensions; do
3366         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3367           if test $ac_prog = install &&
3368             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3369             # AIX install.  It has an incompatible calling convention.
3370             :
3371           elif test $ac_prog = install &&
3372             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3373             # program-specific install script used by HP pwplus--don't use.
3374             :
3375           else
3376             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3377             break 3
3378           fi
3379         fi
3380       done
3381     done
3382     ;;
3383 esac
3384 done
3385
3386
3387 fi
3388   if test "${ac_cv_path_install+set}" = set; then
3389     INSTALL=$ac_cv_path_install
3390   else
3391     # As a last resort, use the slow shell script.  We don't cache a
3392     # path for INSTALL within a source directory, because that will
3393     # break other packages using the cache if that directory is
3394     # removed, or if the path is relative.
3395     INSTALL=$ac_install_sh
3396   fi
3397 fi
3398 echo "$as_me:$LINENO: result: $INSTALL" >&5
3399 echo "${ECHO_T}$INSTALL" >&6
3400
3401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3402 # It thinks the first close brace ends the variable substitution.
3403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3404
3405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3406
3407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3408
3409 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3410 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3411 LN_S=$as_ln_s
3412 if test "$LN_S" = "ln -s"; then
3413   echo "$as_me:$LINENO: result: yes" >&5
3414 echo "${ECHO_T}yes" >&6
3415 else
3416   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3417 echo "${ECHO_T}no, using $LN_S" >&6
3418 fi
3419
3420 if test -n "$ac_tool_prefix"; then
3421   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3423 echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_prog_RANLIB+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   if test -n "$RANLIB"; then
3429   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436   for ac_exec_ext in '' $ac_executable_extensions; do
3437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440     break 2
3441   fi
3442 done
3443 done
3444
3445 fi
3446 fi
3447 RANLIB=$ac_cv_prog_RANLIB
3448 if test -n "$RANLIB"; then
3449   echo "$as_me:$LINENO: result: $RANLIB" >&5
3450 echo "${ECHO_T}$RANLIB" >&6
3451 else
3452   echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454 fi
3455
3456 fi
3457 if test -z "$ac_cv_prog_RANLIB"; then
3458   ac_ct_RANLIB=$RANLIB
3459   # Extract the first word of "ranlib", so it can be a program name with args.
3460 set dummy ranlib; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   if test -n "$ac_ct_RANLIB"; then
3467   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474   for ac_exec_ext in '' $ac_executable_extensions; do
3475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476     ac_cv_prog_ac_ct_RANLIB="ranlib"
3477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481 done
3482
3483   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3484 fi
3485 fi
3486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487 if test -n "$ac_ct_RANLIB"; then
3488   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3490 else
3491   echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3493 fi
3494
3495   RANLIB=$ac_ct_RANLIB
3496 else
3497   RANLIB="$ac_cv_prog_RANLIB"
3498 fi
3499
3500 for ac_prog in 'bison -y' byacc
3501 do
3502   # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 echo "$as_me:$LINENO: checking for $ac_word" >&5
3505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3506 if test "${ac_cv_prog_YACC+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   if test -n "$YACC"; then
3510   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517   for ac_exec_ext in '' $ac_executable_extensions; do
3518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519     ac_cv_prog_YACC="$ac_prog"
3520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524 done
3525
3526 fi
3527 fi
3528 YACC=$ac_cv_prog_YACC
3529 if test -n "$YACC"; then
3530   echo "$as_me:$LINENO: result: $YACC" >&5
3531 echo "${ECHO_T}$YACC" >&6
3532 else
3533   echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3535 fi
3536
3537   test -n "$YACC" && break
3538 done
3539 test -n "$YACC" || YACC="yacc"
3540
3541 for ac_prog in gawk mawk nawk awk
3542 do
3543   # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_AWK+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   if test -n "$AWK"; then
3551   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556   IFS=$as_save_IFS
3557   test -z "$as_dir" && as_dir=.
3558   for ac_exec_ext in '' $ac_executable_extensions; do
3559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560     ac_cv_prog_AWK="$ac_prog"
3561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562     break 2
3563   fi
3564 done
3565 done
3566
3567 fi
3568 fi
3569 AWK=$ac_cv_prog_AWK
3570 if test -n "$AWK"; then
3571   echo "$as_me:$LINENO: result: $AWK" >&5
3572 echo "${ECHO_T}$AWK" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578   test -n "$AWK" && break
3579 done
3580
3581
3582 # Extract the first word of "xml2-config", so it can be a program name with args.
3583 set dummy xml2-config; ac_word=$2
3584 echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3586 if test "${ac_cv_path_XML_CONFIG+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   case $XML_CONFIG in
3590   [\\/]* | ?:[\\/]*)
3591   ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
3592   ;;
3593   *)
3594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597   IFS=$as_save_IFS
3598   test -z "$as_dir" && as_dir=.
3599   for ac_exec_ext in '' $ac_executable_extensions; do
3600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601     ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603     break 2
3604   fi
3605 done
3606 done
3607
3608   test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
3609   ;;
3610 esac
3611 fi
3612 XML_CONFIG=$ac_cv_path_XML_CONFIG
3613
3614 if test -n "$XML_CONFIG"; then
3615   echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
3616 echo "${ECHO_T}$XML_CONFIG" >&6
3617 else
3618   echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3620 fi
3621
3622
3623 if test $XML_CONFIG = "no"
3624 then
3625    echo "XML library not found (see http://xmlsoft.org/)."
3626    exit 1;
3627 fi
3628
3629
3630
3631 echo "$as_me:$LINENO: checking for X" >&5
3632 echo $ECHO_N "checking for X... $ECHO_C" >&6
3633
3634
3635 # Check whether --with-x or --without-x was given.
3636 if test "${with_x+set}" = set; then
3637   withval="$with_x"
3638
3639 fi;
3640 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3641 if test "x$with_x" = xno; then
3642   # The user explicitly disabled X.
3643   have_x=disabled
3644 else
3645   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3646     # Both variables are already set.
3647     have_x=yes
3648   else
3649     if test "${ac_cv_have_x+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   # One or both of the vars are not set, and there is no cached value.
3653 ac_x_includes=no ac_x_libraries=no
3654 rm -fr conftest.dir
3655 if mkdir conftest.dir; then
3656   cd conftest.dir
3657   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3658   cat >Imakefile <<'_ACEOF'
3659 acfindx:
3660         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3661 _ACEOF
3662   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3663     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3664     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3665     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3666     for ac_extension in a so sl; do
3667       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3668          test -f $ac_im_libdir/libX11.$ac_extension; then
3669         ac_im_usrlibdir=$ac_im_libdir; break
3670       fi
3671     done
3672     # Screen out bogus values from the imake configuration.  They are
3673     # bogus both because they are the default anyway, and because
3674     # using them would break gcc on systems where it needs fixed includes.
3675     case $ac_im_incroot in
3676         /usr/include) ;;
3677         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3678     esac
3679     case $ac_im_usrlibdir in
3680         /usr/lib | /lib) ;;
3681         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3682     esac
3683   fi
3684   cd ..
3685   rm -fr conftest.dir
3686 fi
3687
3688 # Standard set of common directories for X headers.
3689 # Check X11 before X11Rn because it is often a symlink to the current release.
3690 ac_x_header_dirs='
3691 /usr/X11/include
3692 /usr/X11R6/include
3693 /usr/X11R5/include
3694 /usr/X11R4/include
3695
3696 /usr/include/X11
3697 /usr/include/X11R6
3698 /usr/include/X11R5
3699 /usr/include/X11R4
3700
3701 /usr/local/X11/include
3702 /usr/local/X11R6/include
3703 /usr/local/X11R5/include
3704 /usr/local/X11R4/include
3705
3706 /usr/local/include/X11
3707 /usr/local/include/X11R6
3708 /usr/local/include/X11R5
3709 /usr/local/include/X11R4
3710
3711 /usr/X386/include
3712 /usr/x386/include
3713 /usr/XFree86/include/X11
3714
3715 /usr/include
3716 /usr/local/include
3717 /usr/unsupported/include
3718 /usr/athena/include
3719 /usr/local/x11r5/include
3720 /usr/lpp/Xamples/include
3721
3722 /usr/openwin/include
3723 /usr/openwin/share/include'
3724
3725 if test "$ac_x_includes" = no; then
3726   # Guess where to find include files, by looking for Intrinsic.h.
3727   # First, try using that file with no special directory specified.
3728   cat >conftest.$ac_ext <<_ACEOF
3729 #line $LINENO "configure"
3730 #include "confdefs.h"
3731 #include <X11/Intrinsic.h>
3732 _ACEOF
3733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3734   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3735   ac_status=$?
3736   egrep -v '^ *\+' conftest.er1 >conftest.err
3737   rm -f conftest.er1
3738   cat conftest.err >&5
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); } >/dev/null; then
3741   if test -s conftest.err; then
3742     ac_cpp_err=$ac_c_preproc_warn_flag
3743   else
3744     ac_cpp_err=
3745   fi
3746 else
3747   ac_cpp_err=yes
3748 fi
3749 if test -z "$ac_cpp_err"; then
3750   # We can compile using X headers with no special include directory.
3751 ac_x_includes=
3752 else
3753   echo "$as_me: failed program was:" >&5
3754   cat conftest.$ac_ext >&5
3755   for ac_dir in $ac_x_header_dirs; do
3756   if test -r "$ac_dir/X11/Intrinsic.h"; then
3757     ac_x_includes=$ac_dir
3758     break
3759   fi
3760 done
3761 fi
3762 rm -f conftest.err conftest.$ac_ext
3763 fi # $ac_x_includes = no
3764
3765 if test "$ac_x_libraries" = no; then
3766   # Check for the libraries.
3767   # See if we find them without any special options.
3768   # Don't add to $LIBS permanently.
3769   ac_save_LIBS=$LIBS
3770   LIBS="-lXt $LIBS"
3771   cat >conftest.$ac_ext <<_ACEOF
3772 #line $LINENO "configure"
3773 #include "confdefs.h"
3774 #include <X11/Intrinsic.h>
3775 #ifdef F77_DUMMY_MAIN
3776 #  ifdef __cplusplus
3777      extern "C"
3778 #  endif
3779    int F77_DUMMY_MAIN() { return 1; }
3780 #endif
3781 int
3782 main ()
3783 {
3784 XtMalloc (0)
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791   (eval $ac_link) 2>&5
3792   ac_status=$?
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -s conftest$ac_exeext'
3796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797   (eval $ac_try) 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }; }; then
3801   LIBS=$ac_save_LIBS
3802 # We can link X programs with no special library path.
3803 ac_x_libraries=
3804 else
3805   echo "$as_me: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3807 LIBS=$ac_save_LIBS
3808 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3809 do
3810   # Don't even attempt the hair of trying to link an X program!
3811   for ac_extension in a so sl; do
3812     if test -r $ac_dir/libXt.$ac_extension; then
3813       ac_x_libraries=$ac_dir
3814       break 2
3815     fi
3816   done
3817 done
3818 fi
3819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3820 fi # $ac_x_libraries = no
3821
3822 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3823   # Didn't find X anywhere.  Cache the known absence of X.
3824   ac_cv_have_x="have_x=no"
3825 else
3826   # Record where we found X for the cache.
3827   ac_cv_have_x="have_x=yes \
3828                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3829 fi
3830 fi
3831
3832   fi
3833   eval "$ac_cv_have_x"
3834 fi # $with_x != no
3835
3836 if test "$have_x" != yes; then
3837   echo "$as_me:$LINENO: result: $have_x" >&5
3838 echo "${ECHO_T}$have_x" >&6
3839   no_x=yes
3840 else
3841   # If each of the values was on the command line, it overrides each guess.
3842   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3843   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3844   # Update the cache value to reflect the command line values.
3845   ac_cv_have_x="have_x=yes \
3846                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3847   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3848 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3849 fi
3850
3851 if test "$no_x" = yes; then
3852   # Not all programs may use this symbol, but it does not hurt to define it.
3853
3854 cat >>confdefs.h <<\_ACEOF
3855 #define X_DISPLAY_MISSING 1
3856 _ACEOF
3857
3858   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3859 else
3860   if test -n "$x_includes"; then
3861     X_CFLAGS="$X_CFLAGS -I$x_includes"
3862   fi
3863
3864   # It would also be nice to do this for all -L options, not just this one.
3865   if test -n "$x_libraries"; then
3866     X_LIBS="$X_LIBS -L$x_libraries"
3867     # For Solaris; some versions of Sun CC require a space after -R and
3868     # others require no space.  Words are not sufficient . . . .
3869     case `(uname -sr) 2>/dev/null` in
3870     "SunOS 5"*)
3871       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3872 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3873       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3874       cat >conftest.$ac_ext <<_ACEOF
3875 #line $LINENO "configure"
3876 #include "confdefs.h"
3877
3878 #ifdef F77_DUMMY_MAIN
3879 #  ifdef __cplusplus
3880      extern "C"
3881 #  endif
3882    int F77_DUMMY_MAIN() { return 1; }
3883 #endif
3884 int
3885 main ()
3886 {
3887
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894   (eval $ac_link) 2>&5
3895   ac_status=$?
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } &&
3898          { ac_try='test -s conftest$ac_exeext'
3899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900   (eval $ac_try) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }; }; then
3904   ac_R_nospace=yes
3905 else
3906   echo "$as_me: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3908 ac_R_nospace=no
3909 fi
3910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3911       if test $ac_R_nospace = yes; then
3912         echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914         X_LIBS="$X_LIBS -R$x_libraries"
3915       else
3916         LIBS="$ac_xsave_LIBS -R $x_libraries"
3917         cat >conftest.$ac_ext <<_ACEOF
3918 #line $LINENO "configure"
3919 #include "confdefs.h"
3920
3921 #ifdef F77_DUMMY_MAIN
3922 #  ifdef __cplusplus
3923      extern "C"
3924 #  endif
3925    int F77_DUMMY_MAIN() { return 1; }
3926 #endif
3927 int
3928 main ()
3929 {
3930
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext conftest$ac_exeext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3937   (eval $ac_link) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); } &&
3941          { ac_try='test -s 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   ac_R_space=yes
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3951 ac_R_space=no
3952 fi
3953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3954         if test $ac_R_space = yes; then
3955           echo "$as_me:$LINENO: result: yes" >&5
3956 echo "${ECHO_T}yes" >&6
3957           X_LIBS="$X_LIBS -R $x_libraries"
3958         else
3959           echo "$as_me:$LINENO: result: neither works" >&5
3960 echo "${ECHO_T}neither works" >&6
3961         fi
3962       fi
3963       LIBS=$ac_xsave_LIBS
3964     esac
3965   fi
3966
3967   # Check for system-dependent libraries X programs must link with.
3968   # Do this before checking for the system-independent R6 libraries
3969   # (-lICE), since we may need -lsocket or whatever for X linking.
3970
3971   if test "$ISC" = yes; then
3972     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3973   else
3974     # Martyn Johnson says this is needed for Ultrix, if the X
3975     # libraries were built with DECnet support.  And Karl Berry says
3976     # the Alpha needs dnet_stub (dnet does not exist).
3977     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3978     cat >conftest.$ac_ext <<_ACEOF
3979 #line $LINENO "configure"
3980 #include "confdefs.h"
3981
3982 /* Override any gcc2 internal prototype to avoid an error.  */
3983 #ifdef __cplusplus
3984 extern "C"
3985 #endif
3986 /* We use char because int might match the return type of a gcc2
3987    builtin and then its argument prototype would still apply.  */
3988 char XOpenDisplay ();
3989 #ifdef F77_DUMMY_MAIN
3990 #  ifdef __cplusplus
3991      extern "C"
3992 #  endif
3993    int F77_DUMMY_MAIN() { return 1; }
3994 #endif
3995 int
3996 main ()
3997 {
3998 XOpenDisplay ();
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005   (eval $ac_link) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } &&
4009          { ac_try='test -s conftest$ac_exeext'
4010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011   (eval $ac_try) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }; }; then
4015   :
4016 else
4017   echo "$as_me: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4019 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4020 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4021 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   ac_check_lib_save_LIBS=$LIBS
4025 LIBS="-ldnet  $LIBS"
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line $LINENO "configure"
4028 #include "confdefs.h"
4029
4030 /* Override any gcc2 internal prototype to avoid an error.  */
4031 #ifdef __cplusplus
4032 extern "C"
4033 #endif
4034 /* We use char because int might match the return type of a gcc2
4035    builtin and then its argument prototype would still apply.  */
4036 char dnet_ntoa ();
4037 #ifdef F77_DUMMY_MAIN
4038 #  ifdef __cplusplus
4039      extern "C"
4040 #  endif
4041    int F77_DUMMY_MAIN() { return 1; }
4042 #endif
4043 int
4044 main ()
4045 {
4046 dnet_ntoa ();
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.$ac_objext conftest$ac_exeext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4053   (eval $ac_link) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } &&
4057          { ac_try='test -s conftest$ac_exeext'
4058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059   (eval $ac_try) 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; }; then
4063   ac_cv_lib_dnet_dnet_ntoa=yes
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_cv_lib_dnet_dnet_ntoa=no
4068 fi
4069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4070 LIBS=$ac_check_lib_save_LIBS
4071 fi
4072 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4073 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4074 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4075   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4076 fi
4077
4078     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4079       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4080 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4081 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   ac_check_lib_save_LIBS=$LIBS
4085 LIBS="-ldnet_stub  $LIBS"
4086 cat >conftest.$ac_ext <<_ACEOF
4087 #line $LINENO "configure"
4088 #include "confdefs.h"
4089
4090 /* Override any gcc2 internal prototype to avoid an error.  */
4091 #ifdef __cplusplus
4092 extern "C"
4093 #endif
4094 /* We use char because int might match the return type of a gcc2
4095    builtin and then its argument prototype would still apply.  */
4096 char dnet_ntoa ();
4097 #ifdef F77_DUMMY_MAIN
4098 #  ifdef __cplusplus
4099      extern "C"
4100 #  endif
4101    int F77_DUMMY_MAIN() { return 1; }
4102 #endif
4103 int
4104 main ()
4105 {
4106 dnet_ntoa ();
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext conftest$ac_exeext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113   (eval $ac_link) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } &&
4117          { ac_try='test -s conftest$ac_exeext'
4118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119   (eval $ac_try) 2>&5
4120   ac_status=$?
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); }; }; then
4123   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4124 else
4125   echo "$as_me: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4127 ac_cv_lib_dnet_stub_dnet_ntoa=no
4128 fi
4129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4130 LIBS=$ac_check_lib_save_LIBS
4131 fi
4132 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4133 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4134 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4135   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4136 fi
4137
4138     fi
4139 fi
4140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4141     LIBS="$ac_xsave_LIBS"
4142
4143     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4144     # to get the SysV transport functions.
4145     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4146     # needs -lnsl.
4147     # The nsl library prevents programs from opening the X display
4148     # on Irix 5.2, according to T.E. Dickey.
4149     # The functions gethostbyname, getservbyname, and inet_addr are
4150     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4151     echo "$as_me:$LINENO: checking for gethostbyname" >&5
4152 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4153 if test "${ac_cv_func_gethostbyname+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   cat >conftest.$ac_ext <<_ACEOF
4157 #line $LINENO "configure"
4158 #include "confdefs.h"
4159 /* System header to define __stub macros and hopefully few prototypes,
4160     which can conflict with char gethostbyname (); below.  */
4161 #include <assert.h>
4162 /* Override any gcc2 internal prototype to avoid an error.  */
4163 #ifdef __cplusplus
4164 extern "C"
4165 #endif
4166 /* We use char because int might match the return type of a gcc2
4167    builtin and then its argument prototype would still apply.  */
4168 char gethostbyname ();
4169 char (*f) ();
4170
4171 #ifdef F77_DUMMY_MAIN
4172 #  ifdef __cplusplus
4173      extern "C"
4174 #  endif
4175    int F77_DUMMY_MAIN() { return 1; }
4176 #endif
4177 int
4178 main ()
4179 {
4180 /* The GNU C library defines this for functions which it implements
4181     to always fail with ENOSYS.  Some functions are actually named
4182     something starting with __ and the normal name is an alias.  */
4183 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4184 choke me
4185 #else
4186 f = gethostbyname;
4187 #endif
4188
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 rm -f conftest.$ac_objext conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195   (eval $ac_link) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } &&
4199          { ac_try='test -s conftest$ac_exeext'
4200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201   (eval $ac_try) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   ac_cv_func_gethostbyname=yes
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 ac_cv_func_gethostbyname=no
4210 fi
4211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4212 fi
4213 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4214 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4215
4216     if test $ac_cv_func_gethostbyname = no; then
4217       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4218 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4219 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222   ac_check_lib_save_LIBS=$LIBS
4223 LIBS="-lnsl  $LIBS"
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 #include "confdefs.h"
4227
4228 /* Override any gcc2 internal prototype to avoid an error.  */
4229 #ifdef __cplusplus
4230 extern "C"
4231 #endif
4232 /* We use char because int might match the return type of a gcc2
4233    builtin and then its argument prototype would still apply.  */
4234 char gethostbyname ();
4235 #ifdef F77_DUMMY_MAIN
4236 #  ifdef __cplusplus
4237      extern "C"
4238 #  endif
4239    int F77_DUMMY_MAIN() { return 1; }
4240 #endif
4241 int
4242 main ()
4243 {
4244 gethostbyname ();
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.$ac_objext conftest$ac_exeext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251   (eval $ac_link) 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); } &&
4255          { ac_try='test -s conftest$ac_exeext'
4256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257   (eval $ac_try) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; }; then
4261   ac_cv_lib_nsl_gethostbyname=yes
4262 else
4263   echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 ac_cv_lib_nsl_gethostbyname=no
4266 fi
4267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4268 LIBS=$ac_check_lib_save_LIBS
4269 fi
4270 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4271 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4272 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4273   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4274 fi
4275
4276       if test $ac_cv_lib_nsl_gethostbyname = no; then
4277         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4278 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4279 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4280   echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282   ac_check_lib_save_LIBS=$LIBS
4283 LIBS="-lbsd  $LIBS"
4284 cat >conftest.$ac_ext <<_ACEOF
4285 #line $LINENO "configure"
4286 #include "confdefs.h"
4287
4288 /* Override any gcc2 internal prototype to avoid an error.  */
4289 #ifdef __cplusplus
4290 extern "C"
4291 #endif
4292 /* We use char because int might match the return type of a gcc2
4293    builtin and then its argument prototype would still apply.  */
4294 char gethostbyname ();
4295 #ifdef F77_DUMMY_MAIN
4296 #  ifdef __cplusplus
4297      extern "C"
4298 #  endif
4299    int F77_DUMMY_MAIN() { return 1; }
4300 #endif
4301 int
4302 main ()
4303 {
4304 gethostbyname ();
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 rm -f conftest.$ac_objext conftest$ac_exeext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4311   (eval $ac_link) 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } &&
4315          { ac_try='test -s conftest$ac_exeext'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; }; then
4321   ac_cv_lib_bsd_gethostbyname=yes
4322 else
4323   echo "$as_me: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4325 ac_cv_lib_bsd_gethostbyname=no
4326 fi
4327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4329 fi
4330 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4331 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4332 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4333   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4334 fi
4335
4336       fi
4337     fi
4338
4339     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4340     # socket/setsockopt and other routines are undefined under SCO ODT
4341     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4342     # on later versions), says Simon Leinen: it contains gethostby*
4343     # variants that don't use the nameserver (or something).  -lsocket
4344     # must be given before -lnsl if both are needed.  We assume that
4345     # if connect needs -lnsl, so does gethostbyname.
4346     echo "$as_me:$LINENO: checking for connect" >&5
4347 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4348 if test "${ac_cv_func_connect+set}" = set; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   cat >conftest.$ac_ext <<_ACEOF
4352 #line $LINENO "configure"
4353 #include "confdefs.h"
4354 /* System header to define __stub macros and hopefully few prototypes,
4355     which can conflict with char connect (); below.  */
4356 #include <assert.h>
4357 /* Override any gcc2 internal prototype to avoid an error.  */
4358 #ifdef __cplusplus
4359 extern "C"
4360 #endif
4361 /* We use char because int might match the return type of a gcc2
4362    builtin and then its argument prototype would still apply.  */
4363 char connect ();
4364 char (*f) ();
4365
4366 #ifdef F77_DUMMY_MAIN
4367 #  ifdef __cplusplus
4368      extern "C"
4369 #  endif
4370    int F77_DUMMY_MAIN() { return 1; }
4371 #endif
4372 int
4373 main ()
4374 {
4375 /* The GNU C library defines this for functions which it implements
4376     to always fail with ENOSYS.  Some functions are actually named
4377     something starting with __ and the normal name is an alias.  */
4378 #if defined (__stub_connect) || defined (__stub___connect)
4379 choke me
4380 #else
4381 f = connect;
4382 #endif
4383
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest.$ac_objext conftest$ac_exeext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390   (eval $ac_link) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -s conftest$ac_exeext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   ac_cv_func_connect=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 ac_cv_func_connect=no
4405 fi
4406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4407 fi
4408 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4409 echo "${ECHO_T}$ac_cv_func_connect" >&6
4410
4411     if test $ac_cv_func_connect = no; then
4412       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4413 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4414 if test "${ac_cv_lib_socket_connect+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   ac_check_lib_save_LIBS=$LIBS
4418 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 #include "confdefs.h"
4422
4423 /* Override any gcc2 internal prototype to avoid an error.  */
4424 #ifdef __cplusplus
4425 extern "C"
4426 #endif
4427 /* We use char because int might match the return type of a gcc2
4428    builtin and then its argument prototype would still apply.  */
4429 char connect ();
4430 #ifdef F77_DUMMY_MAIN
4431 #  ifdef __cplusplus
4432      extern "C"
4433 #  endif
4434    int F77_DUMMY_MAIN() { return 1; }
4435 #endif
4436 int
4437 main ()
4438 {
4439 connect ();
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446   (eval $ac_link) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } &&
4450          { ac_try='test -s conftest$ac_exeext'
4451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452   (eval $ac_try) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   ac_cv_lib_socket_connect=yes
4457 else
4458   echo "$as_me: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4460 ac_cv_lib_socket_connect=no
4461 fi
4462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4463 LIBS=$ac_check_lib_save_LIBS
4464 fi
4465 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4466 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4467 if test $ac_cv_lib_socket_connect = yes; then
4468   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4469 fi
4470
4471     fi
4472
4473     # Guillermo Gomez says -lposix is necessary on A/UX.
4474     echo "$as_me:$LINENO: checking for remove" >&5
4475 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4476 if test "${ac_cv_func_remove+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   cat >conftest.$ac_ext <<_ACEOF
4480 #line $LINENO "configure"
4481 #include "confdefs.h"
4482 /* System header to define __stub macros and hopefully few prototypes,
4483     which can conflict with char remove (); below.  */
4484 #include <assert.h>
4485 /* Override any gcc2 internal prototype to avoid an error.  */
4486 #ifdef __cplusplus
4487 extern "C"
4488 #endif
4489 /* We use char because int might match the return type of a gcc2
4490    builtin and then its argument prototype would still apply.  */
4491 char remove ();
4492 char (*f) ();
4493
4494 #ifdef F77_DUMMY_MAIN
4495 #  ifdef __cplusplus
4496      extern "C"
4497 #  endif
4498    int F77_DUMMY_MAIN() { return 1; }
4499 #endif
4500 int
4501 main ()
4502 {
4503 /* The GNU C library defines this for functions which it implements
4504     to always fail with ENOSYS.  Some functions are actually named
4505     something starting with __ and the normal name is an alias.  */
4506 #if defined (__stub_remove) || defined (__stub___remove)
4507 choke me
4508 #else
4509 f = remove;
4510 #endif
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518   (eval $ac_link) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } &&
4522          { ac_try='test -s conftest$ac_exeext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   ac_cv_func_remove=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 ac_cv_func_remove=no
4533 fi
4534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4535 fi
4536 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4537 echo "${ECHO_T}$ac_cv_func_remove" >&6
4538
4539     if test $ac_cv_func_remove = no; then
4540       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4541 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4542 if test "${ac_cv_lib_posix_remove+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   ac_check_lib_save_LIBS=$LIBS
4546 LIBS="-lposix  $LIBS"
4547 cat >conftest.$ac_ext <<_ACEOF
4548 #line $LINENO "configure"
4549 #include "confdefs.h"
4550
4551 /* Override any gcc2 internal prototype to avoid an error.  */
4552 #ifdef __cplusplus
4553 extern "C"
4554 #endif
4555 /* We use char because int might match the return type of a gcc2
4556    builtin and then its argument prototype would still apply.  */
4557 char remove ();
4558 #ifdef F77_DUMMY_MAIN
4559 #  ifdef __cplusplus
4560      extern "C"
4561 #  endif
4562    int F77_DUMMY_MAIN() { return 1; }
4563 #endif
4564 int
4565 main ()
4566 {
4567 remove ();
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574   (eval $ac_link) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); } &&
4578          { ac_try='test -s conftest$ac_exeext'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; }; then
4584   ac_cv_lib_posix_remove=yes
4585 else
4586   echo "$as_me: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 ac_cv_lib_posix_remove=no
4589 fi
4590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4591 LIBS=$ac_check_lib_save_LIBS
4592 fi
4593 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4594 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4595 if test $ac_cv_lib_posix_remove = yes; then
4596   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4597 fi
4598
4599     fi
4600
4601     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4602     echo "$as_me:$LINENO: checking for shmat" >&5
4603 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4604 if test "${ac_cv_func_shmat+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   cat >conftest.$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4609 #include "confdefs.h"
4610 /* System header to define __stub macros and hopefully few prototypes,
4611     which can conflict with char shmat (); below.  */
4612 #include <assert.h>
4613 /* Override any gcc2 internal prototype to avoid an error.  */
4614 #ifdef __cplusplus
4615 extern "C"
4616 #endif
4617 /* We use char because int might match the return type of a gcc2
4618    builtin and then its argument prototype would still apply.  */
4619 char shmat ();
4620 char (*f) ();
4621
4622 #ifdef F77_DUMMY_MAIN
4623 #  ifdef __cplusplus
4624      extern "C"
4625 #  endif
4626    int F77_DUMMY_MAIN() { return 1; }
4627 #endif
4628 int
4629 main ()
4630 {
4631 /* The GNU C library defines this for functions which it implements
4632     to always fail with ENOSYS.  Some functions are actually named
4633     something starting with __ and the normal name is an alias.  */
4634 #if defined (__stub_shmat) || defined (__stub___shmat)
4635 choke me
4636 #else
4637 f = shmat;
4638 #endif
4639
4640   ;
4641   return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest.$ac_objext conftest$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646   (eval $ac_link) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -s conftest$ac_exeext'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   ac_cv_func_shmat=yes
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4660 ac_cv_func_shmat=no
4661 fi
4662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4663 fi
4664 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4665 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4666
4667     if test $ac_cv_func_shmat = no; then
4668       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4669 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4670 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   ac_check_lib_save_LIBS=$LIBS
4674 LIBS="-lipc  $LIBS"
4675 cat >conftest.$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4677 #include "confdefs.h"
4678
4679 /* Override any gcc2 internal prototype to avoid an error.  */
4680 #ifdef __cplusplus
4681 extern "C"
4682 #endif
4683 /* We use char because int might match the return type of a gcc2
4684    builtin and then its argument prototype would still apply.  */
4685 char shmat ();
4686 #ifdef F77_DUMMY_MAIN
4687 #  ifdef __cplusplus
4688      extern "C"
4689 #  endif
4690    int F77_DUMMY_MAIN() { return 1; }
4691 #endif
4692 int
4693 main ()
4694 {
4695 shmat ();
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702   (eval $ac_link) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } &&
4706          { ac_try='test -s conftest$ac_exeext'
4707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708   (eval $ac_try) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }; }; then
4712   ac_cv_lib_ipc_shmat=yes
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4716 ac_cv_lib_ipc_shmat=no
4717 fi
4718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4719 LIBS=$ac_check_lib_save_LIBS
4720 fi
4721 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4722 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4723 if test $ac_cv_lib_ipc_shmat = yes; then
4724   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4725 fi
4726
4727     fi
4728   fi
4729
4730   # Check for libraries that X11R6 Xt/Xaw programs need.
4731   ac_save_LDFLAGS=$LDFLAGS
4732   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4733   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4734   # check for ICE first), but we must link in the order -lSM -lICE or
4735   # we get undefined symbols.  So assume we have SM if we have ICE.
4736   # These have to be linked with before -lX11, unlike the other
4737   # libraries we check for below, so use a different variable.
4738   # John Interrante, Karl Berry
4739   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4740 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4741 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 #include "confdefs.h"
4749
4750 /* Override any gcc2 internal prototype to avoid an error.  */
4751 #ifdef __cplusplus
4752 extern "C"
4753 #endif
4754 /* We use char because int might match the return type of a gcc2
4755    builtin and then its argument prototype would still apply.  */
4756 char IceConnectionNumber ();
4757 #ifdef F77_DUMMY_MAIN
4758 #  ifdef __cplusplus
4759      extern "C"
4760 #  endif
4761    int F77_DUMMY_MAIN() { return 1; }
4762 #endif
4763 int
4764 main ()
4765 {
4766 IceConnectionNumber ();
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.$ac_objext conftest$ac_exeext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773   (eval $ac_link) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } &&
4777          { ac_try='test -s conftest$ac_exeext'
4778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779   (eval $ac_try) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); }; }; then
4783   ac_cv_lib_ICE_IceConnectionNumber=yes
4784 else
4785   echo "$as_me: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4787 ac_cv_lib_ICE_IceConnectionNumber=no
4788 fi
4789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4790 LIBS=$ac_check_lib_save_LIBS
4791 fi
4792 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4793 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4794 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4795   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4796 fi
4797
4798   LDFLAGS=$ac_save_LDFLAGS
4799
4800 fi
4801
4802
4803 XML_CFLAGS=`$XML_CONFIG --cflags`
4804 XML_LFLAGS=`$XML_CONFIG --libs`
4805
4806 LIBS="$LIBS -lAXE -lpq++ $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4807 LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS"
4808 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS"
4809 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS"
4810
4811
4812 echo "$as_me:$LINENO: checking for main in -lAXE" >&5
4813 echo $ECHO_N "checking for main in -lAXE... $ECHO_C" >&6
4814 if test "${ac_cv_lib_AXE_main+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   ac_check_lib_save_LIBS=$LIBS
4818 LIBS="-lAXE  $LIBS"
4819 cat >conftest.$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4821 #include "confdefs.h"
4822
4823
4824 #ifdef F77_DUMMY_MAIN
4825 #  ifdef __cplusplus
4826      extern "C"
4827 #  endif
4828    int F77_DUMMY_MAIN() { return 1; }
4829 #endif
4830 int
4831 main ()
4832 {
4833 main ();
4834   ;
4835   return 0;
4836 }
4837 _ACEOF
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4840   (eval $ac_link) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); } &&
4844          { ac_try='test -s conftest$ac_exeext'
4845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846   (eval $ac_try) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); }; }; then
4850   ac_cv_lib_AXE_main=yes
4851 else
4852   echo "$as_me: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 ac_cv_lib_AXE_main=no
4855 fi
4856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4857 LIBS=$ac_check_lib_save_LIBS
4858 fi
4859 echo "$as_me:$LINENO: result: $ac_cv_lib_AXE_main" >&5
4860 echo "${ECHO_T}$ac_cv_lib_AXE_main" >&6
4861 if test $ac_cv_lib_AXE_main = yes; then
4862   cat >>confdefs.h <<_ACEOF
4863 #define HAVE_LIBAXE 1
4864 _ACEOF
4865
4866   LIBS="-lAXE $LIBS"
4867
4868 fi
4869
4870
4871 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
4872 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
4873 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
4874   echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876   ac_check_lib_save_LIBS=$LIBS
4877 LIBS="-lX11  $LIBS"
4878 cat >conftest.$ac_ext <<_ACEOF
4879 #line $LINENO "configure"
4880 #include "confdefs.h"
4881
4882 /* Override any gcc2 internal prototype to avoid an error.  */
4883 #ifdef __cplusplus
4884 extern "C"
4885 #endif
4886 /* We use char because int might match the return type of a gcc2
4887    builtin and then its argument prototype would still apply.  */
4888 char XOpenDisplay ();
4889 #ifdef F77_DUMMY_MAIN
4890 #  ifdef __cplusplus
4891      extern "C"
4892 #  endif
4893    int F77_DUMMY_MAIN() { return 1; }
4894 #endif
4895 int
4896 main ()
4897 {
4898 XOpenDisplay ();
4899   ;
4900   return 0;
4901 }
4902 _ACEOF
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905   (eval $ac_link) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } &&
4909          { ac_try='test -s conftest$ac_exeext'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; }; then
4915   ac_cv_lib_X11_XOpenDisplay=yes
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 ac_cv_lib_X11_XOpenDisplay=no
4920 fi
4921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4922 LIBS=$ac_check_lib_save_LIBS
4923 fi
4924 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
4925 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
4926 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
4927   cat >>confdefs.h <<_ACEOF
4928 #define HAVE_LIBX11 1
4929 _ACEOF
4930
4931   LIBS="-lX11 $LIBS"
4932
4933 fi
4934
4935
4936 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
4937 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
4938 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   ac_check_lib_save_LIBS=$LIBS
4942 LIBS="-lXpm  $LIBS"
4943 cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 #include "confdefs.h"
4946
4947 /* Override any gcc2 internal prototype to avoid an error.  */
4948 #ifdef __cplusplus
4949 extern "C"
4950 #endif
4951 /* We use char because int might match the return type of a gcc2
4952    builtin and then its argument prototype would still apply.  */
4953 char XpmCreatePixmapFromData ();
4954 #ifdef F77_DUMMY_MAIN
4955 #  ifdef __cplusplus
4956      extern "C"
4957 #  endif
4958    int F77_DUMMY_MAIN() { return 1; }
4959 #endif
4960 int
4961 main ()
4962 {
4963 XpmCreatePixmapFromData ();
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970   (eval $ac_link) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } &&
4974          { ac_try='test -s conftest$ac_exeext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
4985 fi
4986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4987 LIBS=$ac_check_lib_save_LIBS
4988 fi
4989 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4990 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4991 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4992   cat >>confdefs.h <<_ACEOF
4993 #define HAVE_LIBXPM 1
4994 _ACEOF
4995
4996   LIBS="-lXpm $LIBS"
4997
4998 fi
4999
5000
5001 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5002 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5003 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   ac_check_lib_save_LIBS=$LIBS
5007 LIBS="-lpthread  $LIBS"
5008 cat >conftest.$ac_ext <<_ACEOF
5009 #line $LINENO "configure"
5010 #include "confdefs.h"
5011
5012 /* Override any gcc2 internal prototype to avoid an error.  */
5013 #ifdef __cplusplus
5014 extern "C"
5015 #endif
5016 /* We use char because int might match the return type of a gcc2
5017    builtin and then its argument prototype would still apply.  */
5018 char pthread_create ();
5019 #ifdef F77_DUMMY_MAIN
5020 #  ifdef __cplusplus
5021      extern "C"
5022 #  endif
5023    int F77_DUMMY_MAIN() { return 1; }
5024 #endif
5025 int
5026 main ()
5027 {
5028 pthread_create ();
5029   ;
5030   return 0;
5031 }
5032 _ACEOF
5033 rm -f conftest.$ac_objext conftest$ac_exeext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5035   (eval $ac_link) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); } &&
5039          { ac_try='test -s conftest$ac_exeext'
5040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041   (eval $ac_try) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   ac_cv_lib_pthread_pthread_create=yes
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5049 ac_cv_lib_pthread_pthread_create=no
5050 fi
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5055 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5056 if test $ac_cv_lib_pthread_pthread_create = yes; then
5057   cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBPTHREAD 1
5059 _ACEOF
5060
5061   LIBS="-lpthread $LIBS"
5062
5063 fi
5064
5065
5066 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
5067 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
5068 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   ac_check_lib_save_LIBS=$LIBS
5072 LIBS="-lxml2  $LIBS"
5073 cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5075 #include "confdefs.h"
5076
5077 /* Override any gcc2 internal prototype to avoid an error.  */
5078 #ifdef __cplusplus
5079 extern "C"
5080 #endif
5081 /* We use char because int might match the return type of a gcc2
5082    builtin and then its argument prototype would still apply.  */
5083 char xmlParseFile ();
5084 #ifdef F77_DUMMY_MAIN
5085 #  ifdef __cplusplus
5086      extern "C"
5087 #  endif
5088    int F77_DUMMY_MAIN() { return 1; }
5089 #endif
5090 int
5091 main ()
5092 {
5093 xmlParseFile ();
5094   ;
5095   return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100   (eval $ac_link) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } &&
5104          { ac_try='test -s conftest$ac_exeext'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; }; then
5110   ac_cv_lib_xml2_xmlParseFile=yes
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 ac_cv_lib_xml2_xmlParseFile=no
5115 fi
5116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5117 LIBS=$ac_check_lib_save_LIBS
5118 fi
5119 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
5120 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
5121 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
5122   cat >>confdefs.h <<_ACEOF
5123 #define HAVE_LIBXML2 1
5124 _ACEOF
5125
5126   LIBS="-lxml2 $LIBS"
5127
5128 fi
5129
5130
5131
5132
5133
5134
5135
5136 ac_header_dirent=no
5137 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5138   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5139 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5140 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144   cat >conftest.$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5146 #include "confdefs.h"
5147 #include <sys/types.h>
5148 #include <$ac_hdr>
5149
5150 #ifdef F77_DUMMY_MAIN
5151 #  ifdef __cplusplus
5152      extern "C"
5153 #  endif
5154    int F77_DUMMY_MAIN() { return 1; }
5155 #endif
5156 int
5157 main ()
5158 {
5159 if ((DIR *) 0)
5160 return 0;
5161   ;
5162   return 0;
5163 }
5164 _ACEOF
5165 rm -f conftest.$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167   (eval $ac_compile) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); } &&
5171          { ac_try='test -s conftest.$ac_objext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   eval "$as_ac_Header=yes"
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 eval "$as_ac_Header=no"
5182 fi
5183 rm -f conftest.$ac_objext conftest.$ac_ext
5184 fi
5185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5188   cat >>confdefs.h <<_ACEOF
5189 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5190 _ACEOF
5191
5192 ac_header_dirent=$ac_hdr; break
5193 fi
5194
5195 done
5196 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5197 if test $ac_header_dirent = dirent.h; then
5198   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5199 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5200 if test "${ac_cv_search_opendir+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   ac_func_search_save_LIBS=$LIBS
5204 ac_cv_search_opendir=no
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5207 #include "confdefs.h"
5208
5209 /* Override any gcc2 internal prototype to avoid an error.  */
5210 #ifdef __cplusplus
5211 extern "C"
5212 #endif
5213 /* We use char because int might match the return type of a gcc2
5214    builtin and then its argument prototype would still apply.  */
5215 char opendir ();
5216 #ifdef F77_DUMMY_MAIN
5217 #  ifdef __cplusplus
5218      extern "C"
5219 #  endif
5220    int F77_DUMMY_MAIN() { return 1; }
5221 #endif
5222 int
5223 main ()
5224 {
5225 opendir ();
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232   (eval $ac_link) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } &&
5236          { ac_try='test -s conftest$ac_exeext'
5237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; }; then
5242   ac_cv_search_opendir="none required"
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5246 fi
5247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5248 if test "$ac_cv_search_opendir" = no; then
5249   for ac_lib in dir; do
5250     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5251     cat >conftest.$ac_ext <<_ACEOF
5252 #line $LINENO "configure"
5253 #include "confdefs.h"
5254
5255 /* Override any gcc2 internal prototype to avoid an error.  */
5256 #ifdef __cplusplus
5257 extern "C"
5258 #endif
5259 /* We use char because int might match the return type of a gcc2
5260    builtin and then its argument prototype would still apply.  */
5261 char opendir ();
5262 #ifdef F77_DUMMY_MAIN
5263 #  ifdef __cplusplus
5264      extern "C"
5265 #  endif
5266    int F77_DUMMY_MAIN() { return 1; }
5267 #endif
5268 int
5269 main ()
5270 {
5271 opendir ();
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext conftest$ac_exeext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5278   (eval $ac_link) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } &&
5282          { ac_try='test -s conftest$ac_exeext'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; }; then
5288   ac_cv_search_opendir="-l$ac_lib"
5289 break
5290 else
5291   echo "$as_me: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 fi
5294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295   done
5296 fi
5297 LIBS=$ac_func_search_save_LIBS
5298 fi
5299 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5300 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5301 if test "$ac_cv_search_opendir" != no; then
5302   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5303
5304 fi
5305
5306 else
5307   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5308 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5309 if test "${ac_cv_search_opendir+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   ac_func_search_save_LIBS=$LIBS
5313 ac_cv_search_opendir=no
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5316 #include "confdefs.h"
5317
5318 /* Override any gcc2 internal prototype to avoid an error.  */
5319 #ifdef __cplusplus
5320 extern "C"
5321 #endif
5322 /* We use char because int might match the return type of a gcc2
5323    builtin and then its argument prototype would still apply.  */
5324 char opendir ();
5325 #ifdef F77_DUMMY_MAIN
5326 #  ifdef __cplusplus
5327      extern "C"
5328 #  endif
5329    int F77_DUMMY_MAIN() { return 1; }
5330 #endif
5331 int
5332 main ()
5333 {
5334 opendir ();
5335   ;
5336   return 0;
5337 }
5338 _ACEOF
5339 rm -f conftest.$ac_objext conftest$ac_exeext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5341   (eval $ac_link) 2>&5
5342   ac_status=$?
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } &&
5345          { ac_try='test -s conftest$ac_exeext'
5346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347   (eval $ac_try) 2>&5
5348   ac_status=$?
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); }; }; then
5351   ac_cv_search_opendir="none required"
5352 else
5353   echo "$as_me: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5355 fi
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5357 if test "$ac_cv_search_opendir" = no; then
5358   for ac_lib in x; do
5359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5360     cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5362 #include "confdefs.h"
5363
5364 /* Override any gcc2 internal prototype to avoid an error.  */
5365 #ifdef __cplusplus
5366 extern "C"
5367 #endif
5368 /* We use char because int might match the return type of a gcc2
5369    builtin and then its argument prototype would still apply.  */
5370 char opendir ();
5371 #ifdef F77_DUMMY_MAIN
5372 #  ifdef __cplusplus
5373      extern "C"
5374 #  endif
5375    int F77_DUMMY_MAIN() { return 1; }
5376 #endif
5377 int
5378 main ()
5379 {
5380 opendir ();
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext conftest$ac_exeext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387   (eval $ac_link) 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); } &&
5391          { ac_try='test -s conftest$ac_exeext'
5392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393   (eval $ac_try) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); }; }; then
5397   ac_cv_search_opendir="-l$ac_lib"
5398 break
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 fi
5403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5404   done
5405 fi
5406 LIBS=$ac_func_search_save_LIBS
5407 fi
5408 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5409 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5410 if test "$ac_cv_search_opendir" != no; then
5411   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5412
5413 fi
5414
5415 fi
5416
5417 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5418 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5419 if test "${ac_cv_header_stdc+set}" = set; then
5420   echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422   cat >conftest.$ac_ext <<_ACEOF
5423 #line $LINENO "configure"
5424 #include "confdefs.h"
5425 #include <stdlib.h>
5426 #include <stdarg.h>
5427 #include <string.h>
5428 #include <float.h>
5429
5430 _ACEOF
5431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5433   ac_status=$?
5434   egrep -v '^ *\+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } >/dev/null; then
5439   if test -s conftest.err; then
5440     ac_cpp_err=$ac_c_preproc_warn_flag
5441   else
5442     ac_cpp_err=
5443   fi
5444 else
5445   ac_cpp_err=yes
5446 fi
5447 if test -z "$ac_cpp_err"; then
5448   ac_cv_header_stdc=yes
5449 else
5450   echo "$as_me: failed program was:" >&5
5451   cat conftest.$ac_ext >&5
5452   ac_cv_header_stdc=no
5453 fi
5454 rm -f conftest.err conftest.$ac_ext
5455
5456 if test $ac_cv_header_stdc = yes; then
5457   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5458   cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 #include "confdefs.h"
5461 #include <string.h>
5462
5463 _ACEOF
5464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5465   egrep "memchr" >/dev/null 2>&1; then
5466   :
5467 else
5468   ac_cv_header_stdc=no
5469 fi
5470 rm -f conftest*
5471
5472 fi
5473
5474 if test $ac_cv_header_stdc = yes; then
5475   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5476   cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5478 #include "confdefs.h"
5479 #include <stdlib.h>
5480
5481 _ACEOF
5482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483   egrep "free" >/dev/null 2>&1; then
5484   :
5485 else
5486   ac_cv_header_stdc=no
5487 fi
5488 rm -f conftest*
5489
5490 fi
5491
5492 if test $ac_cv_header_stdc = yes; then
5493   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5494   if test "$cross_compiling" = yes; then
5495   :
5496 else
5497   cat >conftest.$ac_ext <<_ACEOF
5498 #line $LINENO "configure"
5499 #include "confdefs.h"
5500 #include <ctype.h>
5501 #if ((' ' & 0x0FF) == 0x020)
5502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5504 #else
5505 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5506                      || ('j' <= (c) && (c) <= 'r') \
5507                      || ('s' <= (c) && (c) <= 'z'))
5508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5509 #endif
5510
5511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5512 int
5513 main ()
5514 {
5515   int i;
5516   for (i = 0; i < 256; i++)
5517     if (XOR (islower (i), ISLOWER (i))
5518         || toupper (i) != TOUPPER (i))
5519       exit(2);
5520   exit (0);
5521 }
5522 _ACEOF
5523 rm -f conftest$ac_exeext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5525   (eval $ac_link) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530   (eval $ac_try) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534   :
5535 else
5536   echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5539 ( exit $ac_status )
5540 ac_cv_header_stdc=no
5541 fi
5542 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5543 fi
5544 fi
5545 fi
5546 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5547 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5548 if test $ac_cv_header_stdc = yes; then
5549
5550 cat >>confdefs.h <<\_ACEOF
5551 #define STDC_HEADERS 1
5552 _ACEOF
5553
5554 fi
5555
5556 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5567                   inttypes.h stdint.h unistd.h
5568 do
5569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570 echo "$as_me:$LINENO: checking for $ac_header" >&5
5571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575   cat >conftest.$ac_ext <<_ACEOF
5576 #line $LINENO "configure"
5577 #include "confdefs.h"
5578 $ac_includes_default
5579
5580 #include <$ac_header>
5581 _ACEOF
5582 rm -f conftest.$ac_objext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584   (eval $ac_compile) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } &&
5588          { ac_try='test -s conftest.$ac_objext'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; }; then
5594   eval "$as_ac_Header=yes"
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 eval "$as_ac_Header=no"
5599 fi
5600 rm -f conftest.$ac_objext conftest.$ac_ext
5601 fi
5602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5605   cat >>confdefs.h <<_ACEOF
5606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607 _ACEOF
5608
5609 fi
5610
5611 done
5612
5613
5614
5615 for ac_header in unistd.h
5616 do
5617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5619   echo "$as_me:$LINENO: checking for $ac_header" >&5
5620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 fi
5624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5626 else
5627   # Is the header compilable?
5628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 #include "confdefs.h"
5633 $ac_includes_default
5634 #include <$ac_header>
5635 _ACEOF
5636 rm -f conftest.$ac_objext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638   (eval $ac_compile) 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } &&
5642          { ac_try='test -s conftest.$ac_objext'
5643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644   (eval $ac_try) 2>&5
5645   ac_status=$?
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); }; }; then
5648   ac_header_compiler=yes
5649 else
5650   echo "$as_me: failed program was:" >&5
5651 cat conftest.$ac_ext >&5
5652 ac_header_compiler=no
5653 fi
5654 rm -f conftest.$ac_objext conftest.$ac_ext
5655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5656 echo "${ECHO_T}$ac_header_compiler" >&6
5657
5658 # Is the header present?
5659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5661 cat >conftest.$ac_ext <<_ACEOF
5662 #line $LINENO "configure"
5663 #include "confdefs.h"
5664 #include <$ac_header>
5665 _ACEOF
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5668   ac_status=$?
5669   egrep -v '^ *\+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } >/dev/null; then
5674   if test -s conftest.err; then
5675     ac_cpp_err=$ac_c_preproc_warn_flag
5676   else
5677     ac_cpp_err=
5678   fi
5679 else
5680   ac_cpp_err=yes
5681 fi
5682 if test -z "$ac_cpp_err"; then
5683   ac_header_preproc=yes
5684 else
5685   echo "$as_me: failed program was:" >&5
5686   cat conftest.$ac_ext >&5
5687   ac_header_preproc=no
5688 fi
5689 rm -f conftest.err conftest.$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5691 echo "${ECHO_T}$ac_header_preproc" >&6
5692
5693 # So?  What about this header?
5694 case $ac_header_compiler:$ac_header_preproc in
5695   yes:no )
5696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5700   no:yes )
5701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5707 esac
5708 echo "$as_me:$LINENO: checking for $ac_header" >&5
5709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   eval "$as_ac_Header=$ac_header_preproc"
5714 fi
5715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5717
5718 fi
5719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5720   cat >>confdefs.h <<_ACEOF
5721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722 _ACEOF
5723
5724 fi
5725
5726 done
5727
5728
5729 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5730 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5731 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   ac_cv_prog_cc_stdc=no
5735 ac_save_CC=$CC
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 #include "confdefs.h"
5739 #include <stdarg.h>
5740 #include <stdio.h>
5741 #include <sys/types.h>
5742 #include <sys/stat.h>
5743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5744 struct buf { int x; };
5745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5746 static char *e (p, i)
5747      char **p;
5748      int i;
5749 {
5750   return p[i];
5751 }
5752 static char *f (char * (*g) (char **, int), char **p, ...)
5753 {
5754   char *s;
5755   va_list v;
5756   va_start (v,p);
5757   s = g (p, va_arg (v,int));
5758   va_end (v);
5759   return s;
5760 }
5761 int test (int i, double x);
5762 struct s1 {int (*f) (int a);};
5763 struct s2 {int (*f) (double a);};
5764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5765 int argc;
5766 char **argv;
5767 #ifdef F77_DUMMY_MAIN
5768 #  ifdef __cplusplus
5769      extern "C"
5770 #  endif
5771    int F77_DUMMY_MAIN() { return 1; }
5772 #endif
5773 int
5774 main ()
5775 {
5776 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 # Don't try gcc -ansi; that turns off useful extensions and
5782 # breaks some systems' header files.
5783 # AIX                   -qlanglvl=ansi
5784 # Ultrix and OSF/1      -std1
5785 # HP-UX 10.20 and later -Ae
5786 # HP-UX older versions  -Aa -D_HPUX_SOURCE
5787 # SVR4                  -Xc -D__EXTENSIONS__
5788 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5789 do
5790   CC="$ac_save_CC $ac_arg"
5791   rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793   (eval $ac_compile) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } &&
5797          { ac_try='test -s conftest.$ac_objext'
5798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799   (eval $ac_try) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; }; then
5803   ac_cv_prog_cc_stdc=$ac_arg
5804 break
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 cat conftest.$ac_ext >&5
5808 fi
5809 rm -f conftest.$ac_objext
5810 done
5811 rm -f conftest.$ac_ext conftest.$ac_objext
5812 CC=$ac_save_CC
5813
5814 fi
5815
5816 case "x$ac_cv_prog_cc_stdc" in
5817   x|xno)
5818     echo "$as_me:$LINENO: result: none needed" >&5
5819 echo "${ECHO_T}none needed" >&6 ;;
5820   *)
5821     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5822 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5823     CC="$CC $ac_cv_prog_cc_stdc" ;;
5824 esac
5825
5826 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5827 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5828 if test "${ac_cv_c_const+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   cat >conftest.$ac_ext <<_ACEOF
5832 #line $LINENO "configure"
5833 #include "confdefs.h"
5834
5835 #ifdef F77_DUMMY_MAIN
5836 #  ifdef __cplusplus
5837      extern "C"
5838 #  endif
5839    int F77_DUMMY_MAIN() { return 1; }
5840 #endif
5841 int
5842 main ()
5843 {
5844 /* FIXME: Include the comments suggested by Paul. */
5845 #ifndef __cplusplus
5846   /* Ultrix mips cc rejects this.  */
5847   typedef int charset[2];
5848   const charset x;
5849   /* SunOS 4.1.1 cc rejects this.  */
5850   char const *const *ccp;
5851   char **p;
5852   /* NEC SVR4.0.2 mips cc rejects this.  */
5853   struct point {int x, y;};
5854   static struct point const zero = {0,0};
5855   /* AIX XL C 1.02.0.0 rejects this.
5856      It does not let you subtract one const X* pointer from another in
5857      an arm of an if-expression whose if-part is not a constant
5858      expression */
5859   const char *g = "string";
5860   ccp = &g + (g ? g-g : 0);
5861   /* HPUX 7.0 cc rejects these. */
5862   ++ccp;
5863   p = (char**) ccp;
5864   ccp = (char const *const *) p;
5865   { /* SCO 3.2v4 cc rejects this.  */
5866     char *t;
5867     char const *s = 0 ? (char *) 0 : (char const *) 0;
5868
5869     *t++ = 0;
5870   }
5871   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5872     int x[] = {25, 17};
5873     const int *foo = &x[0];
5874     ++foo;
5875   }
5876   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5877     typedef const int *iptr;
5878     iptr p = 0;
5879     ++p;
5880   }
5881   { /* AIX XL C 1.02.0.0 rejects this saying
5882        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5883     struct s { int j; const int *ap[3]; };
5884     struct s *b; b->j = 5;
5885   }
5886   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5887     const int foo = 10;
5888   }
5889 #endif
5890
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897   (eval $ac_compile) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } &&
5901          { ac_try='test -s conftest.$ac_objext'
5902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903   (eval $ac_try) 2>&5
5904   ac_status=$?
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); }; }; then
5907   ac_cv_c_const=yes
5908 else
5909   echo "$as_me: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 ac_cv_c_const=no
5912 fi
5913 rm -f conftest.$ac_objext conftest.$ac_ext
5914 fi
5915 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5916 echo "${ECHO_T}$ac_cv_c_const" >&6
5917 if test $ac_cv_c_const = no; then
5918
5919 cat >>confdefs.h <<\_ACEOF
5920 #define const
5921 _ACEOF
5922
5923 fi
5924
5925
5926
5927
5928
5929 for ac_func in strtod strtol strtoul
5930 do
5931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5932 echo "$as_me:$LINENO: checking for $ac_func" >&5
5933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5934 if eval "test \"\${$as_ac_var+set}\" = set"; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   cat >conftest.$ac_ext <<_ACEOF
5938 #line $LINENO "configure"
5939 #include "confdefs.h"
5940 /* System header to define __stub macros and hopefully few prototypes,
5941     which can conflict with char $ac_func (); below.  */
5942 #include <assert.h>
5943 /* Override any gcc2 internal prototype to avoid an error.  */
5944 #ifdef __cplusplus
5945 extern "C"
5946 #endif
5947 /* We use char because int might match the return type of a gcc2
5948    builtin and then its argument prototype would still apply.  */
5949 char $ac_func ();
5950 char (*f) ();
5951
5952 #ifdef F77_DUMMY_MAIN
5953 #  ifdef __cplusplus
5954      extern "C"
5955 #  endif
5956    int F77_DUMMY_MAIN() { return 1; }
5957 #endif
5958 int
5959 main ()
5960 {
5961 /* The GNU C library defines this for functions which it implements
5962     to always fail with ENOSYS.  Some functions are actually named
5963     something starting with __ and the normal name is an alias.  */
5964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5965 choke me
5966 #else
5967 f = $ac_func;
5968 #endif
5969
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5976   (eval $ac_link) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } &&
5980          { ac_try='test -s conftest$ac_exeext'
5981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982   (eval $ac_try) 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   eval "$as_ac_var=yes"
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5990 eval "$as_ac_var=no"
5991 fi
5992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5993 fi
5994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5996 if test `eval echo '${'$as_ac_var'}'` = yes; then
5997   cat >>confdefs.h <<_ACEOF
5998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5999 _ACEOF
6000
6001 fi
6002 done
6003
6004
6005 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile"
6006 cat >confcache <<\_ACEOF
6007 # This file is a shell script that caches the results of configure
6008 # tests run on this system so they can be shared between configure
6009 # scripts and configure runs, see configure's option --config-cache.
6010 # It is not useful on other systems.  If it contains results you don't
6011 # want to keep, you may remove or edit it.
6012 #
6013 # config.status only pays attention to the cache file if you give it
6014 # the --recheck option to rerun configure.
6015 #
6016 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6018 # following values.
6019
6020 _ACEOF
6021
6022 # The following way of writing the cache mishandles newlines in values,
6023 # but we know of no workaround that is simple, portable, and efficient.
6024 # So, don't put newlines in cache variables' values.
6025 # Ultrix sh set writes to stderr and can't be redirected directly,
6026 # and sets the high bit in the cache file unless we assign to the vars.
6027 {
6028   (set) 2>&1 |
6029     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6030     *ac_space=\ *)
6031       # `set' does not quote correctly, so add quotes (double-quote
6032       # substitution turns \\\\ into \\, and sed turns \\ into \).
6033       sed -n \
6034         "s/'/'\\\\''/g;
6035           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6036       ;;
6037     *)
6038       # `set' quotes correctly as required by POSIX, so do not add quotes.
6039       sed -n \
6040         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6041       ;;
6042     esac;
6043 } |
6044   sed '
6045      t clear
6046      : clear
6047      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6048      t end
6049      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6050      : end' >>confcache
6051 if cmp -s $cache_file confcache; then :; else
6052   if test -w $cache_file; then
6053     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6054     cat confcache >$cache_file
6055   else
6056     echo "not updating unwritable cache $cache_file"
6057   fi
6058 fi
6059 rm -f confcache
6060
6061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6062 # Let make expand exec_prefix.
6063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6064
6065 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6066 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6067 # trailing colons and then remove the whole line if VPATH becomes empty
6068 # (actually we leave an empty line to preserve line numbers).
6069 if test "x$srcdir" = x.; then
6070   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6071 s/:*\$(srcdir):*/:/;
6072 s/:*\${srcdir}:*/:/;
6073 s/:*@srcdir@:*/:/;
6074 s/^\([^=]*=[    ]*\):*/\1/;
6075 s/:*$//;
6076 s/^[^=]*=[      ]*$//;
6077 }'
6078 fi
6079
6080 # Transform confdefs.h into DEFS.
6081 # Protect against shell expansion while executing Makefile rules.
6082 # Protect against Makefile macro expansion.
6083 #
6084 # If the first sed substitution is executed (which looks for macros that
6085 # take arguments), then we branch to the quote section.  Otherwise,
6086 # look for a macro that doesn't take arguments.
6087 cat >confdef2opt.sed <<\_ACEOF
6088 t clear
6089 : clear
6090 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6091 t quote
6092 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6093 t quote
6094 d
6095 : quote
6096 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
6097 s,\[,\\&,g
6098 s,\],\\&,g
6099 s,\$,$$,g
6100 p
6101 _ACEOF
6102 # We use echo to avoid assuming a particular line-breaking character.
6103 # The extra dot is to prevent the shell from consuming trailing
6104 # line-breaks from the sub-command output.  A line-break within
6105 # single-quotes doesn't work because, if this script is created in a
6106 # platform that uses two characters for line-breaks (e.g., DOS), tr
6107 # would break.
6108 ac_LF_and_DOT=`echo; echo .`
6109 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6110 rm -f confdef2opt.sed
6111
6112
6113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6114   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6115 Usually this means the macro was only invoked conditionally." >&5
6116 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6117 Usually this means the macro was only invoked conditionally." >&2;}
6118    { (exit 1); exit 1; }; }
6119 fi
6120
6121 : ${CONFIG_STATUS=./config.status}
6122 ac_clean_files_save=$ac_clean_files
6123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6124 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6125 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6126 cat >$CONFIG_STATUS <<_ACEOF
6127 #! $SHELL
6128 # Generated by $as_me.
6129 # Run this file to recreate the current configuration.
6130 # Compiler output produced by configure, useful for debugging
6131 # configure, is in config.log if it exists.
6132
6133 debug=false
6134 SHELL=\${CONFIG_SHELL-$SHELL}
6135 _ACEOF
6136
6137 cat >>$CONFIG_STATUS <<\_ACEOF
6138
6139 ## --------------------- ##
6140 ## M4sh Initialization.  ##
6141 ## --------------------- ##
6142
6143 # Be Bourne compatible
6144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6145   emulate sh
6146   NULLCMD=:
6147 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6148   set -o posix
6149 fi
6150
6151 # NLS nuisances.
6152 # Support unset when possible.
6153 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6154   as_unset=unset
6155 else
6156   as_unset=false
6157 fi
6158
6159 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6160     { $as_unset LANG || test "${LANG+set}" != set; } ||
6161       { LANG=C; export LANG; }
6162 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6163     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6164       { LC_ALL=C; export LC_ALL; }
6165 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6166     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6167       { LC_TIME=C; export LC_TIME; }
6168 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6169     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6170       { LC_CTYPE=C; export LC_CTYPE; }
6171 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6172     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6173       { LANGUAGE=C; export LANGUAGE; }
6174 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6175     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6176       { LC_COLLATE=C; export LC_COLLATE; }
6177 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6178     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6179       { LC_NUMERIC=C; export LC_NUMERIC; }
6180 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6181     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6182       { LC_MESSAGES=C; export LC_MESSAGES; }
6183
6184
6185 # Name of the executable.
6186 as_me=`(basename "$0") 2>/dev/null ||
6187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6188          X"$0" : 'X\(//\)$' \| \
6189          X"$0" : 'X\(/\)$' \| \
6190          .     : '\(.\)' 2>/dev/null ||
6191 echo X/"$0" |
6192     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6193           /^X\/\(\/\/\)$/{ s//\1/; q; }
6194           /^X\/\(\/\).*/{ s//\1/; q; }
6195           s/.*/./; q'`
6196
6197 # PATH needs CR, and LINENO needs CR and PATH.
6198 # Avoid depending upon Character Ranges.
6199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6202 as_cr_digits='0123456789'
6203 as_cr_alnum=$as_cr_Letters$as_cr_digits
6204
6205 # The user is always right.
6206 if test "${PATH_SEPARATOR+set}" != set; then
6207   echo "#! /bin/sh" >conftest.sh
6208   echo  "exit 0"   >>conftest.sh
6209   chmod +x conftest.sh
6210   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6211     PATH_SEPARATOR=';'
6212   else
6213     PATH_SEPARATOR=:
6214   fi
6215   rm -f conftest.sh
6216 fi
6217
6218
6219   as_lineno_1=$LINENO
6220   as_lineno_2=$LINENO
6221   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6222   test "x$as_lineno_1" != "x$as_lineno_2" &&
6223   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6224   # Find who we are.  Look in the path if we contain no path at all
6225   # relative or not.
6226   case $0 in
6227     *[\\/]* ) as_myself=$0 ;;
6228     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231   IFS=$as_save_IFS
6232   test -z "$as_dir" && as_dir=.
6233   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6234 done
6235
6236        ;;
6237   esac
6238   # We did not find ourselves, most probably we were run as `sh COMMAND'
6239   # in which case we are not to be found in the path.
6240   if test "x$as_myself" = x; then
6241     as_myself=$0
6242   fi
6243   if test ! -f "$as_myself"; then
6244     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6245 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6246    { (exit 1); exit 1; }; }
6247   fi
6248   case $CONFIG_SHELL in
6249   '')
6250     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255   for as_base in sh bash ksh sh5; do
6256          case $as_dir in
6257          /*)
6258            if ("$as_dir/$as_base" -c '
6259   as_lineno_1=$LINENO
6260   as_lineno_2=$LINENO
6261   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6262   test "x$as_lineno_1" != "x$as_lineno_2" &&
6263   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6264              CONFIG_SHELL=$as_dir/$as_base
6265              export CONFIG_SHELL
6266              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6267            fi;;
6268          esac
6269        done
6270 done
6271 ;;
6272   esac
6273
6274   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6275   # uniformly replaced by the line number.  The first 'sed' inserts a
6276   # line-number line before each line; the second 'sed' does the real
6277   # work.  The second script uses 'N' to pair each line-number line
6278   # with the numbered line, and appends trailing '-' during
6279   # substitution so that $LINENO is not a special case at line end.
6280   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6281   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6282   sed '=' <$as_myself |
6283     sed '
6284       N
6285       s,$,-,
6286       : loop
6287       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6288       t loop
6289       s,-$,,
6290       s,^['$as_cr_digits']*\n,,
6291     ' >$as_me.lineno &&
6292   chmod +x $as_me.lineno ||
6293     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6294 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6295    { (exit 1); exit 1; }; }
6296
6297   # Don't try to exec as it changes $[0], causing all sort of problems
6298   # (the dirname of $[0] is not the place where we might find the
6299   # original and so on.  Autoconf is especially sensible to this).
6300   . ./$as_me.lineno
6301   # Exit status is that of the last command.
6302   exit
6303 }
6304
6305
6306 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6307   *c*,-n*) ECHO_N= ECHO_C='
6308 ' ECHO_T='      ' ;;
6309   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6310   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6311 esac
6312
6313 if expr a : '\(a\)' >/dev/null 2>&1; then
6314   as_expr=expr
6315 else
6316   as_expr=false
6317 fi
6318
6319 rm -f conf$$ conf$$.exe conf$$.file
6320 echo >conf$$.file
6321 if ln -s conf$$.file conf$$ 2>/dev/null; then
6322   # We could just check for DJGPP; but this test a) works b) is more generic
6323   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6324   if test -f conf$$.exe; then
6325     # Don't use ln at all; we don't have any links
6326     as_ln_s='cp -p'
6327   else
6328     as_ln_s='ln -s'
6329   fi
6330 elif ln conf$$.file conf$$ 2>/dev/null; then
6331   as_ln_s=ln
6332 else
6333   as_ln_s='cp -p'
6334 fi
6335 rm -f conf$$ conf$$.exe conf$$.file
6336
6337 as_executable_p="test -f"
6338
6339 # Sed expression to map a string onto a valid CPP name.
6340 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6341
6342 # Sed expression to map a string onto a valid variable name.
6343 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6344
6345
6346 # IFS
6347 # We need space, tab and new line, in precisely that order.
6348 as_nl='
6349 '
6350 IFS="   $as_nl"
6351
6352 # CDPATH.
6353 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6354
6355 exec 6>&1
6356
6357 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6358 # report actual input values of CONFIG_FILES etc. instead of their
6359 # values after options handling.  Logging --version etc. is OK.
6360 exec 5>>config.log
6361 {
6362   echo
6363   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6364 ## Running $as_me. ##
6365 _ASBOX
6366 } >&5
6367 cat >&5 <<_CSEOF
6368
6369 This file was extended by $as_me, which was
6370 generated by GNU Autoconf 2.53.  Invocation command line was
6371
6372   CONFIG_FILES    = $CONFIG_FILES
6373   CONFIG_HEADERS  = $CONFIG_HEADERS
6374   CONFIG_LINKS    = $CONFIG_LINKS
6375   CONFIG_COMMANDS = $CONFIG_COMMANDS
6376   $ $0 $@
6377
6378 _CSEOF
6379 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6380 echo >&5
6381 _ACEOF
6382
6383 # Files that config.status was made for.
6384 if test -n "$ac_config_files"; then
6385   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6386 fi
6387
6388 if test -n "$ac_config_headers"; then
6389   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6390 fi
6391
6392 if test -n "$ac_config_links"; then
6393   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6394 fi
6395
6396 if test -n "$ac_config_commands"; then
6397   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6398 fi
6399
6400 cat >>$CONFIG_STATUS <<\_ACEOF
6401
6402 ac_cs_usage="\
6403 \`$as_me' instantiates files from templates according to the
6404 current configuration.
6405
6406 Usage: $0 [OPTIONS] [FILE]...
6407
6408   -h, --help       print this help, then exit
6409   -V, --version    print version number, then exit
6410   -d, --debug      don't remove temporary files
6411       --recheck    update $as_me by reconfiguring in the same conditions
6412   --file=FILE[:TEMPLATE]
6413                    instantiate the configuration file FILE
6414
6415 Configuration files:
6416 $config_files
6417
6418 Configuration commands:
6419 $config_commands
6420
6421 Report bugs to <bug-autoconf@gnu.org>."
6422 _ACEOF
6423
6424 cat >>$CONFIG_STATUS <<_ACEOF
6425 ac_cs_version="\\
6426 config.status
6427 configured by $0, generated by GNU Autoconf 2.53,
6428   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6429
6430 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6431 Free Software Foundation, Inc.
6432 This config.status script is free software; the Free Software Foundation
6433 gives unlimited permission to copy, distribute and modify it."
6434 srcdir=$srcdir
6435 INSTALL="$INSTALL"
6436 _ACEOF
6437
6438 cat >>$CONFIG_STATUS <<\_ACEOF
6439 # If no file are specified by the user, then we need to provide default
6440 # value.  By we need to know if files were specified by the user.
6441 ac_need_defaults=:
6442 while test $# != 0
6443 do
6444   case $1 in
6445   --*=*)
6446     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6447     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6448     shift
6449     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6450     shift
6451     ;;
6452   -*);;
6453   *) # This is not an option, so the user has probably given explicit
6454      # arguments.
6455      ac_need_defaults=false;;
6456   esac
6457
6458   case $1 in
6459   # Handling of the options.
6460 _ACEOF
6461 cat >>$CONFIG_STATUS <<_ACEOF
6462   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6463     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6464     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6465 _ACEOF
6466 cat >>$CONFIG_STATUS <<\_ACEOF
6467   --version | --vers* | -V )
6468     echo "$ac_cs_version"; exit 0 ;;
6469   --he | --h)
6470     # Conflict between --help and --header
6471     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6472 Try \`$0 --help' for more information." >&5
6473 echo "$as_me: error: ambiguous option: $1
6474 Try \`$0 --help' for more information." >&2;}
6475    { (exit 1); exit 1; }; };;
6476   --help | --hel | -h )
6477     echo "$ac_cs_usage"; exit 0 ;;
6478   --debug | --d* | -d )
6479     debug=: ;;
6480   --file | --fil | --fi | --f )
6481     shift
6482     CONFIG_FILES="$CONFIG_FILES $1"
6483     ac_need_defaults=false;;
6484   --header | --heade | --head | --hea )
6485     shift
6486     CONFIG_HEADERS="$CONFIG_HEADERS $1"
6487     ac_need_defaults=false;;
6488
6489   # This is an error.
6490   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6491 Try \`$0 --help' for more information." >&5
6492 echo "$as_me: error: unrecognized option: $1
6493 Try \`$0 --help' for more information." >&2;}
6494    { (exit 1); exit 1; }; } ;;
6495
6496   *) ac_config_targets="$ac_config_targets $1" ;;
6497
6498   esac
6499   shift
6500 done
6501
6502 _ACEOF
6503
6504 cat >>$CONFIG_STATUS <<_ACEOF
6505 #
6506 # INIT-COMMANDS section.
6507 #
6508
6509 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6510
6511 _ACEOF
6512
6513
6514
6515 cat >>$CONFIG_STATUS <<\_ACEOF
6516 for ac_config_target in $ac_config_targets
6517 do
6518   case "$ac_config_target" in
6519   # Handling of arguments.
6520   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6521   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6522   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
6523   "src/gcm_input/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
6524   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6525   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6526 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6527    { (exit 1); exit 1; }; };;
6528   esac
6529 done
6530
6531 # If the user did not use the arguments to specify the items to instantiate,
6532 # then the envvar interface is used.  Set only those that are not.
6533 # We use the long form for the default assignment because of an extremely
6534 # bizarre bug on SunOS 4.1.3.
6535 if $ac_need_defaults; then
6536   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6537   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6538 fi
6539
6540 # Create a temporary directory, and hook for its removal unless debugging.
6541 $debug ||
6542 {
6543   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6544   trap '{ (exit 1); exit 1; }' 1 2 13 15
6545 }
6546
6547 # Create a (secure) tmp directory for tmp files.
6548 : ${TMPDIR=/tmp}
6549 {
6550   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6551   test -n "$tmp" && test -d "$tmp"
6552 }  ||
6553 {
6554   tmp=$TMPDIR/cs$$-$RANDOM
6555   (umask 077 && mkdir $tmp)
6556 } ||
6557 {
6558    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6559    { (exit 1); exit 1; }
6560 }
6561
6562 _ACEOF
6563
6564 cat >>$CONFIG_STATUS <<_ACEOF
6565
6566 #
6567 # CONFIG_FILES section.
6568 #
6569
6570 # No need to generate the scripts if there are no CONFIG_FILES.
6571 # This happens for instance when ./config.status config.h
6572 if test -n "\$CONFIG_FILES"; then
6573   # Protect against being on the right side of a sed subst in config.status.
6574   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6575    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6576 s,@SHELL@,$SHELL,;t t
6577 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6578 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6579 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6580 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6581 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6582 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6583 s,@exec_prefix@,$exec_prefix,;t t
6584 s,@prefix@,$prefix,;t t
6585 s,@program_transform_name@,$program_transform_name,;t t
6586 s,@bindir@,$bindir,;t t
6587 s,@sbindir@,$sbindir,;t t
6588 s,@libexecdir@,$libexecdir,;t t
6589 s,@datadir@,$datadir,;t t
6590 s,@sysconfdir@,$sysconfdir,;t t
6591 s,@sharedstatedir@,$sharedstatedir,;t t
6592 s,@localstatedir@,$localstatedir,;t t
6593 s,@libdir@,$libdir,;t t
6594 s,@includedir@,$includedir,;t t
6595 s,@oldincludedir@,$oldincludedir,;t t
6596 s,@infodir@,$infodir,;t t
6597 s,@mandir@,$mandir,;t t
6598 s,@build_alias@,$build_alias,;t t
6599 s,@host_alias@,$host_alias,;t t
6600 s,@target_alias@,$target_alias,;t t
6601 s,@DEFS@,$DEFS,;t t
6602 s,@ECHO_C@,$ECHO_C,;t t
6603 s,@ECHO_N@,$ECHO_N,;t t
6604 s,@ECHO_T@,$ECHO_T,;t t
6605 s,@LIBS@,$LIBS,;t t
6606 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6607 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6608 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6609 s,@PACKAGE@,$PACKAGE,;t t
6610 s,@VERSION@,$VERSION,;t t
6611 s,@ACLOCAL@,$ACLOCAL,;t t
6612 s,@AUTOCONF@,$AUTOCONF,;t t
6613 s,@AUTOMAKE@,$AUTOMAKE,;t t
6614 s,@AUTOHEADER@,$AUTOHEADER,;t t
6615 s,@MAKEINFO@,$MAKEINFO,;t t
6616 s,@AMTAR@,$AMTAR,;t t
6617 s,@install_sh@,$install_sh,;t t
6618 s,@STRIP@,$STRIP,;t t
6619 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6620 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6621 s,@AWK@,$AWK,;t t
6622 s,@SET_MAKE@,$SET_MAKE,;t t
6623 s,@CC@,$CC,;t t
6624 s,@CFLAGS@,$CFLAGS,;t t
6625 s,@LDFLAGS@,$LDFLAGS,;t t
6626 s,@CPPFLAGS@,$CPPFLAGS,;t t
6627 s,@ac_ct_CC@,$ac_ct_CC,;t t
6628 s,@EXEEXT@,$EXEEXT,;t t
6629 s,@OBJEXT@,$OBJEXT,;t t
6630 s,@DEPDIR@,$DEPDIR,;t t
6631 s,@am__include@,$am__include,;t t
6632 s,@am__quote@,$am__quote,;t t
6633 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6634 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6635 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6636 s,@CCDEPMODE@,$CCDEPMODE,;t t
6637 s,@CXX@,$CXX,;t t
6638 s,@CXXFLAGS@,$CXXFLAGS,;t t
6639 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6640 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6641 s,@CPP@,$CPP,;t t
6642 s,@LEX@,$LEX,;t t
6643 s,@LEXLIB@,$LEXLIB,;t t
6644 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6645 s,@LN_S@,$LN_S,;t t
6646 s,@RANLIB@,$RANLIB,;t t
6647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6648 s,@YACC@,$YACC,;t t
6649 s,@XML_CONFIG@,$XML_CONFIG,;t t
6650 s,@X_CFLAGS@,$X_CFLAGS,;t t
6651 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6652 s,@X_LIBS@,$X_LIBS,;t t
6653 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6654 CEOF
6655
6656 _ACEOF
6657
6658   cat >>$CONFIG_STATUS <<\_ACEOF
6659   # Split the substitutions into bite-sized pieces for seds with
6660   # small command number limits, like on Digital OSF/1 and HP-UX.
6661   ac_max_sed_lines=48
6662   ac_sed_frag=1 # Number of current file.
6663   ac_beg=1 # First line for current file.
6664   ac_end=$ac_max_sed_lines # Line after last line for current file.
6665   ac_more_lines=:
6666   ac_sed_cmds=
6667   while $ac_more_lines; do
6668     if test $ac_beg -gt 1; then
6669       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6670     else
6671       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6672     fi
6673     if test ! -s $tmp/subs.frag; then
6674       ac_more_lines=false
6675     else
6676       # The purpose of the label and of the branching condition is to
6677       # speed up the sed processing (if there are no `@' at all, there
6678       # is no need to browse any of the substitutions).
6679       # These are the two extra sed commands mentioned above.
6680       (echo ':t
6681   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6682       if test -z "$ac_sed_cmds"; then
6683         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6684       else
6685         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6686       fi
6687       ac_sed_frag=`expr $ac_sed_frag + 1`
6688       ac_beg=$ac_end
6689       ac_end=`expr $ac_end + $ac_max_sed_lines`
6690     fi
6691   done
6692   if test -z "$ac_sed_cmds"; then
6693     ac_sed_cmds=cat
6694   fi
6695 fi # test -n "$CONFIG_FILES"
6696
6697 _ACEOF
6698 cat >>$CONFIG_STATUS <<\_ACEOF
6699 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6700   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6701   case $ac_file in
6702   - | *:- | *:-:* ) # input from stdin
6703         cat >$tmp/stdin
6704         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6705         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6706   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6707         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6708   * )   ac_file_in=$ac_file.in ;;
6709   esac
6710
6711   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6712   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6714          X"$ac_file" : 'X\(//\)[^/]' \| \
6715          X"$ac_file" : 'X\(//\)$' \| \
6716          X"$ac_file" : 'X\(/\)' \| \
6717          .     : '\(.\)' 2>/dev/null ||
6718 echo X"$ac_file" |
6719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6721           /^X\(\/\/\)$/{ s//\1/; q; }
6722           /^X\(\/\).*/{ s//\1/; q; }
6723           s/.*/./; q'`
6724   { case "$ac_dir" in
6725   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6726   *)                      as_incr_dir=.;;
6727 esac
6728 as_dummy="$ac_dir"
6729 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6730   case $as_mkdir_dir in
6731     # Skip DOS drivespec
6732     ?:) as_incr_dir=$as_mkdir_dir ;;
6733     *)
6734       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6735       test -d "$as_incr_dir" ||
6736         mkdir "$as_incr_dir" ||
6737         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6738 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6739    { (exit 1); exit 1; }; }
6740     ;;
6741   esac
6742 done; }
6743
6744   ac_builddir=.
6745
6746 if test "$ac_dir" != .; then
6747   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6748   # A "../" for each directory in $ac_dir_suffix.
6749   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6750 else
6751   ac_dir_suffix= ac_top_builddir=
6752 fi
6753
6754 case $srcdir in
6755   .)  # No --srcdir option.  We are building in place.
6756     ac_srcdir=.
6757     if test -z "$ac_top_builddir"; then
6758        ac_top_srcdir=.
6759     else
6760        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6761     fi ;;
6762   [\\/]* | ?:[\\/]* )  # Absolute path.
6763     ac_srcdir=$srcdir$ac_dir_suffix;
6764     ac_top_srcdir=$srcdir ;;
6765   *) # Relative path.
6766     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6767     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6768 esac
6769 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6770 # absolute.
6771 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6772 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6773 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6774 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6775
6776
6777   case $INSTALL in
6778   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6779   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6780   esac
6781
6782   if test x"$ac_file" != x-; then
6783     { echo "$as_me:$LINENO: creating $ac_file" >&5
6784 echo "$as_me: creating $ac_file" >&6;}
6785     rm -f "$ac_file"
6786   fi
6787   # Let's still pretend it is `configure' which instantiates (i.e., don't
6788   # use $as_me), people would be surprised to read:
6789   #    /* config.h.  Generated by config.status.  */
6790   if test x"$ac_file" = x-; then
6791     configure_input=
6792   else
6793     configure_input="$ac_file.  "
6794   fi
6795   configure_input=$configure_input"Generated from `echo $ac_file_in |
6796                                      sed 's,.*/,,'` by configure."
6797
6798   # First look for the input files in the build tree, otherwise in the
6799   # src tree.
6800   ac_file_inputs=`IFS=:
6801     for f in $ac_file_in; do
6802       case $f in
6803       -) echo $tmp/stdin ;;
6804       [\\/$]*)
6805          # Absolute (can't be DOS-style, as IFS=:)
6806          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6807 echo "$as_me: error: cannot find input file: $f" >&2;}
6808    { (exit 1); exit 1; }; }
6809          echo $f;;
6810       *) # Relative
6811          if test -f "$f"; then
6812            # Build tree
6813            echo $f
6814          elif test -f "$srcdir/$f"; then
6815            # Source tree
6816            echo $srcdir/$f
6817          else
6818            # /dev/null tree
6819            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6820 echo "$as_me: error: cannot find input file: $f" >&2;}
6821    { (exit 1); exit 1; }; }
6822          fi;;
6823       esac
6824     done` || { (exit 1); exit 1; }
6825 _ACEOF
6826 cat >>$CONFIG_STATUS <<_ACEOF
6827   sed "$ac_vpsub
6828 $extrasub
6829 _ACEOF
6830 cat >>$CONFIG_STATUS <<\_ACEOF
6831 :t
6832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6833 s,@configure_input@,$configure_input,;t t
6834 s,@srcdir@,$ac_srcdir,;t t
6835 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6836 s,@top_srcdir@,$ac_top_srcdir,;t t
6837 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6838 s,@builddir@,$ac_builddir,;t t
6839 s,@abs_builddir@,$ac_abs_builddir,;t t
6840 s,@top_builddir@,$ac_top_builddir,;t t
6841 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6842 s,@INSTALL@,$ac_INSTALL,;t t
6843 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6844   rm -f $tmp/stdin
6845   if test x"$ac_file" != x-; then
6846     mv $tmp/out $ac_file
6847   else
6848     cat $tmp/out
6849     rm -f $tmp/out
6850   fi
6851
6852 done
6853 _ACEOF
6854 cat >>$CONFIG_STATUS <<\_ACEOF
6855
6856 #
6857 # CONFIG_COMMANDS section.
6858 #
6859 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6860   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6861   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6862   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6863 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6864          X"$ac_dest" : 'X\(//\)[^/]' \| \
6865          X"$ac_dest" : 'X\(//\)$' \| \
6866          X"$ac_dest" : 'X\(/\)' \| \
6867          .     : '\(.\)' 2>/dev/null ||
6868 echo X"$ac_dest" |
6869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6871           /^X\(\/\/\)$/{ s//\1/; q; }
6872           /^X\(\/\).*/{ s//\1/; q; }
6873           s/.*/./; q'`
6874   ac_builddir=.
6875
6876 if test "$ac_dir" != .; then
6877   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6878   # A "../" for each directory in $ac_dir_suffix.
6879   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6880 else
6881   ac_dir_suffix= ac_top_builddir=
6882 fi
6883
6884 case $srcdir in
6885   .)  # No --srcdir option.  We are building in place.
6886     ac_srcdir=.
6887     if test -z "$ac_top_builddir"; then
6888        ac_top_srcdir=.
6889     else
6890        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6891     fi ;;
6892   [\\/]* | ?:[\\/]* )  # Absolute path.
6893     ac_srcdir=$srcdir$ac_dir_suffix;
6894     ac_top_srcdir=$srcdir ;;
6895   *) # Relative path.
6896     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6897     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6898 esac
6899 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6900 # absolute.
6901 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6902 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6903 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6904 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6905
6906
6907   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6908 echo "$as_me: executing $ac_dest commands" >&6;}
6909   case $ac_dest in
6910     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6911   # Strip MF so we end up with the name of the file.
6912   mf=`echo "$mf" | sed -e 's/:.*$//'`
6913   # Check whether this is an Automake generated Makefile or not.
6914   # We used to match only the files named `Makefile.in', but
6915   # some people rename them; so instead we look at the file content.
6916   # Grep'ing the first line is not enough: some people post-process
6917   # each Makefile.in and add a new line on top of each file to say so.
6918   # So let's grep whole file.
6919   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6920     dirpart=`(dirname "$mf") 2>/dev/null ||
6921 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6922          X"$mf" : 'X\(//\)[^/]' \| \
6923          X"$mf" : 'X\(//\)$' \| \
6924          X"$mf" : 'X\(/\)' \| \
6925          .     : '\(.\)' 2>/dev/null ||
6926 echo X"$mf" |
6927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6928           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6929           /^X\(\/\/\)$/{ s//\1/; q; }
6930           /^X\(\/\).*/{ s//\1/; q; }
6931           s/.*/./; q'`
6932   else
6933     continue
6934   fi
6935   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6936   # Extract the definition of DEP_FILES from the Makefile without
6937   # running `make'.
6938   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6939   test -z "$DEPDIR" && continue
6940   # When using ansi2knr, U may be empty or an underscore; expand it
6941   U=`sed -n -e '/^U = / s///p' < "$mf"`
6942   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6943   # We invoke sed twice because it is the simplest approach to
6944   # changing $(DEPDIR) to its actual value in the expansion.
6945   for file in `sed -n -e '
6946     /^DEP_FILES = .*\\\\$/ {
6947       s/^DEP_FILES = //
6948       :loop
6949         s/\\\\$//
6950         p
6951         n
6952         /\\\\$/ b loop
6953       p
6954     }
6955     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6956        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6957     # Make sure the directory exists.
6958     test -f "$dirpart/$file" && continue
6959     fdir=`(dirname "$file") 2>/dev/null ||
6960 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6961          X"$file" : 'X\(//\)[^/]' \| \
6962          X"$file" : 'X\(//\)$' \| \
6963          X"$file" : 'X\(/\)' \| \
6964          .     : '\(.\)' 2>/dev/null ||
6965 echo X"$file" |
6966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6967           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6968           /^X\(\/\/\)$/{ s//\1/; q; }
6969           /^X\(\/\).*/{ s//\1/; q; }
6970           s/.*/./; q'`
6971     { case $dirpart/$fdir in
6972   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6973   *)                      as_incr_dir=.;;
6974 esac
6975 as_dummy=$dirpart/$fdir
6976 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6977   case $as_mkdir_dir in
6978     # Skip DOS drivespec
6979     ?:) as_incr_dir=$as_mkdir_dir ;;
6980     *)
6981       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6982       test -d "$as_incr_dir" ||
6983         mkdir "$as_incr_dir" ||
6984         { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
6985 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
6986    { (exit 1); exit 1; }; }
6987     ;;
6988   esac
6989 done; }
6990
6991     # echo "creating $dirpart/$file"
6992     echo '# dummy' > "$dirpart/$file"
6993   done
6994 done
6995  ;;
6996   esac
6997 done
6998 _ACEOF
6999
7000 cat >>$CONFIG_STATUS <<\_ACEOF
7001
7002 { (exit 0); exit 0; }
7003 _ACEOF
7004 chmod +x $CONFIG_STATUS
7005 ac_clean_files=$ac_clean_files_save
7006
7007
7008 # configure is writing to config.log, and then calls config.status.
7009 # config.status does its own redirection, appending to config.log.
7010 # Unfortunately, on DOS this fails, as config.log is still kept open
7011 # by configure, so config.status won't be able to write to it; its
7012 # output is simply discarded.  So we exec the FD to /dev/null,
7013 # effectively closing config.log, so it can be properly (re)opened and
7014 # appended to by config.status.  When coming back to configure, we
7015 # need to make the FD available again.
7016 if test "$no_create" != yes; then
7017   ac_cs_success=:
7018   exec 5>/dev/null
7019   $SHELL $CONFIG_STATUS || ac_cs_success=false
7020   exec 5>>config.log
7021   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7022   # would make configure fail if this is the last instruction.
7023   $ac_cs_success || { (exit 1); exit 1; }
7024 fi
7025