]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/file/configure
This commit was generated by cvs2svn to compensate for changes in r159248,
[FreeBSD/FreeBSD.git] / contrib / file / 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 # Find the correct PATH separator.  Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13   UNAME=${UNAME-`uname 2>/dev/null`}
14   case X$UNAME in
15     *-DOS) lt_cv_sys_path_separator=';' ;;
16     *)     lt_cv_sys_path_separator=':' ;;
17   esac
18   PATH_SEPARATOR=$lt_cv_sys_path_separator
19 fi
20
21
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
24
25 case X$ECHO in
26 X*--fallback-echo)
27   # Remove one level of quotation (which was required for Make).
28   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29   ;;
30 esac
31
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34   # Discard the --no-reexec flag, and continue.
35   shift
36 elif test "X$1" = X--fallback-echo; then
37   # Avoid inline document here, it may be left over
38   :
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40   # Yippee, $echo works!
41   :
42 else
43   # Restart under the correct shell.
44   exec $SHELL "$0" --no-reexec ${1+"$@"}
45 fi
46
47 if test "X$1" = X--fallback-echo; then
48   # used as fallback echo
49   shift
50   cat <<EOF
51
52 EOF
53   exit 0
54 fi
55
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66        echo_test_string="`eval $cmd`" &&
67        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68     then
69       break
70     fi
71   done
72 fi
73
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76    test "X$echo_testing_string" = "X$echo_test_string"; then
77   :
78 else
79   # The Solaris, AIX, and Digital Unix default echo programs unquote
80   # backslashes.  This makes it impossible to quote backslashes using
81   #   echo "$something" | sed 's/\\/\\\\/g'
82   #
83   # So, first we look for a working echo in the user's PATH.
84
85   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86   for dir in $PATH /usr/ucb; do
87     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90        test "X$echo_testing_string" = "X$echo_test_string"; then
91       echo="$dir/echo"
92       break
93     fi
94   done
95   IFS="$save_ifs"
96
97   if test "X$echo" = Xecho; then
98     # We didn't find a better echo, so look for alternatives.
99     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101        test "X$echo_testing_string" = "X$echo_test_string"; then
102       # This shell has a builtin print -r that does the trick.
103       echo='print -r'
104     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105          test "X$CONFIG_SHELL" != X/bin/ksh; then
106       # If we have ksh, try running configure again with it.
107       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108       export ORIGINAL_CONFIG_SHELL
109       CONFIG_SHELL=/bin/ksh
110       export CONFIG_SHELL
111       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112     else
113       # Try using printf.
114       echo='printf %s\n'
115       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117          test "X$echo_testing_string" = "X$echo_test_string"; then
118         # Cool, printf works
119         :
120       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121            test "X$echo_testing_string" = 'X\t' &&
122            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123            test "X$echo_testing_string" = "X$echo_test_string"; then
124         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125         export CONFIG_SHELL
126         SHELL="$CONFIG_SHELL"
127         export SHELL
128         echo="$CONFIG_SHELL $0 --fallback-echo"
129       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130            test "X$echo_testing_string" = 'X\t' &&
131            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132            test "X$echo_testing_string" = "X$echo_test_string"; then
133         echo="$CONFIG_SHELL $0 --fallback-echo"
134       else
135         # maybe with a smaller string...
136         prev=:
137
138         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140           then
141             break
142           fi
143           prev="$cmd"
144         done
145
146         if test "$prev" != 'sed 50q "$0"'; then
147           echo_test_string=`eval $prev`
148           export echo_test_string
149           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150         else
151           # Oops.  We lost completely, so just stick with echo.
152           echo=echo
153         fi
154       fi
155     fi
156   fi
157 fi
158 fi
159
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
162 ECHO=$echo
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 fi
166
167
168
169 if expr a : '\(a\)' >/dev/null 2>&1; then
170   as_expr=expr
171 else
172   as_expr=false
173 fi
174
175
176 ## --------------------- ##
177 ## M4sh Initialization.  ##
178 ## --------------------- ##
179
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182   emulate sh
183   NULLCMD=:
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185   set -o posix
186 fi
187
188 # NLS nuisances.
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191   as_unset=unset
192 else
193   as_unset=false
194 fi
195
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197     { $as_unset LANG || test "${LANG+set}" != set; } ||
198       { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201       { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204       { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207       { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210       { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213       { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216       { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219       { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225          X"$0" : 'X\(//\)$' \| \
226          X"$0" : 'X\(/\)$' \| \
227          .     : '\(.\)' 2>/dev/null ||
228 echo X/"$0" |
229     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230           /^X\/\(\/\/\)$/{ s//\1/; q; }
231           /^X\/\(\/\).*/{ s//\1/; q; }
232           s/.*/./; q'`
233
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244   echo "#! /bin/sh" >conftest.sh
245   echo  "exit 0"   >>conftest.sh
246   chmod +x conftest.sh
247   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248     PATH_SEPARATOR=';'
249   else
250     PATH_SEPARATOR=:
251   fi
252   rm -f conftest.sh
253 fi
254
255
256   as_lineno_1=$LINENO
257   as_lineno_2=$LINENO
258   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259   test "x$as_lineno_1" != "x$as_lineno_2" &&
260   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
261   # Find who we are.  Look in the path if we contain no path at all
262   # relative or not.
263   case $0 in
264     *[\\/]* ) as_myself=$0 ;;
265     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266 for as_dir in $PATH
267 do
268   IFS=$as_save_IFS
269   test -z "$as_dir" && as_dir=.
270   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271 done
272
273        ;;
274   esac
275   # We did not find ourselves, most probably we were run as `sh COMMAND'
276   # in which case we are not to be found in the path.
277   if test "x$as_myself" = x; then
278     as_myself=$0
279   fi
280   if test ! -f "$as_myself"; then
281     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282    { (exit 1); exit 1; }; }
283   fi
284   case $CONFIG_SHELL in
285   '')
286     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288 do
289   IFS=$as_save_IFS
290   test -z "$as_dir" && as_dir=.
291   for as_base in sh bash ksh sh5; do
292          case $as_dir in
293          /*)
294            if ("$as_dir/$as_base" -c '
295   as_lineno_1=$LINENO
296   as_lineno_2=$LINENO
297   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298   test "x$as_lineno_1" != "x$as_lineno_2" &&
299   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
300              CONFIG_SHELL=$as_dir/$as_base
301              export CONFIG_SHELL
302              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303            fi;;
304          esac
305        done
306 done
307 ;;
308   esac
309
310   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311   # uniformly replaced by the line number.  The first 'sed' inserts a
312   # line-number line before each line; the second 'sed' does the real
313   # work.  The second script uses 'N' to pair each line-number line
314   # with the numbered line, and appends trailing '-' during
315   # substitution so that $LINENO is not a special case at line end.
316   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
318   sed '=' <$as_myself |
319     sed '
320       N
321       s,$,-,
322       : loop
323       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324       t loop
325       s,-$,,
326       s,^['$as_cr_digits']*\n,,
327     ' >$as_me.lineno &&
328   chmod +x $as_me.lineno ||
329     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330    { (exit 1); exit 1; }; }
331
332   # Don't try to exec as it changes $[0], causing all sort of problems
333   # (the dirname of $[0] is not the place where we might find the
334   # original and so on.  Autoconf is especially sensible to this).
335   . ./$as_me.lineno
336   # Exit status is that of the last command.
337   exit
338 }
339
340
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342   *c*,-n*) ECHO_N= ECHO_C='
343 ' ECHO_T='      ' ;;
344   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
346 esac
347
348 if expr a : '\(a\)' >/dev/null 2>&1; then
349   as_expr=expr
350 else
351   as_expr=false
352 fi
353
354 rm -f conf$$ conf$$.exe conf$$.file
355 echo >conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357   # We could just check for DJGPP; but this test a) works b) is more generic
358   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359   if test -f conf$$.exe; then
360     # Don't use ln at all; we don't have any links
361     as_ln_s='cp -p'
362   else
363     as_ln_s='ln -s'
364   fi
365 elif ln conf$$.file conf$$ 2>/dev/null; then
366   as_ln_s=ln
367 else
368   as_ln_s='cp -p'
369 fi
370 rm -f conf$$ conf$$.exe conf$$.file
371
372 as_executable_p="test -f"
373
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381 # IFS
382 # We need space, tab and new line, in precisely that order.
383 as_nl='
384 '
385 IFS="   $as_nl"
386
387 # CDPATH.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391 # Name of the host.
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396 exec 6>&1
397
398 #
399 # Initializations.
400 #
401 ac_default_prefix=/usr/local
402 cross_compiling=no
403 subdirs=
404 MFLAGS=
405 MAKEFLAGS=
406 SHELL=${CONFIG_SHELL-/bin/sh}
407
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete.  It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
412
413 # Identity of this package.
414 PACKAGE_NAME=
415 PACKAGE_TARNAME=
416 PACKAGE_VERSION=
417 PACKAGE_STRING=
418 PACKAGE_BUGREPORT=
419
420 ac_unique_file="src/file.c"
421 # Factoring default headers for most tests.
422 ac_includes_default="\
423 #include <stdio.h>
424 #if HAVE_SYS_TYPES_H
425 # include <sys/types.h>
426 #endif
427 #if HAVE_SYS_STAT_H
428 # include <sys/stat.h>
429 #endif
430 #if STDC_HEADERS
431 # include <stdlib.h>
432 # include <stddef.h>
433 #else
434 # if HAVE_STDLIB_H
435 #  include <stdlib.h>
436 # endif
437 #endif
438 #if HAVE_STRING_H
439 # if !STDC_HEADERS && HAVE_MEMORY_H
440 #  include <memory.h>
441 # endif
442 # include <string.h>
443 #endif
444 #if HAVE_STRINGS_H
445 # include <strings.h>
446 #endif
447 #if HAVE_INTTYPES_H
448 # include <inttypes.h>
449 #else
450 # if HAVE_STDINT_H
451 #  include <stdint.h>
452 # endif
453 #endif
454 #if HAVE_UNISTD_H
455 # include <unistd.h>
456 #endif"
457
458
459 # Initialize some variables set by options.
460 ac_init_help=
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
464 cache_file=/dev/null
465 exec_prefix=NONE
466 no_create=
467 no_recursion=
468 prefix=NONE
469 program_prefix=NONE
470 program_suffix=NONE
471 program_transform_name=s,x,x,
472 silent=
473 site=
474 srcdir=
475 verbose=
476 x_includes=NONE
477 x_libraries=NONE
478
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
496
497 ac_prev=
498 for ac_option
499 do
500   # If the previous option needs an argument, assign it.
501   if test -n "$ac_prev"; then
502     eval "$ac_prev=\$ac_option"
503     ac_prev=
504     continue
505   fi
506
507   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
508
509   # Accept the important Cygnus configure options, so we can diagnose typos.
510
511   case $ac_option in
512
513   -bindir | --bindir | --bindi | --bind | --bin | --bi)
514     ac_prev=bindir ;;
515   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
516     bindir=$ac_optarg ;;
517
518   -build | --build | --buil | --bui | --bu)
519     ac_prev=build_alias ;;
520   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521     build_alias=$ac_optarg ;;
522
523   -cache-file | --cache-file | --cache-fil | --cache-fi \
524   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525     ac_prev=cache_file ;;
526   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528     cache_file=$ac_optarg ;;
529
530   --config-cache | -C)
531     cache_file=config.cache ;;
532
533   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534     ac_prev=datadir ;;
535   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536   | --da=*)
537     datadir=$ac_optarg ;;
538
539   -disable-* | --disable-*)
540     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541     # Reject names that are not valid shell variable names.
542     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544    { (exit 1); exit 1; }; }
545     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546     eval "enable_$ac_feature=no" ;;
547
548   -enable-* | --enable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     case $ac_option in
556       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557       *) ac_optarg=yes ;;
558     esac
559     eval "enable_$ac_feature='$ac_optarg'" ;;
560
561   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563   | --exec | --exe | --ex)
564     ac_prev=exec_prefix ;;
565   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567   | --exec=* | --exe=* | --ex=*)
568     exec_prefix=$ac_optarg ;;
569
570   -gas | --gas | --ga | --g)
571     # Obsolete; use --with-gas.
572     with_gas=yes ;;
573
574   -help | --help | --hel | --he | -h)
575     ac_init_help=long ;;
576   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577     ac_init_help=recursive ;;
578   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579     ac_init_help=short ;;
580
581   -host | --host | --hos | --ho)
582     ac_prev=host_alias ;;
583   -host=* | --host=* | --hos=* | --ho=*)
584     host_alias=$ac_optarg ;;
585
586   -includedir | --includedir | --includedi | --included | --include \
587   | --includ | --inclu | --incl | --inc)
588     ac_prev=includedir ;;
589   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590   | --includ=* | --inclu=* | --incl=* | --inc=*)
591     includedir=$ac_optarg ;;
592
593   -infodir | --infodir | --infodi | --infod | --info | --inf)
594     ac_prev=infodir ;;
595   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596     infodir=$ac_optarg ;;
597
598   -libdir | --libdir | --libdi | --libd)
599     ac_prev=libdir ;;
600   -libdir=* | --libdir=* | --libdi=* | --libd=*)
601     libdir=$ac_optarg ;;
602
603   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604   | --libexe | --libex | --libe)
605     ac_prev=libexecdir ;;
606   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607   | --libexe=* | --libex=* | --libe=*)
608     libexecdir=$ac_optarg ;;
609
610   -localstatedir | --localstatedir | --localstatedi | --localstated \
611   | --localstate | --localstat | --localsta | --localst \
612   | --locals | --local | --loca | --loc | --lo)
613     ac_prev=localstatedir ;;
614   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617     localstatedir=$ac_optarg ;;
618
619   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
620     ac_prev=mandir ;;
621   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622     mandir=$ac_optarg ;;
623
624   -nfp | --nfp | --nf)
625     # Obsolete; use --without-fp.
626     with_fp=no ;;
627
628   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629   | --no-cr | --no-c | -n)
630     no_create=yes ;;
631
632   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
634     no_recursion=yes ;;
635
636   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638   | --oldin | --oldi | --old | --ol | --o)
639     ac_prev=oldincludedir ;;
640   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643     oldincludedir=$ac_optarg ;;
644
645   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
646     ac_prev=prefix ;;
647   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
648     prefix=$ac_optarg ;;
649
650   -program-prefix | --program-prefix | --program-prefi | --program-pref \
651   | --program-pre | --program-pr | --program-p)
652     ac_prev=program_prefix ;;
653   -program-prefix=* | --program-prefix=* | --program-prefi=* \
654   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655     program_prefix=$ac_optarg ;;
656
657   -program-suffix | --program-suffix | --program-suffi | --program-suff \
658   | --program-suf | --program-su | --program-s)
659     ac_prev=program_suffix ;;
660   -program-suffix=* | --program-suffix=* | --program-suffi=* \
661   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662     program_suffix=$ac_optarg ;;
663
664   -program-transform-name | --program-transform-name \
665   | --program-transform-nam | --program-transform-na \
666   | --program-transform-n | --program-transform- \
667   | --program-transform | --program-transfor \
668   | --program-transfo | --program-transf \
669   | --program-trans | --program-tran \
670   | --progr-tra | --program-tr | --program-t)
671     ac_prev=program_transform_name ;;
672   -program-transform-name=* | --program-transform-name=* \
673   | --program-transform-nam=* | --program-transform-na=* \
674   | --program-transform-n=* | --program-transform-=* \
675   | --program-transform=* | --program-transfor=* \
676   | --program-transfo=* | --program-transf=* \
677   | --program-trans=* | --program-tran=* \
678   | --progr-tra=* | --program-tr=* | --program-t=*)
679     program_transform_name=$ac_optarg ;;
680
681   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682   | -silent | --silent | --silen | --sile | --sil)
683     silent=yes ;;
684
685   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
686     ac_prev=sbindir ;;
687   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
688   | --sbi=* | --sb=*)
689     sbindir=$ac_optarg ;;
690
691   -sharedstatedir | --sharedstatedir | --sharedstatedi \
692   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693   | --sharedst | --shareds | --shared | --share | --shar \
694   | --sha | --sh)
695     ac_prev=sharedstatedir ;;
696   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
699   | --sha=* | --sh=*)
700     sharedstatedir=$ac_optarg ;;
701
702   -site | --site | --sit)
703     ac_prev=site ;;
704   -site=* | --site=* | --sit=*)
705     site=$ac_optarg ;;
706
707   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
708     ac_prev=srcdir ;;
709   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
710     srcdir=$ac_optarg ;;
711
712   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713   | --syscon | --sysco | --sysc | --sys | --sy)
714     ac_prev=sysconfdir ;;
715   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717     sysconfdir=$ac_optarg ;;
718
719   -target | --target | --targe | --targ | --tar | --ta | --t)
720     ac_prev=target_alias ;;
721   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722     target_alias=$ac_optarg ;;
723
724   -v | -verbose | --verbose | --verbos | --verbo | --verb)
725     verbose=yes ;;
726
727   -version | --version | --versio | --versi | --vers | -V)
728     ac_init_version=: ;;
729
730   -with-* | --with-*)
731     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732     # Reject names that are not valid shell variable names.
733     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734       { echo "$as_me: error: invalid package name: $ac_package" >&2
735    { (exit 1); exit 1; }; }
736     ac_package=`echo $ac_package| sed 's/-/_/g'`
737     case $ac_option in
738       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739       *) ac_optarg=yes ;;
740     esac
741     eval "with_$ac_package='$ac_optarg'" ;;
742
743   -without-* | --without-*)
744     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package | sed 's/-/_/g'`
750     eval "with_$ac_package=no" ;;
751
752   --x)
753     # Obsolete; use --with-x.
754     with_x=yes ;;
755
756   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757   | --x-incl | --x-inc | --x-in | --x-i)
758     ac_prev=x_includes ;;
759   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761     x_includes=$ac_optarg ;;
762
763   -x-libraries | --x-libraries | --x-librarie | --x-librari \
764   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765     ac_prev=x_libraries ;;
766   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768     x_libraries=$ac_optarg ;;
769
770   -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772    { (exit 1); exit 1; }; }
773     ;;
774
775   *=*)
776     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777     # Reject names that are not valid shell variable names.
778     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780    { (exit 1); exit 1; }; }
781     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782     eval "$ac_envvar='$ac_optarg'"
783     export $ac_envvar ;;
784
785   *)
786     # FIXME: should be removed in autoconf 3.0.
787     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
791     ;;
792
793   esac
794 done
795
796 if test -n "$ac_prev"; then
797   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798   { echo "$as_me: error: missing argument to $ac_option" >&2
799    { (exit 1); exit 1; }; }
800 fi
801
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
804 do
805   eval ac_val=$`echo $ac_var`
806   case $ac_val in
807     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809    { (exit 1); exit 1; }; };;
810   esac
811 done
812
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815               localstatedir libdir includedir oldincludedir infodir mandir
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
828 build=$build_alias
829 host=$host_alias
830 target=$target_alias
831
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834   if test "x$build_alias" = x; then
835     cross_compiling=maybe
836     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837     If a cross compiler is detected then cross compile mode will be used." >&2
838   elif test "x$build_alias" != "x$host_alias"; then
839     cross_compiling=yes
840   fi
841 fi
842
843 ac_tool_prefix=
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
845
846 test "$silent" = yes && exec 6>/dev/null
847
848
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851   ac_srcdir_defaulted=yes
852   # Try the directory containing this script, then its parent.
853   ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855          X"$0" : 'X\(//\)[^/]' \| \
856          X"$0" : 'X\(//\)$' \| \
857          X"$0" : 'X\(/\)' \| \
858          .     : '\(.\)' 2>/dev/null ||
859 echo X"$0" |
860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862           /^X\(\/\/\)$/{ s//\1/; q; }
863           /^X\(\/\).*/{ s//\1/; q; }
864           s/.*/./; q'`
865   srcdir=$ac_confdir
866   if test ! -r $srcdir/$ac_unique_file; then
867     srcdir=..
868   fi
869 else
870   ac_srcdir_defaulted=no
871 fi
872 if test ! -r $srcdir/$ac_unique_file; then
873   if test "$ac_srcdir_defaulted" = yes; then
874     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875    { (exit 1); exit 1; }; }
876   else
877     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878    { (exit 1); exit 1; }; }
879   fi
880 fi
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
895 ac_env_CC_value=$CC
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CPP_set=${CPP+set}
911 ac_env_CPP_value=$CPP
912 ac_cv_env_CPP_set=${CPP+set}
913 ac_cv_env_CPP_value=$CPP
914
915 #
916 # Report the --help message.
917 #
918 if test "$ac_init_help" = "long"; then
919   # Omit some internal or obsolete options to make the list less imposing.
920   # This message is too long to be a string in the A/UX 3.1 sh.
921   cat <<_ACEOF
922 \`configure' configures this package to adapt to many kinds of systems.
923
924 Usage: $0 [OPTION]... [VAR=VALUE]...
925
926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
927 VAR=VALUE.  See below for descriptions of some of the useful variables.
928
929 Defaults for the options are specified in brackets.
930
931 Configuration:
932   -h, --help              display this help and exit
933       --help=short        display options specific to this package
934       --help=recursive    display the short help of all the included packages
935   -V, --version           display version information and exit
936   -q, --quiet, --silent   do not print \`checking...' messages
937       --cache-file=FILE   cache test results in FILE [disabled]
938   -C, --config-cache      alias for \`--cache-file=config.cache'
939   -n, --no-create         do not create output files
940       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
941
942 _ACEOF
943
944   cat <<_ACEOF
945 Installation directories:
946   --prefix=PREFIX         install architecture-independent files in PREFIX
947                           [$ac_default_prefix]
948   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
949                           [PREFIX]
950
951 By default, \`make install' will install all the files in
952 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
953 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
954 for instance \`--prefix=\$HOME'.
955
956 For better control, use the options below.
957
958 Fine tuning of the installation directories:
959   --bindir=DIR           user executables [EPREFIX/bin]
960   --sbindir=DIR          system admin executables [EPREFIX/sbin]
961   --libexecdir=DIR       program executables [EPREFIX/libexec]
962   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
963   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
964   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
965   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
966   --libdir=DIR           object code libraries [EPREFIX/lib]
967   --includedir=DIR       C header files [PREFIX/include]
968   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
969   --infodir=DIR          info documentation [PREFIX/info]
970   --mandir=DIR           man documentation [PREFIX/man]
971 _ACEOF
972
973   cat <<\_ACEOF
974
975 Program names:
976   --program-prefix=PREFIX            prepend PREFIX to installed program names
977   --program-suffix=SUFFIX            append SUFFIX to installed program names
978   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
979
980 System types:
981   --build=BUILD     configure for building on BUILD [guessed]
982   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
983 _ACEOF
984 fi
985
986 if test -n "$ac_init_help"; then
987
988   cat <<\_ACEOF
989
990 Optional Features:
991   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
992   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
993   --disable-elf            disable builtin ELF support
994   --disable-elf-core       disable ELF core file support
995   --enable-fsect-man5      enable file formats in man section 5
996   --disable-dependency-tracking Speeds up one-time builds
997   --enable-dependency-tracking  Do not reject slow dependency extractors
998   --enable-shared=PKGS  build shared libraries default=yes
999   --enable-static=PKGS  build static libraries default=yes
1000   --enable-fast-install=PKGS  optimize for fast installation default=yes
1001   --disable-libtool-lock  avoid locking (might break parallel builds)
1002   --disable-largefile     omit support for large files
1003
1004 Optional Packages:
1005   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1006   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1007   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1008   --with-pic              try to use only PIC/non-PIC objects default=use both
1009
1010 Some influential environment variables:
1011   CC          C compiler command
1012   CFLAGS      C compiler flags
1013   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1014               nonstandard directory <lib dir>
1015   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1016               headers in a nonstandard directory <include dir>
1017   CPP         C preprocessor
1018
1019 Use these variables to override the choices made by `configure' or to help
1020 it to find libraries and programs with nonstandard names/locations.
1021
1022 _ACEOF
1023 fi
1024
1025 if test "$ac_init_help" = "recursive"; then
1026   # If there are subdirs, report their specific --help.
1027   ac_popdir=`pwd`
1028   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1029     test -d $ac_dir || continue
1030     ac_builddir=.
1031
1032 if test "$ac_dir" != .; then
1033   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1034   # A "../" for each directory in $ac_dir_suffix.
1035   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1036 else
1037   ac_dir_suffix= ac_top_builddir=
1038 fi
1039
1040 case $srcdir in
1041   .)  # No --srcdir option.  We are building in place.
1042     ac_srcdir=.
1043     if test -z "$ac_top_builddir"; then
1044        ac_top_srcdir=.
1045     else
1046        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1047     fi ;;
1048   [\\/]* | ?:[\\/]* )  # Absolute path.
1049     ac_srcdir=$srcdir$ac_dir_suffix;
1050     ac_top_srcdir=$srcdir ;;
1051   *) # Relative path.
1052     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1053     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1054 esac
1055 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1056 # absolute.
1057 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1058 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1059 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1060 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1061
1062     cd $ac_dir
1063     # Check for guested configure; otherwise get Cygnus style configure.
1064     if test -f $ac_srcdir/configure.gnu; then
1065       echo
1066       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1067     elif test -f $ac_srcdir/configure; then
1068       echo
1069       $SHELL $ac_srcdir/configure  --help=recursive
1070     elif test -f $ac_srcdir/configure.ac ||
1071            test -f $ac_srcdir/configure.in; then
1072       echo
1073       $ac_configure --help
1074     else
1075       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1076     fi
1077     cd $ac_popdir
1078   done
1079 fi
1080
1081 test -n "$ac_init_help" && exit 0
1082 if $ac_init_version; then
1083   cat <<\_ACEOF
1084
1085 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1086 Free Software Foundation, Inc.
1087 This configure script is free software; the Free Software Foundation
1088 gives unlimited permission to copy, distribute and modify it.
1089 _ACEOF
1090   exit 0
1091 fi
1092 exec 5>config.log
1093 cat >&5 <<_ACEOF
1094 This file contains any messages produced by compilers while
1095 running configure, to aid debugging if configure makes a mistake.
1096
1097 It was created by $as_me, which was
1098 generated by GNU Autoconf 2.53.  Invocation command line was
1099
1100   $ $0 $@
1101
1102 _ACEOF
1103 {
1104 cat <<_ASUNAME
1105 ## --------- ##
1106 ## Platform. ##
1107 ## --------- ##
1108
1109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1114
1115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1116 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1117
1118 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1119 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1121 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1122 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1123 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1124 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1125
1126 _ASUNAME
1127
1128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1129 for as_dir in $PATH
1130 do
1131   IFS=$as_save_IFS
1132   test -z "$as_dir" && as_dir=.
1133   echo "PATH: $as_dir"
1134 done
1135
1136 } >&5
1137
1138 cat >&5 <<_ACEOF
1139
1140
1141 ## ----------- ##
1142 ## Core tests. ##
1143 ## ----------- ##
1144
1145 _ACEOF
1146
1147
1148 # Keep a trace of the command line.
1149 # Strip out --no-create and --no-recursion so they do not pile up.
1150 # Also quote any args containing shell meta-characters.
1151 ac_configure_args=
1152 ac_sep=
1153 for ac_arg
1154 do
1155   case $ac_arg in
1156   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157   | --no-cr | --no-c | -n ) continue ;;
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     continue ;;
1161   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1162     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1163   esac
1164   case " $ac_configure_args " in
1165     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1166     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1167        ac_sep=" " ;;
1168   esac
1169   # Get rid of the leading space.
1170 done
1171
1172 # When interrupted or exit'd, cleanup temporary files, and complete
1173 # config.log.  We remove comments because anyway the quotes in there
1174 # would cause problems or look ugly.
1175 # WARNING: Be sure not to use single quotes in there, as some shells,
1176 # such as our DU 5.0 friend, will then `close' the trap.
1177 trap 'exit_status=$?
1178   # Save into config.log some information that might help in debugging.
1179   {
1180     echo
1181     cat <<\_ASBOX
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1185 _ASBOX
1186     echo
1187     # The following way of writing the cache mishandles newlines in values,
1188 {
1189   (set) 2>&1 |
1190     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1191     *ac_space=\ *)
1192       sed -n \
1193         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195       ;;
1196     *)
1197       sed -n \
1198         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199       ;;
1200     esac;
1201 }
1202     echo
1203     if test -s confdefs.h; then
1204       cat <<\_ASBOX
1205 ## ----------- ##
1206 ## confdefs.h. ##
1207 ## ----------- ##
1208 _ASBOX
1209       echo
1210       sed "/^$/d" confdefs.h
1211       echo
1212     fi
1213     test "$ac_signal" != 0 &&
1214       echo "$as_me: caught signal $ac_signal"
1215     echo "$as_me: exit $exit_status"
1216   } >&5
1217   rm -f core core.* *.core &&
1218   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1219     exit $exit_status
1220      ' 0
1221 for ac_signal in 1 2 13 15; do
1222   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1223 done
1224 ac_signal=0
1225
1226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1227 rm -rf conftest* confdefs.h
1228 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1229 echo >confdefs.h
1230
1231 # Predefined preprocessor variables.
1232
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_NAME "$PACKAGE_NAME"
1235 _ACEOF
1236
1237
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1240 _ACEOF
1241
1242
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1245 _ACEOF
1246
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_STRING "$PACKAGE_STRING"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1255 _ACEOF
1256
1257
1258 # Let the site file select an alternate cache file if it wants to.
1259 # Prefer explicitly selected file to automatically selected ones.
1260 if test -z "$CONFIG_SITE"; then
1261   if test "x$prefix" != xNONE; then
1262     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1263   else
1264     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1265   fi
1266 fi
1267 for ac_site_file in $CONFIG_SITE; do
1268   if test -r "$ac_site_file"; then
1269     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1270 echo "$as_me: loading site script $ac_site_file" >&6;}
1271     sed 's/^/| /' "$ac_site_file" >&5
1272     . "$ac_site_file"
1273   fi
1274 done
1275
1276 if test -r "$cache_file"; then
1277   # Some versions of bash will fail to source /dev/null (special
1278   # files actually), so we avoid doing that.
1279   if test -f "$cache_file"; then
1280     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1281 echo "$as_me: loading cache $cache_file" >&6;}
1282     case $cache_file in
1283       [\\/]* | ?:[\\/]* ) . $cache_file;;
1284       *)                      . ./$cache_file;;
1285     esac
1286   fi
1287 else
1288   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1289 echo "$as_me: creating cache $cache_file" >&6;}
1290   >$cache_file
1291 fi
1292
1293 # Check that the precious variables saved in the cache have kept the same
1294 # value.
1295 ac_cache_corrupted=false
1296 for ac_var in `(set) 2>&1 |
1297                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1298   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1299   eval ac_new_set=\$ac_env_${ac_var}_set
1300   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1301   eval ac_new_val="\$ac_env_${ac_var}_value"
1302   case $ac_old_set,$ac_new_set in
1303     set,)
1304       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1305 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1306       ac_cache_corrupted=: ;;
1307     ,set)
1308       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1310       ac_cache_corrupted=: ;;
1311     ,);;
1312     *)
1313       if test "x$ac_old_val" != "x$ac_new_val"; then
1314         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1315 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1316         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1317 echo "$as_me:   former value:  $ac_old_val" >&2;}
1318         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1319 echo "$as_me:   current value: $ac_new_val" >&2;}
1320         ac_cache_corrupted=:
1321       fi;;
1322   esac
1323   # Pass precious variables to config.status.
1324   if test "$ac_new_set" = set; then
1325     case $ac_new_val in
1326     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1327       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1328     *) ac_arg=$ac_var=$ac_new_val ;;
1329     esac
1330     case " $ac_configure_args " in
1331       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1332       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1333     esac
1334   fi
1335 done
1336 if $ac_cache_corrupted; then
1337   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1338 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1339   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1340 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1341    { (exit 1); exit 1; }; }
1342 fi
1343
1344 ac_ext=c
1345 ac_cpp='$CPP $CPPFLAGS'
1346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368 am__api_version="1.6"
1369 ac_aux_dir=
1370 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1371   if test -f $ac_dir/install-sh; then
1372     ac_aux_dir=$ac_dir
1373     ac_install_sh="$ac_aux_dir/install-sh -c"
1374     break
1375   elif test -f $ac_dir/install.sh; then
1376     ac_aux_dir=$ac_dir
1377     ac_install_sh="$ac_aux_dir/install.sh -c"
1378     break
1379   elif test -f $ac_dir/shtool; then
1380     ac_aux_dir=$ac_dir
1381     ac_install_sh="$ac_aux_dir/shtool install -c"
1382     break
1383   fi
1384 done
1385 if test -z "$ac_aux_dir"; then
1386   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1387 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1388    { (exit 1); exit 1; }; }
1389 fi
1390 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1391 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1392 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1393
1394 # Find a good install program.  We prefer a C program (faster),
1395 # so one script is as good as another.  But avoid the broken or
1396 # incompatible versions:
1397 # SysV /etc/install, /usr/sbin/install
1398 # SunOS /usr/etc/install
1399 # IRIX /sbin/install
1400 # AIX /bin/install
1401 # AmigaOS /C/install, which installs bootblocks on floppy discs
1402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1405 # ./install, which can be erroneously created by make from ./install.sh.
1406 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1407 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1408 if test -z "$INSTALL"; then
1409 if test "${ac_cv_path_install+set}" = set; then
1410   echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 for as_dir in $PATH
1414 do
1415   IFS=$as_save_IFS
1416   test -z "$as_dir" && as_dir=.
1417   # Account for people who put trailing slashes in PATH elements.
1418 case $as_dir/ in
1419   ./ | .// | /cC/* | \
1420   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1421   /usr/ucb/* ) ;;
1422   *)
1423     # OSF1 and SCO ODT 3.0 have their own names for install.
1424     # Don't use installbsd from OSF since it installs stuff as root
1425     # by default.
1426     for ac_prog in ginstall scoinst install; do
1427       for ac_exec_ext in '' $ac_executable_extensions; do
1428         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1429           if test $ac_prog = install &&
1430             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1431             # AIX install.  It has an incompatible calling convention.
1432             :
1433           elif test $ac_prog = install &&
1434             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1435             # program-specific install script used by HP pwplus--don't use.
1436             :
1437           else
1438             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1439             break 3
1440           fi
1441         fi
1442       done
1443     done
1444     ;;
1445 esac
1446 done
1447
1448
1449 fi
1450   if test "${ac_cv_path_install+set}" = set; then
1451     INSTALL=$ac_cv_path_install
1452   else
1453     # As a last resort, use the slow shell script.  We don't cache a
1454     # path for INSTALL within a source directory, because that will
1455     # break other packages using the cache if that directory is
1456     # removed, or if the path is relative.
1457     INSTALL=$ac_install_sh
1458   fi
1459 fi
1460 echo "$as_me:$LINENO: result: $INSTALL" >&5
1461 echo "${ECHO_T}$INSTALL" >&6
1462
1463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1464 # It thinks the first close brace ends the variable substitution.
1465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1466
1467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1468
1469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1470
1471 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1472 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1473 # Just in case
1474 sleep 1
1475 echo timestamp > conftest.file
1476 # Do `set' in a subshell so we don't clobber the current shell's
1477 # arguments.  Must try -L first in case configure is actually a
1478 # symlink; some systems play weird games with the mod time of symlinks
1479 # (eg FreeBSD returns the mod time of the symlink's containing
1480 # directory).
1481 if (
1482    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1483    if test "$*" = "X"; then
1484       # -L didn't work.
1485       set X `ls -t $srcdir/configure conftest.file`
1486    fi
1487    rm -f conftest.file
1488    if test "$*" != "X $srcdir/configure conftest.file" \
1489       && test "$*" != "X conftest.file $srcdir/configure"; then
1490
1491       # If neither matched, then we have a broken ls.  This can happen
1492       # if, for instance, CONFIG_SHELL is bash and it inherits a
1493       # broken ls alias from the environment.  This has actually
1494       # happened.  Such a system could not be considered "sane".
1495       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1496 alias in your environment" >&5
1497 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1498 alias in your environment" >&2;}
1499    { (exit 1); exit 1; }; }
1500    fi
1501
1502    test "$2" = conftest.file
1503    )
1504 then
1505    # Ok.
1506    :
1507 else
1508    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1509 Check your system clock" >&5
1510 echo "$as_me: error: newly created file is older than distributed files!
1511 Check your system clock" >&2;}
1512    { (exit 1); exit 1; }; }
1513 fi
1514 echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516 test "$program_prefix" != NONE &&
1517   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1518 # Use a double $ so make ignores it.
1519 test "$program_suffix" != NONE &&
1520   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1521 # Double any \ or $.  echo might interpret backslashes.
1522 # By default was `s,x,x', remove it if useless.
1523 cat <<\_ACEOF >conftest.sed
1524 s/[\\$]/&&/g;s/;s,x,x,$//
1525 _ACEOF
1526 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1527 rm conftest.sed
1528
1529
1530 # expand $ac_aux_dir to an absolute path
1531 am_aux_dir=`cd $ac_aux_dir && pwd`
1532
1533 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1534 # Use eval to expand $SHELL
1535 if eval "$MISSING --run true"; then
1536   am_missing_run="$MISSING --run "
1537 else
1538   am_missing_run=
1539   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1540 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1541 fi
1542
1543 for ac_prog in gawk mawk nawk awk
1544 do
1545   # Extract the first word of "$ac_prog", so it can be a program name with args.
1546 set dummy $ac_prog; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_AWK+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   if test -n "$AWK"; then
1553   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1554 else
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1557 do
1558   IFS=$as_save_IFS
1559   test -z "$as_dir" && as_dir=.
1560   for ac_exec_ext in '' $ac_executable_extensions; do
1561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562     ac_cv_prog_AWK="$ac_prog"
1563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564     break 2
1565   fi
1566 done
1567 done
1568
1569 fi
1570 fi
1571 AWK=$ac_cv_prog_AWK
1572 if test -n "$AWK"; then
1573   echo "$as_me:$LINENO: result: $AWK" >&5
1574 echo "${ECHO_T}$AWK" >&6
1575 else
1576   echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1578 fi
1579
1580   test -n "$AWK" && break
1581 done
1582
1583 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1584 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1585 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1586 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   cat >conftest.make <<\_ACEOF
1590 all:
1591         @echo 'ac_maketemp="${MAKE}"'
1592 _ACEOF
1593 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1594 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1595 if test -n "$ac_maketemp"; then
1596   eval ac_cv_prog_make_${ac_make}_set=yes
1597 else
1598   eval ac_cv_prog_make_${ac_make}_set=no
1599 fi
1600 rm -f conftest.make
1601 fi
1602 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1603   echo "$as_me:$LINENO: result: yes" >&5
1604 echo "${ECHO_T}yes" >&6
1605   SET_MAKE=
1606 else
1607   echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609   SET_MAKE="MAKE=${MAKE-make}"
1610 fi
1611
1612  # test to see if srcdir already configured
1613 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1614    test -f $srcdir/config.status; then
1615   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1616 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1617    { (exit 1); exit 1; }; }
1618 fi
1619
1620 # Define the identity of the package.
1621  PACKAGE=file
1622  VERSION=4.12
1623
1624
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE "$PACKAGE"
1627 _ACEOF
1628
1629
1630 cat >>confdefs.h <<_ACEOF
1631 #define VERSION "$VERSION"
1632 _ACEOF
1633
1634 # Some tools Automake needs.
1635
1636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1637
1638
1639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1640
1641
1642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1643
1644
1645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1646
1647
1648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1649
1650
1651 AMTAR=${AMTAR-"${am_missing_run}tar"}
1652
1653 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1654
1655 # Installed binaries are usually stripped using `strip' when the user
1656 # run `make install-strip'.  However `strip' might not be the right
1657 # tool to use in cross-compilation environments, therefore Automake
1658 # will honor the `STRIP' environment variable to overrule this program.
1659 if test "$cross_compiling" != no; then
1660   if test -n "$ac_tool_prefix"; then
1661   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}strip; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_STRIP+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   if test -n "$STRIP"; then
1669   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674   IFS=$as_save_IFS
1675   test -z "$as_dir" && as_dir=.
1676   for ac_exec_ext in '' $ac_executable_extensions; do
1677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680     break 2
1681   fi
1682 done
1683 done
1684
1685 fi
1686 fi
1687 STRIP=$ac_cv_prog_STRIP
1688 if test -n "$STRIP"; then
1689   echo "$as_me:$LINENO: result: $STRIP" >&5
1690 echo "${ECHO_T}$STRIP" >&6
1691 else
1692   echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 fi
1697 if test -z "$ac_cv_prog_STRIP"; then
1698   ac_ct_STRIP=$STRIP
1699   # Extract the first word of "strip", so it can be a program name with args.
1700 set dummy strip; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$ac_ct_STRIP"; then
1707   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     ac_cv_prog_ac_ct_STRIP="strip"
1717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718     break 2
1719   fi
1720 done
1721 done
1722
1723   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1724 fi
1725 fi
1726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1727 if test -n "$ac_ct_STRIP"; then
1728   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1729 echo "${ECHO_T}$ac_ct_STRIP" >&6
1730 else
1731   echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733 fi
1734
1735   STRIP=$ac_ct_STRIP
1736 else
1737   STRIP="$ac_cv_prog_STRIP"
1738 fi
1739
1740 fi
1741 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1742
1743 # We need awk for the "check" target.  The system "awk" is bad on
1744 # some platforms.
1745
1746
1747
1748 # Add the stamp file to the list of files AC keeps track of,
1749 # along with our hook.
1750 ac_config_headers="$ac_config_headers config.h"
1751
1752
1753
1754
1755 echo "$as_me:$LINENO: checking for builtin ELF support" >&5
1756 echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6
1757 # Check whether --enable-elf or --disable-elf was given.
1758 if test "${enable_elf+set}" = set; then
1759   enableval="$enable_elf"
1760   if test "${enableval}" = yes; then
1761   echo "$as_me:$LINENO: result: yes" >&5
1762 echo "${ECHO_T}yes" >&6
1763   cat >>confdefs.h <<\_ACEOF
1764 #define BUILTIN_ELF 1
1765 _ACEOF
1766
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771 else
1772
1773   # enable by default
1774   echo "$as_me:$LINENO: result: yes" >&5
1775 echo "${ECHO_T}yes" >&6
1776   cat >>confdefs.h <<\_ACEOF
1777 #define BUILTIN_ELF 1
1778 _ACEOF
1779
1780
1781 fi;
1782
1783 echo "$as_me:$LINENO: checking for ELF core file support" >&5
1784 echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6
1785 # Check whether --enable-elf-core or --disable-elf-core was given.
1786 if test "${enable_elf_core+set}" = set; then
1787   enableval="$enable_elf_core"
1788   if test "${enableval}" = yes; then
1789   echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791   cat >>confdefs.h <<\_ACEOF
1792 #define ELFCORE 1
1793 _ACEOF
1794
1795 else
1796   echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1798 fi
1799 else
1800
1801   # enable by default
1802   echo "$as_me:$LINENO: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1804   cat >>confdefs.h <<\_ACEOF
1805 #define ELFCORE 1
1806 _ACEOF
1807
1808
1809 fi;
1810
1811 echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
1812 echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6
1813 # Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
1814 if test "${enable_fsect_man5+set}" = set; then
1815   enableval="$enable_fsect_man5"
1816   if test "${enableval}" = yes; then
1817   echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1819   fsect=5
1820 else
1821   echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823   fsect=4
1824 fi
1825 else
1826
1827   # disable by default
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830   fsect=4
1831
1832 fi;
1833
1834
1835
1836 if test x$fsect = x5; then
1837   FSECT5_TRUE=
1838   FSECT5_FALSE='#'
1839 else
1840   FSECT5_TRUE='#'
1841   FSECT5_FALSE=
1842 fi
1843
1844
1845 ac_ext=c
1846 ac_cpp='$CPP $CPPFLAGS'
1847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 if test -n "$ac_tool_prefix"; then
1851   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1852 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_CC+set}" = set; then
1856   echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858   if test -n "$CC"; then
1859   ac_cv_prog_CC="$CC" # Let the user override the test.
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1863 do
1864   IFS=$as_save_IFS
1865   test -z "$as_dir" && as_dir=.
1866   for ac_exec_ext in '' $ac_executable_extensions; do
1867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870     break 2
1871   fi
1872 done
1873 done
1874
1875 fi
1876 fi
1877 CC=$ac_cv_prog_CC
1878 if test -n "$CC"; then
1879   echo "$as_me:$LINENO: result: $CC" >&5
1880 echo "${ECHO_T}$CC" >&6
1881 else
1882   echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1884 fi
1885
1886 fi
1887 if test -z "$ac_cv_prog_CC"; then
1888   ac_ct_CC=$CC
1889   # Extract the first word of "gcc", so it can be a program name with args.
1890 set dummy gcc; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   if test -n "$ac_ct_CC"; then
1897   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1898 else
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   for ac_exec_ext in '' $ac_executable_extensions; do
1905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906     ac_cv_prog_ac_ct_CC="gcc"
1907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908     break 2
1909   fi
1910 done
1911 done
1912
1913 fi
1914 fi
1915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1916 if test -n "$ac_ct_CC"; then
1917   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1918 echo "${ECHO_T}$ac_ct_CC" >&6
1919 else
1920   echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1922 fi
1923
1924   CC=$ac_ct_CC
1925 else
1926   CC="$ac_cv_prog_CC"
1927 fi
1928
1929 if test -z "$CC"; then
1930   if test -n "$ac_tool_prefix"; then
1931   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1932 set dummy ${ac_tool_prefix}cc; ac_word=$2
1933 echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935 if test "${ac_cv_prog_CC+set}" = set; then
1936   echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938   if test -n "$CC"; then
1939   ac_cv_prog_CC="$CC" # Let the user override the test.
1940 else
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944   IFS=$as_save_IFS
1945   test -z "$as_dir" && as_dir=.
1946   for ac_exec_ext in '' $ac_executable_extensions; do
1947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948     ac_cv_prog_CC="${ac_tool_prefix}cc"
1949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950     break 2
1951   fi
1952 done
1953 done
1954
1955 fi
1956 fi
1957 CC=$ac_cv_prog_CC
1958 if test -n "$CC"; then
1959   echo "$as_me:$LINENO: result: $CC" >&5
1960 echo "${ECHO_T}$CC" >&6
1961 else
1962   echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1964 fi
1965
1966 fi
1967 if test -z "$ac_cv_prog_CC"; then
1968   ac_ct_CC=$CC
1969   # Extract the first word of "cc", so it can be a program name with args.
1970 set dummy cc; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test -n "$ac_ct_CC"; then
1977   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   for ac_exec_ext in '' $ac_executable_extensions; do
1985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986     ac_cv_prog_ac_ct_CC="cc"
1987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988     break 2
1989   fi
1990 done
1991 done
1992
1993 fi
1994 fi
1995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1996 if test -n "$ac_ct_CC"; then
1997   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1998 echo "${ECHO_T}$ac_ct_CC" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004   CC=$ac_ct_CC
2005 else
2006   CC="$ac_cv_prog_CC"
2007 fi
2008
2009 fi
2010 if test -z "$CC"; then
2011   # Extract the first word of "cc", so it can be a program name with args.
2012 set dummy cc; ac_word=$2
2013 echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$CC"; then
2019   ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021   ac_prog_rejected=no
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027   for ac_exec_ext in '' $ac_executable_extensions; do
2028   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2030        ac_prog_rejected=yes
2031        continue
2032      fi
2033     ac_cv_prog_CC="cc"
2034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035     break 2
2036   fi
2037 done
2038 done
2039
2040 if test $ac_prog_rejected = yes; then
2041   # We found a bogon in the path, so make sure we never use it.
2042   set dummy $ac_cv_prog_CC
2043   shift
2044   if test $# != 0; then
2045     # We chose a different compiler from the bogus one.
2046     # However, it has the same basename, so the bogon will be chosen
2047     # first if we set CC to just the basename; use the full file name.
2048     shift
2049     set dummy "$as_dir/$ac_word" ${1+"$@"}
2050     shift
2051     ac_cv_prog_CC="$@"
2052   fi
2053 fi
2054 fi
2055 fi
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058   echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2060 else
2061   echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2063 fi
2064
2065 fi
2066 if test -z "$CC"; then
2067   if test -n "$ac_tool_prefix"; then
2068   for ac_prog in cl
2069   do
2070     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test -n "$CC"; then
2078   ac_cv_prog_CC="$CC" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   for ac_exec_ext in '' $ac_executable_extensions; do
2086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089     break 2
2090   fi
2091 done
2092 done
2093
2094 fi
2095 fi
2096 CC=$ac_cv_prog_CC
2097 if test -n "$CC"; then
2098   echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6
2100 else
2101   echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2103 fi
2104
2105     test -n "$CC" && break
2106   done
2107 fi
2108 if test -z "$CC"; then
2109   ac_ct_CC=$CC
2110   for ac_prog in cl
2111 do
2112   # Extract the first word of "$ac_prog", so it can be a program name with args.
2113 set dummy $ac_prog; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   if test -n "$ac_ct_CC"; then
2120   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   for ac_exec_ext in '' $ac_executable_extensions; do
2128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129     ac_cv_prog_ac_ct_CC="$ac_prog"
2130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131     break 2
2132   fi
2133 done
2134 done
2135
2136 fi
2137 fi
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6
2142 else
2143   echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2145 fi
2146
2147   test -n "$ac_ct_CC" && break
2148 done
2149
2150   CC=$ac_ct_CC
2151 fi
2152
2153 fi
2154
2155
2156 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2157 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2158    { (exit 1); exit 1; }; }
2159
2160 # Provide some information about the compiler.
2161 echo "$as_me:$LINENO:" \
2162      "checking for C compiler version" >&5
2163 ac_compiler=`set X $ac_compile; echo $2`
2164 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2165   (eval $ac_compiler --version </dev/null >&5) 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); }
2169 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2170   (eval $ac_compiler -v </dev/null >&5) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }
2174 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2175   (eval $ac_compiler -V </dev/null >&5) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }
2179
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #line $LINENO "configure"
2182 #include "confdefs.h"
2183
2184 #ifdef F77_DUMMY_MAIN
2185 #  ifdef __cplusplus
2186      extern "C"
2187 #  endif
2188    int F77_DUMMY_MAIN() { return 1; }
2189 #endif
2190 int
2191 main ()
2192 {
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 ac_clean_files_save=$ac_clean_files
2199 ac_clean_files="$ac_clean_files a.out a.exe"
2200 # Try to create an executable without -o first, disregard a.out.
2201 # It will help us diagnose broken compilers, and finding out an intuition
2202 # of exeext.
2203 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2204 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2205 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2206 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2207   (eval $ac_link_default) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; then
2211   # Find the output, starting from the most likely.  This scheme is
2212 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2213 # resort.
2214
2215 # Be careful to initialize this variable, since it used to be cached.
2216 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2217 ac_cv_exeext=
2218 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2219                 ls a.out conftest 2>/dev/null;
2220                 ls a.* conftest.* 2>/dev/null`; do
2221   case $ac_file in
2222     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2223     a.out ) # We found the default executable, but exeext='' is most
2224             # certainly right.
2225             break;;
2226     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2228           export ac_cv_exeext
2229           break;;
2230     * ) break;;
2231   esac
2232 done
2233 else
2234   echo "$as_me: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2237 echo "$as_me: error: C compiler cannot create executables" >&2;}
2238    { (exit 77); exit 77; }; }
2239 fi
2240
2241 ac_exeext=$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_file" >&5
2243 echo "${ECHO_T}$ac_file" >&6
2244
2245 # Check the compiler produces executables we can run.  If not, either
2246 # the compiler is broken, or we cross compile.
2247 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2248 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2249 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2250 # If not cross compiling, check that we can run a simple program.
2251 if test "$cross_compiling" != yes; then
2252   if { ac_try='./$ac_file'
2253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254   (eval $ac_try) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; }; then
2258     cross_compiling=no
2259   else
2260     if test "$cross_compiling" = maybe; then
2261         cross_compiling=yes
2262     else
2263         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2264 If you meant to cross compile, use \`--host'." >&5
2265 echo "$as_me: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'." >&2;}
2267    { (exit 1); exit 1; }; }
2268     fi
2269   fi
2270 fi
2271 echo "$as_me:$LINENO: result: yes" >&5
2272 echo "${ECHO_T}yes" >&6
2273
2274 rm -f a.out a.exe conftest$ac_cv_exeext
2275 ac_clean_files=$ac_clean_files_save
2276 # Check the compiler produces executables we can run.  If not, either
2277 # the compiler is broken, or we cross compile.
2278 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2280 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2281 echo "${ECHO_T}$cross_compiling" >&6
2282
2283 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2286   (eval $ac_link) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; then
2290   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2291 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2292 # work properly (i.e., refer to `conftest.exe'), while it won't with
2293 # `rm'.
2294 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2295   case $ac_file in
2296     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2297     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298           export ac_cv_exeext
2299           break;;
2300     * ) break;;
2301   esac
2302 done
2303 else
2304   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   cat >conftest.$ac_ext <<_ACEOF
2322 #line $LINENO "configure"
2323 #include "confdefs.h"
2324
2325 #ifdef F77_DUMMY_MAIN
2326 #  ifdef __cplusplus
2327      extern "C"
2328 #  endif
2329    int F77_DUMMY_MAIN() { return 1; }
2330 #endif
2331 int
2332 main ()
2333 {
2334
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.o conftest.obj
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341   (eval $ac_compile) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; then
2345   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2346   case $ac_file in
2347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2348     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2349        break;;
2350   esac
2351 done
2352 else
2353   echo "$as_me: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2356 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2357    { (exit 1); exit 1; }; }
2358 fi
2359
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 fi
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2365 ac_objext=$OBJEXT
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   cat >conftest.$ac_ext <<_ACEOF
2372 #line $LINENO "configure"
2373 #include "confdefs.h"
2374
2375 #ifdef F77_DUMMY_MAIN
2376 #  ifdef __cplusplus
2377      extern "C"
2378 #  endif
2379    int F77_DUMMY_MAIN() { return 1; }
2380 #endif
2381 int
2382 main ()
2383 {
2384 #ifndef __GNUC__
2385        choke me
2386 #endif
2387
2388   ;
2389   return 0;
2390 }
2391 _ACEOF
2392 rm -f conftest.$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394   (eval $ac_compile) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; }; then
2404   ac_compiler_gnu=yes
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 ac_compiler_gnu=no
2409 fi
2410 rm -f conftest.$ac_objext conftest.$ac_ext
2411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412
2413 fi
2414 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2415 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2416 GCC=`test $ac_compiler_gnu = yes && echo yes`
2417 ac_test_CFLAGS=${CFLAGS+set}
2418 ac_save_CFLAGS=$CFLAGS
2419 CFLAGS="-g"
2420 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cc_g+set}" = set; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   cat >conftest.$ac_ext <<_ACEOF
2426 #line $LINENO "configure"
2427 #include "confdefs.h"
2428
2429 #ifdef F77_DUMMY_MAIN
2430 #  ifdef __cplusplus
2431      extern "C"
2432 #  endif
2433    int F77_DUMMY_MAIN() { return 1; }
2434 #endif
2435 int
2436 main ()
2437 {
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445   (eval $ac_compile) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); } &&
2449          { ac_try='test -s conftest.$ac_objext'
2450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451   (eval $ac_try) 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; }; then
2455   ac_cv_prog_cc_g=yes
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 ac_cv_prog_cc_g=no
2460 fi
2461 rm -f conftest.$ac_objext conftest.$ac_ext
2462 fi
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466   CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468   if test "$GCC" = yes; then
2469     CFLAGS="-g -O2"
2470   else
2471     CFLAGS="-g"
2472   fi
2473 else
2474   if test "$GCC" = yes; then
2475     CFLAGS="-O2"
2476   else
2477     CFLAGS=
2478   fi
2479 fi
2480 # Some people use a C++ compiler to compile C.  Since we use `exit',
2481 # in C++ we need to declare it.  In case someone uses the same compiler
2482 # for both compiling C and C++ we need to have the C++ compiler decide
2483 # the declaration of exit, since it's the most demanding environment.
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #ifndef __cplusplus
2486   choke me
2487 #endif
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491   (eval $ac_compile) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497   (eval $ac_try) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; }; then
2501   for ac_declaration in \
2502    ''\
2503    '#include <stdlib.h>' \
2504    'extern "C" void std::exit (int) throw (); using std::exit;' \
2505    'extern "C" void std::exit (int); using std::exit;' \
2506    'extern "C" void exit (int) throw ();' \
2507    'extern "C" void exit (int);' \
2508    'void exit (int);'
2509 do
2510   cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 #include "confdefs.h"
2513 #include <stdlib.h>
2514 $ac_declaration
2515 #ifdef F77_DUMMY_MAIN
2516 #  ifdef __cplusplus
2517      extern "C"
2518 #  endif
2519    int F77_DUMMY_MAIN() { return 1; }
2520 #endif
2521 int
2522 main ()
2523 {
2524 exit (42);
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531   (eval $ac_compile) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -s conftest.$ac_objext'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; }; then
2541   :
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2545 continue
2546 fi
2547 rm -f conftest.$ac_objext conftest.$ac_ext
2548   cat >conftest.$ac_ext <<_ACEOF
2549 #line $LINENO "configure"
2550 #include "confdefs.h"
2551 $ac_declaration
2552 #ifdef F77_DUMMY_MAIN
2553 #  ifdef __cplusplus
2554      extern "C"
2555 #  endif
2556    int F77_DUMMY_MAIN() { return 1; }
2557 #endif
2558 int
2559 main ()
2560 {
2561 exit (42);
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568   (eval $ac_compile) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); } &&
2572          { ac_try='test -s conftest.$ac_objext'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; }; then
2578   break
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2582 fi
2583 rm -f conftest.$ac_objext conftest.$ac_ext
2584 done
2585 rm -f conftest*
2586 if test -n "$ac_declaration"; then
2587   echo '#ifdef __cplusplus' >>confdefs.h
2588   echo $ac_declaration      >>confdefs.h
2589   echo '#endif'             >>confdefs.h
2590 fi
2591
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2595 fi
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 rm -f .deps 2>/dev/null
2603 mkdir .deps 2>/dev/null
2604 if test -d .deps; then
2605   DEPDIR=.deps
2606 else
2607   # MS-DOS does not allow filenames that begin with a dot.
2608   DEPDIR=_deps
2609 fi
2610 rmdir .deps 2>/dev/null
2611
2612
2613 ac_config_commands="$ac_config_commands depfiles"
2614
2615
2616 am_make=${MAKE-make}
2617 cat > confinc << 'END'
2618 doit:
2619         @echo done
2620 END
2621 # If we don't find an include directive, just comment out the code.
2622 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2623 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2624 am__include="#"
2625 am__quote=
2626 _am_result=none
2627 # First try GNU make style include.
2628 echo "include confinc" > confmf
2629 # We grep out `Entering directory' and `Leaving directory'
2630 # messages which can occur if `w' ends up in MAKEFLAGS.
2631 # In particular we don't look at `^make:' because GNU make might
2632 # be invoked under some other name (usually "gmake"), in which
2633 # case it prints its new name instead of `make'.
2634 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2635    am__include=include
2636    am__quote=
2637    _am_result=GNU
2638 fi
2639 # Now try BSD make style include.
2640 if test "$am__include" = "#"; then
2641    echo '.include "confinc"' > confmf
2642    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2643       am__include=.include
2644       am__quote="\""
2645       _am_result=BSD
2646    fi
2647 fi
2648
2649
2650 echo "$as_me:$LINENO: result: $_am_result" >&5
2651 echo "${ECHO_T}$_am_result" >&6
2652 rm -f confinc confmf
2653
2654 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2655 if test "${enable_dependency_tracking+set}" = set; then
2656   enableval="$enable_dependency_tracking"
2657
2658 fi;
2659 if test "x$enable_dependency_tracking" != xno; then
2660   am_depcomp="$ac_aux_dir/depcomp"
2661   AMDEPBACKSLASH='\'
2662 fi
2663
2664
2665 if test "x$enable_dependency_tracking" != xno; then
2666   AMDEP_TRUE=
2667   AMDEP_FALSE='#'
2668 else
2669   AMDEP_TRUE='#'
2670   AMDEP_FALSE=
2671 fi
2672
2673
2674
2675
2676 depcc="$CC"   am_compiler_list=
2677
2678 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2679 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2680 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2684   # We make a subdir and do the tests there.  Otherwise we can end up
2685   # making bogus files that we don't know about and never remove.  For
2686   # instance it was reported that on HP-UX the gcc test will end up
2687   # making a dummy file named `D' -- because `-MD' means `put the output
2688   # in D'.
2689   mkdir conftest.dir
2690   # Copy depcomp to subdir because otherwise we won't find it if we're
2691   # using a relative directory.
2692   cp "$am_depcomp" conftest.dir
2693   cd conftest.dir
2694
2695   am_cv_CC_dependencies_compiler_type=none
2696   if test "$am_compiler_list" = ""; then
2697      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2698   fi
2699   for depmode in $am_compiler_list; do
2700     # We need to recreate these files for each test, as the compiler may
2701     # overwrite some of them when testing with obscure command lines.
2702     # This happens at least with the AIX C compiler.
2703     echo '#include "conftest.h"' > conftest.c
2704     echo 'int i;' > conftest.h
2705     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2706
2707     case $depmode in
2708     nosideeffect)
2709       # after this tag, mechanisms are not by side-effect, so they'll
2710       # only be used when explicitly requested
2711       if test "x$enable_dependency_tracking" = xyes; then
2712         continue
2713       else
2714         break
2715       fi
2716       ;;
2717     none) break ;;
2718     esac
2719     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2720     # mode.  It turns out that the SunPro C++ compiler does not properly
2721     # handle `-M -o', and we need to detect this.
2722     if depmode=$depmode \
2723        source=conftest.c object=conftest.o \
2724        depfile=conftest.Po tmpdepfile=conftest.TPo \
2725        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2726        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2727        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2728       am_cv_CC_dependencies_compiler_type=$depmode
2729       break
2730     fi
2731   done
2732
2733   cd ..
2734   rm -rf conftest.dir
2735 else
2736   am_cv_CC_dependencies_compiler_type=none
2737 fi
2738
2739 fi
2740 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2741 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2743
2744
2745 # Find a good install program.  We prefer a C program (faster),
2746 # so one script is as good as another.  But avoid the broken or
2747 # incompatible versions:
2748 # SysV /etc/install, /usr/sbin/install
2749 # SunOS /usr/etc/install
2750 # IRIX /sbin/install
2751 # AIX /bin/install
2752 # AmigaOS /C/install, which installs bootblocks on floppy discs
2753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2756 # ./install, which can be erroneously created by make from ./install.sh.
2757 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2758 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2759 if test -z "$INSTALL"; then
2760 if test "${ac_cv_path_install+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768   # Account for people who put trailing slashes in PATH elements.
2769 case $as_dir/ in
2770   ./ | .// | /cC/* | \
2771   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2772   /usr/ucb/* ) ;;
2773   *)
2774     # OSF1 and SCO ODT 3.0 have their own names for install.
2775     # Don't use installbsd from OSF since it installs stuff as root
2776     # by default.
2777     for ac_prog in ginstall scoinst install; do
2778       for ac_exec_ext in '' $ac_executable_extensions; do
2779         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2780           if test $ac_prog = install &&
2781             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782             # AIX install.  It has an incompatible calling convention.
2783             :
2784           elif test $ac_prog = install &&
2785             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786             # program-specific install script used by HP pwplus--don't use.
2787             :
2788           else
2789             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2790             break 3
2791           fi
2792         fi
2793       done
2794     done
2795     ;;
2796 esac
2797 done
2798
2799
2800 fi
2801   if test "${ac_cv_path_install+set}" = set; then
2802     INSTALL=$ac_cv_path_install
2803   else
2804     # As a last resort, use the slow shell script.  We don't cache a
2805     # path for INSTALL within a source directory, because that will
2806     # break other packages using the cache if that directory is
2807     # removed, or if the path is relative.
2808     INSTALL=$ac_install_sh
2809   fi
2810 fi
2811 echo "$as_me:$LINENO: result: $INSTALL" >&5
2812 echo "${ECHO_T}$INSTALL" >&6
2813
2814 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2815 # It thinks the first close brace ends the variable substitution.
2816 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2817
2818 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2819
2820 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2821
2822 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2823 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2824 LN_S=$as_ln_s
2825 if test "$LN_S" = "ln -s"; then
2826   echo "$as_me:$LINENO: result: yes" >&5
2827 echo "${ECHO_T}yes" >&6
2828 else
2829   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2830 echo "${ECHO_T}no, using $LN_S" >&6
2831 fi
2832
2833 # Check whether --enable-shared or --disable-shared was given.
2834 if test "${enable_shared+set}" = set; then
2835   enableval="$enable_shared"
2836   p=${PACKAGE-default}
2837 case $enableval in
2838 yes) enable_shared=yes ;;
2839 no) enable_shared=no ;;
2840 *)
2841   enable_shared=no
2842   # Look at the argument we got.  We use all the common list separators.
2843   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2844   for pkg in $enableval; do
2845     if test "X$pkg" = "X$p"; then
2846       enable_shared=yes
2847     fi
2848   done
2849   IFS="$ac_save_ifs"
2850   ;;
2851 esac
2852 else
2853   enable_shared=yes
2854 fi;
2855 # Check whether --enable-static or --disable-static was given.
2856 if test "${enable_static+set}" = set; then
2857   enableval="$enable_static"
2858   p=${PACKAGE-default}
2859 case $enableval in
2860 yes) enable_static=yes ;;
2861 no) enable_static=no ;;
2862 *)
2863   enable_static=no
2864   # Look at the argument we got.  We use all the common list separators.
2865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2866   for pkg in $enableval; do
2867     if test "X$pkg" = "X$p"; then
2868       enable_static=yes
2869     fi
2870   done
2871   IFS="$ac_save_ifs"
2872   ;;
2873 esac
2874 else
2875   enable_static=yes
2876 fi;
2877 # Check whether --enable-fast-install or --disable-fast-install was given.
2878 if test "${enable_fast_install+set}" = set; then
2879   enableval="$enable_fast_install"
2880   p=${PACKAGE-default}
2881 case $enableval in
2882 yes) enable_fast_install=yes ;;
2883 no) enable_fast_install=no ;;
2884 *)
2885   enable_fast_install=no
2886   # Look at the argument we got.  We use all the common list separators.
2887   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2888   for pkg in $enableval; do
2889     if test "X$pkg" = "X$p"; then
2890       enable_fast_install=yes
2891     fi
2892   done
2893   IFS="$ac_save_ifs"
2894   ;;
2895 esac
2896 else
2897   enable_fast_install=yes
2898 fi;
2899 # Make sure we can run config.sub.
2900 $ac_config_sub sun4 >/dev/null 2>&1 ||
2901   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2902 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2903    { (exit 1); exit 1; }; }
2904
2905 echo "$as_me:$LINENO: checking build system type" >&5
2906 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2907 if test "${ac_cv_build+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910   ac_cv_build_alias=$build_alias
2911 test -z "$ac_cv_build_alias" &&
2912   ac_cv_build_alias=`$ac_config_guess`
2913 test -z "$ac_cv_build_alias" &&
2914   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2915 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2916    { (exit 1); exit 1; }; }
2917 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2918   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2919 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2920    { (exit 1); exit 1; }; }
2921
2922 fi
2923 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2924 echo "${ECHO_T}$ac_cv_build" >&6
2925 build=$ac_cv_build
2926 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2927 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2928 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2929
2930
2931 echo "$as_me:$LINENO: checking host system type" >&5
2932 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2933 if test "${ac_cv_host+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   ac_cv_host_alias=$host_alias
2937 test -z "$ac_cv_host_alias" &&
2938   ac_cv_host_alias=$ac_cv_build_alias
2939 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2940   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2941 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2942    { (exit 1); exit 1; }; }
2943
2944 fi
2945 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2946 echo "${ECHO_T}$ac_cv_host" >&6
2947 host=$ac_cv_host
2948 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2949 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2950 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2951
2952
2953 # Find the correct PATH separator.  Usually this is `:', but
2954 # DJGPP uses `;' like DOS.
2955 if test "X${PATH_SEPARATOR+set}" != Xset; then
2956   UNAME=${UNAME-`uname 2>/dev/null`}
2957   case X$UNAME in
2958     *-DOS) lt_cv_sys_path_separator=';' ;;
2959     *)     lt_cv_sys_path_separator=':' ;;
2960   esac
2961   PATH_SEPARATOR=$lt_cv_sys_path_separator
2962 fi
2963
2964
2965 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2966 if test "${with_gnu_ld+set}" = set; then
2967   withval="$with_gnu_ld"
2968   test "$withval" = no || with_gnu_ld=yes
2969 else
2970   with_gnu_ld=no
2971 fi;
2972 ac_prog=ld
2973 if test "$GCC" = yes; then
2974   # Check if gcc -print-prog-name=ld gives a path.
2975   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2976 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2977   case $host in
2978   *-*-mingw*)
2979     # gcc leaves a trailing carriage return which upsets mingw
2980     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2981   *)
2982     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2983   esac
2984   case $ac_prog in
2985     # Accept absolute paths.
2986     [\\/]* | [A-Za-z]:[\\/]*)
2987       re_direlt='/[^/][^/]*/\.\./'
2988       # Canonicalize the path of ld
2989       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2990       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2991         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2992       done
2993       test -z "$LD" && LD="$ac_prog"
2994       ;;
2995   "")
2996     # If it fails, then pretend we aren't using GCC.
2997     ac_prog=ld
2998     ;;
2999   *)
3000     # If it is relative, then search for the first ld in PATH.
3001     with_gnu_ld=unknown
3002     ;;
3003   esac
3004 elif test "$with_gnu_ld" = yes; then
3005   echo "$as_me:$LINENO: checking for GNU ld" >&5
3006 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3007 else
3008   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3009 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3010 fi
3011 if test "${lt_cv_path_LD+set}" = set; then
3012   echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014   if test -z "$LD"; then
3015   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3016   for ac_dir in $PATH; do
3017     test -z "$ac_dir" && ac_dir=.
3018     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3019       lt_cv_path_LD="$ac_dir/$ac_prog"
3020       # Check to see if the program is GNU ld.  I'd rather use --version,
3021       # but apparently some GNU ld's only accept -v.
3022       # Break only if it was the GNU/non-GNU ld that we prefer.
3023       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3024         test "$with_gnu_ld" != no && break
3025       else
3026         test "$with_gnu_ld" != yes && break
3027       fi
3028     fi
3029   done
3030   IFS="$ac_save_ifs"
3031 else
3032   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3033 fi
3034 fi
3035
3036 LD="$lt_cv_path_LD"
3037 if test -n "$LD"; then
3038   echo "$as_me:$LINENO: result: $LD" >&5
3039 echo "${ECHO_T}$LD" >&6
3040 else
3041   echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6
3043 fi
3044 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3045 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3046    { (exit 1); exit 1; }; }
3047 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3048 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3049 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3053 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3054   lt_cv_prog_gnu_ld=yes
3055 else
3056   lt_cv_prog_gnu_ld=no
3057 fi
3058 fi
3059 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3060 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3061 with_gnu_ld=$lt_cv_prog_gnu_ld
3062
3063
3064 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3065 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3066 if test "${lt_cv_ld_reload_flag+set}" = set; then
3067   echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069   lt_cv_ld_reload_flag='-r'
3070 fi
3071 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3072 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3073 reload_flag=$lt_cv_ld_reload_flag
3074 test -n "$reload_flag" && reload_flag=" $reload_flag"
3075
3076 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3077 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3078 if test "${lt_cv_path_NM+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   if test -n "$NM"; then
3082   # Let the user override the test.
3083   lt_cv_path_NM="$NM"
3084 else
3085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3086   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3087     test -z "$ac_dir" && ac_dir=.
3088     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3089     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3090       # Check to see if the nm accepts a BSD-compat flag.
3091       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3092       #   nm: unknown option "B" ignored
3093       # Tru64's nm complains that /dev/null is an invalid object file
3094       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3095         lt_cv_path_NM="$tmp_nm -B"
3096         break
3097       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3098         lt_cv_path_NM="$tmp_nm -p"
3099         break
3100       else
3101         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3102         continue # so that we can try to find one that supports BSD flags
3103       fi
3104     fi
3105   done
3106   IFS="$ac_save_ifs"
3107   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3108 fi
3109 fi
3110
3111 NM="$lt_cv_path_NM"
3112 echo "$as_me:$LINENO: result: $NM" >&5
3113 echo "${ECHO_T}$NM" >&6
3114
3115 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3116 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3117 if test "${lt_cv_deplibs_check_method+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   lt_cv_file_magic_cmd='$MAGIC_CMD'
3121 lt_cv_file_magic_test_file=
3122 lt_cv_deplibs_check_method='unknown'
3123 # Need to set the preceding variable on all platforms that support
3124 # interlibrary dependencies.
3125 # 'none' -- dependencies not supported.
3126 # `unknown' -- same as none, but documents that we really don't know.
3127 # 'pass_all' -- all dependencies passed with no checks.
3128 # 'test_compile' -- check by making test program.
3129 # 'file_magic [[regex]]' -- check by looking for files in library path
3130 # which responds to the $file_magic_cmd with a given egrep regex.
3131 # If you have `file' or equivalent on your system and you're not sure
3132 # whether `pass_all' will *always* work, you probably want this one.
3133
3134 case $host_os in
3135 aix4* | aix5*)
3136   lt_cv_deplibs_check_method=pass_all
3137   ;;
3138
3139 beos*)
3140   lt_cv_deplibs_check_method=pass_all
3141   ;;
3142
3143 bsdi4*)
3144   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3145   lt_cv_file_magic_cmd='/usr/bin/file -L'
3146   lt_cv_file_magic_test_file=/shlib/libc.so
3147   ;;
3148
3149 cygwin* | mingw* | pw32*)
3150   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3151   lt_cv_file_magic_cmd='$OBJDUMP -f'
3152   ;;
3153
3154 darwin* | rhapsody*)
3155   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3156   lt_cv_file_magic_cmd='/usr/bin/file -L'
3157   case "$host_os" in
3158   rhapsody* | darwin1.[012])
3159     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3160     ;;
3161   *) # Darwin 1.3 on
3162     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3163     ;;
3164   esac
3165   ;;
3166
3167 freebsd*)
3168   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3169     case $host_cpu in
3170     i*86 )
3171       # Not sure whether the presence of OpenBSD here was a mistake.
3172       # Let's accept both of them until this is cleared up.
3173       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3174       lt_cv_file_magic_cmd=/usr/bin/file
3175       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3176       ;;
3177     esac
3178   else
3179     lt_cv_deplibs_check_method=pass_all
3180   fi
3181   ;;
3182
3183 gnu*)
3184   lt_cv_deplibs_check_method=pass_all
3185   ;;
3186
3187 hpux10.20*|hpux11*)
3188   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3189   lt_cv_file_magic_cmd=/usr/bin/file
3190   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3191   ;;
3192
3193 irix5* | irix6*)
3194   case $host_os in
3195   irix5*)
3196     # this will be overridden with pass_all, but let us keep it just in case
3197     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3198     ;;
3199   *)
3200     case $LD in
3201     *-32|*"-32 ") libmagic=32-bit;;
3202     *-n32|*"-n32 ") libmagic=N32;;
3203     *-64|*"-64 ") libmagic=64-bit;;
3204     *) libmagic=never-match;;
3205     esac
3206     # this will be overridden with pass_all, but let us keep it just in case
3207     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3208     ;;
3209   esac
3210   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3211   lt_cv_deplibs_check_method=pass_all
3212   ;;
3213
3214 # This must be Linux ELF.
3215 linux-gnu*)
3216   case $host_cpu in
3217   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3218     lt_cv_deplibs_check_method=pass_all ;;
3219   *)
3220     # glibc up to 2.1.1 does not perform some relocations on ARM
3221     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3222   esac
3223   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3224   ;;
3225
3226 netbsd*)
3227   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3228     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3229   else
3230     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3231   fi
3232   ;;
3233
3234 newos6*)
3235   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3236   lt_cv_file_magic_cmd=/usr/bin/file
3237   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3238   ;;
3239
3240 openbsd*)
3241   lt_cv_file_magic_cmd=/usr/bin/file
3242   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3243   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3244     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3245   else
3246     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3247   fi
3248   ;;
3249
3250 osf3* | osf4* | osf5*)
3251   # this will be overridden with pass_all, but let us keep it just in case
3252   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3253   lt_cv_file_magic_test_file=/shlib/libc.so
3254   lt_cv_deplibs_check_method=pass_all
3255   ;;
3256
3257 sco3.2v5*)
3258   lt_cv_deplibs_check_method=pass_all
3259   ;;
3260
3261 solaris*)
3262   lt_cv_deplibs_check_method=pass_all
3263   lt_cv_file_magic_test_file=/lib/libc.so
3264   ;;
3265
3266 sysv5uw[78]* | sysv4*uw2*)
3267   lt_cv_deplibs_check_method=pass_all
3268   ;;
3269
3270 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3271   case $host_vendor in
3272   motorola)
3273     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3274     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3275     ;;
3276   ncr)
3277     lt_cv_deplibs_check_method=pass_all
3278     ;;
3279   sequent)
3280     lt_cv_file_magic_cmd='/bin/file'
3281     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3282     ;;
3283   sni)
3284     lt_cv_file_magic_cmd='/bin/file'
3285     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3286     lt_cv_file_magic_test_file=/lib/libc.so
3287     ;;
3288   esac
3289   ;;
3290 esac
3291
3292 fi
3293 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3294 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3295 file_magic_cmd=$lt_cv_file_magic_cmd
3296 deplibs_check_method=$lt_cv_deplibs_check_method
3297
3298
3299
3300
3301
3302
3303
3304
3305 # Check for command to grab the raw symbol name followed by C symbol from nm.
3306 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3307 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3308 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3309   echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311
3312 # These are sane defaults that work on at least a few old systems.
3313 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3314
3315 # Character class describing NM global symbol codes.
3316 symcode='[BCDEGRST]'
3317
3318 # Regexp to match symbols that can be accessed directly from C.
3319 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3320
3321 # Transform the above into a raw symbol and a C symbol.
3322 symxfrm='\1 \2\3 \3'
3323
3324 # Transform an extracted symbol line into a proper C declaration
3325 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3326
3327 # Transform an extracted symbol line into symbol name and symbol address
3328 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3329
3330 # Define system-specific variables.
3331 case $host_os in
3332 aix*)
3333   symcode='[BCDT]'
3334   ;;
3335 cygwin* | mingw* | pw32*)
3336   symcode='[ABCDGISTW]'
3337   ;;
3338 hpux*) # Its linker distinguishes data from code symbols
3339   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3340   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3341   ;;
3342 irix*)
3343   symcode='[BCDEGRST]'
3344   ;;
3345 solaris* | sysv5*)
3346   symcode='[BDT]'
3347   ;;
3348 sysv4)
3349   symcode='[DFNSTU]'
3350   ;;
3351 esac
3352
3353 # Handle CRLF in mingw tool chain
3354 opt_cr=
3355 case $host_os in
3356 mingw*)
3357   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3358   ;;
3359 esac
3360
3361 # If we're using GNU nm, then use its standard symbol codes.
3362 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3363   symcode='[ABCDGISTW]'
3364 fi
3365
3366 # Try without a prefix undercore, then with it.
3367 for ac_symprfx in "" "_"; do
3368
3369   # Write the raw and C identifiers.
3370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3371
3372   # Check to see that the pipe works correctly.
3373   pipe_works=no
3374   rm -f conftest*
3375   cat > conftest.$ac_ext <<EOF
3376 #ifdef __cplusplus
3377 extern "C" {
3378 #endif
3379 char nm_test_var;
3380 void nm_test_func(){}
3381 #ifdef __cplusplus
3382 }
3383 #endif
3384 int main(){nm_test_var='a';nm_test_func();return(0);}
3385 EOF
3386
3387   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388   (eval $ac_compile) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; then
3392     # Now try to grab the symbols.
3393     nlist=conftest.nm
3394     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3395   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); } && test -s "$nlist"; then
3399       # Try sorting and uniquifying the output.
3400       if sort "$nlist" | uniq > "$nlist"T; then
3401         mv -f "$nlist"T "$nlist"
3402       else
3403         rm -f "$nlist"T
3404       fi
3405
3406       # Make sure that we snagged all the symbols we need.
3407       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3408         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3409           cat <<EOF > conftest.$ac_ext
3410 #ifdef __cplusplus
3411 extern "C" {
3412 #endif
3413
3414 EOF
3415           # Now generate the symbol file.
3416           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3417
3418           cat <<EOF >> conftest.$ac_ext
3419 #if defined (__STDC__) && __STDC__
3420 # define lt_ptr void *
3421 #else
3422 # define lt_ptr char *
3423 # define const
3424 #endif
3425
3426 /* The mapping between symbol names and symbols. */
3427 const struct {
3428   const char *name;
3429   lt_ptr address;
3430 }
3431 lt_preloaded_symbols[] =
3432 {
3433 EOF
3434           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3435           cat <<\EOF >> conftest.$ac_ext
3436   {0, (lt_ptr) 0}
3437 };
3438
3439 #ifdef __cplusplus
3440 }
3441 #endif
3442 EOF
3443           # Now try linking the two files.
3444           mv conftest.$ac_objext conftstm.$ac_objext
3445           save_LIBS="$LIBS"
3446           save_CFLAGS="$CFLAGS"
3447           LIBS="conftstm.$ac_objext"
3448           CFLAGS="$CFLAGS$no_builtin_flag"
3449           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450   (eval $ac_link) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } && test -s conftest; then
3454             pipe_works=yes
3455           fi
3456           LIBS="$save_LIBS"
3457           CFLAGS="$save_CFLAGS"
3458         else
3459           echo "cannot find nm_test_func in $nlist" >&5
3460         fi
3461       else
3462         echo "cannot find nm_test_var in $nlist" >&5
3463       fi
3464     else
3465       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3466     fi
3467   else
3468     echo "$progname: failed program was:" >&5
3469     cat conftest.$ac_ext >&5
3470   fi
3471   rm -f conftest* conftst*
3472
3473   # Do not use the global_symbol_pipe unless it works.
3474   if test "$pipe_works" = yes; then
3475     break
3476   else
3477     lt_cv_sys_global_symbol_pipe=
3478   fi
3479 done
3480
3481 fi
3482
3483 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3484 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3485   global_symbol_to_cdecl=
3486   global_symbol_to_c_name_address=
3487 else
3488   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3489   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3490 fi
3491 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3492 then
3493   echo "$as_me:$LINENO: result: failed" >&5
3494 echo "${ECHO_T}failed" >&6
3495 else
3496   echo "$as_me:$LINENO: result: ok" >&5
3497 echo "${ECHO_T}ok" >&6
3498 fi
3499
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3506 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3507 # On Suns, sometimes $CPP names a directory.
3508 if test -n "$CPP" && test -d "$CPP"; then
3509   CPP=
3510 fi
3511 if test -z "$CPP"; then
3512   if test "${ac_cv_prog_CPP+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515       # Double quotes because CPP needs to be expanded
3516     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3517     do
3518       ac_preproc_ok=false
3519 for ac_c_preproc_warn_flag in '' yes
3520 do
3521   # Use a header file that comes with gcc, so configuring glibc
3522   # with a fresh cross-compiler works.
3523   # On the NeXT, cc -E runs the code through the compiler's parser,
3524   # not just through cpp. "Syntax error" is here to catch this case.
3525   cat >conftest.$ac_ext <<_ACEOF
3526 #line $LINENO "configure"
3527 #include "confdefs.h"
3528 #include <assert.h>
3529                      Syntax error
3530 _ACEOF
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3533   ac_status=$?
3534   egrep -v '^ *\+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } >/dev/null; then
3539   if test -s conftest.err; then
3540     ac_cpp_err=$ac_c_preproc_warn_flag
3541   else
3542     ac_cpp_err=
3543   fi
3544 else
3545   ac_cpp_err=yes
3546 fi
3547 if test -z "$ac_cpp_err"; then
3548   :
3549 else
3550   echo "$as_me: failed program was:" >&5
3551   cat conftest.$ac_ext >&5
3552   # Broken: fails on valid input.
3553 continue
3554 fi
3555 rm -f conftest.err conftest.$ac_ext
3556
3557   # OK, works on sane cases.  Now check whether non-existent headers
3558   # can be detected and how.
3559   cat >conftest.$ac_ext <<_ACEOF
3560 #line $LINENO "configure"
3561 #include "confdefs.h"
3562 #include <ac_nonexistent.h>
3563 _ACEOF
3564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3566   ac_status=$?
3567   egrep -v '^ *\+' conftest.er1 >conftest.err
3568   rm -f conftest.er1
3569   cat conftest.err >&5
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } >/dev/null; then
3572   if test -s conftest.err; then
3573     ac_cpp_err=$ac_c_preproc_warn_flag
3574   else
3575     ac_cpp_err=
3576   fi
3577 else
3578   ac_cpp_err=yes
3579 fi
3580 if test -z "$ac_cpp_err"; then
3581   # Broken: success on invalid input.
3582 continue
3583 else
3584   echo "$as_me: failed program was:" >&5
3585   cat conftest.$ac_ext >&5
3586   # Passes both tests.
3587 ac_preproc_ok=:
3588 break
3589 fi
3590 rm -f conftest.err conftest.$ac_ext
3591
3592 done
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then
3596   break
3597 fi
3598
3599     done
3600     ac_cv_prog_CPP=$CPP
3601
3602 fi
3603   CPP=$ac_cv_prog_CPP
3604 else
3605   ac_cv_prog_CPP=$CPP
3606 fi
3607 echo "$as_me:$LINENO: result: $CPP" >&5
3608 echo "${ECHO_T}$CPP" >&6
3609 ac_preproc_ok=false
3610 for ac_c_preproc_warn_flag in '' yes
3611 do
3612   # Use a header file that comes with gcc, so configuring glibc
3613   # with a fresh cross-compiler works.
3614   # On the NeXT, cc -E runs the code through the compiler's parser,
3615   # not just through cpp. "Syntax error" is here to catch this case.
3616   cat >conftest.$ac_ext <<_ACEOF
3617 #line $LINENO "configure"
3618 #include "confdefs.h"
3619 #include <assert.h>
3620                      Syntax error
3621 _ACEOF
3622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3624   ac_status=$?
3625   egrep -v '^ *\+' conftest.er1 >conftest.err
3626   rm -f conftest.er1
3627   cat conftest.err >&5
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); } >/dev/null; then
3630   if test -s conftest.err; then
3631     ac_cpp_err=$ac_c_preproc_warn_flag
3632   else
3633     ac_cpp_err=
3634   fi
3635 else
3636   ac_cpp_err=yes
3637 fi
3638 if test -z "$ac_cpp_err"; then
3639   :
3640 else
3641   echo "$as_me: failed program was:" >&5
3642   cat conftest.$ac_ext >&5
3643   # Broken: fails on valid input.
3644 continue
3645 fi
3646 rm -f conftest.err conftest.$ac_ext
3647
3648   # OK, works on sane cases.  Now check whether non-existent headers
3649   # can be detected and how.
3650   cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 #include "confdefs.h"
3653 #include <ac_nonexistent.h>
3654 _ACEOF
3655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3657   ac_status=$?
3658   egrep -v '^ *\+' conftest.er1 >conftest.err
3659   rm -f conftest.er1
3660   cat conftest.err >&5
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } >/dev/null; then
3663   if test -s conftest.err; then
3664     ac_cpp_err=$ac_c_preproc_warn_flag
3665   else
3666     ac_cpp_err=
3667   fi
3668 else
3669   ac_cpp_err=yes
3670 fi
3671 if test -z "$ac_cpp_err"; then
3672   # Broken: success on invalid input.
3673 continue
3674 else
3675   echo "$as_me: failed program was:" >&5
3676   cat conftest.$ac_ext >&5
3677   # Passes both tests.
3678 ac_preproc_ok=:
3679 break
3680 fi
3681 rm -f conftest.err conftest.$ac_ext
3682
3683 done
3684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685 rm -f conftest.err conftest.$ac_ext
3686 if $ac_preproc_ok; then
3687   :
3688 else
3689   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3691    { (exit 1); exit 1; }; }
3692 fi
3693
3694 ac_ext=c
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699
3700
3701 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3702 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3703 if test "${ac_cv_header_stdc+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   cat >conftest.$ac_ext <<_ACEOF
3707 #line $LINENO "configure"
3708 #include "confdefs.h"
3709 #include <stdlib.h>
3710 #include <stdarg.h>
3711 #include <string.h>
3712 #include <float.h>
3713
3714 _ACEOF
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3717   ac_status=$?
3718   egrep -v '^ *\+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } >/dev/null; then
3723   if test -s conftest.err; then
3724     ac_cpp_err=$ac_c_preproc_warn_flag
3725   else
3726     ac_cpp_err=
3727   fi
3728 else
3729   ac_cpp_err=yes
3730 fi
3731 if test -z "$ac_cpp_err"; then
3732   ac_cv_header_stdc=yes
3733 else
3734   echo "$as_me: failed program was:" >&5
3735   cat conftest.$ac_ext >&5
3736   ac_cv_header_stdc=no
3737 fi
3738 rm -f conftest.err conftest.$ac_ext
3739
3740 if test $ac_cv_header_stdc = yes; then
3741   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3742   cat >conftest.$ac_ext <<_ACEOF
3743 #line $LINENO "configure"
3744 #include "confdefs.h"
3745 #include <string.h>
3746
3747 _ACEOF
3748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749   egrep "memchr" >/dev/null 2>&1; then
3750   :
3751 else
3752   ac_cv_header_stdc=no
3753 fi
3754 rm -f conftest*
3755
3756 fi
3757
3758 if test $ac_cv_header_stdc = yes; then
3759   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3760   cat >conftest.$ac_ext <<_ACEOF
3761 #line $LINENO "configure"
3762 #include "confdefs.h"
3763 #include <stdlib.h>
3764
3765 _ACEOF
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767   egrep "free" >/dev/null 2>&1; then
3768   :
3769 else
3770   ac_cv_header_stdc=no
3771 fi
3772 rm -f conftest*
3773
3774 fi
3775
3776 if test $ac_cv_header_stdc = yes; then
3777   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778   if test "$cross_compiling" = yes; then
3779   :
3780 else
3781   cat >conftest.$ac_ext <<_ACEOF
3782 #line $LINENO "configure"
3783 #include "confdefs.h"
3784 #include <ctype.h>
3785 #if ((' ' & 0x0FF) == 0x020)
3786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3788 #else
3789 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3790                      || ('j' <= (c) && (c) <= 'r') \
3791                      || ('s' <= (c) && (c) <= 'z'))
3792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3793 #endif
3794
3795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3796 int
3797 main ()
3798 {
3799   int i;
3800   for (i = 0; i < 256; i++)
3801     if (XOR (islower (i), ISLOWER (i))
3802         || toupper (i) != TOUPPER (i))
3803       exit(2);
3804   exit (0);
3805 }
3806 _ACEOF
3807 rm -f conftest$ac_exeext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3809   (eval $ac_link) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814   (eval $ac_try) 2>&5
3815   ac_status=$?
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); }; }; then
3818   :
3819 else
3820   echo "$as_me: program exited with status $ac_status" >&5
3821 echo "$as_me: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3823 ( exit $ac_status )
3824 ac_cv_header_stdc=no
3825 fi
3826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3827 fi
3828 fi
3829 fi
3830 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3831 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3832 if test $ac_cv_header_stdc = yes; then
3833
3834 cat >>confdefs.h <<\_ACEOF
3835 #define STDC_HEADERS 1
3836 _ACEOF
3837
3838 fi
3839
3840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3851                   inttypes.h stdint.h unistd.h
3852 do
3853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3854 echo "$as_me:$LINENO: checking for $ac_header" >&5
3855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   cat >conftest.$ac_ext <<_ACEOF
3860 #line $LINENO "configure"
3861 #include "confdefs.h"
3862 $ac_includes_default
3863
3864 #include <$ac_header>
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868   (eval $ac_compile) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } &&
3872          { ac_try='test -s conftest.$ac_objext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   eval "$as_ac_Header=yes"
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 eval "$as_ac_Header=no"
3883 fi
3884 rm -f conftest.$ac_objext conftest.$ac_ext
3885 fi
3886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3889   cat >>confdefs.h <<_ACEOF
3890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3891 _ACEOF
3892
3893 fi
3894
3895 done
3896
3897
3898
3899 for ac_header in dlfcn.h
3900 do
3901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3903   echo "$as_me:$LINENO: checking for $ac_header" >&5
3904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 fi
3908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3910 else
3911   # Is the header compilable?
3912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line $LINENO "configure"
3916 #include "confdefs.h"
3917 $ac_includes_default
3918 #include <$ac_header>
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922   (eval $ac_compile) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } &&
3926          { ac_try='test -s conftest.$ac_objext'
3927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928   (eval $ac_try) 2>&5
3929   ac_status=$?
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); }; }; then
3932   ac_header_compiler=yes
3933 else
3934   echo "$as_me: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 ac_header_compiler=no
3937 fi
3938 rm -f conftest.$ac_objext conftest.$ac_ext
3939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3940 echo "${ECHO_T}$ac_header_compiler" >&6
3941
3942 # Is the header present?
3943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3946 #line $LINENO "configure"
3947 #include "confdefs.h"
3948 #include <$ac_header>
3949 _ACEOF
3950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952   ac_status=$?
3953   egrep -v '^ *\+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } >/dev/null; then
3958   if test -s conftest.err; then
3959     ac_cpp_err=$ac_c_preproc_warn_flag
3960   else
3961     ac_cpp_err=
3962   fi
3963 else
3964   ac_cpp_err=yes
3965 fi
3966 if test -z "$ac_cpp_err"; then
3967   ac_header_preproc=yes
3968 else
3969   echo "$as_me: failed program was:" >&5
3970   cat conftest.$ac_ext >&5
3971   ac_header_preproc=no
3972 fi
3973 rm -f conftest.err conftest.$ac_ext
3974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3975 echo "${ECHO_T}$ac_header_preproc" >&6
3976
3977 # So?  What about this header?
3978 case $ac_header_compiler:$ac_header_preproc in
3979   yes:no )
3980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3984   no:yes )
3985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3987     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3991 esac
3992 echo "$as_me:$LINENO: checking for $ac_header" >&5
3993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   eval "$as_ac_Header=$ac_header_preproc"
3998 fi
3999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4001
4002 fi
4003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4004   cat >>confdefs.h <<_ACEOF
4005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4006 _ACEOF
4007
4008 fi
4009
4010 done
4011
4012
4013
4014
4015
4016 # Only perform the check for file, if the check method requires it
4017 case $deplibs_check_method in
4018 file_magic*)
4019   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4020     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4021 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4022 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   case $MAGIC_CMD in
4026   /*)
4027   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4028   ;;
4029   ?:/*)
4030   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4031   ;;
4032   *)
4033   ac_save_MAGIC_CMD="$MAGIC_CMD"
4034   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4035   ac_dummy="/usr/bin:$PATH"
4036   for ac_dir in $ac_dummy; do
4037     test -z "$ac_dir" && ac_dir=.
4038     if test -f $ac_dir/${ac_tool_prefix}file; then
4039       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4040       if test -n "$file_magic_test_file"; then
4041         case $deplibs_check_method in
4042         "file_magic "*)
4043           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4044           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4045           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4046             egrep "$file_magic_regex" > /dev/null; then
4047             :
4048           else
4049             cat <<EOF 1>&2
4050
4051 *** Warning: the command libtool uses to detect shared libraries,
4052 *** $file_magic_cmd, produces output that libtool cannot recognize.
4053 *** The result is that libtool may fail to recognize shared libraries
4054 *** as such.  This will affect the creation of libtool libraries that
4055 *** depend on shared libraries, but programs linked with such libtool
4056 *** libraries will work regardless of this problem.  Nevertheless, you
4057 *** may want to report the problem to your system manager and/or to
4058 *** bug-libtool@gnu.org
4059
4060 EOF
4061           fi ;;
4062         esac
4063       fi
4064       break
4065     fi
4066   done
4067   IFS="$ac_save_ifs"
4068   MAGIC_CMD="$ac_save_MAGIC_CMD"
4069   ;;
4070 esac
4071 fi
4072
4073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4074 if test -n "$MAGIC_CMD"; then
4075   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4076 echo "${ECHO_T}$MAGIC_CMD" >&6
4077 else
4078   echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6
4080 fi
4081
4082 if test -z "$lt_cv_path_MAGIC_CMD"; then
4083   if test -n "$ac_tool_prefix"; then
4084     echo "$as_me:$LINENO: checking for file" >&5
4085 echo $ECHO_N "checking for file... $ECHO_C" >&6
4086 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   case $MAGIC_CMD in
4090   /*)
4091   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4092   ;;
4093   ?:/*)
4094   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4095   ;;
4096   *)
4097   ac_save_MAGIC_CMD="$MAGIC_CMD"
4098   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4099   ac_dummy="/usr/bin:$PATH"
4100   for ac_dir in $ac_dummy; do
4101     test -z "$ac_dir" && ac_dir=.
4102     if test -f $ac_dir/file; then
4103       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4104       if test -n "$file_magic_test_file"; then
4105         case $deplibs_check_method in
4106         "file_magic "*)
4107           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4108           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4109           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4110             egrep "$file_magic_regex" > /dev/null; then
4111             :
4112           else
4113             cat <<EOF 1>&2
4114
4115 *** Warning: the command libtool uses to detect shared libraries,
4116 *** $file_magic_cmd, produces output that libtool cannot recognize.
4117 *** The result is that libtool may fail to recognize shared libraries
4118 *** as such.  This will affect the creation of libtool libraries that
4119 *** depend on shared libraries, but programs linked with such libtool
4120 *** libraries will work regardless of this problem.  Nevertheless, you
4121 *** may want to report the problem to your system manager and/or to
4122 *** bug-libtool@gnu.org
4123
4124 EOF
4125           fi ;;
4126         esac
4127       fi
4128       break
4129     fi
4130   done
4131   IFS="$ac_save_ifs"
4132   MAGIC_CMD="$ac_save_MAGIC_CMD"
4133   ;;
4134 esac
4135 fi
4136
4137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4138 if test -n "$MAGIC_CMD"; then
4139   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4140 echo "${ECHO_T}$MAGIC_CMD" >&6
4141 else
4142   echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4144 fi
4145
4146   else
4147     MAGIC_CMD=:
4148   fi
4149 fi
4150
4151   fi
4152   ;;
4153 esac
4154
4155 if test -n "$ac_tool_prefix"; then
4156   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4157 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_RANLIB+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if test -n "$RANLIB"; then
4164   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180 fi
4181 fi
4182 RANLIB=$ac_cv_prog_RANLIB
4183 if test -n "$RANLIB"; then
4184   echo "$as_me:$LINENO: result: $RANLIB" >&5
4185 echo "${ECHO_T}$RANLIB" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191 fi
4192 if test -z "$ac_cv_prog_RANLIB"; then
4193   ac_ct_RANLIB=$RANLIB
4194   # Extract the first word of "ranlib", so it can be a program name with args.
4195 set dummy ranlib; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   if test -n "$ac_ct_RANLIB"; then
4202   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207   IFS=$as_save_IFS
4208   test -z "$as_dir" && as_dir=.
4209   for ac_exec_ext in '' $ac_executable_extensions; do
4210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211     ac_cv_prog_ac_ct_RANLIB="ranlib"
4212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213     break 2
4214   fi
4215 done
4216 done
4217
4218   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4219 fi
4220 fi
4221 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4222 if test -n "$ac_ct_RANLIB"; then
4223   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4224 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4225 else
4226   echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228 fi
4229
4230   RANLIB=$ac_ct_RANLIB
4231 else
4232   RANLIB="$ac_cv_prog_RANLIB"
4233 fi
4234
4235 if test -n "$ac_tool_prefix"; then
4236   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4237 set dummy ${ac_tool_prefix}strip; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_STRIP+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   if test -n "$STRIP"; then
4244   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259
4260 fi
4261 fi
4262 STRIP=$ac_cv_prog_STRIP
4263 if test -n "$STRIP"; then
4264   echo "$as_me:$LINENO: result: $STRIP" >&5
4265 echo "${ECHO_T}$STRIP" >&6
4266 else
4267   echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270
4271 fi
4272 if test -z "$ac_cv_prog_STRIP"; then
4273   ac_ct_STRIP=$STRIP
4274   # Extract the first word of "strip", so it can be a program name with args.
4275 set dummy strip; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   if test -n "$ac_ct_STRIP"; then
4282   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_exec_ext in '' $ac_executable_extensions; do
4290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     ac_cv_prog_ac_ct_STRIP="strip"
4292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296 done
4297
4298   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4299 fi
4300 fi
4301 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4302 if test -n "$ac_ct_STRIP"; then
4303   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4304 echo "${ECHO_T}$ac_ct_STRIP" >&6
4305 else
4306   echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6
4308 fi
4309
4310   STRIP=$ac_ct_STRIP
4311 else
4312   STRIP="$ac_cv_prog_STRIP"
4313 fi
4314
4315
4316 enable_dlopen=no
4317 enable_win32_dll=no
4318
4319 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4320 if test "${enable_libtool_lock+set}" = set; then
4321   enableval="$enable_libtool_lock"
4322
4323 fi;
4324 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4325
4326 # Some flags need to be propagated to the compiler or linker for good
4327 # libtool support.
4328 case $host in
4329 *-*-irix6*)
4330   # Find out which ABI we are using.
4331   echo '#line 4331 "configure"' > conftest.$ac_ext
4332   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333   (eval $ac_compile) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; then
4337     case `/usr/bin/file conftest.$ac_objext` in
4338     *32-bit*)
4339       LD="${LD-ld} -32"
4340       ;;
4341     *N32*)
4342       LD="${LD-ld} -n32"
4343       ;;
4344     *64-bit*)
4345       LD="${LD-ld} -64"
4346       ;;
4347     esac
4348   fi
4349   rm -rf conftest*
4350   ;;
4351
4352 *-*-sco3.2v5*)
4353   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4354   SAVE_CFLAGS="$CFLAGS"
4355   CFLAGS="$CFLAGS -belf"
4356   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4357 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4358 if test "${lt_cv_cc_needs_belf+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361
4362
4363      ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
4369      cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 #include "confdefs.h"
4372
4373 #ifdef F77_DUMMY_MAIN
4374 #  ifdef __cplusplus
4375      extern "C"
4376 #  endif
4377    int F77_DUMMY_MAIN() { return 1; }
4378 #endif
4379 int
4380 main ()
4381 {
4382
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext conftest$ac_exeext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389   (eval $ac_link) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } &&
4393          { ac_try='test -s conftest$ac_exeext'
4394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395   (eval $ac_try) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; }; then
4399   lt_cv_cc_needs_belf=yes
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 lt_cv_cc_needs_belf=no
4404 fi
4405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4406      ac_ext=c
4407 ac_cpp='$CPP $CPPFLAGS'
4408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411
4412 fi
4413 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4414 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4415   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4416     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4417     CFLAGS="$SAVE_CFLAGS"
4418   fi
4419   ;;
4420
4421
4422 esac
4423
4424 # Sed substitution that helps us do robust quoting.  It backslashifies
4425 # metacharacters that are still active within double-quoted strings.
4426 Xsed='sed -e s/^X//'
4427 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4428
4429 # Same as above, but do not quote variable references.
4430 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4431
4432 # Sed substitution to delay expansion of an escaped shell variable in a
4433 # double_quote_subst'ed string.
4434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4435
4436 # Constants:
4437 rm="rm -f"
4438
4439 # Global variables:
4440 default_ofile=libtool
4441 can_build_shared=yes
4442
4443 # All known linkers require a `.a' archive for static linking (except M$VC,
4444 # which needs '.lib').
4445 libext=a
4446 ltmain="$ac_aux_dir/ltmain.sh"
4447 ofile="$default_ofile"
4448 with_gnu_ld="$lt_cv_prog_gnu_ld"
4449 need_locks="$enable_libtool_lock"
4450
4451 old_CC="$CC"
4452 old_CFLAGS="$CFLAGS"
4453
4454 # Set sane defaults for various variables
4455 test -z "$AR" && AR=ar
4456 test -z "$AR_FLAGS" && AR_FLAGS=cru
4457 test -z "$AS" && AS=as
4458 test -z "$CC" && CC=cc
4459 test -z "$DLLTOOL" && DLLTOOL=dlltool
4460 test -z "$LD" && LD=ld
4461 test -z "$LN_S" && LN_S="ln -s"
4462 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4463 test -z "$NM" && NM=nm
4464 test -z "$OBJDUMP" && OBJDUMP=objdump
4465 test -z "$RANLIB" && RANLIB=:
4466 test -z "$STRIP" && STRIP=:
4467 test -z "$ac_objext" && ac_objext=o
4468
4469 if test x"$host" != x"$build"; then
4470   ac_tool_prefix=${host_alias}-
4471 else
4472   ac_tool_prefix=
4473 fi
4474
4475 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4476 case $host_os in
4477 linux-gnu*) ;;
4478 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4479 esac
4480
4481 case $host_os in
4482 aix3*)
4483   # AIX sometimes has problems with the GCC collect2 program.  For some
4484   # reason, if we set the COLLECT_NAMES environment variable, the problems
4485   # vanish in a puff of smoke.
4486   if test "X${COLLECT_NAMES+set}" != Xset; then
4487     COLLECT_NAMES=
4488     export COLLECT_NAMES
4489   fi
4490   ;;
4491 esac
4492
4493 # Determine commands to create old-style static archives.
4494 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4495 old_postinstall_cmds='chmod 644 $oldlib'
4496 old_postuninstall_cmds=
4497
4498 if test -n "$RANLIB"; then
4499   case $host_os in
4500   openbsd*)
4501     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4502     ;;
4503   *)
4504     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4505     ;;
4506   esac
4507   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4508 fi
4509
4510 # Allow CC to be a program name with arguments.
4511 set dummy $CC
4512 compiler="$2"
4513
4514 echo "$as_me:$LINENO: checking for objdir" >&5
4515 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4516 rm -f .libs 2>/dev/null
4517 mkdir .libs 2>/dev/null
4518 if test -d .libs; then
4519   objdir=.libs
4520 else
4521   # MS-DOS does not allow filenames that begin with a dot.
4522   objdir=_libs
4523 fi
4524 rmdir .libs 2>/dev/null
4525 echo "$as_me:$LINENO: result: $objdir" >&5
4526 echo "${ECHO_T}$objdir" >&6
4527
4528
4529
4530 # Check whether --with-pic or --without-pic was given.
4531 if test "${with_pic+set}" = set; then
4532   withval="$with_pic"
4533   pic_mode="$withval"
4534 else
4535   pic_mode=default
4536 fi;
4537 test -z "$pic_mode" && pic_mode=default
4538
4539 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4540 # in isolation, and that seeing it set (from the cache) indicates that
4541 # the associated values are set (in the cache) correctly too.
4542 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4543 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4544 if test "${lt_cv_prog_cc_pic+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547    lt_cv_prog_cc_pic=
4548   lt_cv_prog_cc_shlib=
4549   lt_cv_prog_cc_wl=
4550   lt_cv_prog_cc_static=
4551   lt_cv_prog_cc_no_builtin=
4552   lt_cv_prog_cc_can_build_shared=$can_build_shared
4553
4554   if test "$GCC" = yes; then
4555     lt_cv_prog_cc_wl='-Wl,'
4556     lt_cv_prog_cc_static='-static'
4557
4558     case $host_os in
4559     aix*)
4560       # Below there is a dirty hack to force normal static linking with -ldl
4561       # The problem is because libdl dynamically linked with both libc and
4562       # libC (AIX C++ library), which obviously doesn't included in libraries
4563       # list by gcc. This cause undefined symbols with -static flags.
4564       # This hack allows C programs to be linked with "-static -ldl", but
4565       # not sure about C++ programs.
4566       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4567       ;;
4568     amigaos*)
4569       # FIXME: we need at least 68020 code to build shared libraries, but
4570       # adding the `-m68020' flag to GCC prevents building anything better,
4571       # like `-m68040'.
4572       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4573       ;;
4574     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4575       # PIC is the default for these OSes.
4576       ;;
4577     darwin* | rhapsody*)
4578       # PIC is the default on this platform
4579       # Common symbols not allowed in MH_DYLIB files
4580       lt_cv_prog_cc_pic='-fno-common'
4581       ;;
4582     cygwin* | mingw* | pw32* | os2*)
4583       # This hack is so that the source file can tell whether it is being
4584       # built for inclusion in a dll (and should export symbols for example).
4585       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4586       ;;
4587     sysv4*MP*)
4588       if test -d /usr/nec; then
4589          lt_cv_prog_cc_pic=-Kconform_pic
4590       fi
4591       ;;
4592     *)
4593       lt_cv_prog_cc_pic='-fPIC'
4594       ;;
4595     esac
4596   else
4597     # PORTME Check for PIC flags for the system compiler.
4598     case $host_os in
4599     aix3* | aix4* | aix5*)
4600       lt_cv_prog_cc_wl='-Wl,'
4601       # All AIX code is PIC.
4602       if test "$host_cpu" = ia64; then
4603         # AIX 5 now supports IA64 processor
4604         lt_cv_prog_cc_static='-Bstatic'
4605       else
4606         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4607       fi
4608       ;;
4609
4610     hpux9* | hpux10* | hpux11*)
4611       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4612       lt_cv_prog_cc_wl='-Wl,'
4613       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4614       lt_cv_prog_cc_pic='+Z'
4615       ;;
4616
4617     irix5* | irix6*)
4618       lt_cv_prog_cc_wl='-Wl,'
4619       lt_cv_prog_cc_static='-non_shared'
4620       # PIC (with -KPIC) is the default.
4621       ;;
4622
4623     cygwin* | mingw* | pw32* | os2*)
4624       # This hack is so that the source file can tell whether it is being
4625       # built for inclusion in a dll (and should export symbols for example).
4626       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4627       ;;
4628
4629     newsos6)
4630       lt_cv_prog_cc_pic='-KPIC'
4631       lt_cv_prog_cc_static='-Bstatic'
4632       ;;
4633
4634     osf3* | osf4* | osf5*)
4635       # All OSF/1 code is PIC.
4636       lt_cv_prog_cc_wl='-Wl,'
4637       lt_cv_prog_cc_static='-non_shared'
4638       ;;
4639
4640     sco3.2v5*)
4641       lt_cv_prog_cc_pic='-Kpic'
4642       lt_cv_prog_cc_static='-dn'
4643       lt_cv_prog_cc_shlib='-belf'
4644       ;;
4645
4646     solaris*)
4647       lt_cv_prog_cc_pic='-KPIC'
4648       lt_cv_prog_cc_static='-Bstatic'
4649       lt_cv_prog_cc_wl='-Wl,'
4650       ;;
4651
4652     sunos4*)
4653       lt_cv_prog_cc_pic='-PIC'
4654       lt_cv_prog_cc_static='-Bstatic'
4655       lt_cv_prog_cc_wl='-Qoption ld '
4656       ;;
4657
4658     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4659       lt_cv_prog_cc_pic='-KPIC'
4660       lt_cv_prog_cc_static='-Bstatic'
4661       if test "x$host_vendor" = xsni; then
4662         lt_cv_prog_cc_wl='-LD'
4663       else
4664         lt_cv_prog_cc_wl='-Wl,'
4665       fi
4666       ;;
4667
4668     uts4*)
4669       lt_cv_prog_cc_pic='-pic'
4670       lt_cv_prog_cc_static='-Bstatic'
4671       ;;
4672
4673     sysv4*MP*)
4674       if test -d /usr/nec ;then
4675         lt_cv_prog_cc_pic='-Kconform_pic'
4676         lt_cv_prog_cc_static='-Bstatic'
4677       fi
4678       ;;
4679
4680     *)
4681       lt_cv_prog_cc_can_build_shared=no
4682       ;;
4683     esac
4684   fi
4685
4686 fi
4687
4688 if test -z "$lt_cv_prog_cc_pic"; then
4689   echo "$as_me:$LINENO: result: none" >&5
4690 echo "${ECHO_T}none" >&6
4691 else
4692   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4693 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4694
4695   # Check to make sure the pic_flag actually works.
4696   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4697 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4698   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701       save_CFLAGS="$CFLAGS"
4702     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4703     cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4705 #include "confdefs.h"
4706
4707 #ifdef F77_DUMMY_MAIN
4708 #  ifdef __cplusplus
4709      extern "C"
4710 #  endif
4711    int F77_DUMMY_MAIN() { return 1; }
4712 #endif
4713 int
4714 main ()
4715 {
4716
4717   ;
4718   return 0;
4719 }
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723   (eval $ac_compile) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); } &&
4727          { ac_try='test -s conftest.$ac_objext'
4728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729   (eval $ac_try) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; }; then
4733         case $host_os in
4734       hpux9* | hpux10* | hpux11*)
4735         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4736         # they create non-PIC objects.  So, if there were any warnings, we
4737         # assume that PIC is not supported.
4738         if test -s conftest.err; then
4739           lt_cv_prog_cc_pic_works=no
4740         else
4741           lt_cv_prog_cc_pic_works=yes
4742         fi
4743         ;;
4744       *)
4745         lt_cv_prog_cc_pic_works=yes
4746         ;;
4747       esac
4748
4749 else
4750   echo "$as_me: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4752       lt_cv_prog_cc_pic_works=no
4753
4754 fi
4755 rm -f conftest.$ac_objext conftest.$ac_ext
4756     CFLAGS="$save_CFLAGS"
4757
4758 fi
4759
4760
4761   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4762     lt_cv_prog_cc_pic=
4763     lt_cv_prog_cc_can_build_shared=no
4764   else
4765     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4766   fi
4767
4768   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4769 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4770 fi
4771
4772 # Check for any special shared library compilation flags.
4773 if test -n "$lt_cv_prog_cc_shlib"; then
4774   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4775 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4776   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4777   else
4778    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4779 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4780     lt_cv_prog_cc_can_build_shared=no
4781   fi
4782 fi
4783
4784 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4785 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4786 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789     lt_cv_prog_cc_static_works=no
4790   save_LDFLAGS="$LDFLAGS"
4791   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4792   cat >conftest.$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4794 #include "confdefs.h"
4795
4796 #ifdef F77_DUMMY_MAIN
4797 #  ifdef __cplusplus
4798      extern "C"
4799 #  endif
4800    int F77_DUMMY_MAIN() { return 1; }
4801 #endif
4802 int
4803 main ()
4804 {
4805
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext conftest$ac_exeext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4812   (eval $ac_link) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -s conftest$ac_exeext'
4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818   (eval $ac_try) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); }; }; then
4822   lt_cv_prog_cc_static_works=yes
4823 else
4824   echo "$as_me: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4826 fi
4827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4828   LDFLAGS="$save_LDFLAGS"
4829
4830 fi
4831
4832
4833 # Belt *and* braces to stop my trousers falling down:
4834 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4835 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4836 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4837
4838 pic_flag="$lt_cv_prog_cc_pic"
4839 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4840 wl="$lt_cv_prog_cc_wl"
4841 link_static_flag="$lt_cv_prog_cc_static"
4842 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4843 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4844
4845
4846 # Check to see if options -o and -c are simultaneously supported by compiler
4847 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4849 if test "${lt_cv_compiler_c_o+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852
4853 $rm -r conftest 2>/dev/null
4854 mkdir conftest
4855 cd conftest
4856 echo "int some_variable = 0;" > conftest.$ac_ext
4857 mkdir out
4858 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4859 # that will create temporary files in the current directory regardless of
4860 # the output directory.  Thus, making CWD read-only will cause this test
4861 # to fail, enabling locking or at least warning the user not to do parallel
4862 # builds.
4863 chmod -w .
4864 save_CFLAGS="$CFLAGS"
4865 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4866 compiler_c_o=no
4867 if { (eval echo configure:4867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4868   # The compiler can only warn and ignore the option if not recognized
4869   # So say no if there are warnings
4870   if test -s out/conftest.err; then
4871     lt_cv_compiler_c_o=no
4872   else
4873     lt_cv_compiler_c_o=yes
4874   fi
4875 else
4876   # Append any errors to the config.log.
4877   cat out/conftest.err 1>&5
4878   lt_cv_compiler_c_o=no
4879 fi
4880 CFLAGS="$save_CFLAGS"
4881 chmod u+w .
4882 $rm conftest* out/*
4883 rmdir out
4884 cd ..
4885 rmdir conftest
4886 $rm -r conftest 2>/dev/null
4887
4888 fi
4889
4890 compiler_c_o=$lt_cv_compiler_c_o
4891 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4892 echo "${ECHO_T}$compiler_c_o" >&6
4893
4894 if test x"$compiler_c_o" = x"yes"; then
4895   # Check to see if we can write to a .lo
4896   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4897 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4898   if test "${lt_cv_compiler_o_lo+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901
4902   lt_cv_compiler_o_lo=no
4903   save_CFLAGS="$CFLAGS"
4904   CFLAGS="$CFLAGS -c -o conftest.lo"
4905   save_objext="$ac_objext"
4906   ac_objext=lo
4907   cat >conftest.$ac_ext <<_ACEOF
4908 #line $LINENO "configure"
4909 #include "confdefs.h"
4910
4911 #ifdef F77_DUMMY_MAIN
4912 #  ifdef __cplusplus
4913      extern "C"
4914 #  endif
4915    int F77_DUMMY_MAIN() { return 1; }
4916 #endif
4917 int
4918 main ()
4919 {
4920 int some_variable = 0;
4921   ;
4922   return 0;
4923 }
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927   (eval $ac_compile) 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); } &&
4931          { ac_try='test -s conftest.$ac_objext'
4932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933   (eval $ac_try) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); }; }; then
4937       # The compiler can only warn and ignore the option if not recognized
4938     # So say no if there are warnings
4939     if test -s conftest.err; then
4940       lt_cv_compiler_o_lo=no
4941     else
4942       lt_cv_compiler_o_lo=yes
4943     fi
4944
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 fi
4949 rm -f conftest.$ac_objext conftest.$ac_ext
4950   ac_objext="$save_objext"
4951   CFLAGS="$save_CFLAGS"
4952
4953 fi
4954
4955   compiler_o_lo=$lt_cv_compiler_o_lo
4956   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4957 echo "${ECHO_T}$compiler_o_lo" >&6
4958 else
4959   compiler_o_lo=no
4960 fi
4961
4962 # Check to see if we can do hard links to lock some files if needed
4963 hard_links="nottested"
4964 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4965   # do not overwrite the value of need_locks provided by the user
4966   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4967 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4968   hard_links=yes
4969   $rm conftest*
4970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4971   touch conftest.a
4972   ln conftest.a conftest.b 2>&5 || hard_links=no
4973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4974   echo "$as_me:$LINENO: result: $hard_links" >&5
4975 echo "${ECHO_T}$hard_links" >&6
4976   if test "$hard_links" = no; then
4977     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4978 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4979     need_locks=warn
4980   fi
4981 else
4982   need_locks=no
4983 fi
4984
4985 if test "$GCC" = yes; then
4986   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4987   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4988 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4989   echo "int some_variable = 0;" > conftest.$ac_ext
4990   save_CFLAGS="$CFLAGS"
4991   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4992   compiler_rtti_exceptions=no
4993   cat >conftest.$ac_ext <<_ACEOF
4994 #line $LINENO "configure"
4995 #include "confdefs.h"
4996
4997 #ifdef F77_DUMMY_MAIN
4998 #  ifdef __cplusplus
4999      extern "C"
5000 #  endif
5001    int F77_DUMMY_MAIN() { return 1; }
5002 #endif
5003 int
5004 main ()
5005 {
5006 int some_variable = 0;
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013   (eval $ac_compile) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -s conftest.$ac_objext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023       # The compiler can only warn and ignore the option if not recognized
5024     # So say no if there are warnings
5025     if test -s conftest.err; then
5026       compiler_rtti_exceptions=no
5027     else
5028       compiler_rtti_exceptions=yes
5029     fi
5030
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 fi
5035 rm -f conftest.$ac_objext conftest.$ac_ext
5036   CFLAGS="$save_CFLAGS"
5037   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5038 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5039
5040   if test "$compiler_rtti_exceptions" = "yes"; then
5041     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5042   else
5043     no_builtin_flag=' -fno-builtin'
5044   fi
5045 fi
5046
5047 # See if the linker supports building shared libraries.
5048 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5049 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5050
5051 allow_undefined_flag=
5052 no_undefined_flag=
5053 need_lib_prefix=unknown
5054 need_version=unknown
5055 # when you set need_version to no, make sure it does not cause -set_version
5056 # flags to be left without arguments
5057 archive_cmds=
5058 archive_expsym_cmds=
5059 old_archive_from_new_cmds=
5060 old_archive_from_expsyms_cmds=
5061 export_dynamic_flag_spec=
5062 whole_archive_flag_spec=
5063 thread_safe_flag_spec=
5064 hardcode_into_libs=no
5065 hardcode_libdir_flag_spec=
5066 hardcode_libdir_separator=
5067 hardcode_direct=no
5068 hardcode_minus_L=no
5069 hardcode_shlibpath_var=unsupported
5070 runpath_var=
5071 link_all_deplibs=unknown
5072 always_export_symbols=no
5073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5074 # include_expsyms should be a list of space-separated symbols to be *always*
5075 # included in the symbol list
5076 include_expsyms=
5077 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5079 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5080 # as well as any symbol that contains `d'.
5081 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5083 # platforms (ab)use it in PIC code, but their linkers get confused if
5084 # the symbol is explicitly referenced.  Since portable code cannot
5085 # rely on this symbol name, it's probably fine to never include it in
5086 # preloaded symbol tables.
5087 extract_expsyms_cmds=
5088
5089 case $host_os in
5090 cygwin* | mingw* | pw32*)
5091   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5092   # When not using gcc, we currently assume that we are using
5093   # Microsoft Visual C++.
5094   if test "$GCC" != yes; then
5095     with_gnu_ld=no
5096   fi
5097   ;;
5098 openbsd*)
5099   with_gnu_ld=no
5100   ;;
5101 esac
5102
5103 ld_shlibs=yes
5104 if test "$with_gnu_ld" = yes; then
5105   # If archive_cmds runs LD, not CC, wlarc should be empty
5106   wlarc='${wl}'
5107
5108   # See if GNU ld supports shared libraries.
5109   case $host_os in
5110   aix3* | aix4* | aix5*)
5111     # On AIX, the GNU linker is very broken
5112     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5113     ld_shlibs=no
5114     cat <<EOF 1>&2
5115
5116 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5117 *** to be unable to reliably create shared libraries on AIX.
5118 *** Therefore, libtool is disabling shared libraries support.  If you
5119 *** really care for shared libraries, you may want to modify your PATH
5120 *** so that a non-GNU linker is found, and then restart.
5121
5122 EOF
5123     ;;
5124
5125   amigaos*)
5126     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5127     hardcode_libdir_flag_spec='-L$libdir'
5128     hardcode_minus_L=yes
5129
5130     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5131     # that the semantics of dynamic libraries on AmigaOS, at least up
5132     # to version 4, is to share data among multiple programs linked
5133     # with the same dynamic library.  Since this doesn't match the
5134     # behavior of shared libraries on other platforms, we can use
5135     # them.
5136     ld_shlibs=no
5137     ;;
5138
5139   beos*)
5140     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5141       allow_undefined_flag=unsupported
5142       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5143       # support --undefined.  This deserves some investigation.  FIXME
5144       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5145     else
5146       ld_shlibs=no
5147     fi
5148     ;;
5149
5150   cygwin* | mingw* | pw32*)
5151     # hardcode_libdir_flag_spec is actually meaningless, as there is
5152     # no search path for DLLs.
5153     hardcode_libdir_flag_spec='-L$libdir'
5154     allow_undefined_flag=unsupported
5155     always_export_symbols=yes
5156
5157     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5158       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5159       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5160       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5161       else $CC -o impgen impgen.c ; fi)~
5162       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5163
5164     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5165
5166     # cygwin and mingw dlls have different entry points and sets of symbols
5167     # to exclude.
5168     # FIXME: what about values for MSVC?
5169     dll_entry=__cygwin_dll_entry@12
5170     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5171     case $host_os in
5172     mingw*)
5173       # mingw values
5174       dll_entry=_DllMainCRTStartup@12
5175       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5176       ;;
5177     esac
5178
5179     # mingw and cygwin differ, and it's simplest to just exclude the union
5180     # of the two symbol sets.
5181     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5182
5183     # recent cygwin and mingw systems supply a stub DllMain which the user
5184     # can override, but on older systems we have to supply one (in ltdll.c)
5185     if test "x$lt_cv_need_dllmain" = "xyes"; then
5186       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5187       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5188         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5189     else
5190       ltdll_obj=
5191       ltdll_cmds=
5192     fi
5193
5194     # Extract the symbol export list from an `--export-all' def file,
5195     # then regenerate the def file from the symbol export list, so that
5196     # the compiled dll only exports the symbol export list.
5197     # Be careful not to strip the DATA tag left be newer dlltools.
5198     export_symbols_cmds="$ltdll_cmds"'
5199       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5200       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5201
5202     # If the export-symbols file already is a .def file (1st line
5203     # is EXPORTS), use it as is.
5204     # If DATA tags from a recent dlltool are present, honour them!
5205     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5206         cp $export_symbols $output_objdir/$soname-def;
5207       else
5208         echo EXPORTS > $output_objdir/$soname-def;
5209         _lt_hint=1;
5210         cat $export_symbols | while read symbol; do
5211          set dummy \$symbol;
5212          case \$# in
5213            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5214            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5215          esac;
5216          _lt_hint=`expr 1 + \$_lt_hint`;
5217         done;
5218       fi~
5219       '"$ltdll_cmds"'
5220       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5221       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5222       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5223       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5224       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5225     ;;
5226
5227   netbsd*)
5228     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5229       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5230       wlarc=
5231     else
5232       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5233       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5234     fi
5235     ;;
5236
5237   solaris* | sysv5*)
5238     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5239       ld_shlibs=no
5240       cat <<EOF 1>&2
5241
5242 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5243 *** create shared libraries on Solaris systems.  Therefore, libtool
5244 *** is disabling shared libraries support.  We urge you to upgrade GNU
5245 *** binutils to release 2.9.1 or newer.  Another option is to modify
5246 *** your PATH or compiler configuration so that the native linker is
5247 *** used, and then restart.
5248
5249 EOF
5250     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5251       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5252       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5253     else
5254       ld_shlibs=no
5255     fi
5256     ;;
5257
5258   sunos4*)
5259     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5260     wlarc=
5261     hardcode_direct=yes
5262     hardcode_shlibpath_var=no
5263     ;;
5264
5265   *)
5266     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5267       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5268       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5269     else
5270       ld_shlibs=no
5271     fi
5272     ;;
5273   esac
5274
5275   if test "$ld_shlibs" = yes; then
5276     runpath_var=LD_RUN_PATH
5277     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5278     export_dynamic_flag_spec='${wl}--export-dynamic'
5279     case $host_os in
5280     cygwin* | mingw* | pw32*)
5281       # dlltool doesn't understand --whole-archive et. al.
5282       whole_archive_flag_spec=
5283       ;;
5284     *)
5285       # ancient GNU ld didn't support --whole-archive et. al.
5286       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5287         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5288       else
5289         whole_archive_flag_spec=
5290       fi
5291       ;;
5292     esac
5293   fi
5294 else
5295   # PORTME fill in a description of your system's linker (not GNU ld)
5296   case $host_os in
5297   aix3*)
5298     allow_undefined_flag=unsupported
5299     always_export_symbols=yes
5300     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5301     # Note: this linker hardcodes the directories in LIBPATH if there
5302     # are no directories specified by -L.
5303     hardcode_minus_L=yes
5304     if test "$GCC" = yes && test -z "$link_static_flag"; then
5305       # Neither direct hardcoding nor static linking is supported with a
5306       # broken collect2.
5307       hardcode_direct=unsupported
5308     fi
5309     ;;
5310
5311   aix4* | aix5*)
5312     if test "$host_cpu" = ia64; then
5313       # On IA64, the linker does run time linking by default, so we don't
5314       # have to do anything special.
5315       aix_use_runtimelinking=no
5316       exp_sym_flag='-Bexport'
5317       no_entry_flag=""
5318     else
5319       aix_use_runtimelinking=no
5320
5321       # Test if we are trying to use run time linking or normal
5322       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5323       # need to do runtime linking.
5324       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5325         for ld_flag in $LDFLAGS; do
5326           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5327             aix_use_runtimelinking=yes
5328             break
5329           fi
5330         done
5331       esac
5332
5333       exp_sym_flag='-bexport'
5334       no_entry_flag='-bnoentry'
5335     fi
5336
5337     # When large executables or shared objects are built, AIX ld can
5338     # have problems creating the table of contents.  If linking a library
5339     # or program results in "error TOC overflow" add -mminimal-toc to
5340     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5341     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5342
5343     hardcode_direct=yes
5344     archive_cmds=''
5345     hardcode_libdir_separator=':'
5346     if test "$GCC" = yes; then
5347       case $host_os in aix4.[012]|aix4.[012].*)
5348         collect2name=`${CC} -print-prog-name=collect2`
5349         if test -f "$collect2name" && \
5350           strings "$collect2name" | grep resolve_lib_name >/dev/null
5351         then
5352           # We have reworked collect2
5353           hardcode_direct=yes
5354         else
5355           # We have old collect2
5356           hardcode_direct=unsupported
5357           # It fails to find uninstalled libraries when the uninstalled
5358           # path is not listed in the libpath.  Setting hardcode_minus_L
5359           # to unsupported forces relinking
5360           hardcode_minus_L=yes
5361           hardcode_libdir_flag_spec='-L$libdir'
5362           hardcode_libdir_separator=
5363         fi
5364       esac
5365
5366       shared_flag='-shared'
5367     else
5368       # not using gcc
5369       if test "$host_cpu" = ia64; then
5370         shared_flag='${wl}-G'
5371       else
5372         if test "$aix_use_runtimelinking" = yes; then
5373           shared_flag='${wl}-G'
5374         else
5375           shared_flag='${wl}-bM:SRE'
5376         fi
5377       fi
5378     fi
5379
5380     # It seems that -bexpall can do strange things, so it is better to
5381     # generate a list of symbols to export.
5382     always_export_symbols=yes
5383     if test "$aix_use_runtimelinking" = yes; then
5384       # Warning - without using the other runtime loading flags (-brtl),
5385       # -berok will link without error, but may produce a broken library.
5386       allow_undefined_flag='-berok'
5387       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5388       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5389     else
5390       if test "$host_cpu" = ia64; then
5391         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5392         allow_undefined_flag="-z nodefs"
5393         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5394       else
5395         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5396         # Warning - without using the other run time loading flags,
5397         # -berok will link without error, but may produce a broken library.
5398         allow_undefined_flag='${wl}-berok'
5399         # This is a bit strange, but is similar to how AIX traditionally builds
5400         # it's shared libraries.
5401         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5402       fi
5403     fi
5404     ;;
5405
5406   amigaos*)
5407     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5408     hardcode_libdir_flag_spec='-L$libdir'
5409     hardcode_minus_L=yes
5410     # see comment about different semantics on the GNU ld section
5411     ld_shlibs=no
5412     ;;
5413
5414   cygwin* | mingw* | pw32*)
5415     # When not using gcc, we currently assume that we are using
5416     # Microsoft Visual C++.
5417     # hardcode_libdir_flag_spec is actually meaningless, as there is
5418     # no search path for DLLs.
5419     hardcode_libdir_flag_spec=' '
5420     allow_undefined_flag=unsupported
5421     # Tell ltmain to make .lib files, not .a files.
5422     libext=lib
5423     # FIXME: Setting linknames here is a bad hack.
5424     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5425     # The linker will automatically build a .lib file if we build a DLL.
5426     old_archive_from_new_cmds='true'
5427     # FIXME: Should let the user specify the lib program.
5428     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5429     fix_srcfile_path='`cygpath -w "$srcfile"`'
5430     ;;
5431
5432   darwin* | rhapsody*)
5433     case "$host_os" in
5434     rhapsody* | darwin1.[012])
5435       allow_undefined_flag='-undefined suppress'
5436       ;;
5437     *) # Darwin 1.3 on
5438       allow_undefined_flag='-flat_namespace -undefined suppress'
5439       ;;
5440     esac
5441     # FIXME: Relying on posixy $() will cause problems for
5442     #        cross-compilation, but unfortunately the echo tests do not
5443     #        yet detect zsh echo's removal of \ escapes.
5444     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5445     # We need to add '_' to the symbols in $export_symbols first
5446     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5447     hardcode_direct=yes
5448     hardcode_shlibpath_var=no
5449     whole_archive_flag_spec='-all_load $convenience'
5450     ;;
5451
5452   freebsd1*)
5453     ld_shlibs=no
5454     ;;
5455
5456   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5457   # support.  Future versions do this automatically, but an explicit c++rt0.o
5458   # does not break anything, and helps significantly (at the cost of a little
5459   # extra space).
5460   freebsd2.2*)
5461     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5462     hardcode_libdir_flag_spec='-R$libdir'
5463     hardcode_direct=yes
5464     hardcode_shlibpath_var=no
5465     ;;
5466
5467   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5468   freebsd2*)
5469     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5470     hardcode_direct=yes
5471     hardcode_minus_L=yes
5472     hardcode_shlibpath_var=no
5473     ;;
5474
5475   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5476   freebsd*)
5477     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5478     hardcode_libdir_flag_spec='-R$libdir'
5479     hardcode_direct=yes
5480     hardcode_shlibpath_var=no
5481     ;;
5482
5483   hpux9* | hpux10* | hpux11*)
5484     case $host_os in
5485     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5486     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5487     esac
5488     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5489     hardcode_libdir_separator=:
5490     hardcode_direct=yes
5491     hardcode_minus_L=yes # Not in the search PATH, but as the default
5492                          # location of the library.
5493     export_dynamic_flag_spec='${wl}-E'
5494     ;;
5495
5496   irix5* | irix6*)
5497     if test "$GCC" = yes; then
5498       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5499     else
5500       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5501     fi
5502     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5503     hardcode_libdir_separator=:
5504     link_all_deplibs=yes
5505     ;;
5506
5507   netbsd*)
5508     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5509       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5510     else
5511       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5512     fi
5513     hardcode_libdir_flag_spec='-R$libdir'
5514     hardcode_direct=yes
5515     hardcode_shlibpath_var=no
5516     ;;
5517
5518   newsos6)
5519     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5520     hardcode_direct=yes
5521     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5522     hardcode_libdir_separator=:
5523     hardcode_shlibpath_var=no
5524     ;;
5525
5526   openbsd*)
5527     hardcode_direct=yes
5528     hardcode_shlibpath_var=no
5529     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5530       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5531       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5532       export_dynamic_flag_spec='${wl}-E'
5533     else
5534       case "$host_os" in
5535       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5536         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5537         hardcode_libdir_flag_spec='-R$libdir'
5538         ;;
5539       *)
5540         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5541         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5542         ;;
5543       esac
5544     fi
5545     ;;
5546
5547   os2*)
5548     hardcode_libdir_flag_spec='-L$libdir'
5549     hardcode_minus_L=yes
5550     allow_undefined_flag=unsupported
5551     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5552     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5553     ;;
5554
5555   osf3*)
5556     if test "$GCC" = yes; then
5557       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5558       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5559     else
5560       allow_undefined_flag=' -expect_unresolved \*'
5561       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5562     fi
5563     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5564     hardcode_libdir_separator=:
5565     ;;
5566
5567   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5568     if test "$GCC" = yes; then
5569       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5570       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5571       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5572     else
5573       allow_undefined_flag=' -expect_unresolved \*'
5574       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5575       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5576       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5577
5578       #Both c and cxx compiler support -rpath directly
5579       hardcode_libdir_flag_spec='-rpath $libdir'
5580     fi
5581     hardcode_libdir_separator=:
5582     ;;
5583
5584   sco3.2v5*)
5585     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5586     hardcode_shlibpath_var=no
5587     runpath_var=LD_RUN_PATH
5588     hardcode_runpath_var=yes
5589     export_dynamic_flag_spec='${wl}-Bexport'
5590     ;;
5591
5592   solaris*)
5593     # gcc --version < 3.0 without binutils cannot create self contained
5594     # shared libraries reliably, requiring libgcc.a to resolve some of
5595     # the object symbols generated in some cases.  Libraries that use
5596     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5597     # a copy of libgcc.a into every shared library to guarantee resolving
5598     # such symbols causes other problems:  According to Tim Van Holder
5599     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5600     # (to the application) exception stack for one thing.
5601     no_undefined_flag=' -z defs'
5602     if test "$GCC" = yes; then
5603       case `$CC --version 2>/dev/null` in
5604       [12].*)
5605         cat <<EOF 1>&2
5606
5607 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5608 *** create self contained shared libraries on Solaris systems, without
5609 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5610 *** -no-undefined support, which will at least allow you to build shared
5611 *** libraries.  However, you may find that when you link such libraries
5612 *** into an application without using GCC, you have to manually add
5613 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5614 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5615 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5616
5617 EOF
5618         no_undefined_flag=
5619         ;;
5620       esac
5621     fi
5622     # $CC -shared without GNU ld will not create a library from C++
5623     # object files and a static libstdc++, better avoid it by now
5624     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5625     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5626                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5627     hardcode_libdir_flag_spec='-R$libdir'
5628     hardcode_shlibpath_var=no
5629     case $host_os in
5630     solaris2.[0-5] | solaris2.[0-5].*) ;;
5631     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5632       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5633     esac
5634     link_all_deplibs=yes
5635     ;;
5636
5637   sunos4*)
5638     if test "x$host_vendor" = xsequent; then
5639       # Use $CC to link under sequent, because it throws in some extra .o
5640       # files that make .init and .fini sections work.
5641       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5642     else
5643       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5644     fi
5645     hardcode_libdir_flag_spec='-L$libdir'
5646     hardcode_direct=yes
5647     hardcode_minus_L=yes
5648     hardcode_shlibpath_var=no
5649     ;;
5650
5651   sysv4)
5652     if test "x$host_vendor" = xsno; then
5653       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5654       hardcode_direct=yes # is this really true???
5655     else
5656       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5657       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5658     fi
5659     runpath_var='LD_RUN_PATH'
5660     hardcode_shlibpath_var=no
5661     ;;
5662
5663   sysv4.3*)
5664     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5665     hardcode_shlibpath_var=no
5666     export_dynamic_flag_spec='-Bexport'
5667     ;;
5668
5669   sysv5*)
5670     no_undefined_flag=' -z text'
5671     # $CC -shared without GNU ld will not create a library from C++
5672     # object files and a static libstdc++, better avoid it by now
5673     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5674     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5675                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5676     hardcode_libdir_flag_spec=
5677     hardcode_shlibpath_var=no
5678     runpath_var='LD_RUN_PATH'
5679     ;;
5680
5681   uts4*)
5682     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5683     hardcode_libdir_flag_spec='-L$libdir'
5684     hardcode_shlibpath_var=no
5685     ;;
5686
5687   dgux*)
5688     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5689     hardcode_libdir_flag_spec='-L$libdir'
5690     hardcode_shlibpath_var=no
5691     ;;
5692
5693   sysv4*MP*)
5694     if test -d /usr/nec; then
5695       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5696       hardcode_shlibpath_var=no
5697       runpath_var=LD_RUN_PATH
5698       hardcode_runpath_var=yes
5699       ld_shlibs=yes
5700     fi
5701     ;;
5702
5703   sysv4.2uw2*)
5704     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5705     hardcode_direct=yes
5706     hardcode_minus_L=no
5707     hardcode_shlibpath_var=no
5708     hardcode_runpath_var=yes
5709     runpath_var=LD_RUN_PATH
5710     ;;
5711
5712   sysv5uw7* | unixware7*)
5713     no_undefined_flag='${wl}-z ${wl}text'
5714     if test "$GCC" = yes; then
5715       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5716     else
5717       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5718     fi
5719     runpath_var='LD_RUN_PATH'
5720     hardcode_shlibpath_var=no
5721     ;;
5722
5723   *)
5724     ld_shlibs=no
5725     ;;
5726   esac
5727 fi
5728 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5729 echo "${ECHO_T}$ld_shlibs" >&6
5730 test "$ld_shlibs" = no && can_build_shared=no
5731
5732 # Check hardcoding attributes.
5733 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5734 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5735 hardcode_action=
5736 if test -n "$hardcode_libdir_flag_spec" || \
5737    test -n "$runpath_var"; then
5738
5739   # We can hardcode non-existant directories.
5740   if test "$hardcode_direct" != no &&
5741      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5742      # have to relink, otherwise we might link with an installed library
5743      # when we should be linking with a yet-to-be-installed one
5744      ## test "$hardcode_shlibpath_var" != no &&
5745      test "$hardcode_minus_L" != no; then
5746     # Linking always hardcodes the temporary library directory.
5747     hardcode_action=relink
5748   else
5749     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5750     hardcode_action=immediate
5751   fi
5752 else
5753   # We cannot hardcode anything, or else we can only hardcode existing
5754   # directories.
5755   hardcode_action=unsupported
5756 fi
5757 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5758 echo "${ECHO_T}$hardcode_action" >&6
5759
5760 striplib=
5761 old_striplib=
5762 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5763 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5764 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5765   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5766   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5767   echo "$as_me:$LINENO: result: yes" >&5
5768 echo "${ECHO_T}yes" >&6
5769 else
5770   echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5772 fi
5773
5774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5776
5777 # PORTME Fill in your ld.so characteristics
5778 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5780 library_names_spec=
5781 libname_spec='lib$name'
5782 soname_spec=
5783 postinstall_cmds=
5784 postuninstall_cmds=
5785 finish_cmds=
5786 finish_eval=
5787 shlibpath_var=
5788 shlibpath_overrides_runpath=unknown
5789 version_type=none
5790 dynamic_linker="$host_os ld.so"
5791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5792 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5793
5794 case $host_os in
5795 aix3*)
5796   version_type=linux
5797   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5798   shlibpath_var=LIBPATH
5799
5800   # AIX has no versioning support, so we append a major version to the name.
5801   soname_spec='${libname}${release}.so$major'
5802   ;;
5803
5804 aix4* | aix5*)
5805   version_type=linux
5806   if test "$host_cpu" = ia64; then
5807     # AIX 5 supports IA64
5808     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5809     shlibpath_var=LD_LIBRARY_PATH
5810   else
5811     # With GCC up to 2.95.x, collect2 would create an import file
5812     # for dependence libraries.  The import file would start with
5813     # the line `#! .'.  This would cause the generated library to
5814     # depend on `.', always an invalid library.  This was fixed in
5815     # development snapshots of GCC prior to 3.0.
5816     case $host_os in
5817       aix4 | aix4.[01] | aix4.[01].*)
5818         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5819              echo ' yes '
5820              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5821           :
5822         else
5823           can_build_shared=no
5824         fi
5825         ;;
5826     esac
5827     # AIX (on Power*) has no versioning support, so currently we can
5828     # not hardcode correct soname into executable. Probably we can
5829     # add versioning support to collect2, so additional links can
5830     # be useful in future.
5831     if test "$aix_use_runtimelinking" = yes; then
5832       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5833       # instead of lib<name>.a to let people know that these are not
5834       # typical AIX shared libraries.
5835       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5836     else
5837       # We preserve .a as extension for shared libraries through AIX4.2
5838       # and later when we are not doing run time linking.
5839       library_names_spec='${libname}${release}.a $libname.a'
5840       soname_spec='${libname}${release}.so$major'
5841     fi
5842     shlibpath_var=LIBPATH
5843   fi
5844   ;;
5845
5846 amigaos*)
5847   library_names_spec='$libname.ixlibrary $libname.a'
5848   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5849   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5850   ;;
5851
5852 beos*)
5853   library_names_spec='${libname}.so'
5854   dynamic_linker="$host_os ld.so"
5855   shlibpath_var=LIBRARY_PATH
5856   ;;
5857
5858 bsdi4*)
5859   version_type=linux
5860   need_version=no
5861   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5862   soname_spec='${libname}${release}.so$major'
5863   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5864   shlibpath_var=LD_LIBRARY_PATH
5865   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5866   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5867   export_dynamic_flag_spec=-rdynamic
5868   # the default ld.so.conf also contains /usr/contrib/lib and
5869   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5870   # libtool to hard-code these into programs
5871   ;;
5872
5873 cygwin* | mingw* | pw32*)
5874   version_type=windows
5875   need_version=no
5876   need_lib_prefix=no
5877   case $GCC,$host_os in
5878   yes,cygwin*)
5879     library_names_spec='$libname.dll.a'
5880     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5881     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5882       dldir=$destdir/`dirname \$dlpath`~
5883       test -d \$dldir || mkdir -p \$dldir~
5884       $install_prog .libs/$dlname \$dldir/$dlname'
5885     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5886       dlpath=$dir/\$dldll~
5887        $rm \$dlpath'
5888     ;;
5889   yes,mingw*)
5890     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5891     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5892     ;;
5893   yes,pw32*)
5894     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5895     ;;
5896   *)
5897     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5898     ;;
5899   esac
5900   dynamic_linker='Win32 ld.exe'
5901   # FIXME: first we should search . and the directory the executable is in
5902   shlibpath_var=PATH
5903   ;;
5904
5905 darwin* | rhapsody*)
5906   dynamic_linker="$host_os dyld"
5907   version_type=darwin
5908   need_lib_prefix=no
5909   need_version=no
5910   # FIXME: Relying on posixy $() will cause problems for
5911   #        cross-compilation, but unfortunately the echo tests do not
5912   #        yet detect zsh echo's removal of \ escapes.
5913   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5914   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5915   shlibpath_overrides_runpath=yes
5916   shlibpath_var=DYLD_LIBRARY_PATH
5917   ;;
5918
5919 freebsd1*)
5920   dynamic_linker=no
5921   ;;
5922
5923 freebsd*)
5924   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5925   version_type=freebsd-$objformat
5926   case $version_type in
5927     freebsd-elf*)
5928       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5929       need_version=no
5930       need_lib_prefix=no
5931       ;;
5932     freebsd-*)
5933       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5934       need_version=yes
5935       ;;
5936   esac
5937   shlibpath_var=LD_LIBRARY_PATH
5938   case $host_os in
5939   freebsd2*)
5940     shlibpath_overrides_runpath=yes
5941     ;;
5942   *)
5943     shlibpath_overrides_runpath=no
5944     hardcode_into_libs=yes
5945     ;;
5946   esac
5947   ;;
5948
5949 gnu*)
5950   version_type=linux
5951   need_lib_prefix=no
5952   need_version=no
5953   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5954   soname_spec='${libname}${release}.so$major'
5955   shlibpath_var=LD_LIBRARY_PATH
5956   hardcode_into_libs=yes
5957   ;;
5958
5959 hpux9* | hpux10* | hpux11*)
5960   # Give a soname corresponding to the major version so that dld.sl refuses to
5961   # link against other versions.
5962   dynamic_linker="$host_os dld.sl"
5963   version_type=sunos
5964   need_lib_prefix=no
5965   need_version=no
5966   shlibpath_var=SHLIB_PATH
5967   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5968   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5969   soname_spec='${libname}${release}.sl$major'
5970   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5971   postinstall_cmds='chmod 555 $lib'
5972   ;;
5973
5974 irix5* | irix6*)
5975   version_type=irix
5976   need_lib_prefix=no
5977   need_version=no
5978   soname_spec='${libname}${release}.so$major'
5979   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5980   case $host_os in
5981   irix5*)
5982     libsuff= shlibsuff=
5983     ;;
5984   *)
5985     case $LD in # libtool.m4 will add one of these switches to LD
5986     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5987     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5988     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5989     *) libsuff= shlibsuff= libmagic=never-match;;
5990     esac
5991     ;;
5992   esac
5993   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5994   shlibpath_overrides_runpath=no
5995   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5996   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5997   ;;
5998
5999 # No shared lib support for Linux oldld, aout, or coff.
6000 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6001   dynamic_linker=no
6002   ;;
6003
6004 # This must be Linux ELF.
6005 linux-gnu*)
6006   version_type=linux
6007   need_lib_prefix=no
6008   need_version=no
6009   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6010   soname_spec='${libname}${release}.so$major'
6011   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6012   shlibpath_var=LD_LIBRARY_PATH
6013   shlibpath_overrides_runpath=no
6014   # This implies no fast_install, which is unacceptable.
6015   # Some rework will be needed to allow for fast_install
6016   # before this can be enabled.
6017   hardcode_into_libs=yes
6018
6019   # We used to test for /lib/ld.so.1 and disable shared libraries on
6020   # powerpc, because MkLinux only supported shared libraries with the
6021   # GNU dynamic linker.  Since this was broken with cross compilers,
6022   # most powerpc-linux boxes support dynamic linking these days and
6023   # people can always --disable-shared, the test was removed, and we
6024   # assume the GNU/Linux dynamic linker is in use.
6025   dynamic_linker='GNU/Linux ld.so'
6026   ;;
6027
6028 netbsd*)
6029   version_type=sunos
6030   need_lib_prefix=no
6031   need_version=no
6032   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6033     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6034     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6035     dynamic_linker='NetBSD (a.out) ld.so'
6036   else
6037     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6038     soname_spec='${libname}${release}.so$major'
6039     dynamic_linker='NetBSD ld.elf_so'
6040   fi
6041   shlibpath_var=LD_LIBRARY_PATH
6042   shlibpath_overrides_runpath=yes
6043   hardcode_into_libs=yes
6044   ;;
6045
6046 newsos6)
6047   version_type=linux
6048   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6049   shlibpath_var=LD_LIBRARY_PATH
6050   shlibpath_overrides_runpath=yes
6051   ;;
6052
6053 openbsd*)
6054   version_type=sunos
6055   need_lib_prefix=no
6056   need_version=no
6057   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6058     case "$host_os" in
6059     openbsd2.[89] | openbsd2.[89].*)
6060       shlibpath_overrides_runpath=no
6061       ;;
6062     *)
6063       shlibpath_overrides_runpath=yes
6064       ;;
6065     esac
6066   else
6067     shlibpath_overrides_runpath=yes
6068   fi
6069   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6071   shlibpath_var=LD_LIBRARY_PATH
6072   ;;
6073
6074 os2*)
6075   libname_spec='$name'
6076   need_lib_prefix=no
6077   library_names_spec='$libname.dll $libname.a'
6078   dynamic_linker='OS/2 ld.exe'
6079   shlibpath_var=LIBPATH
6080   ;;
6081
6082 osf3* | osf4* | osf5*)
6083   version_type=osf
6084   need_version=no
6085   soname_spec='${libname}${release}.so'
6086   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6087   shlibpath_var=LD_LIBRARY_PATH
6088   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6089   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6090   ;;
6091
6092 sco3.2v5*)
6093   version_type=osf
6094   soname_spec='${libname}${release}.so$major'
6095   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6096   shlibpath_var=LD_LIBRARY_PATH
6097   ;;
6098
6099 solaris*)
6100   version_type=linux
6101   need_lib_prefix=no
6102   need_version=no
6103   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6104   soname_spec='${libname}${release}.so$major'
6105   shlibpath_var=LD_LIBRARY_PATH
6106   shlibpath_overrides_runpath=yes
6107   hardcode_into_libs=yes
6108   # ldd complains unless libraries are executable
6109   postinstall_cmds='chmod +x $lib'
6110   ;;
6111
6112 sunos4*)
6113   version_type=sunos
6114   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6115   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6116   shlibpath_var=LD_LIBRARY_PATH
6117   shlibpath_overrides_runpath=yes
6118   if test "$with_gnu_ld" = yes; then
6119     need_lib_prefix=no
6120   fi
6121   need_version=yes
6122   ;;
6123
6124 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6125   version_type=linux
6126   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6127   soname_spec='${libname}${release}.so$major'
6128   shlibpath_var=LD_LIBRARY_PATH
6129   case $host_vendor in
6130     sni)
6131       shlibpath_overrides_runpath=no
6132       ;;
6133     motorola)
6134       need_lib_prefix=no
6135       need_version=no
6136       shlibpath_overrides_runpath=no
6137       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6138       ;;
6139   esac
6140   ;;
6141
6142 uts4*)
6143   version_type=linux
6144   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6145   soname_spec='${libname}${release}.so$major'
6146   shlibpath_var=LD_LIBRARY_PATH
6147   ;;
6148
6149 dgux*)
6150   version_type=linux
6151   need_lib_prefix=no
6152   need_version=no
6153   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6154   soname_spec='${libname}${release}.so$major'
6155   shlibpath_var=LD_LIBRARY_PATH
6156   ;;
6157
6158 sysv4*MP*)
6159   if test -d /usr/nec ;then
6160     version_type=linux
6161     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6162     soname_spec='$libname.so.$major'
6163     shlibpath_var=LD_LIBRARY_PATH
6164   fi
6165   ;;
6166
6167 *)
6168   dynamic_linker=no
6169   ;;
6170 esac
6171 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6172 echo "${ECHO_T}$dynamic_linker" >&6
6173 test "$dynamic_linker" = no && can_build_shared=no
6174
6175 # Report the final consequences.
6176 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6177 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6178 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6179 echo "${ECHO_T}$can_build_shared" >&6
6180
6181 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6182 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6183 test "$can_build_shared" = "no" && enable_shared=no
6184
6185 # On AIX, shared libraries and static libraries use the same namespace, and
6186 # are all built from PIC.
6187 case "$host_os" in
6188 aix3*)
6189   test "$enable_shared" = yes && enable_static=no
6190   if test -n "$RANLIB"; then
6191     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6192     postinstall_cmds='$RANLIB $lib'
6193   fi
6194   ;;
6195
6196 aix4*)
6197   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6198     test "$enable_shared" = yes && enable_static=no
6199   fi
6200   ;;
6201 esac
6202 echo "$as_me:$LINENO: result: $enable_shared" >&5
6203 echo "${ECHO_T}$enable_shared" >&6
6204
6205 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6206 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6207 # Make sure either enable_shared or enable_static is yes.
6208 test "$enable_shared" = yes || enable_static=yes
6209 echo "$as_me:$LINENO: result: $enable_static" >&5
6210 echo "${ECHO_T}$enable_static" >&6
6211
6212 if test "$hardcode_action" = relink; then
6213   # Fast installation is not supported
6214   enable_fast_install=no
6215 elif test "$shlibpath_overrides_runpath" = yes ||
6216      test "$enable_shared" = no; then
6217   # Fast installation is not necessary
6218   enable_fast_install=needless
6219 fi
6220
6221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6222 if test "$GCC" = yes; then
6223   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6224 fi
6225
6226 if test "x$enable_dlopen" != xyes; then
6227   enable_dlopen=unknown
6228   enable_dlopen_self=unknown
6229   enable_dlopen_self_static=unknown
6230 else
6231   lt_cv_dlopen=no
6232   lt_cv_dlopen_libs=
6233
6234   case $host_os in
6235   beos*)
6236     lt_cv_dlopen="load_add_on"
6237     lt_cv_dlopen_libs=
6238     lt_cv_dlopen_self=yes
6239     ;;
6240
6241   cygwin* | mingw* | pw32*)
6242     lt_cv_dlopen="LoadLibrary"
6243     lt_cv_dlopen_libs=
6244    ;;
6245
6246   *)
6247     echo "$as_me:$LINENO: checking for shl_load" >&5
6248 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6249 if test "${ac_cv_func_shl_load+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   cat >conftest.$ac_ext <<_ACEOF
6253 #line $LINENO "configure"
6254 #include "confdefs.h"
6255 /* System header to define __stub macros and hopefully few prototypes,
6256     which can conflict with char shl_load (); below.  */
6257 #include <assert.h>
6258 /* Override any gcc2 internal prototype to avoid an error.  */
6259 #ifdef __cplusplus
6260 extern "C"
6261 #endif
6262 /* We use char because int might match the return type of a gcc2
6263    builtin and then its argument prototype would still apply.  */
6264 char shl_load ();
6265 char (*f) ();
6266
6267 #ifdef F77_DUMMY_MAIN
6268 #  ifdef __cplusplus
6269      extern "C"
6270 #  endif
6271    int F77_DUMMY_MAIN() { return 1; }
6272 #endif
6273 int
6274 main ()
6275 {
6276 /* The GNU C library defines this for functions which it implements
6277     to always fail with ENOSYS.  Some functions are actually named
6278     something starting with __ and the normal name is an alias.  */
6279 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6280 choke me
6281 #else
6282 f = shl_load;
6283 #endif
6284
6285   ;
6286   return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext conftest$ac_exeext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291   (eval $ac_link) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -s conftest$ac_exeext'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; }; then
6301   ac_cv_func_shl_load=yes
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6305 ac_cv_func_shl_load=no
6306 fi
6307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6308 fi
6309 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6310 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6311 if test $ac_cv_func_shl_load = yes; then
6312   lt_cv_dlopen="shl_load"
6313 else
6314   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6315 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6316 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   ac_check_lib_save_LIBS=$LIBS
6320 LIBS="-ldld  $LIBS"
6321 cat >conftest.$ac_ext <<_ACEOF
6322 #line $LINENO "configure"
6323 #include "confdefs.h"
6324
6325 /* Override any gcc2 internal prototype to avoid an error.  */
6326 #ifdef __cplusplus
6327 extern "C"
6328 #endif
6329 /* We use char because int might match the return type of a gcc2
6330    builtin and then its argument prototype would still apply.  */
6331 char shl_load ();
6332 #ifdef F77_DUMMY_MAIN
6333 #  ifdef __cplusplus
6334      extern "C"
6335 #  endif
6336    int F77_DUMMY_MAIN() { return 1; }
6337 #endif
6338 int
6339 main ()
6340 {
6341 shl_load ();
6342   ;
6343   return 0;
6344 }
6345 _ACEOF
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348   (eval $ac_link) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } &&
6352          { ac_try='test -s conftest$ac_exeext'
6353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; }; then
6358   ac_cv_lib_dld_shl_load=yes
6359 else
6360   echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 ac_cv_lib_dld_shl_load=no
6363 fi
6364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6365 LIBS=$ac_check_lib_save_LIBS
6366 fi
6367 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6368 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6369 if test $ac_cv_lib_dld_shl_load = yes; then
6370   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6371 else
6372   echo "$as_me:$LINENO: checking for dlopen" >&5
6373 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6374 if test "${ac_cv_func_dlopen+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   cat >conftest.$ac_ext <<_ACEOF
6378 #line $LINENO "configure"
6379 #include "confdefs.h"
6380 /* System header to define __stub macros and hopefully few prototypes,
6381     which can conflict with char dlopen (); below.  */
6382 #include <assert.h>
6383 /* Override any gcc2 internal prototype to avoid an error.  */
6384 #ifdef __cplusplus
6385 extern "C"
6386 #endif
6387 /* We use char because int might match the return type of a gcc2
6388    builtin and then its argument prototype would still apply.  */
6389 char dlopen ();
6390 char (*f) ();
6391
6392 #ifdef F77_DUMMY_MAIN
6393 #  ifdef __cplusplus
6394      extern "C"
6395 #  endif
6396    int F77_DUMMY_MAIN() { return 1; }
6397 #endif
6398 int
6399 main ()
6400 {
6401 /* The GNU C library defines this for functions which it implements
6402     to always fail with ENOSYS.  Some functions are actually named
6403     something starting with __ and the normal name is an alias.  */
6404 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6405 choke me
6406 #else
6407 f = dlopen;
6408 #endif
6409
6410   ;
6411   return 0;
6412 }
6413 _ACEOF
6414 rm -f conftest.$ac_objext conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416   (eval $ac_link) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -s conftest$ac_exeext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   ac_cv_func_dlopen=yes
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 cat conftest.$ac_ext >&5
6430 ac_cv_func_dlopen=no
6431 fi
6432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6433 fi
6434 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6435 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6436 if test $ac_cv_func_dlopen = yes; then
6437   lt_cv_dlopen="dlopen"
6438 else
6439   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   ac_check_lib_save_LIBS=$LIBS
6445 LIBS="-ldl  $LIBS"
6446 cat >conftest.$ac_ext <<_ACEOF
6447 #line $LINENO "configure"
6448 #include "confdefs.h"
6449
6450 /* Override any gcc2 internal prototype to avoid an error.  */
6451 #ifdef __cplusplus
6452 extern "C"
6453 #endif
6454 /* We use char because int might match the return type of a gcc2
6455    builtin and then its argument prototype would still apply.  */
6456 char dlopen ();
6457 #ifdef F77_DUMMY_MAIN
6458 #  ifdef __cplusplus
6459      extern "C"
6460 #  endif
6461    int F77_DUMMY_MAIN() { return 1; }
6462 #endif
6463 int
6464 main ()
6465 {
6466 dlopen ();
6467   ;
6468   return 0;
6469 }
6470 _ACEOF
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473   (eval $ac_link) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -s conftest$ac_exeext'
6478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479   (eval $ac_try) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; }; then
6483   ac_cv_lib_dl_dlopen=yes
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 ac_cv_lib_dl_dlopen=no
6488 fi
6489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6490 LIBS=$ac_check_lib_save_LIBS
6491 fi
6492 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6493 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6494 if test $ac_cv_lib_dl_dlopen = yes; then
6495   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6496 else
6497   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6498 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6499 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6500   echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502   ac_check_lib_save_LIBS=$LIBS
6503 LIBS="-lsvld  $LIBS"
6504 cat >conftest.$ac_ext <<_ACEOF
6505 #line $LINENO "configure"
6506 #include "confdefs.h"
6507
6508 /* Override any gcc2 internal prototype to avoid an error.  */
6509 #ifdef __cplusplus
6510 extern "C"
6511 #endif
6512 /* We use char because int might match the return type of a gcc2
6513    builtin and then its argument prototype would still apply.  */
6514 char dlopen ();
6515 #ifdef F77_DUMMY_MAIN
6516 #  ifdef __cplusplus
6517      extern "C"
6518 #  endif
6519    int F77_DUMMY_MAIN() { return 1; }
6520 #endif
6521 int
6522 main ()
6523 {
6524 dlopen ();
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); } &&
6535          { ac_try='test -s conftest$ac_exeext'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; }; then
6541   ac_cv_lib_svld_dlopen=yes
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6545 ac_cv_lib_svld_dlopen=no
6546 fi
6547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6548 LIBS=$ac_check_lib_save_LIBS
6549 fi
6550 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6551 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6552 if test $ac_cv_lib_svld_dlopen = yes; then
6553   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6554 else
6555   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6556 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6557 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   ac_check_lib_save_LIBS=$LIBS
6561 LIBS="-ldld  $LIBS"
6562 cat >conftest.$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 #include "confdefs.h"
6565
6566 /* Override any gcc2 internal prototype to avoid an error.  */
6567 #ifdef __cplusplus
6568 extern "C"
6569 #endif
6570 /* We use char because int might match the return type of a gcc2
6571    builtin and then its argument prototype would still apply.  */
6572 char dld_link ();
6573 #ifdef F77_DUMMY_MAIN
6574 #  ifdef __cplusplus
6575      extern "C"
6576 #  endif
6577    int F77_DUMMY_MAIN() { return 1; }
6578 #endif
6579 int
6580 main ()
6581 {
6582 dld_link ();
6583   ;
6584   return 0;
6585 }
6586 _ACEOF
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589   (eval $ac_link) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); } &&
6593          { ac_try='test -s conftest$ac_exeext'
6594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595   (eval $ac_try) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   ac_cv_lib_dld_dld_link=yes
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 ac_cv_lib_dld_dld_link=no
6604 fi
6605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6606 LIBS=$ac_check_lib_save_LIBS
6607 fi
6608 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6609 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6610 if test $ac_cv_lib_dld_dld_link = yes; then
6611   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6612 fi
6613
6614
6615 fi
6616
6617
6618 fi
6619
6620
6621 fi
6622
6623
6624 fi
6625
6626
6627 fi
6628
6629     ;;
6630   esac
6631
6632   if test "x$lt_cv_dlopen" != xno; then
6633     enable_dlopen=yes
6634   else
6635     enable_dlopen=no
6636   fi
6637
6638   case $lt_cv_dlopen in
6639   dlopen)
6640     save_CPPFLAGS="$CPPFLAGS"
6641         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6642
6643     save_LDFLAGS="$LDFLAGS"
6644     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6645
6646     save_LIBS="$LIBS"
6647     LIBS="$lt_cv_dlopen_libs $LIBS"
6648
6649     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6650 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6651 if test "${lt_cv_dlopen_self+set}" = set; then
6652   echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654           if test "$cross_compiling" = yes; then :
6655   lt_cv_dlopen_self=cross
6656 else
6657     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6658   lt_status=$lt_dlunknown
6659   cat > conftest.$ac_ext <<EOF
6660 #line 6660 "configure"
6661 #include "confdefs.h"
6662
6663 #if HAVE_DLFCN_H
6664 #include <dlfcn.h>
6665 #endif
6666
6667 #include <stdio.h>
6668
6669 #ifdef RTLD_GLOBAL
6670 #  define LT_DLGLOBAL           RTLD_GLOBAL
6671 #else
6672 #  ifdef DL_GLOBAL
6673 #    define LT_DLGLOBAL         DL_GLOBAL
6674 #  else
6675 #    define LT_DLGLOBAL         0
6676 #  endif
6677 #endif
6678
6679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6680    find out it does not work in some platform. */
6681 #ifndef LT_DLLAZY_OR_NOW
6682 #  ifdef RTLD_LAZY
6683 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6684 #  else
6685 #    ifdef DL_LAZY
6686 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6687 #    else
6688 #      ifdef RTLD_NOW
6689 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6690 #      else
6691 #        ifdef DL_NOW
6692 #          define LT_DLLAZY_OR_NOW      DL_NOW
6693 #        else
6694 #          define LT_DLLAZY_OR_NOW      0
6695 #        endif
6696 #      endif
6697 #    endif
6698 #  endif
6699 #endif
6700
6701 #ifdef __cplusplus
6702 extern "C" void exit (int);
6703 #endif
6704
6705 void fnord() { int i=42;}
6706 int main ()
6707 {
6708   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6709   int status = $lt_dlunknown;
6710
6711   if (self)
6712     {
6713       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6714       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6715       /* dlclose (self); */
6716     }
6717
6718     exit (status);
6719 }
6720 EOF
6721   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722   (eval $ac_link) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6726     (./conftest; exit; ) 2>/dev/null
6727     lt_status=$?
6728     case x$lt_status in
6729       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6730       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6731       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6732     esac
6733   else :
6734     # compilation failed
6735     lt_cv_dlopen_self=no
6736   fi
6737 fi
6738 rm -fr conftest*
6739
6740
6741 fi
6742 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6743 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6744
6745     if test "x$lt_cv_dlopen_self" = xyes; then
6746       LDFLAGS="$LDFLAGS $link_static_flag"
6747       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6748 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6749 if test "${lt_cv_dlopen_self_static+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752           if test "$cross_compiling" = yes; then :
6753   lt_cv_dlopen_self_static=cross
6754 else
6755     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6756   lt_status=$lt_dlunknown
6757   cat > conftest.$ac_ext <<EOF
6758 #line 6758 "configure"
6759 #include "confdefs.h"
6760
6761 #if HAVE_DLFCN_H
6762 #include <dlfcn.h>
6763 #endif
6764
6765 #include <stdio.h>
6766
6767 #ifdef RTLD_GLOBAL
6768 #  define LT_DLGLOBAL           RTLD_GLOBAL
6769 #else
6770 #  ifdef DL_GLOBAL
6771 #    define LT_DLGLOBAL         DL_GLOBAL
6772 #  else
6773 #    define LT_DLGLOBAL         0
6774 #  endif
6775 #endif
6776
6777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6778    find out it does not work in some platform. */
6779 #ifndef LT_DLLAZY_OR_NOW
6780 #  ifdef RTLD_LAZY
6781 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6782 #  else
6783 #    ifdef DL_LAZY
6784 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6785 #    else
6786 #      ifdef RTLD_NOW
6787 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6788 #      else
6789 #        ifdef DL_NOW
6790 #          define LT_DLLAZY_OR_NOW      DL_NOW
6791 #        else
6792 #          define LT_DLLAZY_OR_NOW      0
6793 #        endif
6794 #      endif
6795 #    endif
6796 #  endif
6797 #endif
6798
6799 #ifdef __cplusplus
6800 extern "C" void exit (int);
6801 #endif
6802
6803 void fnord() { int i=42;}
6804 int main ()
6805 {
6806   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6807   int status = $lt_dlunknown;
6808
6809   if (self)
6810     {
6811       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6812       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6813       /* dlclose (self); */
6814     }
6815
6816     exit (status);
6817 }
6818 EOF
6819   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820   (eval $ac_link) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6824     (./conftest; exit; ) 2>/dev/null
6825     lt_status=$?
6826     case x$lt_status in
6827       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6828       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6829       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6830     esac
6831   else :
6832     # compilation failed
6833     lt_cv_dlopen_self_static=no
6834   fi
6835 fi
6836 rm -fr conftest*
6837
6838
6839 fi
6840 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6841 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6842     fi
6843
6844     CPPFLAGS="$save_CPPFLAGS"
6845     LDFLAGS="$save_LDFLAGS"
6846     LIBS="$save_LIBS"
6847     ;;
6848   esac
6849
6850   case $lt_cv_dlopen_self in
6851   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6852   *) enable_dlopen_self=unknown ;;
6853   esac
6854
6855   case $lt_cv_dlopen_self_static in
6856   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6857   *) enable_dlopen_self_static=unknown ;;
6858   esac
6859 fi
6860
6861
6862 if test "$enable_shared" = yes && test "$GCC" = yes; then
6863   case $archive_cmds in
6864   *'~'*)
6865     # FIXME: we may have to deal with multi-command sequences.
6866     ;;
6867   '$CC '*)
6868     # Test whether the compiler implicitly links with -lc since on some
6869     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6870     # to ld, don't add -lc before -lgcc.
6871     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6873     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   $rm conftest*
6877     echo 'static int dummy;' > conftest.$ac_ext
6878
6879     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880   (eval $ac_compile) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); }; then
6884       soname=conftest
6885       lib=conftest
6886       libobjs=conftest.$ac_objext
6887       deplibs=
6888       wl=$lt_cv_prog_cc_wl
6889       compiler_flags=-v
6890       linker_flags=-v
6891       verstring=
6892       output_objdir=.
6893       libname=conftest
6894       save_allow_undefined_flag=$allow_undefined_flag
6895       allow_undefined_flag=
6896       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6897   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }
6901       then
6902         lt_cv_archive_cmds_need_lc=no
6903       else
6904         lt_cv_archive_cmds_need_lc=yes
6905       fi
6906       allow_undefined_flag=$save_allow_undefined_flag
6907     else
6908       cat conftest.err 1>&5
6909     fi
6910 fi
6911
6912     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6913 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6914     ;;
6915   esac
6916 fi
6917 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6918
6919 # The second clause should only fire when bootstrapping the
6920 # libtool distribution, otherwise you forgot to ship ltmain.sh
6921 # with your package, and you will get complaints that there are
6922 # no rules to generate ltmain.sh.
6923 if test -f "$ltmain"; then
6924   :
6925 else
6926   # If there is no Makefile yet, we rely on a make rule to execute
6927   # `config.status --recheck' to rerun these tests and create the
6928   # libtool script then.
6929   test -f Makefile && make "$ltmain"
6930 fi
6931
6932 if test -f "$ltmain"; then
6933   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6934   $rm -f "${ofile}T"
6935
6936   echo creating $ofile
6937
6938   # Now quote all the things that may contain metacharacters while being
6939   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6940   # variables and quote the copies for generation of the libtool script.
6941   for var in echo old_CC old_CFLAGS \
6942     AR AR_FLAGS CC LD LN_S NM SHELL \
6943     reload_flag reload_cmds wl \
6944     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6945     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6946     library_names_spec soname_spec \
6947     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6948     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6949     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6950     old_striplib striplib file_magic_cmd export_symbols_cmds \
6951     deplibs_check_method allow_undefined_flag no_undefined_flag \
6952     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6953     global_symbol_to_c_name_address \
6954     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6955     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6956     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6957
6958     case $var in
6959     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6960     old_postinstall_cmds | old_postuninstall_cmds | \
6961     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6962     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6963     postinstall_cmds | postuninstall_cmds | \
6964     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6965       # Double-quote double-evaled strings.
6966       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6967       ;;
6968     *)
6969       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6970       ;;
6971     esac
6972   done
6973
6974   cat <<__EOF__ > "${ofile}T"
6975 #! $SHELL
6976
6977 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6978 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6980 #
6981 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6982 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6983 #
6984 # This program is free software; you can redistribute it and/or modify
6985 # it under the terms of the GNU General Public License as published by
6986 # the Free Software Foundation; either version 2 of the License, or
6987 # (at your option) any later version.
6988 #
6989 # This program is distributed in the hope that it will be useful, but
6990 # WITHOUT ANY WARRANTY; without even the implied warranty of
6991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6992 # General Public License for more details.
6993 #
6994 # You should have received a copy of the GNU General Public License
6995 # along with this program; if not, write to the Free Software
6996 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6997 #
6998 # As a special exception to the GNU General Public License, if you
6999 # distribute this file as part of a program that contains a
7000 # configuration script generated by Autoconf, you may include it under
7001 # the same distribution terms that you use for the rest of that program.
7002
7003 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7004 Xsed="sed -e s/^X//"
7005
7006 # The HP-UX ksh and POSIX shell print the target directory to stdout
7007 # if CDPATH is set.
7008 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7009
7010 # ### BEGIN LIBTOOL CONFIG
7011
7012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7013
7014 # Shell to use when invoking shell scripts.
7015 SHELL=$lt_SHELL
7016
7017 # Whether or not to build shared libraries.
7018 build_libtool_libs=$enable_shared
7019
7020 # Whether or not to build static libraries.
7021 build_old_libs=$enable_static
7022
7023 # Whether or not to add -lc for building shared libraries.
7024 build_libtool_need_lc=$need_lc
7025
7026 # Whether or not to optimize for fast installation.
7027 fast_install=$enable_fast_install
7028
7029 # The host system.
7030 host_alias=$host_alias
7031 host=$host
7032
7033 # An echo program that does not interpret backslashes.
7034 echo=$lt_echo
7035
7036 # The archiver.
7037 AR=$lt_AR
7038 AR_FLAGS=$lt_AR_FLAGS
7039
7040 # The default C compiler.
7041 CC=$lt_CC
7042
7043 # Is the compiler the GNU C compiler?
7044 with_gcc=$GCC
7045
7046 # The linker used to build libraries.
7047 LD=$lt_LD
7048
7049 # Whether we need hard or soft links.
7050 LN_S=$lt_LN_S
7051
7052 # A BSD-compatible nm program.
7053 NM=$lt_NM
7054
7055 # A symbol stripping program
7056 STRIP=$STRIP
7057
7058 # Used to examine libraries when file_magic_cmd begins "file"
7059 MAGIC_CMD=$MAGIC_CMD
7060
7061 # Used on cygwin: DLL creation program.
7062 DLLTOOL="$DLLTOOL"
7063
7064 # Used on cygwin: object dumper.
7065 OBJDUMP="$OBJDUMP"
7066
7067 # Used on cygwin: assembler.
7068 AS="$AS"
7069
7070 # The name of the directory that contains temporary libtool files.
7071 objdir=$objdir
7072
7073 # How to create reloadable object files.
7074 reload_flag=$lt_reload_flag
7075 reload_cmds=$lt_reload_cmds
7076
7077 # How to pass a linker flag through the compiler.
7078 wl=$lt_wl
7079
7080 # Object file suffix (normally "o").
7081 objext="$ac_objext"
7082
7083 # Old archive suffix (normally "a").
7084 libext="$libext"
7085
7086 # Executable file suffix (normally "").
7087 exeext="$exeext"
7088
7089 # Additional compiler flags for building library objects.
7090 pic_flag=$lt_pic_flag
7091 pic_mode=$pic_mode
7092
7093 # Does compiler simultaneously support -c and -o options?
7094 compiler_c_o=$lt_compiler_c_o
7095
7096 # Can we write directly to a .lo ?
7097 compiler_o_lo=$lt_compiler_o_lo
7098
7099 # Must we lock files when doing compilation ?
7100 need_locks=$lt_need_locks
7101
7102 # Do we need the lib prefix for modules?
7103 need_lib_prefix=$need_lib_prefix
7104
7105 # Do we need a version for libraries?
7106 need_version=$need_version
7107
7108 # Whether dlopen is supported.
7109 dlopen_support=$enable_dlopen
7110
7111 # Whether dlopen of programs is supported.
7112 dlopen_self=$enable_dlopen_self
7113
7114 # Whether dlopen of statically linked programs is supported.
7115 dlopen_self_static=$enable_dlopen_self_static
7116
7117 # Compiler flag to prevent dynamic linking.
7118 link_static_flag=$lt_link_static_flag
7119
7120 # Compiler flag to turn off builtin functions.
7121 no_builtin_flag=$lt_no_builtin_flag
7122
7123 # Compiler flag to allow reflexive dlopens.
7124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7125
7126 # Compiler flag to generate shared objects directly from archives.
7127 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7128
7129 # Compiler flag to generate thread-safe objects.
7130 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7131
7132 # Library versioning type.
7133 version_type=$version_type
7134
7135 # Format of library name prefix.
7136 libname_spec=$lt_libname_spec
7137
7138 # List of archive names.  First name is the real one, the rest are links.
7139 # The last name is the one that the linker finds with -lNAME.
7140 library_names_spec=$lt_library_names_spec
7141
7142 # The coded name of the library, if different from the real name.
7143 soname_spec=$lt_soname_spec
7144
7145 # Commands used to build and install an old-style archive.
7146 RANLIB=$lt_RANLIB
7147 old_archive_cmds=$lt_old_archive_cmds
7148 old_postinstall_cmds=$lt_old_postinstall_cmds
7149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7150
7151 # Create an old-style archive from a shared archive.
7152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7153
7154 # Create a temporary old-style archive to link instead of a shared archive.
7155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7156
7157 # Commands used to build and install a shared archive.
7158 archive_cmds=$lt_archive_cmds
7159 archive_expsym_cmds=$lt_archive_expsym_cmds
7160 postinstall_cmds=$lt_postinstall_cmds
7161 postuninstall_cmds=$lt_postuninstall_cmds
7162
7163 # Commands to strip libraries.
7164 old_striplib=$lt_old_striplib
7165 striplib=$lt_striplib
7166
7167 # Method to check whether dependent libraries are shared objects.
7168 deplibs_check_method=$lt_deplibs_check_method
7169
7170 # Command to use when deplibs_check_method == file_magic.
7171 file_magic_cmd=$lt_file_magic_cmd
7172
7173 # Flag that allows shared libraries with undefined symbols to be built.
7174 allow_undefined_flag=$lt_allow_undefined_flag
7175
7176 # Flag that forces no undefined symbols.
7177 no_undefined_flag=$lt_no_undefined_flag
7178
7179 # Commands used to finish a libtool library installation in a directory.
7180 finish_cmds=$lt_finish_cmds
7181
7182 # Same as above, but a single script fragment to be evaled but not shown.
7183 finish_eval=$lt_finish_eval
7184
7185 # Take the output of nm and produce a listing of raw symbols and C names.
7186 global_symbol_pipe=$lt_global_symbol_pipe
7187
7188 # Transform the output of nm in a proper C declaration
7189 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7190
7191 # Transform the output of nm in a C name address pair
7192 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7193
7194 # This is the shared library runtime path variable.
7195 runpath_var=$runpath_var
7196
7197 # This is the shared library path variable.
7198 shlibpath_var=$shlibpath_var
7199
7200 # Is shlibpath searched before the hard-coded library search path?
7201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7202
7203 # How to hardcode a shared library path into an executable.
7204 hardcode_action=$hardcode_action
7205
7206 # Whether we should hardcode library paths into libraries.
7207 hardcode_into_libs=$hardcode_into_libs
7208
7209 # Flag to hardcode \$libdir into a binary during linking.
7210 # This must work even if \$libdir does not exist.
7211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7212
7213 # Whether we need a single -rpath flag with a separated argument.
7214 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7215
7216 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7217 # resulting binary.
7218 hardcode_direct=$hardcode_direct
7219
7220 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7221 # resulting binary.
7222 hardcode_minus_L=$hardcode_minus_L
7223
7224 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7225 # the resulting binary.
7226 hardcode_shlibpath_var=$hardcode_shlibpath_var
7227
7228 # Variables whose values should be saved in libtool wrapper scripts and
7229 # restored at relink time.
7230 variables_saved_for_relink="$variables_saved_for_relink"
7231
7232 # Whether libtool must link a program against all its dependency libraries.
7233 link_all_deplibs=$link_all_deplibs
7234
7235 # Compile-time system search path for libraries
7236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7237
7238 # Run-time system search path for libraries
7239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7240
7241 # Fix the shell variable \$srcfile for the compiler.
7242 fix_srcfile_path="$fix_srcfile_path"
7243
7244 # Set to yes if exported symbols are required.
7245 always_export_symbols=$always_export_symbols
7246
7247 # The commands to list exported symbols.
7248 export_symbols_cmds=$lt_export_symbols_cmds
7249
7250 # The commands to extract the exported symbol list from a shared archive.
7251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7252
7253 # Symbols that should not be listed in the preloaded symbols.
7254 exclude_expsyms=$lt_exclude_expsyms
7255
7256 # Symbols that must always be exported.
7257 include_expsyms=$lt_include_expsyms
7258
7259 # ### END LIBTOOL CONFIG
7260
7261 __EOF__
7262
7263   case $host_os in
7264   aix3*)
7265     cat <<\EOF >> "${ofile}T"
7266
7267 # AIX sometimes has problems with the GCC collect2 program.  For some
7268 # reason, if we set the COLLECT_NAMES environment variable, the problems
7269 # vanish in a puff of smoke.
7270 if test "X${COLLECT_NAMES+set}" != Xset; then
7271   COLLECT_NAMES=
7272   export COLLECT_NAMES
7273 fi
7274 EOF
7275     ;;
7276   esac
7277
7278   case $host_os in
7279   cygwin* | mingw* | pw32* | os2*)
7280     cat <<'EOF' >> "${ofile}T"
7281       # This is a source program that is used to create dlls on Windows
7282       # Don't remove nor modify the starting and closing comments
7283 # /* ltdll.c starts here */
7284 # #define WIN32_LEAN_AND_MEAN
7285 # #include <windows.h>
7286 # #undef WIN32_LEAN_AND_MEAN
7287 # #include <stdio.h>
7288 #
7289 # #ifndef __CYGWIN__
7290 # #  ifdef __CYGWIN32__
7291 # #    define __CYGWIN__ __CYGWIN32__
7292 # #  endif
7293 # #endif
7294 #
7295 # #ifdef __cplusplus
7296 # extern "C" {
7297 # #endif
7298 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7299 # #ifdef __cplusplus
7300 # }
7301 # #endif
7302 #
7303 # #ifdef __CYGWIN__
7304 # #include <cygwin/cygwin_dll.h>
7305 # DECLARE_CYGWIN_DLL( DllMain );
7306 # #endif
7307 # HINSTANCE __hDllInstance_base;
7308 #
7309 # BOOL APIENTRY
7310 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7311 # {
7312 #   __hDllInstance_base = hInst;
7313 #   return TRUE;
7314 # }
7315 # /* ltdll.c ends here */
7316         # This is a source program that is used to create import libraries
7317         # on Windows for dlls which lack them. Don't remove nor modify the
7318         # starting and closing comments
7319 # /* impgen.c starts here */
7320 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7321 #
7322 #  This file is part of GNU libtool.
7323 #
7324 #  This program is free software; you can redistribute it and/or modify
7325 #  it under the terms of the GNU General Public License as published by
7326 #  the Free Software Foundation; either version 2 of the License, or
7327 #  (at your option) any later version.
7328 #
7329 #  This program is distributed in the hope that it will be useful,
7330 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7331 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7332 #  GNU General Public License for more details.
7333 #
7334 #  You should have received a copy of the GNU General Public License
7335 #  along with this program; if not, write to the Free Software
7336 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7337 #  */
7338 #
7339 # #include <stdio.h>            /* for printf() */
7340 # #include <unistd.h>           /* for open(), lseek(), read() */
7341 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7342 # #include <string.h>           /* for strdup() */
7343 #
7344 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7345 # #ifndef O_BINARY
7346 # #define O_BINARY 0
7347 # #endif
7348 #
7349 # static unsigned int
7350 # pe_get16 (fd, offset)
7351 #      int fd;
7352 #      int offset;
7353 # {
7354 #   unsigned char b[2];
7355 #   lseek (fd, offset, SEEK_SET);
7356 #   read (fd, b, 2);
7357 #   return b[0] + (b[1]<<8);
7358 # }
7359 #
7360 # static unsigned int
7361 # pe_get32 (fd, offset)
7362 #     int fd;
7363 #     int offset;
7364 # {
7365 #   unsigned char b[4];
7366 #   lseek (fd, offset, SEEK_SET);
7367 #   read (fd, b, 4);
7368 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7369 # }
7370 #
7371 # static unsigned int
7372 # pe_as32 (ptr)
7373 #      void *ptr;
7374 # {
7375 #   unsigned char *b = ptr;
7376 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7377 # }
7378 #
7379 # int
7380 # main (argc, argv)
7381 #     int argc;
7382 #     char *argv[];
7383 # {
7384 #     int dll;
7385 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7386 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7387 #     unsigned long name_rvas, nexp;
7388 #     unsigned char *expdata, *erva;
7389 #     char *filename, *dll_name;
7390 #
7391 #     filename = argv[1];
7392 #
7393 #     dll = open(filename, O_RDONLY|O_BINARY);
7394 #     if (dll < 1)
7395 #       return 1;
7396 #
7397 #     dll_name = filename;
7398 #
7399 #     for (i=0; filename[i]; i++)
7400 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7401 #           dll_name = filename + i +1;
7402 #
7403 #     pe_header_offset = pe_get32 (dll, 0x3c);
7404 #     opthdr_ofs = pe_header_offset + 4 + 20;
7405 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7406 #
7407 #     if (num_entries < 1) /* no exports */
7408 #       return 1;
7409 #
7410 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7411 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7412 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7413 #     secptr = (pe_header_offset + 4 + 20 +
7414 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7415 #
7416 #     expptr = 0;
7417 #     for (i = 0; i < nsections; i++)
7418 #     {
7419 #       char sname[8];
7420 #       unsigned long secptr1 = secptr + 40 * i;
7421 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7422 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7423 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7424 #       lseek(dll, secptr1, SEEK_SET);
7425 #       read(dll, sname, 8);
7426 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7427 #       {
7428 #           expptr = fptr + (export_rva - vaddr);
7429 #           if (export_rva + export_size > vaddr + vsize)
7430 #               export_size = vsize - (export_rva - vaddr);
7431 #           break;
7432 #       }
7433 #     }
7434 #
7435 #     expdata = (unsigned char*)malloc(export_size);
7436 #     lseek (dll, expptr, SEEK_SET);
7437 #     read (dll, expdata, export_size);
7438 #     erva = expdata - export_rva;
7439 #
7440 #     nexp = pe_as32 (expdata+24);
7441 #     name_rvas = pe_as32 (expdata+32);
7442 #
7443 #     printf ("EXPORTS\n");
7444 #     for (i = 0; i<nexp; i++)
7445 #     {
7446 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7447 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7448 #     }
7449 #
7450 #     return 0;
7451 # }
7452 # /* impgen.c ends here */
7453
7454 EOF
7455     ;;
7456   esac
7457
7458   # We use sed instead of cat because bash on DJGPP gets confused if
7459   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7460   # text mode, it properly converts lines to CR/LF.  This bash problem
7461   # is reportedly fixed, but why not run on old versions too?
7462   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7463
7464   mv -f "${ofile}T" "$ofile" || \
7465     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7466   chmod +x "$ofile"
7467 fi
7468
7469
7470
7471
7472
7473 # This can be used to rebuild libtool when needed
7474 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7475
7476 # Always use our own libtool.
7477 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7478
7479 # Prevent multiple expansion
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7514 if test "${ac_cv_header_stdc+set}" = set; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   cat >conftest.$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7519 #include "confdefs.h"
7520 #include <stdlib.h>
7521 #include <stdarg.h>
7522 #include <string.h>
7523 #include <float.h>
7524
7525 _ACEOF
7526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7528   ac_status=$?
7529   egrep -v '^ *\+' conftest.er1 >conftest.err
7530   rm -f conftest.er1
7531   cat conftest.err >&5
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } >/dev/null; then
7534   if test -s conftest.err; then
7535     ac_cpp_err=$ac_c_preproc_warn_flag
7536   else
7537     ac_cpp_err=
7538   fi
7539 else
7540   ac_cpp_err=yes
7541 fi
7542 if test -z "$ac_cpp_err"; then
7543   ac_cv_header_stdc=yes
7544 else
7545   echo "$as_me: failed program was:" >&5
7546   cat conftest.$ac_ext >&5
7547   ac_cv_header_stdc=no
7548 fi
7549 rm -f conftest.err conftest.$ac_ext
7550
7551 if test $ac_cv_header_stdc = yes; then
7552   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7553   cat >conftest.$ac_ext <<_ACEOF
7554 #line $LINENO "configure"
7555 #include "confdefs.h"
7556 #include <string.h>
7557
7558 _ACEOF
7559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7560   egrep "memchr" >/dev/null 2>&1; then
7561   :
7562 else
7563   ac_cv_header_stdc=no
7564 fi
7565 rm -f conftest*
7566
7567 fi
7568
7569 if test $ac_cv_header_stdc = yes; then
7570   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7571   cat >conftest.$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7574 #include <stdlib.h>
7575
7576 _ACEOF
7577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7578   egrep "free" >/dev/null 2>&1; then
7579   :
7580 else
7581   ac_cv_header_stdc=no
7582 fi
7583 rm -f conftest*
7584
7585 fi
7586
7587 if test $ac_cv_header_stdc = yes; then
7588   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7589   if test "$cross_compiling" = yes; then
7590   :
7591 else
7592   cat >conftest.$ac_ext <<_ACEOF
7593 #line $LINENO "configure"
7594 #include "confdefs.h"
7595 #include <ctype.h>
7596 #if ((' ' & 0x0FF) == 0x020)
7597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7599 #else
7600 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7601                      || ('j' <= (c) && (c) <= 'r') \
7602                      || ('s' <= (c) && (c) <= 'z'))
7603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7604 #endif
7605
7606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7607 int
7608 main ()
7609 {
7610   int i;
7611   for (i = 0; i < 256; i++)
7612     if (XOR (islower (i), ISLOWER (i))
7613         || toupper (i) != TOUPPER (i))
7614       exit(2);
7615   exit (0);
7616 }
7617 _ACEOF
7618 rm -f conftest$ac_exeext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7620   (eval $ac_link) 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); }; }; then
7629   :
7630 else
7631   echo "$as_me: program exited with status $ac_status" >&5
7632 echo "$as_me: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7634 ( exit $ac_status )
7635 ac_cv_header_stdc=no
7636 fi
7637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7638 fi
7639 fi
7640 fi
7641 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7642 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7643 if test $ac_cv_header_stdc = yes; then
7644
7645 cat >>confdefs.h <<\_ACEOF
7646 #define STDC_HEADERS 1
7647 _ACEOF
7648
7649 fi
7650
7651 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7652 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
7653 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   cat >conftest.$ac_ext <<_ACEOF
7657 #line $LINENO "configure"
7658 #include "confdefs.h"
7659 #include <sys/types.h>
7660 #ifdef F77_DUMMY_MAIN
7661 #  ifdef __cplusplus
7662      extern "C"
7663 #  endif
7664    int F77_DUMMY_MAIN() { return 1; }
7665 #endif
7666 int
7667 main ()
7668 {
7669 return makedev(0, 0);
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676   (eval $ac_link) 2>&5
7677   ac_status=$?
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); } &&
7680          { ac_try='test -s conftest$ac_exeext'
7681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682   (eval $ac_try) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; }; then
7686   ac_cv_header_sys_types_h_makedev=yes
7687 else
7688   echo "$as_me: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7690 ac_cv_header_sys_types_h_makedev=no
7691 fi
7692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7693
7694 fi
7695 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7696 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
7697
7698 if test $ac_cv_header_sys_types_h_makedev = no; then
7699 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7700   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7701 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
7702 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 fi
7705 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7706 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
7707 else
7708   # Is the header compilable?
7709 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7710 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7713 #include "confdefs.h"
7714 $ac_includes_default
7715 #include <sys/mkdev.h>
7716 _ACEOF
7717 rm -f conftest.$ac_objext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7719   (eval $ac_compile) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); } &&
7723          { ac_try='test -s conftest.$ac_objext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   ac_header_compiler=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 ac_header_compiler=no
7734 fi
7735 rm -f conftest.$ac_objext conftest.$ac_ext
7736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7737 echo "${ECHO_T}$ac_header_compiler" >&6
7738
7739 # Is the header present?
7740 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7741 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
7742 cat >conftest.$ac_ext <<_ACEOF
7743 #line $LINENO "configure"
7744 #include "confdefs.h"
7745 #include <sys/mkdev.h>
7746 _ACEOF
7747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7748   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7749   ac_status=$?
7750   egrep -v '^ *\+' conftest.er1 >conftest.err
7751   rm -f conftest.er1
7752   cat conftest.err >&5
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } >/dev/null; then
7755   if test -s conftest.err; then
7756     ac_cpp_err=$ac_c_preproc_warn_flag
7757   else
7758     ac_cpp_err=
7759   fi
7760 else
7761   ac_cpp_err=yes
7762 fi
7763 if test -z "$ac_cpp_err"; then
7764   ac_header_preproc=yes
7765 else
7766   echo "$as_me: failed program was:" >&5
7767   cat conftest.$ac_ext >&5
7768   ac_header_preproc=no
7769 fi
7770 rm -f conftest.err conftest.$ac_ext
7771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7772 echo "${ECHO_T}$ac_header_preproc" >&6
7773
7774 # So?  What about this header?
7775 case $ac_header_compiler:$ac_header_preproc in
7776   yes:no )
7777     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7778 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7779     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7780 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
7781   no:yes )
7782     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7783 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7784     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
7785 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
7786     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7787 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
7788 esac
7789 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7790 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
7791 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   ac_cv_header_sys_mkdev_h=$ac_header_preproc
7795 fi
7796 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7797 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
7798
7799 fi
7800 if test $ac_cv_header_sys_mkdev_h = yes; then
7801
7802 cat >>confdefs.h <<\_ACEOF
7803 #define MAJOR_IN_MKDEV 1
7804 _ACEOF
7805
7806 fi
7807
7808
7809
7810   if test $ac_cv_header_sys_mkdev_h = no; then
7811     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7812   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7813 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7814 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 fi
7817 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7818 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7819 else
7820   # Is the header compilable?
7821 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7822 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
7823 cat >conftest.$ac_ext <<_ACEOF
7824 #line $LINENO "configure"
7825 #include "confdefs.h"
7826 $ac_includes_default
7827 #include <sys/sysmacros.h>
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831   (eval $ac_compile) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } &&
7835          { ac_try='test -s conftest.$ac_objext'
7836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837   (eval $ac_try) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }; }; then
7841   ac_header_compiler=yes
7842 else
7843   echo "$as_me: failed program was:" >&5
7844 cat conftest.$ac_ext >&5
7845 ac_header_compiler=no
7846 fi
7847 rm -f conftest.$ac_objext conftest.$ac_ext
7848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7849 echo "${ECHO_T}$ac_header_compiler" >&6
7850
7851 # Is the header present?
7852 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7853 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 #include "confdefs.h"
7857 #include <sys/sysmacros.h>
7858 _ACEOF
7859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7861   ac_status=$?
7862   egrep -v '^ *\+' conftest.er1 >conftest.err
7863   rm -f conftest.er1
7864   cat conftest.err >&5
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); } >/dev/null; then
7867   if test -s conftest.err; then
7868     ac_cpp_err=$ac_c_preproc_warn_flag
7869   else
7870     ac_cpp_err=
7871   fi
7872 else
7873   ac_cpp_err=yes
7874 fi
7875 if test -z "$ac_cpp_err"; then
7876   ac_header_preproc=yes
7877 else
7878   echo "$as_me: failed program was:" >&5
7879   cat conftest.$ac_ext >&5
7880   ac_header_preproc=no
7881 fi
7882 rm -f conftest.err conftest.$ac_ext
7883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7884 echo "${ECHO_T}$ac_header_preproc" >&6
7885
7886 # So?  What about this header?
7887 case $ac_header_compiler:$ac_header_preproc in
7888   yes:no )
7889     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7890 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7891     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7892 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
7893   no:yes )
7894     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7895 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7897 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7898     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7899 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
7900 esac
7901 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7902 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7903 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7907 fi
7908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7909 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7910
7911 fi
7912 if test $ac_cv_header_sys_sysmacros_h = yes; then
7913
7914 cat >>confdefs.h <<\_ACEOF
7915 #define MAJOR_IN_SYSMACROS 1
7916 _ACEOF
7917
7918 fi
7919
7920
7921   fi
7922 fi
7923
7924 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7925 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7926 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 #include "confdefs.h"
7932 #include <sys/types.h>
7933 #include <sys/wait.h>
7934 #ifndef WEXITSTATUS
7935 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7936 #endif
7937 #ifndef WIFEXITED
7938 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7939 #endif
7940
7941 #ifdef F77_DUMMY_MAIN
7942 #  ifdef __cplusplus
7943      extern "C"
7944 #  endif
7945    int F77_DUMMY_MAIN() { return 1; }
7946 #endif
7947 int
7948 main ()
7949 {
7950   int s;
7951   wait (&s);
7952   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7953   ;
7954   return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959   (eval $ac_compile) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); } &&
7963          { ac_try='test -s conftest.$ac_objext'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; }; then
7969   ac_cv_header_sys_wait_h=yes
7970 else
7971   echo "$as_me: failed program was:" >&5
7972 cat conftest.$ac_ext >&5
7973 ac_cv_header_sys_wait_h=no
7974 fi
7975 rm -f conftest.$ac_objext conftest.$ac_ext
7976 fi
7977 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7978 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7979 if test $ac_cv_header_sys_wait_h = yes; then
7980
7981 cat >>confdefs.h <<\_ACEOF
7982 #define HAVE_SYS_WAIT_H 1
7983 _ACEOF
7984
7985 fi
7986
7987
7988 for ac_header in stdint.h
7989 do
7990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7992   echo "$as_me:$LINENO: checking for $ac_header" >&5
7993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 fi
7997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7999 else
8000   # Is the header compilable?
8001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line $LINENO "configure"
8005 #include "confdefs.h"
8006 $ac_includes_default
8007 #include <$ac_header>
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011   (eval $ac_compile) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } &&
8015          { ac_try='test -s conftest.$ac_objext'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; }; then
8021   ac_header_compiler=yes
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 ac_header_compiler=no
8026 fi
8027 rm -f conftest.$ac_objext conftest.$ac_ext
8028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8029 echo "${ECHO_T}$ac_header_compiler" >&6
8030
8031 # Is the header present?
8032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8034 cat >conftest.$ac_ext <<_ACEOF
8035 #line $LINENO "configure"
8036 #include "confdefs.h"
8037 #include <$ac_header>
8038 _ACEOF
8039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8041   ac_status=$?
8042   egrep -v '^ *\+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } >/dev/null; then
8047   if test -s conftest.err; then
8048     ac_cpp_err=$ac_c_preproc_warn_flag
8049   else
8050     ac_cpp_err=
8051   fi
8052 else
8053   ac_cpp_err=yes
8054 fi
8055 if test -z "$ac_cpp_err"; then
8056   ac_header_preproc=yes
8057 else
8058   echo "$as_me: failed program was:" >&5
8059   cat conftest.$ac_ext >&5
8060   ac_header_preproc=no
8061 fi
8062 rm -f conftest.err conftest.$ac_ext
8063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8064 echo "${ECHO_T}$ac_header_preproc" >&6
8065
8066 # So?  What about this header?
8067 case $ac_header_compiler:$ac_header_preproc in
8068   yes:no )
8069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8073   no:yes )
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8076     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8080 esac
8081 echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084   echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086   eval "$as_ac_Header=$ac_header_preproc"
8087 fi
8088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8090
8091 fi
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093   cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8095 _ACEOF
8096
8097 fi
8098
8099 done
8100
8101
8102
8103 for ac_header in fcntl.h locale.h
8104 do
8105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107   echo "$as_me:$LINENO: checking for $ac_header" >&5
8108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 fi
8112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8114 else
8115   # Is the header compilable?
8116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 #include "confdefs.h"
8121 $ac_includes_default
8122 #include <$ac_header>
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126   (eval $ac_compile) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); } &&
8130          { ac_try='test -s conftest.$ac_objext'
8131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132   (eval $ac_try) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; }; then
8136   ac_header_compiler=yes
8137 else
8138   echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 ac_header_compiler=no
8141 fi
8142 rm -f conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8144 echo "${ECHO_T}$ac_header_compiler" >&6
8145
8146 # Is the header present?
8147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 #include "confdefs.h"
8152 #include <$ac_header>
8153 _ACEOF
8154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8156   ac_status=$?
8157   egrep -v '^ *\+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } >/dev/null; then
8162   if test -s conftest.err; then
8163     ac_cpp_err=$ac_c_preproc_warn_flag
8164   else
8165     ac_cpp_err=
8166   fi
8167 else
8168   ac_cpp_err=yes
8169 fi
8170 if test -z "$ac_cpp_err"; then
8171   ac_header_preproc=yes
8172 else
8173   echo "$as_me: failed program was:" >&5
8174   cat conftest.$ac_ext >&5
8175   ac_header_preproc=no
8176 fi
8177 rm -f conftest.err conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179 echo "${ECHO_T}$ac_header_preproc" >&6
8180
8181 # So?  What about this header?
8182 case $ac_header_compiler:$ac_header_preproc in
8183   yes:no )
8184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8188   no:yes )
8189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8191     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8195 esac
8196 echo "$as_me:$LINENO: checking for $ac_header" >&5
8197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8199   echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201   eval "$as_ac_Header=$ac_header_preproc"
8202 fi
8203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8205
8206 fi
8207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8208   cat >>confdefs.h <<_ACEOF
8209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8210 _ACEOF
8211
8212 fi
8213
8214 done
8215
8216
8217
8218
8219 for ac_header in sys/mman.h sys/stat.h sys/types.h
8220 do
8221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8223   echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 fi
8228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8230 else
8231   # Is the header compilable?
8232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 #include "confdefs.h"
8237 $ac_includes_default
8238 #include <$ac_header>
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242   (eval $ac_compile) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } &&
8246          { ac_try='test -s conftest.$ac_objext'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; }; then
8252   ac_header_compiler=yes
8253 else
8254   echo "$as_me: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 ac_header_compiler=no
8257 fi
8258 rm -f conftest.$ac_objext conftest.$ac_ext
8259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8260 echo "${ECHO_T}$ac_header_compiler" >&6
8261
8262 # Is the header present?
8263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8267 #include "confdefs.h"
8268 #include <$ac_header>
8269 _ACEOF
8270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8272   ac_status=$?
8273   egrep -v '^ *\+' conftest.er1 >conftest.err
8274   rm -f conftest.er1
8275   cat conftest.err >&5
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } >/dev/null; then
8278   if test -s conftest.err; then
8279     ac_cpp_err=$ac_c_preproc_warn_flag
8280   else
8281     ac_cpp_err=
8282   fi
8283 else
8284   ac_cpp_err=yes
8285 fi
8286 if test -z "$ac_cpp_err"; then
8287   ac_header_preproc=yes
8288 else
8289   echo "$as_me: failed program was:" >&5
8290   cat conftest.$ac_ext >&5
8291   ac_header_preproc=no
8292 fi
8293 rm -f conftest.err conftest.$ac_ext
8294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8295 echo "${ECHO_T}$ac_header_preproc" >&6
8296
8297 # So?  What about this header?
8298 case $ac_header_compiler:$ac_header_preproc in
8299   yes:no )
8300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8304   no:yes )
8305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8307     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8311 esac
8312 echo "$as_me:$LINENO: checking for $ac_header" >&5
8313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   eval "$as_ac_Header=$ac_header_preproc"
8318 fi
8319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8321
8322 fi
8323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8324   cat >>confdefs.h <<_ACEOF
8325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8326 _ACEOF
8327
8328 fi
8329
8330 done
8331
8332
8333
8334 for ac_header in stdint.h inttypes.h
8335 do
8336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8338   echo "$as_me:$LINENO: checking for $ac_header" >&5
8339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 fi
8343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8345 else
8346   # Is the header compilable?
8347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8351 #include "confdefs.h"
8352 $ac_includes_default
8353 #include <$ac_header>
8354 _ACEOF
8355 rm -f conftest.$ac_objext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8357   (eval $ac_compile) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -s conftest.$ac_objext'
8362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363   (eval $ac_try) 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; }; then
8367   ac_header_compiler=yes
8368 else
8369   echo "$as_me: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8371 ac_header_compiler=no
8372 fi
8373 rm -f conftest.$ac_objext conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8375 echo "${ECHO_T}$ac_header_compiler" >&6
8376
8377 # Is the header present?
8378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8380 cat >conftest.$ac_ext <<_ACEOF
8381 #line $LINENO "configure"
8382 #include "confdefs.h"
8383 #include <$ac_header>
8384 _ACEOF
8385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8387   ac_status=$?
8388   egrep -v '^ *\+' conftest.er1 >conftest.err
8389   rm -f conftest.er1
8390   cat conftest.err >&5
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } >/dev/null; then
8393   if test -s conftest.err; then
8394     ac_cpp_err=$ac_c_preproc_warn_flag
8395   else
8396     ac_cpp_err=
8397   fi
8398 else
8399   ac_cpp_err=yes
8400 fi
8401 if test -z "$ac_cpp_err"; then
8402   ac_header_preproc=yes
8403 else
8404   echo "$as_me: failed program was:" >&5
8405   cat conftest.$ac_ext >&5
8406   ac_header_preproc=no
8407 fi
8408 rm -f conftest.err conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8410 echo "${ECHO_T}$ac_header_preproc" >&6
8411
8412 # So?  What about this header?
8413 case $ac_header_compiler:$ac_header_preproc in
8414   yes:no )
8415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8419   no:yes )
8420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8422     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8426 esac
8427 echo "$as_me:$LINENO: checking for $ac_header" >&5
8428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   eval "$as_ac_Header=$ac_header_preproc"
8433 fi
8434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8436
8437 fi
8438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8439   cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8441 _ACEOF
8442
8443 fi
8444
8445 done
8446
8447
8448 for ac_header in unistd.h
8449 do
8450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8452   echo "$as_me:$LINENO: checking for $ac_header" >&5
8453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 fi
8457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8459 else
8460   # Is the header compilable?
8461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8465 #include "confdefs.h"
8466 $ac_includes_default
8467 #include <$ac_header>
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471   (eval $ac_compile) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); } &&
8475          { ac_try='test -s conftest.$ac_objext'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   ac_header_compiler=yes
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8485 ac_header_compiler=no
8486 fi
8487 rm -f conftest.$ac_objext conftest.$ac_ext
8488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8489 echo "${ECHO_T}$ac_header_compiler" >&6
8490
8491 # Is the header present?
8492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8494 cat >conftest.$ac_ext <<_ACEOF
8495 #line $LINENO "configure"
8496 #include "confdefs.h"
8497 #include <$ac_header>
8498 _ACEOF
8499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8501   ac_status=$?
8502   egrep -v '^ *\+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } >/dev/null; then
8507   if test -s conftest.err; then
8508     ac_cpp_err=$ac_c_preproc_warn_flag
8509   else
8510     ac_cpp_err=
8511   fi
8512 else
8513   ac_cpp_err=yes
8514 fi
8515 if test -z "$ac_cpp_err"; then
8516   ac_header_preproc=yes
8517 else
8518   echo "$as_me: failed program was:" >&5
8519   cat conftest.$ac_ext >&5
8520   ac_header_preproc=no
8521 fi
8522 rm -f conftest.err conftest.$ac_ext
8523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8524 echo "${ECHO_T}$ac_header_preproc" >&6
8525
8526 # So?  What about this header?
8527 case $ac_header_compiler:$ac_header_preproc in
8528   yes:no )
8529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8533   no:yes )
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8540 esac
8541 echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   eval "$as_ac_Header=$ac_header_preproc"
8547 fi
8548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8550
8551 fi
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553   cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 _ACEOF
8556
8557 fi
8558
8559 done
8560
8561
8562 for ac_header in getopt.h
8563 do
8564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566   echo "$as_me:$LINENO: checking for $ac_header" >&5
8567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 fi
8571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8573 else
8574   # Is the header compilable?
8575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8578 #line $LINENO "configure"
8579 #include "confdefs.h"
8580 $ac_includes_default
8581 #include <$ac_header>
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585   (eval $ac_compile) 2>&5
8586   ac_status=$?
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -s conftest.$ac_objext'
8590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591   (eval $ac_try) 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; }; then
8595   ac_header_compiler=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 ac_header_compiler=no
8600 fi
8601 rm -f conftest.$ac_objext conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 echo "${ECHO_T}$ac_header_compiler" >&6
8604
8605 # Is the header present?
8606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8608 cat >conftest.$ac_ext <<_ACEOF
8609 #line $LINENO "configure"
8610 #include "confdefs.h"
8611 #include <$ac_header>
8612 _ACEOF
8613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8615   ac_status=$?
8616   egrep -v '^ *\+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } >/dev/null; then
8621   if test -s conftest.err; then
8622     ac_cpp_err=$ac_c_preproc_warn_flag
8623   else
8624     ac_cpp_err=
8625   fi
8626 else
8627   ac_cpp_err=yes
8628 fi
8629 if test -z "$ac_cpp_err"; then
8630   ac_header_preproc=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633   cat conftest.$ac_ext >&5
8634   ac_header_preproc=no
8635 fi
8636 rm -f conftest.err conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8638 echo "${ECHO_T}$ac_header_preproc" >&6
8639
8640 # So?  What about this header?
8641 case $ac_header_compiler:$ac_header_preproc in
8642   yes:no )
8643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8647   no:yes )
8648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8654 esac
8655 echo "$as_me:$LINENO: checking for $ac_header" >&5
8656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   eval "$as_ac_Header=$ac_header_preproc"
8661 fi
8662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8664
8665 fi
8666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8667   cat >>confdefs.h <<_ACEOF
8668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8669 _ACEOF
8670
8671 fi
8672
8673 done
8674
8675
8676 for ac_header in locale.h
8677 do
8678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8680   echo "$as_me:$LINENO: checking for $ac_header" >&5
8681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 fi
8685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8687 else
8688   # Is the header compilable?
8689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8693 #include "confdefs.h"
8694 $ac_includes_default
8695 #include <$ac_header>
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699   (eval $ac_compile) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } &&
8703          { ac_try='test -s conftest.$ac_objext'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; }; then
8709   ac_header_compiler=yes
8710 else
8711   echo "$as_me: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8713 ac_header_compiler=no
8714 fi
8715 rm -f conftest.$ac_objext conftest.$ac_ext
8716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8717 echo "${ECHO_T}$ac_header_compiler" >&6
8718
8719 # Is the header present?
8720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725 #include <$ac_header>
8726 _ACEOF
8727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8729   ac_status=$?
8730   egrep -v '^ *\+' conftest.er1 >conftest.err
8731   rm -f conftest.er1
8732   cat conftest.err >&5
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } >/dev/null; then
8735   if test -s conftest.err; then
8736     ac_cpp_err=$ac_c_preproc_warn_flag
8737   else
8738     ac_cpp_err=
8739   fi
8740 else
8741   ac_cpp_err=yes
8742 fi
8743 if test -z "$ac_cpp_err"; then
8744   ac_header_preproc=yes
8745 else
8746   echo "$as_me: failed program was:" >&5
8747   cat conftest.$ac_ext >&5
8748   ac_header_preproc=no
8749 fi
8750 rm -f conftest.err conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8752 echo "${ECHO_T}$ac_header_preproc" >&6
8753
8754 # So?  What about this header?
8755 case $ac_header_compiler:$ac_header_preproc in
8756   yes:no )
8757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8761   no:yes )
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8768 esac
8769 echo "$as_me:$LINENO: checking for $ac_header" >&5
8770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772   echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774   eval "$as_ac_Header=$ac_header_preproc"
8775 fi
8776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8778
8779 fi
8780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8781   cat >>confdefs.h <<_ACEOF
8782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8783 _ACEOF
8784
8785 fi
8786
8787 done
8788
8789
8790 for ac_header in utime.h
8791 do
8792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794   echo "$as_me:$LINENO: checking for $ac_header" >&5
8795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 fi
8799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8801 else
8802   # Is the header compilable?
8803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 #include "confdefs.h"
8808 $ac_includes_default
8809 #include <$ac_header>
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813   (eval $ac_compile) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } &&
8817          { ac_try='test -s conftest.$ac_objext'
8818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819   (eval $ac_try) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   ac_header_compiler=yes
8824 else
8825   echo "$as_me: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 ac_header_compiler=no
8828 fi
8829 rm -f conftest.$ac_objext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8831 echo "${ECHO_T}$ac_header_compiler" >&6
8832
8833 # Is the header present?
8834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 #include <$ac_header>
8840 _ACEOF
8841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8843   ac_status=$?
8844   egrep -v '^ *\+' conftest.er1 >conftest.err
8845   rm -f conftest.er1
8846   cat conftest.err >&5
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); } >/dev/null; then
8849   if test -s conftest.err; then
8850     ac_cpp_err=$ac_c_preproc_warn_flag
8851   else
8852     ac_cpp_err=
8853   fi
8854 else
8855   ac_cpp_err=yes
8856 fi
8857 if test -z "$ac_cpp_err"; then
8858   ac_header_preproc=yes
8859 else
8860   echo "$as_me: failed program was:" >&5
8861   cat conftest.$ac_ext >&5
8862   ac_header_preproc=no
8863 fi
8864 rm -f conftest.err conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866 echo "${ECHO_T}$ac_header_preproc" >&6
8867
8868 # So?  What about this header?
8869 case $ac_header_compiler:$ac_header_preproc in
8870   yes:no )
8871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8875   no:yes )
8876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8882 esac
8883 echo "$as_me:$LINENO: checking for $ac_header" >&5
8884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888   eval "$as_ac_Header=$ac_header_preproc"
8889 fi
8890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8892
8893 fi
8894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8895   cat >>confdefs.h <<_ACEOF
8896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8897 _ACEOF
8898
8899 fi
8900
8901 done
8902
8903
8904 for ac_header in sys/utime.h
8905 do
8906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908   echo "$as_me:$LINENO: checking for $ac_header" >&5
8909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8911   echo $ECHO_N "(cached) $ECHO_C" >&6
8912 fi
8913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8915 else
8916   # Is the header compilable?
8917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8919 cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8921 #include "confdefs.h"
8922 $ac_includes_default
8923 #include <$ac_header>
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927   (eval $ac_compile) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } &&
8931          { ac_try='test -s conftest.$ac_objext'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; }; then
8937   ac_header_compiler=yes
8938 else
8939   echo "$as_me: failed program was:" >&5
8940 cat conftest.$ac_ext >&5
8941 ac_header_compiler=no
8942 fi
8943 rm -f conftest.$ac_objext conftest.$ac_ext
8944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8945 echo "${ECHO_T}$ac_header_compiler" >&6
8946
8947 # Is the header present?
8948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8952 #include "confdefs.h"
8953 #include <$ac_header>
8954 _ACEOF
8955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8957   ac_status=$?
8958   egrep -v '^ *\+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } >/dev/null; then
8963   if test -s conftest.err; then
8964     ac_cpp_err=$ac_c_preproc_warn_flag
8965   else
8966     ac_cpp_err=
8967   fi
8968 else
8969   ac_cpp_err=yes
8970 fi
8971 if test -z "$ac_cpp_err"; then
8972   ac_header_preproc=yes
8973 else
8974   echo "$as_me: failed program was:" >&5
8975   cat conftest.$ac_ext >&5
8976   ac_header_preproc=no
8977 fi
8978 rm -f conftest.err conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8980 echo "${ECHO_T}$ac_header_preproc" >&6
8981
8982 # So?  What about this header?
8983 case $ac_header_compiler:$ac_header_preproc in
8984   yes:no )
8985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8989   no:yes )
8990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8992     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8996 esac
8997 echo "$as_me:$LINENO: checking for $ac_header" >&5
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   eval "$as_ac_Header=$ac_header_preproc"
9003 fi
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9006
9007 fi
9008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9009   cat >>confdefs.h <<_ACEOF
9010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9011 _ACEOF
9012
9013 fi
9014
9015 done
9016
9017
9018 for ac_header in wchar.h
9019 do
9020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9022   echo "$as_me:$LINENO: checking for $ac_header" >&5
9023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 fi
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9029 else
9030   # Is the header compilable?
9031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 #include "confdefs.h"
9036 $ac_includes_default
9037 #include <$ac_header>
9038 _ACEOF
9039 rm -f conftest.$ac_objext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041   (eval $ac_compile) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } &&
9045          { ac_try='test -s conftest.$ac_objext'
9046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047   (eval $ac_try) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; }; then
9051   ac_header_compiler=yes
9052 else
9053   echo "$as_me: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9055 ac_header_compiler=no
9056 fi
9057 rm -f conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9059 echo "${ECHO_T}$ac_header_compiler" >&6
9060
9061 # Is the header present?
9062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 #include "confdefs.h"
9067 #include <$ac_header>
9068 _ACEOF
9069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9071   ac_status=$?
9072   egrep -v '^ *\+' conftest.er1 >conftest.err
9073   rm -f conftest.er1
9074   cat conftest.err >&5
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } >/dev/null; then
9077   if test -s conftest.err; then
9078     ac_cpp_err=$ac_c_preproc_warn_flag
9079   else
9080     ac_cpp_err=
9081   fi
9082 else
9083   ac_cpp_err=yes
9084 fi
9085 if test -z "$ac_cpp_err"; then
9086   ac_header_preproc=yes
9087 else
9088   echo "$as_me: failed program was:" >&5
9089   cat conftest.$ac_ext >&5
9090   ac_header_preproc=no
9091 fi
9092 rm -f conftest.err conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9094 echo "${ECHO_T}$ac_header_preproc" >&6
9095
9096 # So?  What about this header?
9097 case $ac_header_compiler:$ac_header_preproc in
9098   yes:no )
9099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9103   no:yes )
9104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9110 esac
9111 echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116   eval "$as_ac_Header=$ac_header_preproc"
9117 fi
9118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9120
9121 fi
9122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9123   cat >>confdefs.h <<_ACEOF
9124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125 _ACEOF
9126
9127 fi
9128
9129 done
9130
9131
9132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
9133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
9135   echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137   ac_cv_prog_cc_stdc=no
9138 ac_save_CC=$CC
9139 cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9141 #include "confdefs.h"
9142 #include <stdarg.h>
9143 #include <stdio.h>
9144 #include <sys/types.h>
9145 #include <sys/stat.h>
9146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
9147 struct buf { int x; };
9148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9149 static char *e (p, i)
9150      char **p;
9151      int i;
9152 {
9153   return p[i];
9154 }
9155 static char *f (char * (*g) (char **, int), char **p, ...)
9156 {
9157   char *s;
9158   va_list v;
9159   va_start (v,p);
9160   s = g (p, va_arg (v,int));
9161   va_end (v);
9162   return s;
9163 }
9164 int test (int i, double x);
9165 struct s1 {int (*f) (int a);};
9166 struct s2 {int (*f) (double a);};
9167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9168 int argc;
9169 char **argv;
9170 #ifdef F77_DUMMY_MAIN
9171 #  ifdef __cplusplus
9172      extern "C"
9173 #  endif
9174    int F77_DUMMY_MAIN() { return 1; }
9175 #endif
9176 int
9177 main ()
9178 {
9179 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 # Don't try gcc -ansi; that turns off useful extensions and
9185 # breaks some systems' header files.
9186 # AIX                   -qlanglvl=ansi
9187 # Ultrix and OSF/1      -std1
9188 # HP-UX 10.20 and later -Ae
9189 # HP-UX older versions  -Aa -D_HPUX_SOURCE
9190 # SVR4                  -Xc -D__EXTENSIONS__
9191 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9192 do
9193   CC="$ac_save_CC $ac_arg"
9194   rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196   (eval $ac_compile) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); } &&
9200          { ac_try='test -s conftest.$ac_objext'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; }; then
9206   ac_cv_prog_cc_stdc=$ac_arg
9207 break
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9211 fi
9212 rm -f conftest.$ac_objext
9213 done
9214 rm -f conftest.$ac_ext conftest.$ac_objext
9215 CC=$ac_save_CC
9216
9217 fi
9218
9219 case "x$ac_cv_prog_cc_stdc" in
9220   x|xno)
9221     echo "$as_me:$LINENO: result: none needed" >&5
9222 echo "${ECHO_T}none needed" >&6 ;;
9223   *)
9224     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
9225 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9226     CC="$CC $ac_cv_prog_cc_stdc" ;;
9227 esac
9228
9229 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9230 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9231 if test "${ac_cv_c_const+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9236 #include "confdefs.h"
9237
9238 #ifdef F77_DUMMY_MAIN
9239 #  ifdef __cplusplus
9240      extern "C"
9241 #  endif
9242    int F77_DUMMY_MAIN() { return 1; }
9243 #endif
9244 int
9245 main ()
9246 {
9247 /* FIXME: Include the comments suggested by Paul. */
9248 #ifndef __cplusplus
9249   /* Ultrix mips cc rejects this.  */
9250   typedef int charset[2];
9251   const charset x;
9252   /* SunOS 4.1.1 cc rejects this.  */
9253   char const *const *ccp;
9254   char **p;
9255   /* NEC SVR4.0.2 mips cc rejects this.  */
9256   struct point {int x, y;};
9257   static struct point const zero = {0,0};
9258   /* AIX XL C 1.02.0.0 rejects this.
9259      It does not let you subtract one const X* pointer from another in
9260      an arm of an if-expression whose if-part is not a constant
9261      expression */
9262   const char *g = "string";
9263   ccp = &g + (g ? g-g : 0);
9264   /* HPUX 7.0 cc rejects these. */
9265   ++ccp;
9266   p = (char**) ccp;
9267   ccp = (char const *const *) p;
9268   { /* SCO 3.2v4 cc rejects this.  */
9269     char *t;
9270     char const *s = 0 ? (char *) 0 : (char const *) 0;
9271
9272     *t++ = 0;
9273   }
9274   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9275     int x[] = {25, 17};
9276     const int *foo = &x[0];
9277     ++foo;
9278   }
9279   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9280     typedef const int *iptr;
9281     iptr p = 0;
9282     ++p;
9283   }
9284   { /* AIX XL C 1.02.0.0 rejects this saying
9285        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9286     struct s { int j; const int *ap[3]; };
9287     struct s *b; b->j = 5;
9288   }
9289   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9290     const int foo = 10;
9291   }
9292 #endif
9293
9294   ;
9295   return 0;
9296 }
9297 _ACEOF
9298 rm -f conftest.$ac_objext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9300   (eval $ac_compile) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } &&
9304          { ac_try='test -s conftest.$ac_objext'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; }; then
9310   ac_cv_c_const=yes
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314 ac_cv_c_const=no
9315 fi
9316 rm -f conftest.$ac_objext conftest.$ac_ext
9317 fi
9318 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9319 echo "${ECHO_T}$ac_cv_c_const" >&6
9320 if test $ac_cv_c_const = no; then
9321
9322 cat >>confdefs.h <<\_ACEOF
9323 #define const
9324 _ACEOF
9325
9326 fi
9327
9328 echo "$as_me:$LINENO: checking for off_t" >&5
9329 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9330 if test "${ac_cv_type_off_t+set}" = set; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333   cat >conftest.$ac_ext <<_ACEOF
9334 #line $LINENO "configure"
9335 #include "confdefs.h"
9336 $ac_includes_default
9337 #ifdef F77_DUMMY_MAIN
9338 #  ifdef __cplusplus
9339      extern "C"
9340 #  endif
9341    int F77_DUMMY_MAIN() { return 1; }
9342 #endif
9343 int
9344 main ()
9345 {
9346 if ((off_t *) 0)
9347   return 0;
9348 if (sizeof (off_t))
9349   return 0;
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 rm -f conftest.$ac_objext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356   (eval $ac_compile) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); } &&
9360          { ac_try='test -s conftest.$ac_objext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_type_off_t=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9370 ac_cv_type_off_t=no
9371 fi
9372 rm -f conftest.$ac_objext conftest.$ac_ext
9373 fi
9374 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9375 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9376 if test $ac_cv_type_off_t = yes; then
9377   :
9378 else
9379
9380 cat >>confdefs.h <<_ACEOF
9381 #define off_t long
9382 _ACEOF
9383
9384 fi
9385
9386 echo "$as_me:$LINENO: checking for size_t" >&5
9387 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9388 if test "${ac_cv_type_size_t+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9393 #include "confdefs.h"
9394 $ac_includes_default
9395 #ifdef F77_DUMMY_MAIN
9396 #  ifdef __cplusplus
9397      extern "C"
9398 #  endif
9399    int F77_DUMMY_MAIN() { return 1; }
9400 #endif
9401 int
9402 main ()
9403 {
9404 if ((size_t *) 0)
9405   return 0;
9406 if (sizeof (size_t))
9407   return 0;
9408   ;
9409   return 0;
9410 }
9411 _ACEOF
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414   (eval $ac_compile) 2>&5
9415   ac_status=$?
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); } &&
9418          { ac_try='test -s conftest.$ac_objext'
9419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420   (eval $ac_try) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); }; }; then
9424   ac_cv_type_size_t=yes
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9428 ac_cv_type_size_t=no
9429 fi
9430 rm -f conftest.$ac_objext conftest.$ac_ext
9431 fi
9432 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9433 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9434 if test $ac_cv_type_size_t = yes; then
9435   :
9436 else
9437
9438 cat >>confdefs.h <<_ACEOF
9439 #define size_t unsigned
9440 _ACEOF
9441
9442 fi
9443
9444
9445 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
9446 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
9447 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   cat >conftest.$ac_ext <<_ACEOF
9451 #line $LINENO "configure"
9452 #include "confdefs.h"
9453 $ac_includes_default
9454 #ifdef F77_DUMMY_MAIN
9455 #  ifdef __cplusplus
9456      extern "C"
9457 #  endif
9458    int F77_DUMMY_MAIN() { return 1; }
9459 #endif
9460 int
9461 main ()
9462 {
9463 static struct stat ac_aggr;
9464 if (ac_aggr.st_rdev)
9465 return 0;
9466   ;
9467   return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472   (eval $ac_compile) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -s conftest.$ac_objext'
9477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478   (eval $ac_try) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; }; then
9482   ac_cv_member_struct_stat_st_rdev=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9486 ac_cv_member_struct_stat_st_rdev=no
9487 fi
9488 rm -f conftest.$ac_objext conftest.$ac_ext
9489 fi
9490 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
9491 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
9492 if test $ac_cv_member_struct_stat_st_rdev = yes; then
9493
9494 cat >>confdefs.h <<_ACEOF
9495 #define HAVE_STRUCT_STAT_ST_RDEV 1
9496 _ACEOF
9497
9498
9499 cat >>confdefs.h <<\_ACEOF
9500 #define HAVE_ST_RDEV 1
9501 _ACEOF
9502
9503 fi
9504
9505
9506 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9508 if test "${ac_cv_struct_tm+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 #include <sys/types.h>
9515 #include <time.h>
9516
9517 #ifdef F77_DUMMY_MAIN
9518 #  ifdef __cplusplus
9519      extern "C"
9520 #  endif
9521    int F77_DUMMY_MAIN() { return 1; }
9522 #endif
9523 int
9524 main ()
9525 {
9526 struct tm *tp; tp->tm_sec;
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest.$ac_objext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533   (eval $ac_compile) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } &&
9537          { ac_try='test -s conftest.$ac_objext'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; }; then
9543   ac_cv_struct_tm=time.h
9544 else
9545   echo "$as_me: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 ac_cv_struct_tm=sys/time.h
9548 fi
9549 rm -f conftest.$ac_objext conftest.$ac_ext
9550 fi
9551 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9552 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9553 if test $ac_cv_struct_tm = sys/time.h; then
9554
9555 cat >>confdefs.h <<\_ACEOF
9556 #define TM_IN_SYS_TIME 1
9557 _ACEOF
9558
9559 fi
9560
9561 echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
9562 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
9563 if test "${ac_cv_struct_tm_zone+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9568 #include "confdefs.h"
9569 #include <sys/types.h>
9570 #include <$ac_cv_struct_tm>
9571 #ifdef F77_DUMMY_MAIN
9572 #  ifdef __cplusplus
9573      extern "C"
9574 #  endif
9575    int F77_DUMMY_MAIN() { return 1; }
9576 #endif
9577 int
9578 main ()
9579 {
9580 struct tm tm; tm.tm_zone;
9581   ;
9582   return 0;
9583 }
9584 _ACEOF
9585 rm -f conftest.$ac_objext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9587   (eval $ac_compile) 2>&5
9588   ac_status=$?
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } &&
9591          { ac_try='test -s conftest.$ac_objext'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; }; then
9597   ac_cv_struct_tm_zone=yes
9598 else
9599   echo "$as_me: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9601 ac_cv_struct_tm_zone=no
9602 fi
9603 rm -f conftest.$ac_objext conftest.$ac_ext
9604 fi
9605 echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
9606 echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6
9607 if test "$ac_cv_struct_tm_zone" = yes; then
9608
9609 cat >>confdefs.h <<\_ACEOF
9610 #define HAVE_TM_ZONE 1
9611 _ACEOF
9612
9613 fi
9614 echo "$as_me:$LINENO: checking for tzname" >&5
9615 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9616 if test "${ac_cv_var_tzname+set}" = set; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 #include "confdefs.h"
9622 #include <time.h>
9623 #ifndef tzname /* For SGI.  */
9624 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9625 #endif
9626 #ifdef F77_DUMMY_MAIN
9627 #  ifdef __cplusplus
9628      extern "C"
9629 #  endif
9630    int F77_DUMMY_MAIN() { return 1; }
9631 #endif
9632 int
9633 main ()
9634 {
9635 atoi(*tzname);
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642   (eval $ac_link) 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } &&
9646          { ac_try='test -s conftest$ac_exeext'
9647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648   (eval $ac_try) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; }; then
9652   ac_cv_var_tzname=yes
9653 else
9654   echo "$as_me: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 ac_cv_var_tzname=no
9657 fi
9658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9659 fi
9660 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9661 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9662   if test $ac_cv_var_tzname = yes; then
9663
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_TZNAME 1
9666 _ACEOF
9667
9668   fi
9669
9670 echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
9671 echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6
9672 if test "${ac_cv_struct_tm_isdst+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675   cat >conftest.$ac_ext <<_ACEOF
9676 #line $LINENO "configure"
9677 #include "confdefs.h"
9678 #include <sys/types.h>
9679 #include <$ac_cv_struct_tm>
9680 #ifdef F77_DUMMY_MAIN
9681 #  ifdef __cplusplus
9682      extern "C"
9683 #  endif
9684    int F77_DUMMY_MAIN() { return 1; }
9685 #endif
9686 int
9687 main ()
9688 {
9689 struct tm tm; tm.tm_isdst;
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696   (eval $ac_compile) 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } &&
9700          { ac_try='test -s conftest.$ac_objext'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; }; then
9706   ac_cv_struct_tm_isdst=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 ac_cv_struct_tm_isdst=no
9711 fi
9712 rm -f conftest.$ac_objext conftest.$ac_ext
9713 fi
9714 echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
9715 echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6
9716 if test "$ac_cv_struct_tm_isdst" = yes; then
9717   cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_TM_ISDST 1
9719 _ACEOF
9720
9721 fi
9722 echo "$as_me:$LINENO: checking for daylight" >&5
9723 echo $ECHO_N "checking for daylight... $ECHO_C" >&6
9724 if test "${ac_cv_var_daylight+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   cat >conftest.$ac_ext <<_ACEOF
9728 #line $LINENO "configure"
9729 #include "confdefs.h"
9730 #include <time.h>
9731 #ifndef daylight /* In case IRIX #defines this, too  */
9732 extern int daylight;
9733 #endif
9734 #ifdef F77_DUMMY_MAIN
9735 #  ifdef __cplusplus
9736      extern "C"
9737 #  endif
9738    int F77_DUMMY_MAIN() { return 1; }
9739 #endif
9740 int
9741 main ()
9742 {
9743 atoi(daylight);
9744   ;
9745   return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750   (eval $ac_link) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } &&
9754          { ac_try='test -s conftest$ac_exeext'
9755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756   (eval $ac_try) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }; }; then
9760   ac_cv_var_daylight=yes
9761 else
9762   echo "$as_me: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 ac_cv_var_daylight=no
9765 fi
9766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9767 fi
9768 echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
9769 echo "${ECHO_T}$ac_cv_var_daylight" >&6
9770   if test $ac_cv_var_daylight = yes; then
9771     cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_DAYLIGHT 1
9773 _ACEOF
9774
9775   fi
9776
9777
9778    # Check whether --enable-largefile or --disable-largefile was given.
9779 if test "${enable_largefile+set}" = set; then
9780   enableval="$enable_largefile"
9781
9782 fi;
9783    if test "$enable_largefile" != no; then
9784
9785      echo "$as_me:$LINENO: checking for special C compiler options needed for large files=
9786 " >&5
9787 echo $ECHO_N "checking for special C compiler options needed for large files=
9788 ... $ECHO_C" >&6
9789 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9790   echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792   ac_cv_sys_largefile_CC=no
9793         if test "$GCC" != yes; then
9794           # IRIX 6.2 and later do not support large files by default,
9795           # so use the C compiler's -n32 option if that helps.
9796           cat >conftest.$ac_ext <<_ACEOF
9797 #line $LINENO "configure"
9798 #include "confdefs.h"
9799 #include <sys/types.h>
9800     /* Check that off_t can represent 2**63 - 1 correctly.
9801        We can't simply "#define LARGE_OFF_T 9223372036854775807",
9802        since some C++ compilers masquerading as C compilers
9803        incorrectly reject 9223372036854775807.  */
9804 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9805     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9806                         && LARGE_OFF_T % 2147483647 == 1)
9807                        ? 1 : -1];
9808
9809 #ifdef F77_DUMMY_MAIN
9810 #  ifdef __cplusplus
9811      extern "C"
9812 #  endif
9813    int F77_DUMMY_MAIN() { return 1; }
9814 #endif
9815 int
9816 main ()
9817 {
9818
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9825   (eval $ac_compile) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -s conftest.$ac_objext'
9830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831   (eval $ac_try) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; }; then
9835   :
9836 else
9837   echo "$as_me: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 ac_save_CC="$CC"
9840              CC="$CC -n32"
9841              cat >conftest.$ac_ext <<_ACEOF
9842 #line $LINENO "configure"
9843 #include "confdefs.h"
9844 #include <sys/types.h>
9845     /* Check that off_t can represent 2**63 - 1 correctly.
9846        We can't simply "#define LARGE_OFF_T 9223372036854775807",
9847        since some C++ compilers masquerading as C compilers
9848        incorrectly reject 9223372036854775807.  */
9849 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9850     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9851                         && LARGE_OFF_T % 2147483647 == 1)
9852                        ? 1 : -1];
9853
9854 #ifdef F77_DUMMY_MAIN
9855 #  ifdef __cplusplus
9856      extern "C"
9857 #  endif
9858    int F77_DUMMY_MAIN() { return 1; }
9859 #endif
9860 int
9861 main ()
9862 {
9863
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 rm -f conftest.$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870   (eval $ac_compile) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -s conftest.$ac_objext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_cv_sys_largefile_CC=' -n32'
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 fi
9885 rm -f conftest.$ac_objext conftest.$ac_ext
9886              CC="$ac_save_CC"
9887 fi
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9889         fi
9890 fi
9891 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9892 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9893      if test "$ac_cv_sys_largefile_CC" != no; then
9894        CC="$CC$ac_cv_sys_largefile_CC"
9895      fi
9896
9897      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9898 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9899 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   ac_cv_sys_file_offset_bits=no
9903       cat >conftest.$ac_ext <<_ACEOF
9904 #line $LINENO "configure"
9905 #include "confdefs.h"
9906 #include <sys/types.h>
9907     /* Check that off_t can represent 2**63 - 1 correctly.
9908        We can't simply "#define LARGE_OFF_T 9223372036854775807",
9909        since some C++ compilers masquerading as C compilers
9910        incorrectly reject 9223372036854775807.  */
9911 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9912     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9913                         && LARGE_OFF_T % 2147483647 == 1)
9914                        ? 1 : -1];
9915
9916 #ifdef F77_DUMMY_MAIN
9917 #  ifdef __cplusplus
9918      extern "C"
9919 #  endif
9920    int F77_DUMMY_MAIN() { return 1; }
9921 #endif
9922 int
9923 main ()
9924 {
9925
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9932   (eval $ac_compile) 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); } &&
9936          { ac_try='test -s conftest.$ac_objext'
9937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938   (eval $ac_try) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); }; }; then
9942   :
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 cat >conftest.$ac_ext <<_ACEOF
9947 #line $LINENO "configure"
9948 #include "confdefs.h"
9949 #define _FILE_OFFSET_BITS 64
9950 #include <sys/types.h>
9951     /* Check that off_t can represent 2**63 - 1 correctly.
9952        We can't simply "#define LARGE_OFF_T 9223372036854775807",
9953        since some C++ compilers masquerading as C compilers
9954        incorrectly reject 9223372036854775807.  */
9955 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9956     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9957                         && LARGE_OFF_T % 2147483647 == 1)
9958                        ? 1 : -1];
9959
9960
9961 #ifdef F77_DUMMY_MAIN
9962 #  ifdef __cplusplus
9963      extern "C"
9964 #  endif
9965    int F77_DUMMY_MAIN() { return 1; }
9966 #endif
9967 int
9968 main ()
9969 {
9970
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest.$ac_objext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9977   (eval $ac_compile) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } &&
9981          { ac_try='test -s conftest.$ac_objext'
9982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983   (eval $ac_try) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; }; then
9987   ac_cv_sys_file_offset_bits=64
9988 else
9989   echo "$as_me: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 fi
9992 rm -f conftest.$ac_objext conftest.$ac_ext
9993 fi
9994 rm -f conftest.$ac_objext conftest.$ac_ext
9995 fi
9996 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9997 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9998    if test "$ac_cv_sys_file_offset_bits" != no; then
9999
10000 cat >>confdefs.h <<_ACEOF
10001 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10002 _ACEOF
10003
10004    fi
10005      echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10006 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10007 if test "${ac_cv_sys_large_files+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   ac_cv_sys_large_files=no
10011       cat >conftest.$ac_ext <<_ACEOF
10012 #line $LINENO "configure"
10013 #include "confdefs.h"
10014 #include <sys/types.h>
10015     /* Check that off_t can represent 2**63 - 1 correctly.
10016        We can't simply "#define LARGE_OFF_T 9223372036854775807",
10017        since some C++ compilers masquerading as C compilers
10018        incorrectly reject 9223372036854775807.  */
10019 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10020     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10021                         && LARGE_OFF_T % 2147483647 == 1)
10022                        ? 1 : -1];
10023
10024 #ifdef F77_DUMMY_MAIN
10025 #  ifdef __cplusplus
10026      extern "C"
10027 #  endif
10028    int F77_DUMMY_MAIN() { return 1; }
10029 #endif
10030 int
10031 main ()
10032 {
10033
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 rm -f conftest.$ac_objext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10040   (eval $ac_compile) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); } &&
10044          { ac_try='test -s conftest.$ac_objext'
10045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046   (eval $ac_try) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; }; then
10050   :
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 cat >conftest.$ac_ext <<_ACEOF
10055 #line $LINENO "configure"
10056 #include "confdefs.h"
10057 #define _LARGE_FILES 1
10058 #include <sys/types.h>
10059     /* Check that off_t can represent 2**63 - 1 correctly.
10060        We can't simply "#define LARGE_OFF_T 9223372036854775807",
10061        since some C++ compilers masquerading as C compilers
10062        incorrectly reject 9223372036854775807.  */
10063 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10064     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10065                         && LARGE_OFF_T % 2147483647 == 1)
10066                        ? 1 : -1];
10067
10068
10069 #ifdef F77_DUMMY_MAIN
10070 #  ifdef __cplusplus
10071      extern "C"
10072 #  endif
10073    int F77_DUMMY_MAIN() { return 1; }
10074 #endif
10075 int
10076 main ()
10077 {
10078
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085   (eval $ac_compile) 2>&5
10086   ac_status=$?
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -s conftest.$ac_objext'
10090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091   (eval $ac_try) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; }; then
10095   ac_cv_sys_large_files=1
10096 else
10097   echo "$as_me: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10099 fi
10100 rm -f conftest.$ac_objext conftest.$ac_ext
10101 fi
10102 rm -f conftest.$ac_objext conftest.$ac_ext
10103 fi
10104 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10105 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10106    if test "$ac_cv_sys_large_files" != no; then
10107
10108 cat >>confdefs.h <<_ACEOF
10109 #define _LARGE_FILES $ac_cv_sys_large_files
10110 _ACEOF
10111
10112    fi
10113    fi
10114
10115
10116
10117 for ac_header in stdlib.h
10118 do
10119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10121   echo "$as_me:$LINENO: checking for $ac_header" >&5
10122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 fi
10126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10128 else
10129   # Is the header compilable?
10130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10132 cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 #include "confdefs.h"
10135 $ac_includes_default
10136 #include <$ac_header>
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140   (eval $ac_compile) 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -s conftest.$ac_objext'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; }; then
10150   ac_header_compiler=yes
10151 else
10152   echo "$as_me: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 ac_header_compiler=no
10155 fi
10156 rm -f conftest.$ac_objext conftest.$ac_ext
10157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10158 echo "${ECHO_T}$ac_header_compiler" >&6
10159
10160 # Is the header present?
10161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10163 cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 #include "confdefs.h"
10166 #include <$ac_header>
10167 _ACEOF
10168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10170   ac_status=$?
10171   egrep -v '^ *\+' conftest.er1 >conftest.err
10172   rm -f conftest.er1
10173   cat conftest.err >&5
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } >/dev/null; then
10176   if test -s conftest.err; then
10177     ac_cpp_err=$ac_c_preproc_warn_flag
10178   else
10179     ac_cpp_err=
10180   fi
10181 else
10182   ac_cpp_err=yes
10183 fi
10184 if test -z "$ac_cpp_err"; then
10185   ac_header_preproc=yes
10186 else
10187   echo "$as_me: failed program was:" >&5
10188   cat conftest.$ac_ext >&5
10189   ac_header_preproc=no
10190 fi
10191 rm -f conftest.err conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10193 echo "${ECHO_T}$ac_header_preproc" >&6
10194
10195 # So?  What about this header?
10196 case $ac_header_compiler:$ac_header_preproc in
10197   yes:no )
10198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10202   no:yes )
10203     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10205     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10209 esac
10210 echo "$as_me:$LINENO: checking for $ac_header" >&5
10211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   eval "$as_ac_Header=$ac_header_preproc"
10216 fi
10217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10219
10220 fi
10221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10222   cat >>confdefs.h <<_ACEOF
10223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10224 _ACEOF
10225
10226 fi
10227
10228 done
10229
10230
10231    echo "$as_me:$LINENO: checking for mbstate_t" >&5
10232 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
10233 if test "${ac_cv_type_mbstate_t+set}" = set; then
10234   echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236   cat >conftest.$ac_ext <<_ACEOF
10237 #line $LINENO "configure"
10238 #include "confdefs.h"
10239
10240 #if HAVE_STDLIB_H
10241 # include <stdlib.h>
10242 #endif
10243 #include <wchar.h>
10244 #ifdef F77_DUMMY_MAIN
10245 #  ifdef __cplusplus
10246      extern "C"
10247 #  endif
10248    int F77_DUMMY_MAIN() { return 1; }
10249 #endif
10250 int
10251 main ()
10252 {
10253 mbstate_t x; return sizeof x;
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260   (eval $ac_compile) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } &&
10264          { ac_try='test -s conftest.$ac_objext'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   ac_cv_type_mbstate_t=yes
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10274 ac_cv_type_mbstate_t=no
10275 fi
10276 rm -f conftest.$ac_objext conftest.$ac_ext
10277 fi
10278 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
10279 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
10280    if test $ac_cv_type_mbstate_t = no; then
10281
10282 cat >>confdefs.h <<\_ACEOF
10283 #define mbstate_t int
10284 _ACEOF
10285
10286    fi
10287
10288 echo "$as_me:$LINENO: checking for uint8_t" >&5
10289 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
10290 if test "${ac_cv_type_uint8_t+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   cat >conftest.$ac_ext <<_ACEOF
10294 #line $LINENO "configure"
10295 #include "confdefs.h"
10296 #if HAVE_STDINT_H
10297 #include <stdint.h>
10298 #endif
10299 #include <sys/types.h>
10300 #if STDC_HEADERS
10301 #include <stdlib.h>
10302 #include <stddef.h>
10303 #endif
10304 _ACEOF
10305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10306   egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10307   ac_cv_type_uint8_t=yes
10308 else
10309   ac_cv_type_uint8_t=no
10310 fi
10311 rm -f conftest*
10312
10313 fi
10314 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
10315 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
10316 if test $ac_cv_type_uint8_t = no; then
10317   cat >>confdefs.h <<\_ACEOF
10318 #define uint8_t unsigned char
10319 _ACEOF
10320
10321 fi
10322
10323 echo "$as_me:$LINENO: checking for uint16_t" >&5
10324 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
10325 if test "${ac_cv_type_uint16_t+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   cat >conftest.$ac_ext <<_ACEOF
10329 #line $LINENO "configure"
10330 #include "confdefs.h"
10331 #if HAVE_STDINT_H
10332 #include <stdint.h>
10333 #endif
10334 #include <sys/types.h>
10335 #if STDC_HEADERS
10336 #include <stdlib.h>
10337 #include <stddef.h>
10338 #endif
10339 _ACEOF
10340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10341   egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10342   ac_cv_type_uint16_t=yes
10343 else
10344   ac_cv_type_uint16_t=no
10345 fi
10346 rm -f conftest*
10347
10348 fi
10349 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
10350 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
10351 if test $ac_cv_type_uint16_t = no; then
10352   cat >>confdefs.h <<\_ACEOF
10353 #define uint16_t unsigned short
10354 _ACEOF
10355
10356 fi
10357
10358 echo "$as_me:$LINENO: checking for uint32_t" >&5
10359 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
10360 if test "${ac_cv_type_uint32_t+set}" = set; then
10361   echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363   cat >conftest.$ac_ext <<_ACEOF
10364 #line $LINENO "configure"
10365 #include "confdefs.h"
10366 #if HAVE_STDINT_H
10367 #include <stdint.h>
10368 #endif
10369 #include <sys/types.h>
10370 #if STDC_HEADERS
10371 #include <stdlib.h>
10372 #include <stddef.h>
10373 #endif
10374 _ACEOF
10375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10376   egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10377   ac_cv_type_uint32_t=yes
10378 else
10379   ac_cv_type_uint32_t=no
10380 fi
10381 rm -f conftest*
10382
10383 fi
10384 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
10385 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
10386 if test $ac_cv_type_uint32_t = no; then
10387   cat >>confdefs.h <<\_ACEOF
10388 #define uint32_t unsigned int
10389 _ACEOF
10390
10391 fi
10392
10393 echo "$as_me:$LINENO: checking for int32_t" >&5
10394 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10395 if test "${ac_cv_type_int32_t+set}" = set; then
10396   echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398   cat >conftest.$ac_ext <<_ACEOF
10399 #line $LINENO "configure"
10400 #include "confdefs.h"
10401 #if HAVE_STDINT_H
10402 #include <stdint.h>
10403 #endif
10404 #include <sys/types.h>
10405 #if STDC_HEADERS
10406 #include <stdlib.h>
10407 #include <stddef.h>
10408 #endif
10409 _ACEOF
10410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10411   egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10412   ac_cv_type_int32_t=yes
10413 else
10414   ac_cv_type_int32_t=no
10415 fi
10416 rm -f conftest*
10417
10418 fi
10419 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10420 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10421 if test $ac_cv_type_int32_t = no; then
10422   cat >>confdefs.h <<\_ACEOF
10423 #define int32_t int
10424 _ACEOF
10425
10426 fi
10427
10428 echo "$as_me:$LINENO: checking for long long" >&5
10429 echo $ECHO_N "checking for long long... $ECHO_C" >&6
10430 if test "${ac_cv_c_long_long+set}" = set; then
10431   echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433   if test "$GCC" = yes; then
10434   ac_cv_c_long_long=yes
10435 else
10436 if test "$cross_compiling" = yes; then
10437   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10438 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10439    { (exit 1); exit 1; }; }
10440 else
10441   cat >conftest.$ac_ext <<_ACEOF
10442 #line $LINENO "configure"
10443 #include "confdefs.h"
10444 int main() {
10445 long long foo = 0;
10446 exit(sizeof(long long) < sizeof(long)); }
10447 _ACEOF
10448 rm -f conftest$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450   (eval $ac_link) 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455   (eval $ac_try) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; }; then
10459   ac_cv_c_long_long=yes
10460 else
10461   echo "$as_me: program exited with status $ac_status" >&5
10462 echo "$as_me: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 ( exit $ac_status )
10465 ac_cv_c_long_long=no
10466 fi
10467 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10468 fi
10469 fi
10470 fi
10471 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
10472 echo "${ECHO_T}$ac_cv_c_long_long" >&6
10473 if test $ac_cv_c_long_long = yes; then
10474   cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_LONG_LONG 1
10476 _ACEOF
10477
10478 fi
10479
10480 if test $ac_cv_c_long_long = yes; then
10481   long64='unsigned long long';
10482 else
10483   long64='unsigned long';
10484 fi
10485 echo "$as_me:$LINENO: checking for uint64_t" >&5
10486 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
10487 if test "${ac_cv_type_uint64_t+set}" = set; then
10488   echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490   cat >conftest.$ac_ext <<_ACEOF
10491 #line $LINENO "configure"
10492 #include "confdefs.h"
10493 #if HAVE_STDINT_H
10494 #include <stdint.h>
10495 #endif
10496 #include <sys/types.h>
10497 #if STDC_HEADERS
10498 #include <stdlib.h>
10499 #include <stddef.h>
10500 #endif
10501 _ACEOF
10502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10503   egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10504   eval "ac_cv_type_uint64_t=yes"
10505 else
10506   eval "ac_cv_type_uint64_t=no"
10507 fi
10508 rm -f conftest*
10509
10510 fi
10511 if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
10512   echo "$as_me:$LINENO: result: yes" >&5
10513 echo "${ECHO_T}yes" >&6
10514 else
10515   echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6
10517   cat >>confdefs.h <<_ACEOF
10518 #define uint64_t $long64
10519 _ACEOF
10520
10521 fi
10522
10523
10524 echo "$as_me:$LINENO: checking size of uint8_t" >&5
10525 echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6
10526 if test "${ac_cv_sizeof_uint8_t+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   if test "$cross_compiling" = yes; then
10530   ac_cv_sizeof_uint8_t=0
10531 else
10532   cat >conftest.$ac_ext <<_ACEOF
10533 #line $LINENO "configure"
10534 #include "confdefs.h"
10535 #if HAVE_STDINT_H
10536 #include <stdint.h>
10537 #endif
10538 #include <sys/types.h>
10539 #ifdef STDC_HEADERS
10540 #include <stdlib.h>
10541 #endif
10542
10543 #include <stdio.h>
10544 main()
10545 {
10546   FILE *f=fopen("conftestval", "w");
10547   if (!f) exit(1);
10548   fprintf(f, "%d\n", sizeof(uint8_t));
10549   exit(0);
10550 }
10551 _ACEOF
10552 rm -f conftest$ac_exeext
10553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554   (eval $ac_link) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563   ac_cv_sizeof_uint8_t=`cat conftestval`
10564 else
10565   echo "$as_me: program exited with status $ac_status" >&5
10566 echo "$as_me: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10568 ( exit $ac_status )
10569 ac_cv_sizeof_uint8_t=0
10570 fi
10571 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10572 fi
10573 fi
10574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
10575 echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6
10576 cat >>confdefs.h <<_ACEOF
10577 #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
10578 _ACEOF
10579
10580
10581
10582 echo "$as_me:$LINENO: checking size of uint16_t" >&5
10583 echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6
10584 if test "${ac_cv_sizeof_uint16_t+set}" = set; then
10585   echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587   if test "$cross_compiling" = yes; then
10588   ac_cv_sizeof_uint16_t=0
10589 else
10590   cat >conftest.$ac_ext <<_ACEOF
10591 #line $LINENO "configure"
10592 #include "confdefs.h"
10593 #if HAVE_STDINT_H
10594 #include <stdint.h>
10595 #endif
10596 #include <sys/types.h>
10597 #ifdef STDC_HEADERS
10598 #include <stdlib.h>
10599 #endif
10600
10601 #include <stdio.h>
10602 main()
10603 {
10604   FILE *f=fopen("conftestval", "w");
10605   if (!f) exit(1);
10606   fprintf(f, "%d\n", sizeof(uint16_t));
10607   exit(0);
10608 }
10609 _ACEOF
10610 rm -f conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612   (eval $ac_link) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   ac_cv_sizeof_uint16_t=`cat conftestval`
10622 else
10623   echo "$as_me: program exited with status $ac_status" >&5
10624 echo "$as_me: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 ( exit $ac_status )
10627 ac_cv_sizeof_uint16_t=0
10628 fi
10629 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10630 fi
10631 fi
10632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
10633 echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6
10634 cat >>confdefs.h <<_ACEOF
10635 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
10636 _ACEOF
10637
10638
10639
10640 echo "$as_me:$LINENO: checking size of uint32_t" >&5
10641 echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6
10642 if test "${ac_cv_sizeof_uint32_t+set}" = set; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645   if test "$cross_compiling" = yes; then
10646   ac_cv_sizeof_uint32_t=0
10647 else
10648   cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 #include "confdefs.h"
10651 #if HAVE_STDINT_H
10652 #include <stdint.h>
10653 #endif
10654 #include <sys/types.h>
10655 #ifdef STDC_HEADERS
10656 #include <stdlib.h>
10657 #endif
10658
10659 #include <stdio.h>
10660 main()
10661 {
10662   FILE *f=fopen("conftestval", "w");
10663   if (!f) exit(1);
10664   fprintf(f, "%d\n", sizeof(uint32_t));
10665   exit(0);
10666 }
10667 _ACEOF
10668 rm -f conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670   (eval $ac_link) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; }; then
10679   ac_cv_sizeof_uint32_t=`cat conftestval`
10680 else
10681   echo "$as_me: program exited with status $ac_status" >&5
10682 echo "$as_me: failed program was:" >&5
10683 cat conftest.$ac_ext >&5
10684 ( exit $ac_status )
10685 ac_cv_sizeof_uint32_t=0
10686 fi
10687 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10688 fi
10689 fi
10690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
10691 echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6
10692 cat >>confdefs.h <<_ACEOF
10693 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
10694 _ACEOF
10695
10696
10697
10698 echo "$as_me:$LINENO: checking size of uint64_t" >&5
10699 echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
10700 if test "${ac_cv_sizeof_uint64_t+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   if test "$cross_compiling" = yes; then
10704   ac_cv_sizeof_uint64_t=0
10705 else
10706   cat >conftest.$ac_ext <<_ACEOF
10707 #line $LINENO "configure"
10708 #include "confdefs.h"
10709 #if HAVE_STDINT_H
10710 #include <stdint.h>
10711 #endif
10712 #include <sys/types.h>
10713 #ifdef STDC_HEADERS
10714 #include <stdlib.h>
10715 #endif
10716
10717 #include <stdio.h>
10718 main()
10719 {
10720   FILE *f=fopen("conftestval", "w");
10721   if (!f) exit(1);
10722   fprintf(f, "%d\n", sizeof(uint64_t));
10723   exit(0);
10724 }
10725 _ACEOF
10726 rm -f conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728   (eval $ac_link) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733   (eval $ac_try) 2>&5
10734   ac_status=$?
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); }; }; then
10737   ac_cv_sizeof_uint64_t=`cat conftestval`
10738 else
10739   echo "$as_me: program exited with status $ac_status" >&5
10740 echo "$as_me: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10742 ( exit $ac_status )
10743 ac_cv_sizeof_uint64_t=0
10744 fi
10745 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10746 fi
10747 fi
10748 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
10749 echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
10750 cat >>confdefs.h <<_ACEOF
10751 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
10752 _ACEOF
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766 for ac_func in mmap strerror strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth
10767 do
10768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10769 echo "$as_me:$LINENO: checking for $ac_func" >&5
10770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10771 if eval "test \"\${$as_ac_var+set}\" = set"; then
10772   echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774   cat >conftest.$ac_ext <<_ACEOF
10775 #line $LINENO "configure"
10776 #include "confdefs.h"
10777 /* System header to define __stub macros and hopefully few prototypes,
10778     which can conflict with char $ac_func (); below.  */
10779 #include <assert.h>
10780 /* Override any gcc2 internal prototype to avoid an error.  */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 /* We use char because int might match the return type of a gcc2
10785    builtin and then its argument prototype would still apply.  */
10786 char $ac_func ();
10787 char (*f) ();
10788
10789 #ifdef F77_DUMMY_MAIN
10790 #  ifdef __cplusplus
10791      extern "C"
10792 #  endif
10793    int F77_DUMMY_MAIN() { return 1; }
10794 #endif
10795 int
10796 main ()
10797 {
10798 /* The GNU C library defines this for functions which it implements
10799     to always fail with ENOSYS.  Some functions are actually named
10800     something starting with __ and the normal name is an alias.  */
10801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10802 choke me
10803 #else
10804 f = $ac_func;
10805 #endif
10806
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10813   (eval $ac_link) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } &&
10817          { ac_try='test -s conftest$ac_exeext'
10818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819   (eval $ac_try) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; }; then
10823   eval "$as_ac_var=yes"
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10827 eval "$as_ac_var=no"
10828 fi
10829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10830 fi
10831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10833 if test `eval echo '${'$as_ac_var'}'` = yes; then
10834   cat >>confdefs.h <<_ACEOF
10835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10836 _ACEOF
10837
10838 fi
10839 done
10840
10841
10842
10843 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
10844 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
10845 if test "${ac_cv_lib_z_gzopen+set}" = set; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848   ac_check_lib_save_LIBS=$LIBS
10849 LIBS="-lz  $LIBS"
10850 cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10852 #include "confdefs.h"
10853
10854 /* Override any gcc2 internal prototype to avoid an error.  */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 /* We use char because int might match the return type of a gcc2
10859    builtin and then its argument prototype would still apply.  */
10860 char gzopen ();
10861 #ifdef F77_DUMMY_MAIN
10862 #  ifdef __cplusplus
10863      extern "C"
10864 #  endif
10865    int F77_DUMMY_MAIN() { return 1; }
10866 #endif
10867 int
10868 main ()
10869 {
10870 gzopen ();
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877   (eval $ac_link) 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); } &&
10881          { ac_try='test -s conftest$ac_exeext'
10882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883   (eval $ac_try) 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   ac_cv_lib_z_gzopen=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10891 ac_cv_lib_z_gzopen=no
10892 fi
10893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10895 fi
10896 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
10897 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
10898 if test $ac_cv_lib_z_gzopen = yes; then
10899   cat >>confdefs.h <<_ACEOF
10900 #define HAVE_LIBZ 1
10901 _ACEOF
10902
10903   LIBS="-lz $LIBS"
10904
10905 fi
10906
10907
10908 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile python/Makefile"
10909
10910 cat >confcache <<\_ACEOF
10911 # This file is a shell script that caches the results of configure
10912 # tests run on this system so they can be shared between configure
10913 # scripts and configure runs, see configure's option --config-cache.
10914 # It is not useful on other systems.  If it contains results you don't
10915 # want to keep, you may remove or edit it.
10916 #
10917 # config.status only pays attention to the cache file if you give it
10918 # the --recheck option to rerun configure.
10919 #
10920 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10922 # following values.
10923
10924 _ACEOF
10925
10926 # The following way of writing the cache mishandles newlines in values,
10927 # but we know of no workaround that is simple, portable, and efficient.
10928 # So, don't put newlines in cache variables' values.
10929 # Ultrix sh set writes to stderr and can't be redirected directly,
10930 # and sets the high bit in the cache file unless we assign to the vars.
10931 {
10932   (set) 2>&1 |
10933     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10934     *ac_space=\ *)
10935       # `set' does not quote correctly, so add quotes (double-quote
10936       # substitution turns \\\\ into \\, and sed turns \\ into \).
10937       sed -n \
10938         "s/'/'\\\\''/g;
10939           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10940       ;;
10941     *)
10942       # `set' quotes correctly as required by POSIX, so do not add quotes.
10943       sed -n \
10944         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10945       ;;
10946     esac;
10947 } |
10948   sed '
10949      t clear
10950      : clear
10951      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10952      t end
10953      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10954      : end' >>confcache
10955 if cmp -s $cache_file confcache; then :; else
10956   if test -w $cache_file; then
10957     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10958     cat confcache >$cache_file
10959   else
10960     echo "not updating unwritable cache $cache_file"
10961   fi
10962 fi
10963 rm -f confcache
10964
10965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10966 # Let make expand exec_prefix.
10967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10968
10969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10971 # trailing colons and then remove the whole line if VPATH becomes empty
10972 # (actually we leave an empty line to preserve line numbers).
10973 if test "x$srcdir" = x.; then
10974   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10975 s/:*\$(srcdir):*/:/;
10976 s/:*\${srcdir}:*/:/;
10977 s/:*@srcdir@:*/:/;
10978 s/^\([^=]*=[    ]*\):*/\1/;
10979 s/:*$//;
10980 s/^[^=]*=[      ]*$//;
10981 }'
10982 fi
10983
10984 DEFS=-DHAVE_CONFIG_H
10985
10986 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
10987   { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
10988 Usually this means the macro was only invoked conditionally." >&5
10989 echo "$as_me: error: conditional \"FSECT5\" was never defined.
10990 Usually this means the macro was only invoked conditionally." >&2;}
10991    { (exit 1); exit 1; }; }
10992 fi
10993 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10994   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10995 Usually this means the macro was only invoked conditionally." >&5
10996 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10997 Usually this means the macro was only invoked conditionally." >&2;}
10998    { (exit 1); exit 1; }; }
10999 fi
11000
11001 : ${CONFIG_STATUS=./config.status}
11002 ac_clean_files_save=$ac_clean_files
11003 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11004 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11005 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11006 cat >$CONFIG_STATUS <<_ACEOF
11007 #! $SHELL
11008 # Generated by $as_me.
11009 # Run this file to recreate the current configuration.
11010 # Compiler output produced by configure, useful for debugging
11011 # configure, is in config.log if it exists.
11012
11013 debug=false
11014 SHELL=\${CONFIG_SHELL-$SHELL}
11015 _ACEOF
11016
11017 cat >>$CONFIG_STATUS <<\_ACEOF
11018
11019 ## --------------------- ##
11020 ## M4sh Initialization.  ##
11021 ## --------------------- ##
11022
11023 # Be Bourne compatible
11024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11025   emulate sh
11026   NULLCMD=:
11027 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11028   set -o posix
11029 fi
11030
11031 # NLS nuisances.
11032 # Support unset when possible.
11033 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11034   as_unset=unset
11035 else
11036   as_unset=false
11037 fi
11038
11039 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11040     { $as_unset LANG || test "${LANG+set}" != set; } ||
11041       { LANG=C; export LANG; }
11042 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11043     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11044       { LC_ALL=C; export LC_ALL; }
11045 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11046     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11047       { LC_TIME=C; export LC_TIME; }
11048 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11049     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11050       { LC_CTYPE=C; export LC_CTYPE; }
11051 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11052     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11053       { LANGUAGE=C; export LANGUAGE; }
11054 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11055     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11056       { LC_COLLATE=C; export LC_COLLATE; }
11057 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11058     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11059       { LC_NUMERIC=C; export LC_NUMERIC; }
11060 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11061     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11062       { LC_MESSAGES=C; export LC_MESSAGES; }
11063
11064
11065 # Name of the executable.
11066 as_me=`(basename "$0") 2>/dev/null ||
11067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11068          X"$0" : 'X\(//\)$' \| \
11069          X"$0" : 'X\(/\)$' \| \
11070          .     : '\(.\)' 2>/dev/null ||
11071 echo X/"$0" |
11072     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11073           /^X\/\(\/\/\)$/{ s//\1/; q; }
11074           /^X\/\(\/\).*/{ s//\1/; q; }
11075           s/.*/./; q'`
11076
11077 # PATH needs CR, and LINENO needs CR and PATH.
11078 # Avoid depending upon Character Ranges.
11079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11082 as_cr_digits='0123456789'
11083 as_cr_alnum=$as_cr_Letters$as_cr_digits
11084
11085 # The user is always right.
11086 if test "${PATH_SEPARATOR+set}" != set; then
11087   echo "#! /bin/sh" >conftest.sh
11088   echo  "exit 0"   >>conftest.sh
11089   chmod +x conftest.sh
11090   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11091     PATH_SEPARATOR=';'
11092   else
11093     PATH_SEPARATOR=:
11094   fi
11095   rm -f conftest.sh
11096 fi
11097
11098
11099   as_lineno_1=$LINENO
11100   as_lineno_2=$LINENO
11101   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11102   test "x$as_lineno_1" != "x$as_lineno_2" &&
11103   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11104   # Find who we are.  Look in the path if we contain no path at all
11105   # relative or not.
11106   case $0 in
11107     *[\\/]* ) as_myself=$0 ;;
11108     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11110 do
11111   IFS=$as_save_IFS
11112   test -z "$as_dir" && as_dir=.
11113   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11114 done
11115
11116        ;;
11117   esac
11118   # We did not find ourselves, most probably we were run as `sh COMMAND'
11119   # in which case we are not to be found in the path.
11120   if test "x$as_myself" = x; then
11121     as_myself=$0
11122   fi
11123   if test ! -f "$as_myself"; then
11124     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11126    { (exit 1); exit 1; }; }
11127   fi
11128   case $CONFIG_SHELL in
11129   '')
11130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11132 do
11133   IFS=$as_save_IFS
11134   test -z "$as_dir" && as_dir=.
11135   for as_base in sh bash ksh sh5; do
11136          case $as_dir in
11137          /*)
11138            if ("$as_dir/$as_base" -c '
11139   as_lineno_1=$LINENO
11140   as_lineno_2=$LINENO
11141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11142   test "x$as_lineno_1" != "x$as_lineno_2" &&
11143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11144              CONFIG_SHELL=$as_dir/$as_base
11145              export CONFIG_SHELL
11146              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11147            fi;;
11148          esac
11149        done
11150 done
11151 ;;
11152   esac
11153
11154   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11155   # uniformly replaced by the line number.  The first 'sed' inserts a
11156   # line-number line before each line; the second 'sed' does the real
11157   # work.  The second script uses 'N' to pair each line-number line
11158   # with the numbered line, and appends trailing '-' during
11159   # substitution so that $LINENO is not a special case at line end.
11160   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11161   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11162   sed '=' <$as_myself |
11163     sed '
11164       N
11165       s,$,-,
11166       : loop
11167       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11168       t loop
11169       s,-$,,
11170       s,^['$as_cr_digits']*\n,,
11171     ' >$as_me.lineno &&
11172   chmod +x $as_me.lineno ||
11173     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11174 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11175    { (exit 1); exit 1; }; }
11176
11177   # Don't try to exec as it changes $[0], causing all sort of problems
11178   # (the dirname of $[0] is not the place where we might find the
11179   # original and so on.  Autoconf is especially sensible to this).
11180   . ./$as_me.lineno
11181   # Exit status is that of the last command.
11182   exit
11183 }
11184
11185
11186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11187   *c*,-n*) ECHO_N= ECHO_C='
11188 ' ECHO_T='      ' ;;
11189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11191 esac
11192
11193 if expr a : '\(a\)' >/dev/null 2>&1; then
11194   as_expr=expr
11195 else
11196   as_expr=false
11197 fi
11198
11199 rm -f conf$$ conf$$.exe conf$$.file
11200 echo >conf$$.file
11201 if ln -s conf$$.file conf$$ 2>/dev/null; then
11202   # We could just check for DJGPP; but this test a) works b) is more generic
11203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11204   if test -f conf$$.exe; then
11205     # Don't use ln at all; we don't have any links
11206     as_ln_s='cp -p'
11207   else
11208     as_ln_s='ln -s'
11209   fi
11210 elif ln conf$$.file conf$$ 2>/dev/null; then
11211   as_ln_s=ln
11212 else
11213   as_ln_s='cp -p'
11214 fi
11215 rm -f conf$$ conf$$.exe conf$$.file
11216
11217 as_executable_p="test -f"
11218
11219 # Sed expression to map a string onto a valid CPP name.
11220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11221
11222 # Sed expression to map a string onto a valid variable name.
11223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11224
11225
11226 # IFS
11227 # We need space, tab and new line, in precisely that order.
11228 as_nl='
11229 '
11230 IFS="   $as_nl"
11231
11232 # CDPATH.
11233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11234
11235 exec 6>&1
11236
11237 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11238 # report actual input values of CONFIG_FILES etc. instead of their
11239 # values after options handling.  Logging --version etc. is OK.
11240 exec 5>>config.log
11241 {
11242   echo
11243   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11244 ## Running $as_me. ##
11245 _ASBOX
11246 } >&5
11247 cat >&5 <<_CSEOF
11248
11249 This file was extended by $as_me, which was
11250 generated by GNU Autoconf 2.53.  Invocation command line was
11251
11252   CONFIG_FILES    = $CONFIG_FILES
11253   CONFIG_HEADERS  = $CONFIG_HEADERS
11254   CONFIG_LINKS    = $CONFIG_LINKS
11255   CONFIG_COMMANDS = $CONFIG_COMMANDS
11256   $ $0 $@
11257
11258 _CSEOF
11259 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11260 echo >&5
11261 _ACEOF
11262
11263 # Files that config.status was made for.
11264 if test -n "$ac_config_files"; then
11265   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11266 fi
11267
11268 if test -n "$ac_config_headers"; then
11269   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11270 fi
11271
11272 if test -n "$ac_config_links"; then
11273   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11274 fi
11275
11276 if test -n "$ac_config_commands"; then
11277   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11278 fi
11279
11280 cat >>$CONFIG_STATUS <<\_ACEOF
11281
11282 ac_cs_usage="\
11283 \`$as_me' instantiates files from templates according to the
11284 current configuration.
11285
11286 Usage: $0 [OPTIONS] [FILE]...
11287
11288   -h, --help       print this help, then exit
11289   -V, --version    print version number, then exit
11290   -d, --debug      don't remove temporary files
11291       --recheck    update $as_me by reconfiguring in the same conditions
11292   --file=FILE[:TEMPLATE]
11293                    instantiate the configuration file FILE
11294   --header=FILE[:TEMPLATE]
11295                    instantiate the configuration header FILE
11296
11297 Configuration files:
11298 $config_files
11299
11300 Configuration headers:
11301 $config_headers
11302
11303 Configuration commands:
11304 $config_commands
11305
11306 Report bugs to <bug-autoconf@gnu.org>."
11307 _ACEOF
11308
11309 cat >>$CONFIG_STATUS <<_ACEOF
11310 ac_cs_version="\\
11311 config.status
11312 configured by $0, generated by GNU Autoconf 2.53,
11313   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11314
11315 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11316 Free Software Foundation, Inc.
11317 This config.status script is free software; the Free Software Foundation
11318 gives unlimited permission to copy, distribute and modify it."
11319 srcdir=$srcdir
11320 INSTALL="$INSTALL"
11321 _ACEOF
11322
11323 cat >>$CONFIG_STATUS <<\_ACEOF
11324 # If no file are specified by the user, then we need to provide default
11325 # value.  By we need to know if files were specified by the user.
11326 ac_need_defaults=:
11327 while test $# != 0
11328 do
11329   case $1 in
11330   --*=*)
11331     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11332     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11333     shift
11334     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11335     shift
11336     ;;
11337   -*);;
11338   *) # This is not an option, so the user has probably given explicit
11339      # arguments.
11340      ac_need_defaults=false;;
11341   esac
11342
11343   case $1 in
11344   # Handling of the options.
11345 _ACEOF
11346 cat >>$CONFIG_STATUS <<_ACEOF
11347   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11348     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11349     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11350 _ACEOF
11351 cat >>$CONFIG_STATUS <<\_ACEOF
11352   --version | --vers* | -V )
11353     echo "$ac_cs_version"; exit 0 ;;
11354   --he | --h)
11355     # Conflict between --help and --header
11356     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11357 Try \`$0 --help' for more information." >&5
11358 echo "$as_me: error: ambiguous option: $1
11359 Try \`$0 --help' for more information." >&2;}
11360    { (exit 1); exit 1; }; };;
11361   --help | --hel | -h )
11362     echo "$ac_cs_usage"; exit 0 ;;
11363   --debug | --d* | -d )
11364     debug=: ;;
11365   --file | --fil | --fi | --f )
11366     shift
11367     CONFIG_FILES="$CONFIG_FILES $1"
11368     ac_need_defaults=false;;
11369   --header | --heade | --head | --hea )
11370     shift
11371     CONFIG_HEADERS="$CONFIG_HEADERS $1"
11372     ac_need_defaults=false;;
11373
11374   # This is an error.
11375   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11376 Try \`$0 --help' for more information." >&5
11377 echo "$as_me: error: unrecognized option: $1
11378 Try \`$0 --help' for more information." >&2;}
11379    { (exit 1); exit 1; }; } ;;
11380
11381   *) ac_config_targets="$ac_config_targets $1" ;;
11382
11383   esac
11384   shift
11385 done
11386
11387 _ACEOF
11388
11389 cat >>$CONFIG_STATUS <<_ACEOF
11390 #
11391 # INIT-COMMANDS section.
11392 #
11393
11394 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11395
11396 _ACEOF
11397
11398
11399
11400 cat >>$CONFIG_STATUS <<\_ACEOF
11401 for ac_config_target in $ac_config_targets
11402 do
11403   case "$ac_config_target" in
11404   # Handling of arguments.
11405   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11406   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11407   "magic/Makefile" ) CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
11408   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11409   "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
11410   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11411   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11412   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11413 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11414    { (exit 1); exit 1; }; };;
11415   esac
11416 done
11417
11418 # If the user did not use the arguments to specify the items to instantiate,
11419 # then the envvar interface is used.  Set only those that are not.
11420 # We use the long form for the default assignment because of an extremely
11421 # bizarre bug on SunOS 4.1.3.
11422 if $ac_need_defaults; then
11423   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11424   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11425   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11426 fi
11427
11428 # Create a temporary directory, and hook for its removal unless debugging.
11429 $debug ||
11430 {
11431   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11432   trap '{ (exit 1); exit 1; }' 1 2 13 15
11433 }
11434
11435 # Create a (secure) tmp directory for tmp files.
11436 : ${TMPDIR=/tmp}
11437 {
11438   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11439   test -n "$tmp" && test -d "$tmp"
11440 }  ||
11441 {
11442   tmp=$TMPDIR/cs$$-$RANDOM
11443   (umask 077 && mkdir $tmp)
11444 } ||
11445 {
11446    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11447    { (exit 1); exit 1; }
11448 }
11449
11450 _ACEOF
11451
11452 cat >>$CONFIG_STATUS <<_ACEOF
11453
11454 #
11455 # CONFIG_FILES section.
11456 #
11457
11458 # No need to generate the scripts if there are no CONFIG_FILES.
11459 # This happens for instance when ./config.status config.h
11460 if test -n "\$CONFIG_FILES"; then
11461   # Protect against being on the right side of a sed subst in config.status.
11462   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11463    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11464 s,@SHELL@,$SHELL,;t t
11465 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11466 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11467 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11468 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11469 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11470 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11471 s,@exec_prefix@,$exec_prefix,;t t
11472 s,@prefix@,$prefix,;t t
11473 s,@program_transform_name@,$program_transform_name,;t t
11474 s,@bindir@,$bindir,;t t
11475 s,@sbindir@,$sbindir,;t t
11476 s,@libexecdir@,$libexecdir,;t t
11477 s,@datadir@,$datadir,;t t
11478 s,@sysconfdir@,$sysconfdir,;t t
11479 s,@sharedstatedir@,$sharedstatedir,;t t
11480 s,@localstatedir@,$localstatedir,;t t
11481 s,@libdir@,$libdir,;t t
11482 s,@includedir@,$includedir,;t t
11483 s,@oldincludedir@,$oldincludedir,;t t
11484 s,@infodir@,$infodir,;t t
11485 s,@mandir@,$mandir,;t t
11486 s,@build_alias@,$build_alias,;t t
11487 s,@host_alias@,$host_alias,;t t
11488 s,@target_alias@,$target_alias,;t t
11489 s,@DEFS@,$DEFS,;t t
11490 s,@ECHO_C@,$ECHO_C,;t t
11491 s,@ECHO_N@,$ECHO_N,;t t
11492 s,@ECHO_T@,$ECHO_T,;t t
11493 s,@LIBS@,$LIBS,;t t
11494 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11495 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11496 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11497 s,@PACKAGE@,$PACKAGE,;t t
11498 s,@VERSION@,$VERSION,;t t
11499 s,@ACLOCAL@,$ACLOCAL,;t t
11500 s,@AUTOCONF@,$AUTOCONF,;t t
11501 s,@AUTOMAKE@,$AUTOMAKE,;t t
11502 s,@AUTOHEADER@,$AUTOHEADER,;t t
11503 s,@MAKEINFO@,$MAKEINFO,;t t
11504 s,@AMTAR@,$AMTAR,;t t
11505 s,@install_sh@,$install_sh,;t t
11506 s,@STRIP@,$STRIP,;t t
11507 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11508 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11509 s,@AWK@,$AWK,;t t
11510 s,@SET_MAKE@,$SET_MAKE,;t t
11511 s,@fsect@,$fsect,;t t
11512 s,@FSECT5_TRUE@,$FSECT5_TRUE,;t t
11513 s,@FSECT5_FALSE@,$FSECT5_FALSE,;t t
11514 s,@CC@,$CC,;t t
11515 s,@CFLAGS@,$CFLAGS,;t t
11516 s,@LDFLAGS@,$LDFLAGS,;t t
11517 s,@CPPFLAGS@,$CPPFLAGS,;t t
11518 s,@ac_ct_CC@,$ac_ct_CC,;t t
11519 s,@EXEEXT@,$EXEEXT,;t t
11520 s,@OBJEXT@,$OBJEXT,;t t
11521 s,@DEPDIR@,$DEPDIR,;t t
11522 s,@am__include@,$am__include,;t t
11523 s,@am__quote@,$am__quote,;t t
11524 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11525 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11526 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11527 s,@CCDEPMODE@,$CCDEPMODE,;t t
11528 s,@LN_S@,$LN_S,;t t
11529 s,@build@,$build,;t t
11530 s,@build_cpu@,$build_cpu,;t t
11531 s,@build_vendor@,$build_vendor,;t t
11532 s,@build_os@,$build_os,;t t
11533 s,@host@,$host,;t t
11534 s,@host_cpu@,$host_cpu,;t t
11535 s,@host_vendor@,$host_vendor,;t t
11536 s,@host_os@,$host_os,;t t
11537 s,@ECHO@,$ECHO,;t t
11538 s,@RANLIB@,$RANLIB,;t t
11539 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11540 s,@CPP@,$CPP,;t t
11541 s,@LIBTOOL@,$LIBTOOL,;t t
11542 CEOF
11543
11544 _ACEOF
11545
11546   cat >>$CONFIG_STATUS <<\_ACEOF
11547   # Split the substitutions into bite-sized pieces for seds with
11548   # small command number limits, like on Digital OSF/1 and HP-UX.
11549   ac_max_sed_lines=48
11550   ac_sed_frag=1 # Number of current file.
11551   ac_beg=1 # First line for current file.
11552   ac_end=$ac_max_sed_lines # Line after last line for current file.
11553   ac_more_lines=:
11554   ac_sed_cmds=
11555   while $ac_more_lines; do
11556     if test $ac_beg -gt 1; then
11557       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11558     else
11559       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11560     fi
11561     if test ! -s $tmp/subs.frag; then
11562       ac_more_lines=false
11563     else
11564       # The purpose of the label and of the branching condition is to
11565       # speed up the sed processing (if there are no `@' at all, there
11566       # is no need to browse any of the substitutions).
11567       # These are the two extra sed commands mentioned above.
11568       (echo ':t
11569   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11570       if test -z "$ac_sed_cmds"; then
11571         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11572       else
11573         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11574       fi
11575       ac_sed_frag=`expr $ac_sed_frag + 1`
11576       ac_beg=$ac_end
11577       ac_end=`expr $ac_end + $ac_max_sed_lines`
11578     fi
11579   done
11580   if test -z "$ac_sed_cmds"; then
11581     ac_sed_cmds=cat
11582   fi
11583 fi # test -n "$CONFIG_FILES"
11584
11585 _ACEOF
11586 cat >>$CONFIG_STATUS <<\_ACEOF
11587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11588   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11589   case $ac_file in
11590   - | *:- | *:-:* ) # input from stdin
11591         cat >$tmp/stdin
11592         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11594   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11595         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11596   * )   ac_file_in=$ac_file.in ;;
11597   esac
11598
11599   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11600   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11602          X"$ac_file" : 'X\(//\)[^/]' \| \
11603          X"$ac_file" : 'X\(//\)$' \| \
11604          X"$ac_file" : 'X\(/\)' \| \
11605          .     : '\(.\)' 2>/dev/null ||
11606 echo X"$ac_file" |
11607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11609           /^X\(\/\/\)$/{ s//\1/; q; }
11610           /^X\(\/\).*/{ s//\1/; q; }
11611           s/.*/./; q'`
11612   { case "$ac_dir" in
11613   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11614   *)                      as_incr_dir=.;;
11615 esac
11616 as_dummy="$ac_dir"
11617 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11618   case $as_mkdir_dir in
11619     # Skip DOS drivespec
11620     ?:) as_incr_dir=$as_mkdir_dir ;;
11621     *)
11622       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11623       test -d "$as_incr_dir" ||
11624         mkdir "$as_incr_dir" ||
11625         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11626 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11627    { (exit 1); exit 1; }; }
11628     ;;
11629   esac
11630 done; }
11631
11632   ac_builddir=.
11633
11634 if test "$ac_dir" != .; then
11635   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11636   # A "../" for each directory in $ac_dir_suffix.
11637   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11638 else
11639   ac_dir_suffix= ac_top_builddir=
11640 fi
11641
11642 case $srcdir in
11643   .)  # No --srcdir option.  We are building in place.
11644     ac_srcdir=.
11645     if test -z "$ac_top_builddir"; then
11646        ac_top_srcdir=.
11647     else
11648        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11649     fi ;;
11650   [\\/]* | ?:[\\/]* )  # Absolute path.
11651     ac_srcdir=$srcdir$ac_dir_suffix;
11652     ac_top_srcdir=$srcdir ;;
11653   *) # Relative path.
11654     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11655     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11656 esac
11657 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11658 # absolute.
11659 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11660 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
11661 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11662 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11663
11664
11665   case $INSTALL in
11666   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11667   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11668   esac
11669
11670   if test x"$ac_file" != x-; then
11671     { echo "$as_me:$LINENO: creating $ac_file" >&5
11672 echo "$as_me: creating $ac_file" >&6;}
11673     rm -f "$ac_file"
11674   fi
11675   # Let's still pretend it is `configure' which instantiates (i.e., don't
11676   # use $as_me), people would be surprised to read:
11677   #    /* config.h.  Generated by config.status.  */
11678   if test x"$ac_file" = x-; then
11679     configure_input=
11680   else
11681     configure_input="$ac_file.  "
11682   fi
11683   configure_input=$configure_input"Generated from `echo $ac_file_in |
11684                                      sed 's,.*/,,'` by configure."
11685
11686   # First look for the input files in the build tree, otherwise in the
11687   # src tree.
11688   ac_file_inputs=`IFS=:
11689     for f in $ac_file_in; do
11690       case $f in
11691       -) echo $tmp/stdin ;;
11692       [\\/$]*)
11693          # Absolute (can't be DOS-style, as IFS=:)
11694          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11695 echo "$as_me: error: cannot find input file: $f" >&2;}
11696    { (exit 1); exit 1; }; }
11697          echo $f;;
11698       *) # Relative
11699          if test -f "$f"; then
11700            # Build tree
11701            echo $f
11702          elif test -f "$srcdir/$f"; then
11703            # Source tree
11704            echo $srcdir/$f
11705          else
11706            # /dev/null tree
11707            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11708 echo "$as_me: error: cannot find input file: $f" >&2;}
11709    { (exit 1); exit 1; }; }
11710          fi;;
11711       esac
11712     done` || { (exit 1); exit 1; }
11713 _ACEOF
11714 cat >>$CONFIG_STATUS <<_ACEOF
11715   sed "$ac_vpsub
11716 $extrasub
11717 _ACEOF
11718 cat >>$CONFIG_STATUS <<\_ACEOF
11719 :t
11720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11721 s,@configure_input@,$configure_input,;t t
11722 s,@srcdir@,$ac_srcdir,;t t
11723 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11724 s,@top_srcdir@,$ac_top_srcdir,;t t
11725 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11726 s,@builddir@,$ac_builddir,;t t
11727 s,@abs_builddir@,$ac_abs_builddir,;t t
11728 s,@top_builddir@,$ac_top_builddir,;t t
11729 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11730 s,@INSTALL@,$ac_INSTALL,;t t
11731 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11732   rm -f $tmp/stdin
11733   if test x"$ac_file" != x-; then
11734     mv $tmp/out $ac_file
11735   else
11736     cat $tmp/out
11737     rm -f $tmp/out
11738   fi
11739
11740 done
11741 _ACEOF
11742 cat >>$CONFIG_STATUS <<\_ACEOF
11743
11744 #
11745 # CONFIG_HEADER section.
11746 #
11747
11748 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11749 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11750 #
11751 # ac_d sets the value in "#define NAME VALUE" lines.
11752 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11753 ac_dB='[        ].*$,\1#\2'
11754 ac_dC=' '
11755 ac_dD=',;t'
11756 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11757 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11758 ac_uB='$,\1#\2define\3'
11759 ac_uC=' '
11760 ac_uD=',;t'
11761
11762 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11763   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11764   case $ac_file in
11765   - | *:- | *:-:* ) # input from stdin
11766         cat >$tmp/stdin
11767         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11768         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11769   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11770         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11771   * )   ac_file_in=$ac_file.in ;;
11772   esac
11773
11774   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11775 echo "$as_me: creating $ac_file" >&6;}
11776
11777   # First look for the input files in the build tree, otherwise in the
11778   # src tree.
11779   ac_file_inputs=`IFS=:
11780     for f in $ac_file_in; do
11781       case $f in
11782       -) echo $tmp/stdin ;;
11783       [\\/$]*)
11784          # Absolute (can't be DOS-style, as IFS=:)
11785          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11786 echo "$as_me: error: cannot find input file: $f" >&2;}
11787    { (exit 1); exit 1; }; }
11788          echo $f;;
11789       *) # Relative
11790          if test -f "$f"; then
11791            # Build tree
11792            echo $f
11793          elif test -f "$srcdir/$f"; then
11794            # Source tree
11795            echo $srcdir/$f
11796          else
11797            # /dev/null tree
11798            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11799 echo "$as_me: error: cannot find input file: $f" >&2;}
11800    { (exit 1); exit 1; }; }
11801          fi;;
11802       esac
11803     done` || { (exit 1); exit 1; }
11804   # Remove the trailing spaces.
11805   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11806
11807 _ACEOF
11808
11809 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11810 # `conftest.undefs', that substitutes the proper values into
11811 # config.h.in to produce config.h.  The first handles `#define'
11812 # templates, and the second `#undef' templates.
11813 # And first: Protect against being on the right side of a sed subst in
11814 # config.status.  Protect against being in an unquoted here document
11815 # in config.status.
11816 rm -f conftest.defines conftest.undefs
11817 # Using a here document instead of a string reduces the quoting nightmare.
11818 # Putting comments in sed scripts is not portable.
11819 #
11820 # `end' is used to avoid that the second main sed command (meant for
11821 # 0-ary CPP macros) applies to n-ary macro definitions.
11822 # See the Autoconf documentation for `clear'.
11823 cat >confdef2sed.sed <<\_ACEOF
11824 s/[\\&,]/\\&/g
11825 s,[\\$`],\\&,g
11826 t clear
11827 : clear
11828 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11829 t end
11830 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11831 : end
11832 _ACEOF
11833 # If some macros were called several times there might be several times
11834 # the same #defines, which is useless.  Nevertheless, we may not want to
11835 # sort them, since we want the *last* AC-DEFINE to be honored.
11836 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11837 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11838 rm -f confdef2sed.sed
11839
11840 # This sed command replaces #undef with comments.  This is necessary, for
11841 # example, in the case of _POSIX_SOURCE, which is predefined and required
11842 # on some systems where configure will not decide to define it.
11843 cat >>conftest.undefs <<\_ACEOF
11844 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11845 _ACEOF
11846
11847 # Break up conftest.defines because some shells have a limit on the size
11848 # of here documents, and old seds have small limits too (100 cmds).
11849 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11850 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11851 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11852 echo '  :' >>$CONFIG_STATUS
11853 rm -f conftest.tail
11854 while grep . conftest.defines >/dev/null
11855 do
11856   # Write a limited-size here document to $tmp/defines.sed.
11857   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11858   # Speed up: don't consider the non `#define' lines.
11859   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11860   # Work around the forget-to-reset-the-flag bug.
11861   echo 't clr' >>$CONFIG_STATUS
11862   echo ': clr' >>$CONFIG_STATUS
11863   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11864   echo 'CEOF
11865   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11866   rm -f $tmp/in
11867   mv $tmp/out $tmp/in
11868 ' >>$CONFIG_STATUS
11869   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11870   rm -f conftest.defines
11871   mv conftest.tail conftest.defines
11872 done
11873 rm -f conftest.defines
11874 echo '  fi # egrep' >>$CONFIG_STATUS
11875 echo >>$CONFIG_STATUS
11876
11877 # Break up conftest.undefs because some shells have a limit on the size
11878 # of here documents, and old seds have small limits too (100 cmds).
11879 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11880 rm -f conftest.tail
11881 while grep . conftest.undefs >/dev/null
11882 do
11883   # Write a limited-size here document to $tmp/undefs.sed.
11884   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11885   # Speed up: don't consider the non `#undef'
11886   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11887   # Work around the forget-to-reset-the-flag bug.
11888   echo 't clr' >>$CONFIG_STATUS
11889   echo ': clr' >>$CONFIG_STATUS
11890   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11891   echo 'CEOF
11892   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11893   rm -f $tmp/in
11894   mv $tmp/out $tmp/in
11895 ' >>$CONFIG_STATUS
11896   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11897   rm -f conftest.undefs
11898   mv conftest.tail conftest.undefs
11899 done
11900 rm -f conftest.undefs
11901
11902 cat >>$CONFIG_STATUS <<\_ACEOF
11903   # Let's still pretend it is `configure' which instantiates (i.e., don't
11904   # use $as_me), people would be surprised to read:
11905   #    /* config.h.  Generated by config.status.  */
11906   if test x"$ac_file" = x-; then
11907     echo "/* Generated by configure.  */" >$tmp/config.h
11908   else
11909     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11910   fi
11911   cat $tmp/in >>$tmp/config.h
11912   rm -f $tmp/in
11913   if test x"$ac_file" != x-; then
11914     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11915       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11916 echo "$as_me: $ac_file is unchanged" >&6;}
11917     else
11918       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11920          X"$ac_file" : 'X\(//\)[^/]' \| \
11921          X"$ac_file" : 'X\(//\)$' \| \
11922          X"$ac_file" : 'X\(/\)' \| \
11923          .     : '\(.\)' 2>/dev/null ||
11924 echo X"$ac_file" |
11925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11926           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11927           /^X\(\/\/\)$/{ s//\1/; q; }
11928           /^X\(\/\).*/{ s//\1/; q; }
11929           s/.*/./; q'`
11930       { case "$ac_dir" in
11931   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11932   *)                      as_incr_dir=.;;
11933 esac
11934 as_dummy="$ac_dir"
11935 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11936   case $as_mkdir_dir in
11937     # Skip DOS drivespec
11938     ?:) as_incr_dir=$as_mkdir_dir ;;
11939     *)
11940       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11941       test -d "$as_incr_dir" ||
11942         mkdir "$as_incr_dir" ||
11943         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11944 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11945    { (exit 1); exit 1; }; }
11946     ;;
11947   esac
11948 done; }
11949
11950       rm -f $ac_file
11951       mv $tmp/config.h $ac_file
11952     fi
11953   else
11954     cat $tmp/config.h
11955     rm -f $tmp/config.h
11956   fi
11957   # Run the commands associated with the file.
11958   case $ac_file in
11959     config.h ) # update the timestamp
11960 echo 'timestamp for config.h' >"./stamp-h1"
11961  ;;
11962   esac
11963 done
11964 _ACEOF
11965 cat >>$CONFIG_STATUS <<\_ACEOF
11966
11967 #
11968 # CONFIG_COMMANDS section.
11969 #
11970 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11971   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11972   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11973   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11974 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11975          X"$ac_dest" : 'X\(//\)[^/]' \| \
11976          X"$ac_dest" : 'X\(//\)$' \| \
11977          X"$ac_dest" : 'X\(/\)' \| \
11978          .     : '\(.\)' 2>/dev/null ||
11979 echo X"$ac_dest" |
11980     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11981           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11982           /^X\(\/\/\)$/{ s//\1/; q; }
11983           /^X\(\/\).*/{ s//\1/; q; }
11984           s/.*/./; q'`
11985   ac_builddir=.
11986
11987 if test "$ac_dir" != .; then
11988   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11989   # A "../" for each directory in $ac_dir_suffix.
11990   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11991 else
11992   ac_dir_suffix= ac_top_builddir=
11993 fi
11994
11995 case $srcdir in
11996   .)  # No --srcdir option.  We are building in place.
11997     ac_srcdir=.
11998     if test -z "$ac_top_builddir"; then
11999        ac_top_srcdir=.
12000     else
12001        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12002     fi ;;
12003   [\\/]* | ?:[\\/]* )  # Absolute path.
12004     ac_srcdir=$srcdir$ac_dir_suffix;
12005     ac_top_srcdir=$srcdir ;;
12006   *) # Relative path.
12007     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12008     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12009 esac
12010 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12011 # absolute.
12012 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12013 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12014 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12015 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12016
12017
12018   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12019 echo "$as_me: executing $ac_dest commands" >&6;}
12020   case $ac_dest in
12021     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12022   # Strip MF so we end up with the name of the file.
12023   mf=`echo "$mf" | sed -e 's/:.*$//'`
12024   # Check whether this is an Automake generated Makefile or not.
12025   # We used to match only the files named `Makefile.in', but
12026   # some people rename them; so instead we look at the file content.
12027   # Grep'ing the first line is not enough: some people post-process
12028   # each Makefile.in and add a new line on top of each file to say so.
12029   # So let's grep whole file.
12030   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12031     dirpart=`(dirname "$mf") 2>/dev/null ||
12032 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033          X"$mf" : 'X\(//\)[^/]' \| \
12034          X"$mf" : 'X\(//\)$' \| \
12035          X"$mf" : 'X\(/\)' \| \
12036          .     : '\(.\)' 2>/dev/null ||
12037 echo X"$mf" |
12038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12039           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12040           /^X\(\/\/\)$/{ s//\1/; q; }
12041           /^X\(\/\).*/{ s//\1/; q; }
12042           s/.*/./; q'`
12043   else
12044     continue
12045   fi
12046   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12047   # Extract the definition of DEP_FILES from the Makefile without
12048   # running `make'.
12049   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12050   test -z "$DEPDIR" && continue
12051   # When using ansi2knr, U may be empty or an underscore; expand it
12052   U=`sed -n -e '/^U = / s///p' < "$mf"`
12053   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12054   # We invoke sed twice because it is the simplest approach to
12055   # changing $(DEPDIR) to its actual value in the expansion.
12056   for file in `sed -n -e '
12057     /^DEP_FILES = .*\\\\$/ {
12058       s/^DEP_FILES = //
12059       :loop
12060         s/\\\\$//
12061         p
12062         n
12063         /\\\\$/ b loop
12064       p
12065     }
12066     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12067        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12068     # Make sure the directory exists.
12069     test -f "$dirpart/$file" && continue
12070     fdir=`(dirname "$file") 2>/dev/null ||
12071 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12072          X"$file" : 'X\(//\)[^/]' \| \
12073          X"$file" : 'X\(//\)$' \| \
12074          X"$file" : 'X\(/\)' \| \
12075          .     : '\(.\)' 2>/dev/null ||
12076 echo X"$file" |
12077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12079           /^X\(\/\/\)$/{ s//\1/; q; }
12080           /^X\(\/\).*/{ s//\1/; q; }
12081           s/.*/./; q'`
12082     { case $dirpart/$fdir in
12083   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12084   *)                      as_incr_dir=.;;
12085 esac
12086 as_dummy=$dirpart/$fdir
12087 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12088   case $as_mkdir_dir in
12089     # Skip DOS drivespec
12090     ?:) as_incr_dir=$as_mkdir_dir ;;
12091     *)
12092       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12093       test -d "$as_incr_dir" ||
12094         mkdir "$as_incr_dir" ||
12095         { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
12096 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
12097    { (exit 1); exit 1; }; }
12098     ;;
12099   esac
12100 done; }
12101
12102     # echo "creating $dirpart/$file"
12103     echo '# dummy' > "$dirpart/$file"
12104   done
12105 done
12106  ;;
12107   esac
12108 done
12109 _ACEOF
12110
12111 cat >>$CONFIG_STATUS <<\_ACEOF
12112
12113 { (exit 0); exit 0; }
12114 _ACEOF
12115 chmod +x $CONFIG_STATUS
12116 ac_clean_files=$ac_clean_files_save
12117
12118
12119 # configure is writing to config.log, and then calls config.status.
12120 # config.status does its own redirection, appending to config.log.
12121 # Unfortunately, on DOS this fails, as config.log is still kept open
12122 # by configure, so config.status won't be able to write to it; its
12123 # output is simply discarded.  So we exec the FD to /dev/null,
12124 # effectively closing config.log, so it can be properly (re)opened and
12125 # appended to by config.status.  When coming back to configure, we
12126 # need to make the FD available again.
12127 if test "$no_create" != yes; then
12128   ac_cs_success=:
12129   exec 5>/dev/null
12130   $SHELL $CONFIG_STATUS || ac_cs_success=false
12131   exec 5>>config.log
12132   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12133   # would make configure fail if this is the last instruction.
12134   $ac_cs_success || { (exit 1); exit 1; }
12135 fi
12136