2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for fGIS 0.0.1.
5 # Report bugs to <dron@remotesensing.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Find the correct PATH separator. Usually this is `:', but
13 # DJGPP uses `;' like DOS.
14 if test "X${PATH_SEPARATOR+set}" != Xset; then
15 UNAME=${UNAME-`uname 2>/dev/null`}
17 *-DOS) lt_cv_sys_path_separator=';' ;;
18 *) lt_cv_sys_path_separator=':' ;;
20 PATH_SEPARATOR=$lt_cv_sys_path_separator
24 # Check that we are running under the correct shell.
25 SHELL=${CONFIG_SHELL-/bin/sh}
29 # Remove one level of quotation (which was required for Make).
30 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
35 if test "X$1" = X--no-reexec; then
36 # Discard the --no-reexec flag, and continue.
38 elif test "X$1" = X--fallback-echo; then
39 # Avoid inline document here, it may be left over
41 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42 # Yippee, $echo works!
45 # Restart under the correct shell.
46 exec $SHELL "$0" --no-reexec ${1+"$@"}
49 if test "X$1" = X--fallback-echo; then
50 # used as fallback echo
58 # The HP-UX ksh and POSIX shell print the target directory to stdout
60 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
62 if test -z "$ECHO"; then
63 if test "X${echo_test_string+set}" != Xset; then
64 # find a string as large as possible, as long as the shell can cope with it
65 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
66 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
67 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
68 echo_test_string="`eval $cmd`" &&
69 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
76 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
77 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
78 test "X$echo_testing_string" = "X$echo_test_string"; then
81 # The Solaris, AIX, and Digital Unix default echo programs unquote
82 # backslashes. This makes it impossible to quote backslashes using
83 # echo "$something" | sed 's/\\/\\\\/g'
85 # So, first we look for a working echo in the user's PATH.
87 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88 for dir in $PATH /usr/ucb; do
89 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
92 test "X$echo_testing_string" = "X$echo_test_string"; then
99 if test "X$echo" = Xecho; then
100 # We didn't find a better echo, so look for alternatives.
101 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
103 test "X$echo_testing_string" = "X$echo_test_string"; then
104 # This shell has a builtin print -r that does the trick.
106 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
107 test "X$CONFIG_SHELL" != X/bin/ksh; then
108 # If we have ksh, try running configure again with it.
109 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
110 export ORIGINAL_CONFIG_SHELL
111 CONFIG_SHELL=/bin/ksh
113 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
117 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
118 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
119 test "X$echo_testing_string" = "X$echo_test_string"; then
122 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
123 test "X$echo_testing_string" = 'X\t' &&
124 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
125 test "X$echo_testing_string" = "X$echo_test_string"; then
126 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
128 SHELL="$CONFIG_SHELL"
130 echo="$CONFIG_SHELL $0 --fallback-echo"
131 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
132 test "X$echo_testing_string" = 'X\t' &&
133 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
134 test "X$echo_testing_string" = "X$echo_test_string"; then
135 echo="$CONFIG_SHELL $0 --fallback-echo"
137 # maybe with a smaller string...
140 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
141 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
148 if test "$prev" != 'sed 50q "$0"'; then
149 echo_test_string=`eval $prev`
150 export echo_test_string
151 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
153 # Oops. We lost completely, so just stick with echo.
162 # Copy echo and quote the copy suitably for passing to libtool from
163 # the Makefile, instead of quoting the original, which is used later.
165 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
171 if expr a : '\(a\)' >/dev/null 2>&1; then
178 ## --------------------- ##
179 ## M4sh Initialization. ##
180 ## --------------------- ##
182 # Be Bourne compatible
183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
191 # Support unset when possible.
192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
198 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
199 { $as_unset LANG || test "${LANG+set}" != set; } ||
200 { LANG=C; export LANG; }
201 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
202 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
203 { LC_ALL=C; export LC_ALL; }
204 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
205 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
206 { LC_TIME=C; export LC_TIME; }
207 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
208 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
209 { LC_CTYPE=C; export LC_CTYPE; }
210 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
211 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
212 { LANGUAGE=C; export LANGUAGE; }
213 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
214 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
215 { LC_COLLATE=C; export LC_COLLATE; }
216 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
217 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
218 { LC_NUMERIC=C; export LC_NUMERIC; }
219 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
220 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
221 { LC_MESSAGES=C; export LC_MESSAGES; }
224 # Name of the executable.
225 as_me=`(basename "$0") 2>/dev/null ||
226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227 X"$0" : 'X\(//\)$' \| \
228 X"$0" : 'X\(/\)$' \| \
229 . : '\(.\)' 2>/dev/null ||
231 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
232 /^X\/\(\/\/\)$/{ s//\1/; q; }
233 /^X\/\(\/\).*/{ s//\1/; q; }
236 # PATH needs CR, and LINENO needs CR and PATH.
237 # Avoid depending upon Character Ranges.
238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241 as_cr_digits='0123456789'
242 as_cr_alnum=$as_cr_Letters$as_cr_digits
244 # The user is always right.
245 if test "${PATH_SEPARATOR+set}" != set; then
246 echo "#! /bin/sh" >conftest.sh
247 echo "exit 0" >>conftest.sh
249 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
260 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
261 test "x$as_lineno_1" != "x$as_lineno_2" &&
262 test "x$as_lineno_3" = "x$as_lineno_2" || {
263 # Find who we are. Look in the path if we contain no path at all
266 *[\\/]* ) as_myself=$0 ;;
267 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
271 test -z "$as_dir" && as_dir=.
272 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
277 # We did not find ourselves, most probably we were run as `sh COMMAND'
278 # in which case we are not to be found in the path.
279 if test "x$as_myself" = x; then
282 if test ! -f "$as_myself"; then
283 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
284 { (exit 1); exit 1; }; }
286 case $CONFIG_SHELL in
288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
292 test -z "$as_dir" && as_dir=.
293 for as_base in sh bash ksh sh5; do
296 if ("$as_dir/$as_base" -c '
299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
300 test "x$as_lineno_1" != "x$as_lineno_2" &&
301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
302 CONFIG_SHELL=$as_dir/$as_base
304 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
312 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
313 # uniformly replaced by the line number. The first 'sed' inserts a
314 # line-number line before each line; the second 'sed' does the real
315 # work. The second script uses 'N' to pair each line-number line
316 # with the numbered line, and appends trailing '-' during
317 # substitution so that $LINENO is not a special case at line end.
318 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
319 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
320 sed '=' <$as_myself |
325 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
328 s,^['$as_cr_digits']*\n,,
330 chmod +x $as_me.lineno ||
331 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
332 { (exit 1); exit 1; }; }
334 # Don't try to exec as it changes $[0], causing all sort of problems
335 # (the dirname of $[0] is not the place where we might find the
336 # original and so on. Autoconf is especially sensible to this).
338 # Exit status is that of the last command.
343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
344 *c*,-n*) ECHO_N= ECHO_C='
346 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
347 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
350 if expr a : '\(a\)' >/dev/null 2>&1; then
356 rm -f conf$$ conf$$.exe conf$$.file
358 if ln -s conf$$.file conf$$ 2>/dev/null; then
359 # We could just check for DJGPP; but this test a) works b) is more generic
360 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
361 if test -f conf$$.exe; then
362 # Don't use ln at all; we don't have any links
367 elif ln conf$$.file conf$$ 2>/dev/null; then
372 rm -f conf$$ conf$$.exe conf$$.file
374 as_executable_p="test -f"
376 # Sed expression to map a string onto a valid CPP name.
377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
379 # Sed expression to map a string onto a valid variable name.
380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
384 # We need space, tab and new line, in precisely that order.
390 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
408 SHELL=${CONFIG_SHELL-/bin/sh}
410 # Maximum number of lines to put in a shell here document.
411 # This variable seems obsolete. It should probably be removed, and
412 # only ac_max_sed_lines should be used.
413 : ${ac_max_here_lines=38}
415 # Identity of this package.
417 PACKAGE_TARNAME='fgis'
418 PACKAGE_VERSION='0.0.1'
419 PACKAGE_STRING='fGIS 0.0.1'
420 PACKAGE_BUGREPORT='dron@remotesensing.org'
422 # Factoring default headers for most tests.
423 ac_includes_default="\
426 # include <sys/types.h>
429 # include <sys/stat.h>
440 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <strings.h>
449 # include <inttypes.h>
460 # Initialize some variables set by options.
462 ac_init_version=false
463 # The variables have the same names as the options, with
464 # dashes changed to underlines.
472 program_transform_name=s,x,x,
480 # Installation directory options.
481 # These are left unexpanded so users can "make install exec_prefix=/foo"
482 # and all the variables that are supposed to be based on exec_prefix
483 # by default will actually change.
484 # Use braces instead of parens because sh, perl, etc. also accept them.
485 bindir='${exec_prefix}/bin'
486 sbindir='${exec_prefix}/sbin'
487 libexecdir='${exec_prefix}/libexec'
488 datadir='${prefix}/share'
489 sysconfdir='${prefix}/etc'
490 sharedstatedir='${prefix}/com'
491 localstatedir='${prefix}/var'
492 libdir='${exec_prefix}/lib'
493 includedir='${prefix}/include'
494 oldincludedir='/usr/include'
495 infodir='${prefix}/info'
496 mandir='${prefix}/man'
501 # If the previous option needs an argument, assign it.
502 if test -n "$ac_prev"; then
503 eval "$ac_prev=\$ac_option"
508 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
510 # Accept the important Cygnus configure options, so we can diagnose typos.
514 -bindir | --bindir | --bindi | --bind | --bin | --bi)
516 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
519 -build | --build | --buil | --bui | --bu)
520 ac_prev=build_alias ;;
521 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
522 build_alias=$ac_optarg ;;
524 -cache-file | --cache-file | --cache-fil | --cache-fi \
525 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
526 ac_prev=cache_file ;;
527 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
528 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
529 cache_file=$ac_optarg ;;
532 cache_file=config.cache ;;
534 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
536 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
538 datadir=$ac_optarg ;;
540 -disable-* | --disable-*)
541 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
542 # Reject names that are not valid shell variable names.
543 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
544 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
545 { (exit 1); exit 1; }; }
546 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
547 eval "enable_$ac_feature=no" ;;
549 -enable-* | --enable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "enable_$ac_feature='$ac_optarg'" ;;
562 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564 | --exec | --exe | --ex)
565 ac_prev=exec_prefix ;;
566 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568 | --exec=* | --exe=* | --ex=*)
569 exec_prefix=$ac_optarg ;;
571 -gas | --gas | --ga | --g)
572 # Obsolete; use --with-gas.
575 -help | --help | --hel | --he | -h)
577 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
578 ac_init_help=recursive ;;
579 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
580 ac_init_help=short ;;
582 -host | --host | --hos | --ho)
583 ac_prev=host_alias ;;
584 -host=* | --host=* | --hos=* | --ho=*)
585 host_alias=$ac_optarg ;;
587 -includedir | --includedir | --includedi | --included | --include \
588 | --includ | --inclu | --incl | --inc)
589 ac_prev=includedir ;;
590 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
591 | --includ=* | --inclu=* | --incl=* | --inc=*)
592 includedir=$ac_optarg ;;
594 -infodir | --infodir | --infodi | --infod | --info | --inf)
596 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
597 infodir=$ac_optarg ;;
599 -libdir | --libdir | --libdi | --libd)
601 -libdir=* | --libdir=* | --libdi=* | --libd=*)
604 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
605 | --libexe | --libex | --libe)
606 ac_prev=libexecdir ;;
607 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
608 | --libexe=* | --libex=* | --libe=*)
609 libexecdir=$ac_optarg ;;
611 -localstatedir | --localstatedir | --localstatedi | --localstated \
612 | --localstate | --localstat | --localsta | --localst \
613 | --locals | --local | --loca | --loc | --lo)
614 ac_prev=localstatedir ;;
615 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
616 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
617 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
618 localstatedir=$ac_optarg ;;
620 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
622 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 # Obsolete; use --without-fp.
629 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
630 | --no-cr | --no-c | -n)
633 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
634 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
637 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
638 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
639 | --oldin | --oldi | --old | --ol | --o)
640 ac_prev=oldincludedir ;;
641 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
642 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
643 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
644 oldincludedir=$ac_optarg ;;
646 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
648 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
651 -program-prefix | --program-prefix | --program-prefi | --program-pref \
652 | --program-pre | --program-pr | --program-p)
653 ac_prev=program_prefix ;;
654 -program-prefix=* | --program-prefix=* | --program-prefi=* \
655 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
656 program_prefix=$ac_optarg ;;
658 -program-suffix | --program-suffix | --program-suffi | --program-suff \
659 | --program-suf | --program-su | --program-s)
660 ac_prev=program_suffix ;;
661 -program-suffix=* | --program-suffix=* | --program-suffi=* \
662 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
663 program_suffix=$ac_optarg ;;
665 -program-transform-name | --program-transform-name \
666 | --program-transform-nam | --program-transform-na \
667 | --program-transform-n | --program-transform- \
668 | --program-transform | --program-transfor \
669 | --program-transfo | --program-transf \
670 | --program-trans | --program-tran \
671 | --progr-tra | --program-tr | --program-t)
672 ac_prev=program_transform_name ;;
673 -program-transform-name=* | --program-transform-name=* \
674 | --program-transform-nam=* | --program-transform-na=* \
675 | --program-transform-n=* | --program-transform-=* \
676 | --program-transform=* | --program-transfor=* \
677 | --program-transfo=* | --program-transf=* \
678 | --program-trans=* | --program-tran=* \
679 | --progr-tra=* | --program-tr=* | --program-t=*)
680 program_transform_name=$ac_optarg ;;
682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
683 | -silent | --silent | --silen | --sile | --sil)
686 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
688 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
690 sbindir=$ac_optarg ;;
692 -sharedstatedir | --sharedstatedir | --sharedstatedi \
693 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
694 | --sharedst | --shareds | --shared | --share | --shar \
696 ac_prev=sharedstatedir ;;
697 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
698 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
699 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
701 sharedstatedir=$ac_optarg ;;
703 -site | --site | --sit)
705 -site=* | --site=* | --sit=*)
708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
713 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
714 | --syscon | --sysco | --sysc | --sys | --sy)
715 ac_prev=sysconfdir ;;
716 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
717 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
718 sysconfdir=$ac_optarg ;;
720 -target | --target | --targe | --targ | --tar | --ta | --t)
721 ac_prev=target_alias ;;
722 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
723 target_alias=$ac_optarg ;;
725 -v | -verbose | --verbose | --verbos | --verbo | --verb)
728 -version | --version | --versio | --versi | --vers | -V)
732 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
733 # Reject names that are not valid shell variable names.
734 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
735 { echo "$as_me: error: invalid package name: $ac_package" >&2
736 { (exit 1); exit 1; }; }
737 ac_package=`echo $ac_package| sed 's/-/_/g'`
739 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
742 eval "with_$ac_package='$ac_optarg'" ;;
744 -without-* | --without-*)
745 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package | sed 's/-/_/g'`
751 eval "with_$ac_package=no" ;;
754 # Obsolete; use --with-x.
757 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
758 | --x-incl | --x-inc | --x-in | --x-i)
759 ac_prev=x_includes ;;
760 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
761 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
762 x_includes=$ac_optarg ;;
764 -x-libraries | --x-libraries | --x-librarie | --x-librari \
765 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
766 ac_prev=x_libraries ;;
767 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
768 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
769 x_libraries=$ac_optarg ;;
771 -*) { echo "$as_me: error: unrecognized option: $ac_option
772 Try \`$0 --help' for more information." >&2
773 { (exit 1); exit 1; }; }
777 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
778 # Reject names that are not valid shell variable names.
779 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
780 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
781 { (exit 1); exit 1; }; }
782 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
783 eval "$ac_envvar='$ac_optarg'"
787 # FIXME: should be removed in autoconf 3.0.
788 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
789 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
790 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
791 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 if test -n "$ac_prev"; then
798 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
799 { echo "$as_me: error: missing argument to $ac_option" >&2
800 { (exit 1); exit 1; }; }
803 # Be sure to have absolute paths.
804 for ac_var in exec_prefix prefix
806 eval ac_val=$`echo $ac_var`
808 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
809 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
810 { (exit 1); exit 1; }; };;
814 # Be sure to have absolute paths.
815 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
816 localstatedir libdir includedir oldincludedir infodir mandir
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # There might be people who depend on the old broken behavior: `$host'
827 # used to hold the argument of --host etc.
828 # FIXME: To remove some day.
833 # FIXME: To remove some day.
834 if test "x$host_alias" != x; then
835 if test "x$build_alias" = x; then
836 cross_compiling=maybe
837 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
838 If a cross compiler is detected then cross compile mode will be used." >&2
839 elif test "x$build_alias" != "x$host_alias"; then
845 test -n "$host_alias" && ac_tool_prefix=$host_alias-
847 test "$silent" = yes && exec 6>/dev/null
850 # Find the source files, if location was not specified.
851 if test -z "$srcdir"; then
852 ac_srcdir_defaulted=yes
853 # Try the directory containing this script, then its parent.
854 ac_confdir=`(dirname "$0") 2>/dev/null ||
855 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
856 X"$0" : 'X\(//\)[^/]' \| \
857 X"$0" : 'X\(//\)$' \| \
858 X"$0" : 'X\(/\)' \| \
859 . : '\(.\)' 2>/dev/null ||
861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
863 /^X\(\/\/\)$/{ s//\1/; q; }
864 /^X\(\/\).*/{ s//\1/; q; }
867 if test ! -r $srcdir/$ac_unique_file; then
871 ac_srcdir_defaulted=no
873 if test ! -r $srcdir/$ac_unique_file; then
874 if test "$ac_srcdir_defaulted" = yes; then
875 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
876 { (exit 1); exit 1; }; }
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
879 { (exit 1); exit 1; }; }
882 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
883 ac_env_build_alias_set=${build_alias+set}
884 ac_env_build_alias_value=$build_alias
885 ac_cv_env_build_alias_set=${build_alias+set}
886 ac_cv_env_build_alias_value=$build_alias
887 ac_env_host_alias_set=${host_alias+set}
888 ac_env_host_alias_value=$host_alias
889 ac_cv_env_host_alias_set=${host_alias+set}
890 ac_cv_env_host_alias_value=$host_alias
891 ac_env_target_alias_set=${target_alias+set}
892 ac_env_target_alias_value=$target_alias
893 ac_cv_env_target_alias_set=${target_alias+set}
894 ac_cv_env_target_alias_value=$target_alias
895 ac_env_CC_set=${CC+set}
897 ac_cv_env_CC_set=${CC+set}
898 ac_cv_env_CC_value=$CC
899 ac_env_CFLAGS_set=${CFLAGS+set}
900 ac_env_CFLAGS_value=$CFLAGS
901 ac_cv_env_CFLAGS_set=${CFLAGS+set}
902 ac_cv_env_CFLAGS_value=$CFLAGS
903 ac_env_LDFLAGS_set=${LDFLAGS+set}
904 ac_env_LDFLAGS_value=$LDFLAGS
905 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
906 ac_cv_env_LDFLAGS_value=$LDFLAGS
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CPP_set=${CPP+set}
912 ac_env_CPP_value=$CPP
913 ac_cv_env_CPP_set=${CPP+set}
914 ac_cv_env_CPP_value=$CPP
917 # Report the --help message.
919 if test "$ac_init_help" = "long"; then
920 # Omit some internal or obsolete options to make the list less imposing.
921 # This message is too long to be a string in the A/UX 3.1 sh.
923 \`configure' configures fGIS 0.0.1 to adapt to many kinds of systems.
925 Usage: $0 [OPTION]... [VAR=VALUE]...
927 To assign environment variables (e.g., CC, CFLAGS...), specify them as
928 VAR=VALUE. See below for descriptions of some of the useful variables.
930 Defaults for the options are specified in brackets.
933 -h, --help display this help and exit
934 --help=short display options specific to this package
935 --help=recursive display the short help of all the included packages
936 -V, --version display version information and exit
937 -q, --quiet, --silent do not print \`checking...' messages
938 --cache-file=FILE cache test results in FILE [disabled]
939 -C, --config-cache alias for \`--cache-file=config.cache'
940 -n, --no-create do not create output files
941 --srcdir=DIR find the sources in DIR [configure dir or \`..']
946 Installation directories:
947 --prefix=PREFIX install architecture-independent files in PREFIX
949 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
952 By default, \`make install' will install all the files in
953 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
954 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
955 for instance \`--prefix=\$HOME'.
957 For better control, use the options below.
959 Fine tuning of the installation directories:
960 --bindir=DIR user executables [EPREFIX/bin]
961 --sbindir=DIR system admin executables [EPREFIX/sbin]
962 --libexecdir=DIR program executables [EPREFIX/libexec]
963 --datadir=DIR read-only architecture-independent data [PREFIX/share]
964 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
965 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
966 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
967 --libdir=DIR object code libraries [EPREFIX/lib]
968 --includedir=DIR C header files [PREFIX/include]
969 --oldincludedir=DIR C header files for non-gcc [/usr/include]
970 --infodir=DIR info documentation [PREFIX/info]
971 --mandir=DIR man documentation [PREFIX/man]
977 --program-prefix=PREFIX prepend PREFIX to installed program names
978 --program-suffix=SUFFIX append SUFFIX to installed program names
979 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
982 --x-includes=DIR X include files are in DIR
983 --x-libraries=DIR X library files are in DIR
986 --build=BUILD configure for building on BUILD [guessed]
987 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 if test -n "$ac_init_help"; then
992 case $ac_init_help in
993 short | recursive ) echo "Configuration of fGIS 0.0.1:";;
998 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
999 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1000 --enable-shared=PKGS build shared libraries default=yes
1001 --enable-static=PKGS build static libraries default=yes
1002 --enable-fast-install=PKGS optimize for fast installation default=yes
1003 --disable-dependency-tracking Speeds up one-time builds
1004 --enable-dependency-tracking Do not reject slow dependency extractors
1005 --disable-libtool-lock avoid locking (might break parallel builds)
1008 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1009 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1010 --with-gnu-ld assume the C compiler uses GNU ld default=no
1011 --with-pic try to use only PIC/non-PIC objects default=use both
1012 --with-x use the X Window System
1013 --with-tcl=ARG Include Tcl support (ARG=yes or path)
1015 Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1027 Report bugs to <dron@remotesensing.org>.
1031 if test "$ac_init_help" = "recursive"; then
1032 # If there are subdirs, report their specific --help.
1034 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1035 test -d $ac_dir || continue
1038 if test "$ac_dir" != .; then
1039 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1040 # A "../" for each directory in $ac_dir_suffix.
1041 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1043 ac_dir_suffix= ac_top_builddir=
1047 .) # No --srcdir option. We are building in place.
1049 if test -z "$ac_top_builddir"; then
1052 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1054 [\\/]* | ?:[\\/]* ) # Absolute path.
1055 ac_srcdir=$srcdir$ac_dir_suffix;
1056 ac_top_srcdir=$srcdir ;;
1058 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1059 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1061 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1063 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1064 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1065 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1066 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1069 # Check for guested configure; otherwise get Cygnus style configure.
1070 if test -f $ac_srcdir/configure.gnu; then
1072 $SHELL $ac_srcdir/configure.gnu --help=recursive
1073 elif test -f $ac_srcdir/configure; then
1075 $SHELL $ac_srcdir/configure --help=recursive
1076 elif test -f $ac_srcdir/configure.ac ||
1077 test -f $ac_srcdir/configure.in; then
1079 $ac_configure --help
1081 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1087 test -n "$ac_init_help" && exit 0
1088 if $ac_init_version; then
1090 fGIS configure 0.0.1
1091 generated by GNU Autoconf 2.53
1093 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1094 Free Software Foundation, Inc.
1095 This configure script is free software; the Free Software Foundation
1096 gives unlimited permission to copy, distribute and modify it.
1102 This file contains any messages produced by compilers while
1103 running configure, to aid debugging if configure makes a mistake.
1105 It was created by fGIS $as_me 0.0.1, which was
1106 generated by GNU Autoconf 2.53. Invocation command line was
1117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1129 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1140 test -z "$as_dir" && as_dir=.
1141 echo "PATH: $as_dir"
1156 # Keep a trace of the command line.
1157 # Strip out --no-create and --no-recursion so they do not pile up.
1158 # Also quote any args containing shell meta-characters.
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n ) continue ;;
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1170 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1172 case " $ac_configure_args " in
1173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1174 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1177 # Get rid of the leading space.
1180 # When interrupted or exit'd, cleanup temporary files, and complete
1181 # config.log. We remove comments because anyway the quotes in there
1182 # would cause problems or look ugly.
1183 # WARNING: Be sure not to use single quotes in there, as some shells,
1184 # such as our DU 5.0 friend, will then `close' the trap.
1185 trap 'exit_status=$?
1186 # Save into config.log some information that might help in debugging.
1190 ## ---------------- ##
1191 ## Cache variables. ##
1192 ## ---------------- ##
1195 # The following way of writing the cache mishandles newlines in values,
1198 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1201 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1206 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1211 if test -s confdefs.h; then
1218 sed "/^$/d" confdefs.h
1221 test "$ac_signal" != 0 &&
1222 echo "$as_me: caught signal $ac_signal"
1223 echo "$as_me: exit $exit_status"
1225 rm -f core core.* *.core &&
1226 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1229 for ac_signal in 1 2 13 15; do
1230 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1235 rm -rf conftest* confdefs.h
1236 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1239 # Predefined preprocessor variables.
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 # Let the site file select an alternate cache file if it wants to.
1267 # Prefer explicitly selected file to automatically selected ones.
1268 if test -z "$CONFIG_SITE"; then
1269 if test "x$prefix" != xNONE; then
1270 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1272 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1275 for ac_site_file in $CONFIG_SITE; do
1276 if test -r "$ac_site_file"; then
1277 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1278 echo "$as_me: loading site script $ac_site_file" >&6;}
1279 sed 's/^/| /' "$ac_site_file" >&5
1284 if test -r "$cache_file"; then
1285 # Some versions of bash will fail to source /dev/null (special
1286 # files actually), so we avoid doing that.
1287 if test -f "$cache_file"; then
1288 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1289 echo "$as_me: loading cache $cache_file" >&6;}
1291 [\\/]* | ?:[\\/]* ) . $cache_file;;
1292 *) . ./$cache_file;;
1296 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1297 echo "$as_me: creating cache $cache_file" >&6;}
1301 # Check that the precious variables saved in the cache have kept the same
1303 ac_cache_corrupted=false
1304 for ac_var in `(set) 2>&1 |
1305 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1306 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1307 eval ac_new_set=\$ac_env_${ac_var}_set
1308 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1309 eval ac_new_val="\$ac_env_${ac_var}_value"
1310 case $ac_old_set,$ac_new_set in
1312 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1314 ac_cache_corrupted=: ;;
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1321 if test "x$ac_old_val" != "x$ac_new_val"; then
1322 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1323 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1324 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1325 echo "$as_me: former value: $ac_old_val" >&2;}
1326 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1327 echo "$as_me: current value: $ac_new_val" >&2;}
1328 ac_cache_corrupted=:
1331 # Pass precious variables to config.status.
1332 if test "$ac_new_set" = set; then
1334 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336 *) ac_arg=$ac_var=$ac_new_val ;;
1338 case " $ac_configure_args " in
1339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1340 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344 if $ac_cache_corrupted; then
1345 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1346 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1347 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1348 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1349 { (exit 1); exit 1; }; }
1353 ac_cpp='$CPP $CPPFLAGS'
1354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 # AC_CONFIG_HEADERS([config.h])
1384 am__api_version="1.6"
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387 if test -f $ac_dir/install-sh; then
1389 ac_install_sh="$ac_aux_dir/install-sh -c"
1391 elif test -f $ac_dir/install.sh; then
1393 ac_install_sh="$ac_aux_dir/install.sh -c"
1395 elif test -f $ac_dir/shtool; then
1397 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Find a good install program. We prefer a C program (faster),
1411 # so one script is as good as another. But avoid the broken or
1412 # incompatible versions:
1413 # SysV /etc/install, /usr/sbin/install
1414 # SunOS /usr/etc/install
1415 # IRIX /sbin/install
1417 # AmigaOS /C/install, which installs bootblocks on floppy discs
1418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1421 # ./install, which can be erroneously created by make from ./install.sh.
1422 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1423 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1424 if test -z "$INSTALL"; then
1425 if test "${ac_cv_path_install+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 test -z "$as_dir" && as_dir=.
1433 # Account for people who put trailing slashes in PATH elements.
1435 ./ | .// | /cC/* | \
1436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1439 # OSF1 and SCO ODT 3.0 have their own names for install.
1440 # Don't use installbsd from OSF since it installs stuff as root
1442 for ac_prog in ginstall scoinst install; do
1443 for ac_exec_ext in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1445 if test $ac_prog = install &&
1446 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1447 # AIX install. It has an incompatible calling convention.
1449 elif test $ac_prog = install &&
1450 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1451 # program-specific install script used by HP pwplus--don't use.
1454 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1466 if test "${ac_cv_path_install+set}" = set; then
1467 INSTALL=$ac_cv_path_install
1469 # As a last resort, use the slow shell script. We don't cache a
1470 # path for INSTALL within a source directory, because that will
1471 # break other packages using the cache if that directory is
1472 # removed, or if the path is relative.
1473 INSTALL=$ac_install_sh
1476 echo "$as_me:$LINENO: result: $INSTALL" >&5
1477 echo "${ECHO_T}$INSTALL" >&6
1479 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1480 # It thinks the first close brace ends the variable substitution.
1481 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1483 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1485 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1487 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1488 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1491 echo timestamp > conftest.file
1492 # Do `set' in a subshell so we don't clobber the current shell's
1493 # arguments. Must try -L first in case configure is actually a
1494 # symlink; some systems play weird games with the mod time of symlinks
1495 # (eg FreeBSD returns the mod time of the symlink's containing
1498 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1499 if test "$*" = "X"; then
1501 set X `ls -t $srcdir/configure conftest.file`
1504 if test "$*" != "X $srcdir/configure conftest.file" \
1505 && test "$*" != "X conftest.file $srcdir/configure"; then
1507 # If neither matched, then we have a broken ls. This can happen
1508 # if, for instance, CONFIG_SHELL is bash and it inherits a
1509 # broken ls alias from the environment. This has actually
1510 # happened. Such a system could not be considered "sane".
1511 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1512 alias in your environment" >&5
1513 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1514 alias in your environment" >&2;}
1515 { (exit 1); exit 1; }; }
1518 test "$2" = conftest.file
1524 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1525 Check your system clock" >&5
1526 echo "$as_me: error: newly created file is older than distributed files!
1527 Check your system clock" >&2;}
1528 { (exit 1); exit 1; }; }
1530 echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1532 test "$program_prefix" != NONE &&
1533 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1534 # Use a double $ so make ignores it.
1535 test "$program_suffix" != NONE &&
1536 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1537 # Double any \ or $. echo might interpret backslashes.
1538 # By default was `s,x,x', remove it if useless.
1539 cat <<\_ACEOF >conftest.sed
1540 s/[\\$]/&&/g;s/;s,x,x,$//
1542 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1546 # expand $ac_aux_dir to an absolute path
1547 am_aux_dir=`cd $ac_aux_dir && pwd`
1549 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1550 # Use eval to expand $SHELL
1551 if eval "$MISSING --run true"; then
1552 am_missing_run="$MISSING --run "
1555 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1556 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1559 for ac_prog in gawk mawk nawk awk
1561 # Extract the first word of "$ac_prog", so it can be a program name with args.
1562 set dummy $ac_prog; ac_word=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_AWK+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 if test -n "$AWK"; then
1569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 ac_cv_prog_AWK="$ac_prog"
1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 if test -n "$AWK"; then
1589 echo "$as_me:$LINENO: result: $AWK" >&5
1590 echo "${ECHO_T}$AWK" >&6
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1596 test -n "$AWK" && break
1599 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1600 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1601 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1602 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 cat >conftest.make <<\_ACEOF
1607 @echo 'ac_maketemp="${MAKE}"'
1609 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1610 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1611 if test -n "$ac_maketemp"; then
1612 eval ac_cv_prog_make_${ac_make}_set=yes
1614 eval ac_cv_prog_make_${ac_make}_set=no
1618 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1619 echo "$as_me:$LINENO: result: yes" >&5
1620 echo "${ECHO_T}yes" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 SET_MAKE="MAKE=${MAKE-make}"
1628 # test to see if srcdir already configured
1629 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1630 test -f $srcdir/config.status; then
1631 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1632 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1633 { (exit 1); exit 1; }; }
1636 # Define the identity of the package.
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE "$PACKAGE"
1646 cat >>confdefs.h <<_ACEOF
1647 #define VERSION "$VERSION"
1650 # Some tools Automake needs.
1652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1667 AMTAR=${AMTAR-"${am_missing_run}tar"}
1669 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1671 # Installed binaries are usually stripped using `strip' when the user
1672 # run `make install-strip'. However `strip' might not be the right
1673 # tool to use in cross-compilation environments, therefore Automake
1674 # will honor the `STRIP' environment variable to overrule this program.
1675 if test "$cross_compiling" != no; then
1676 if test -n "$ac_tool_prefix"; then
1677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_STRIP+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 if test -n "$STRIP"; then
1685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 STRIP=$ac_cv_prog_STRIP
1704 if test -n "$STRIP"; then
1705 echo "$as_me:$LINENO: result: $STRIP" >&5
1706 echo "${ECHO_T}$STRIP" >&6
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1713 if test -z "$ac_cv_prog_STRIP"; then
1715 # Extract the first word of "strip", so it can be a program name with args.
1716 set dummy strip; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$ac_ct_STRIP"; then
1723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_STRIP="strip"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1743 if test -n "$ac_ct_STRIP"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1745 echo "${ECHO_T}$ac_ct_STRIP" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1753 STRIP="$ac_cv_prog_STRIP"
1757 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1759 # We need awk for the "check" target. The system "awk" is bad on
1764 # AC_CONFIG_SRCDIR([include/regex.h])
1765 # Add the stamp file to the list of files AC keeps track of,
1766 # along with our hook.
1767 ac_config_headers="$ac_config_headers include/config.h"
1773 # Check whether --enable-shared or --disable-shared was given.
1774 if test "${enable_shared+set}" = set; then
1775 enableval="$enable_shared"
1776 p=${PACKAGE-default}
1778 yes) enable_shared=yes ;;
1779 no) enable_shared=no ;;
1782 # Look at the argument we got. We use all the common list separators.
1783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1784 for pkg in $enableval; do
1785 if test "X$pkg" = "X$p"; then
1795 # Check whether --enable-static or --disable-static was given.
1796 if test "${enable_static+set}" = set; then
1797 enableval="$enable_static"
1798 p=${PACKAGE-default}
1800 yes) enable_static=yes ;;
1801 no) enable_static=no ;;
1804 # Look at the argument we got. We use all the common list separators.
1805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1806 for pkg in $enableval; do
1807 if test "X$pkg" = "X$p"; then
1817 # Check whether --enable-fast-install or --disable-fast-install was given.
1818 if test "${enable_fast_install+set}" = set; then
1819 enableval="$enable_fast_install"
1820 p=${PACKAGE-default}
1822 yes) enable_fast_install=yes ;;
1823 no) enable_fast_install=no ;;
1825 enable_fast_install=no
1826 # Look at the argument we got. We use all the common list separators.
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1828 for pkg in $enableval; do
1829 if test "X$pkg" = "X$p"; then
1830 enable_fast_install=yes
1837 enable_fast_install=yes
1839 # Make sure we can run config.sub.
1840 $ac_config_sub sun4 >/dev/null 2>&1 ||
1841 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1842 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1843 { (exit 1); exit 1; }; }
1845 echo "$as_me:$LINENO: checking build system type" >&5
1846 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1847 if test "${ac_cv_build+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 ac_cv_build_alias=$build_alias
1851 test -z "$ac_cv_build_alias" &&
1852 ac_cv_build_alias=`$ac_config_guess`
1853 test -z "$ac_cv_build_alias" &&
1854 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1855 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1856 { (exit 1); exit 1; }; }
1857 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1858 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1859 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1860 { (exit 1); exit 1; }; }
1863 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1864 echo "${ECHO_T}$ac_cv_build" >&6
1866 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1867 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1868 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1871 echo "$as_me:$LINENO: checking host system type" >&5
1872 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1873 if test "${ac_cv_host+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 ac_cv_host_alias=$host_alias
1877 test -z "$ac_cv_host_alias" &&
1878 ac_cv_host_alias=$ac_cv_build_alias
1879 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1880 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1881 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1882 { (exit 1); exit 1; }; }
1885 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1886 echo "${ECHO_T}$ac_cv_host" >&6
1888 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1889 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1890 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1893 rm -f .deps 2>/dev/null
1894 mkdir .deps 2>/dev/null
1895 if test -d .deps; then
1898 # MS-DOS does not allow filenames that begin with a dot.
1901 rmdir .deps 2>/dev/null
1904 ac_config_commands="$ac_config_commands depfiles"
1907 am_make=${MAKE-make}
1908 cat > confinc << 'END'
1912 # If we don't find an include directive, just comment out the code.
1913 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1914 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1918 # First try GNU make style include.
1919 echo "include confinc" > confmf
1920 # We grep out `Entering directory' and `Leaving directory'
1921 # messages which can occur if `w' ends up in MAKEFLAGS.
1922 # In particular we don't look at `^make:' because GNU make might
1923 # be invoked under some other name (usually "gmake"), in which
1924 # case it prints its new name instead of `make'.
1925 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1930 # Now try BSD make style include.
1931 if test "$am__include" = "#"; then
1932 echo '.include "confinc"' > confmf
1933 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1934 am__include=.include
1941 echo "$as_me:$LINENO: result: $_am_result" >&5
1942 echo "${ECHO_T}$_am_result" >&6
1943 rm -f confinc confmf
1945 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1946 if test "${enable_dependency_tracking+set}" = set; then
1947 enableval="$enable_dependency_tracking"
1950 if test "x$enable_dependency_tracking" != xno; then
1951 am_depcomp="$ac_aux_dir/depcomp"
1956 if test "x$enable_dependency_tracking" != xno; then
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 if test -n "$ac_tool_prefix"; then
1972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CC"; then
2000 echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2008 if test -z "$ac_cv_prog_CC"; then
2010 # Extract the first word of "gcc", so it can be a program name with args.
2011 set dummy gcc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$ac_ct_CC"; then
2018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_ac_ct_CC="gcc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2050 if test -z "$CC"; then
2051 if test -n "$ac_tool_prefix"; then
2052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_CC="${ac_tool_prefix}cc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 if test -n "$CC"; then
2080 echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6
2083 echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2088 if test -z "$ac_cv_prog_CC"; then
2090 # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107 ac_cv_prog_ac_ct_CC="cc"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2117 if test -n "$ac_ct_CC"; then
2118 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2119 echo "${ECHO_T}$ac_ct_CC" >&6
2121 echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2131 if test -z "$CC"; then
2132 # Extract the first word of "cc", so it can be a program name with args.
2133 set dummy cc; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2151 ac_prog_rejected=yes
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 if test $ac_prog_rejected = yes; then
2162 # We found a bogon in the path, so make sure we never use it.
2163 set dummy $ac_cv_prog_CC
2165 if test $# != 0; then
2166 # We chose a different compiler from the bogus one.
2167 # However, it has the same basename, so the bogon will be chosen
2168 # first if we set CC to just the basename; use the full file name.
2170 set dummy "$as_dir/$ac_word" ${1+"$@"}
2178 if test -n "$CC"; then
2179 echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6
2182 echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6
2187 if test -z "$CC"; then
2188 if test -n "$ac_tool_prefix"; then
2191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 if test -n "$CC"; then
2219 echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6
2222 echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2226 test -n "$CC" && break
2229 if test -z "$CC"; then
2233 # Extract the first word of "$ac_prog", so it can be a program name with args.
2234 set dummy $ac_prog; ac_word=$2
2235 echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 if test -n "$ac_ct_CC"; then
2241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250 ac_cv_prog_ac_ct_CC="$ac_prog"
2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2260 if test -n "$ac_ct_CC"; then
2261 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2262 echo "${ECHO_T}$ac_ct_CC" >&6
2264 echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2268 test -n "$ac_ct_CC" && break
2277 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2278 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2279 { (exit 1); exit 1; }; }
2281 # Provide some information about the compiler.
2282 echo "$as_me:$LINENO:" \
2283 "checking for C compiler version" >&5
2284 ac_compiler=`set X $ac_compile; echo $2`
2285 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2286 (eval $ac_compiler --version </dev/null >&5) 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }
2290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2291 (eval $ac_compiler -v </dev/null >&5) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2296 (eval $ac_compiler -V </dev/null >&5) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }
2301 cat >conftest.$ac_ext <<_ACEOF
2302 #line $LINENO "configure"
2303 #include "confdefs.h"
2305 #ifdef F77_DUMMY_MAIN
2309 int F77_DUMMY_MAIN() { return 1; }
2319 ac_clean_files_save=$ac_clean_files
2320 ac_clean_files="$ac_clean_files a.out a.exe"
2321 # Try to create an executable without -o first, disregard a.out.
2322 # It will help us diagnose broken compilers, and finding out an intuition
2324 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2325 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2326 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2328 (eval $ac_link_default) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 # Find the output, starting from the most likely. This scheme is
2333 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2336 # Be careful to initialize this variable, since it used to be cached.
2337 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2339 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2340 ls a.out conftest 2>/dev/null;
2341 ls a.* conftest.* 2>/dev/null`; do
2343 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2344 a.out ) # We found the default executable, but exeext='' is most
2347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2348 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2355 echo "$as_me: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2358 echo "$as_me: error: C compiler cannot create executables" >&2;}
2359 { (exit 77); exit 77; }; }
2362 ac_exeext=$ac_cv_exeext
2363 echo "$as_me:$LINENO: result: $ac_file" >&5
2364 echo "${ECHO_T}$ac_file" >&6
2366 # Check the compiler produces executables we can run. If not, either
2367 # the compiler is broken, or we cross compile.
2368 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2369 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2370 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2371 # If not cross compiling, check that we can run a simple program.
2372 if test "$cross_compiling" != yes; then
2373 if { ac_try='./$ac_file'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 if test "$cross_compiling" = maybe; then
2384 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2385 If you meant to cross compile, use \`--host'." >&5
2386 echo "$as_me: error: cannot run C compiled programs.
2387 If you meant to cross compile, use \`--host'." >&2;}
2388 { (exit 1); exit 1; }; }
2392 echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2395 rm -f a.out a.exe conftest$ac_cv_exeext
2396 ac_clean_files=$ac_clean_files_save
2397 # Check the compiler produces executables we can run. If not, either
2398 # the compiler is broken, or we cross compile.
2399 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2400 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2401 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2402 echo "${ECHO_T}$cross_compiling" >&6
2404 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2405 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2407 (eval $ac_link) 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; then
2411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2412 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2413 # work properly (i.e., refer to `conftest.exe'), while it won't with
2415 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2417 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2418 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2426 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2427 { (exit 1); exit 1; }; }
2430 rm -f conftest$ac_cv_exeext
2431 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2432 echo "${ECHO_T}$ac_cv_exeext" >&6
2434 rm -f conftest.$ac_ext
2435 EXEEXT=$ac_cv_exeext
2437 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2438 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2439 if test "${ac_cv_objext+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 cat >conftest.$ac_ext <<_ACEOF
2443 #line $LINENO "configure"
2444 #include "confdefs.h"
2446 #ifdef F77_DUMMY_MAIN
2450 int F77_DUMMY_MAIN() { return 1; }
2460 rm -f conftest.o conftest.obj
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462 (eval $ac_compile) 2>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; then
2466 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2474 echo "$as_me: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2476 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2477 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2478 { (exit 1); exit 1; }; }
2481 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2483 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2484 echo "${ECHO_T}$ac_cv_objext" >&6
2485 OBJEXT=$ac_cv_objext
2487 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2488 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2489 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 cat >conftest.$ac_ext <<_ACEOF
2493 #line $LINENO "configure"
2494 #include "confdefs.h"
2496 #ifdef F77_DUMMY_MAIN
2500 int F77_DUMMY_MAIN() { return 1; }
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2527 echo "$as_me: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2531 rm -f conftest.$ac_objext conftest.$ac_ext
2532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2535 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2537 GCC=`test $ac_compiler_gnu = yes && echo yes`
2538 ac_test_CFLAGS=${CFLAGS+set}
2539 ac_save_CFLAGS=$CFLAGS
2541 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2542 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_g+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 cat >conftest.$ac_ext <<_ACEOF
2547 #line $LINENO "configure"
2548 #include "confdefs.h"
2550 #ifdef F77_DUMMY_MAIN
2554 int F77_DUMMY_MAIN() { return 1; }
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2578 echo "$as_me: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2582 rm -f conftest.$ac_objext conftest.$ac_ext
2584 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2585 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2586 if test "$ac_test_CFLAGS" = set; then
2587 CFLAGS=$ac_save_CFLAGS
2588 elif test $ac_cv_prog_cc_g = yes; then
2589 if test "$GCC" = yes; then
2595 if test "$GCC" = yes; then
2601 # Some people use a C++ compiler to compile C. Since we use `exit',
2602 # in C++ we need to declare it. In case someone uses the same compiler
2603 # for both compiling C and C++ we need to have the C++ compiler decide
2604 # the declaration of exit, since it's the most demanding environment.
2605 cat >conftest.$ac_ext <<_ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 for ac_declaration in \
2624 '#include <stdlib.h>' \
2625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 #include "confdefs.h"
2636 #ifdef F77_DUMMY_MAIN
2640 int F77_DUMMY_MAIN() { return 1; }
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2668 rm -f conftest.$ac_objext conftest.$ac_ext
2669 cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 #include "confdefs.h"
2673 #ifdef F77_DUMMY_MAIN
2677 int F77_DUMMY_MAIN() { return 1; }
2687 rm -f conftest.$ac_objext
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2701 echo "$as_me: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2704 rm -f conftest.$ac_objext conftest.$ac_ext
2707 if test -n "$ac_declaration"; then
2708 echo '#ifdef __cplusplus' >>confdefs.h
2709 echo $ac_declaration >>confdefs.h
2710 echo '#endif' >>confdefs.h
2714 echo "$as_me: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 rm -f conftest.$ac_objext conftest.$ac_ext
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 depcc="$CC" am_compiler_list=
2726 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2727 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2728 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2732 # We make a subdir and do the tests there. Otherwise we can end up
2733 # making bogus files that we don't know about and never remove. For
2734 # instance it was reported that on HP-UX the gcc test will end up
2735 # making a dummy file named `D' -- because `-MD' means `put the output
2738 # Copy depcomp to subdir because otherwise we won't find it if we're
2739 # using a relative directory.
2740 cp "$am_depcomp" conftest.dir
2743 am_cv_CC_dependencies_compiler_type=none
2744 if test "$am_compiler_list" = ""; then
2745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2747 for depmode in $am_compiler_list; do
2748 # We need to recreate these files for each test, as the compiler may
2749 # overwrite some of them when testing with obscure command lines.
2750 # This happens at least with the AIX C compiler.
2751 echo '#include "conftest.h"' > conftest.c
2752 echo 'int i;' > conftest.h
2753 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2757 # after this tag, mechanisms are not by side-effect, so they'll
2758 # only be used when explicitly requested
2759 if test "x$enable_dependency_tracking" = xyes; then
2767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2768 # mode. It turns out that the SunPro C++ compiler does not properly
2769 # handle `-M -o', and we need to detect this.
2770 if depmode=$depmode \
2771 source=conftest.c object=conftest.o \
2772 depfile=conftest.Po tmpdepfile=conftest.TPo \
2773 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2774 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2776 am_cv_CC_dependencies_compiler_type=$depmode
2784 am_cv_CC_dependencies_compiler_type=none
2788 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2789 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2790 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2793 # Find the correct PATH separator. Usually this is `:', but
2794 # DJGPP uses `;' like DOS.
2795 if test "X${PATH_SEPARATOR+set}" != Xset; then
2796 UNAME=${UNAME-`uname 2>/dev/null`}
2798 *-DOS) lt_cv_sys_path_separator=';' ;;
2799 *) lt_cv_sys_path_separator=':' ;;
2801 PATH_SEPARATOR=$lt_cv_sys_path_separator
2805 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2806 if test "${with_gnu_ld+set}" = set; then
2807 withval="$with_gnu_ld"
2808 test "$withval" = no || with_gnu_ld=yes
2813 if test "$GCC" = yes; then
2814 # Check if gcc -print-prog-name=ld gives a path.
2815 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2816 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2819 # gcc leaves a trailing carriage return which upsets mingw
2820 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2822 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2825 # Accept absolute paths.
2826 [\\/]* | [A-Za-z]:[\\/]*)
2827 re_direlt='/[^/][^/]*/\.\./'
2828 # Canonicalize the path of ld
2829 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2830 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2831 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2833 test -z "$LD" && LD="$ac_prog"
2836 # If it fails, then pretend we aren't using GCC.
2840 # If it is relative, then search for the first ld in PATH.
2844 elif test "$with_gnu_ld" = yes; then
2845 echo "$as_me:$LINENO: checking for GNU ld" >&5
2846 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2848 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2849 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2851 if test "${lt_cv_path_LD+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -z "$LD"; then
2855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2856 for ac_dir in $PATH; do
2857 test -z "$ac_dir" && ac_dir=.
2858 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2859 lt_cv_path_LD="$ac_dir/$ac_prog"
2860 # Check to see if the program is GNU ld. I'd rather use --version,
2861 # but apparently some GNU ld's only accept -v.
2862 # Break only if it was the GNU/non-GNU ld that we prefer.
2863 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2864 test "$with_gnu_ld" != no && break
2866 test "$with_gnu_ld" != yes && break
2872 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2877 if test -n "$LD"; then
2878 echo "$as_me:$LINENO: result: $LD" >&5
2879 echo "${ECHO_T}$LD" >&6
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2884 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2885 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2886 { (exit 1); exit 1; }; }
2887 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2888 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2889 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2893 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2894 lt_cv_prog_gnu_ld=yes
2896 lt_cv_prog_gnu_ld=no
2899 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2900 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2901 with_gnu_ld=$lt_cv_prog_gnu_ld
2904 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2905 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2906 if test "${lt_cv_ld_reload_flag+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 lt_cv_ld_reload_flag='-r'
2911 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2912 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2913 reload_flag=$lt_cv_ld_reload_flag
2914 test -n "$reload_flag" && reload_flag=" $reload_flag"
2916 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2917 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2918 if test "${lt_cv_path_NM+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 if test -n "$NM"; then
2922 # Let the user override the test.
2925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2926 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2927 test -z "$ac_dir" && ac_dir=.
2928 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2929 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2930 # Check to see if the nm accepts a BSD-compat flag.
2931 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2932 # nm: unknown option "B" ignored
2933 # Tru64's nm complains that /dev/null is an invalid object file
2934 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2935 lt_cv_path_NM="$tmp_nm -B"
2937 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2938 lt_cv_path_NM="$tmp_nm -p"
2941 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2942 continue # so that we can try to find one that supports BSD flags
2947 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2952 echo "$as_me:$LINENO: result: $NM" >&5
2953 echo "${ECHO_T}$NM" >&6
2955 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2958 if test "$LN_S" = "ln -s"; then
2959 echo "$as_me:$LINENO: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2962 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2963 echo "${ECHO_T}no, using $LN_S" >&6
2966 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2967 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2968 if test "${lt_cv_deplibs_check_method+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 lt_cv_file_magic_cmd='$MAGIC_CMD'
2972 lt_cv_file_magic_test_file=
2973 lt_cv_deplibs_check_method='unknown'
2974 # Need to set the preceding variable on all platforms that support
2975 # interlibrary dependencies.
2976 # 'none' -- dependencies not supported.
2977 # `unknown' -- same as none, but documents that we really don't know.
2978 # 'pass_all' -- all dependencies passed with no checks.
2979 # 'test_compile' -- check by making test program.
2980 # 'file_magic [[regex]]' -- check by looking for files in library path
2981 # which responds to the $file_magic_cmd with a given egrep regex.
2982 # If you have `file' or equivalent on your system and you're not sure
2983 # whether `pass_all' will *always* work, you probably want this one.
2987 lt_cv_deplibs_check_method=pass_all
2991 lt_cv_deplibs_check_method=pass_all
2995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2996 lt_cv_file_magic_cmd='/usr/bin/file -L'
2997 lt_cv_file_magic_test_file=/shlib/libc.so
3000 cygwin* | mingw* | pw32*)
3001 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3002 lt_cv_file_magic_cmd='$OBJDUMP -f'
3005 darwin* | rhapsody*)
3006 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3007 lt_cv_file_magic_cmd='/usr/bin/file -L'
3009 rhapsody* | darwin1.[012])
3010 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3013 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3019 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3022 # Not sure whether the presence of OpenBSD here was a mistake.
3023 # Let's accept both of them until this is cleared up.
3024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3025 lt_cv_file_magic_cmd=/usr/bin/file
3026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3030 lt_cv_deplibs_check_method=pass_all
3035 lt_cv_deplibs_check_method=pass_all
3039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3040 lt_cv_file_magic_cmd=/usr/bin/file
3041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3044 irix5* | irix6* | nonstopux*)
3046 irix5* | nonstopux*)
3047 # this will be overridden with pass_all, but let us keep it just in case
3048 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3052 *-32|*"-32 ") libmagic=32-bit;;
3053 *-n32|*"-n32 ") libmagic=N32;;
3054 *-64|*"-64 ") libmagic=64-bit;;
3055 *) libmagic=never-match;;
3057 # this will be overridden with pass_all, but let us keep it just in case
3058 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3061 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3062 lt_cv_deplibs_check_method=pass_all
3065 # This must be Linux ELF.
3067 lt_cv_deplibs_check_method=pass_all
3068 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3072 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3073 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3075 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3081 lt_cv_file_magic_cmd=/usr/bin/file
3082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3086 lt_cv_file_magic_cmd=/usr/bin/file
3087 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3091 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3095 osf3* | osf4* | osf5*)
3096 # this will be overridden with pass_all, but let us keep it just in case
3097 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3098 lt_cv_file_magic_test_file=/shlib/libc.so
3099 lt_cv_deplibs_check_method=pass_all
3103 lt_cv_deplibs_check_method=pass_all
3107 lt_cv_deplibs_check_method=pass_all
3108 lt_cv_file_magic_test_file=/lib/libc.so
3111 sysv5uw[78]* | sysv4*uw2*)
3112 lt_cv_deplibs_check_method=pass_all
3115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3116 case $host_vendor in
3118 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]'
3119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3122 lt_cv_deplibs_check_method=pass_all
3125 lt_cv_file_magic_cmd='/bin/file'
3126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3129 lt_cv_file_magic_cmd='/bin/file'
3130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3131 lt_cv_file_magic_test_file=/lib/libc.so
3138 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3139 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3140 file_magic_cmd=$lt_cv_file_magic_cmd
3141 deplibs_check_method=$lt_cv_deplibs_check_method
3150 # Check for command to grab the raw symbol name followed by C symbol from nm.
3151 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3152 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3153 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 # These are sane defaults that work on at least a few old systems.
3158 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3160 # Character class describing NM global symbol codes.
3161 symcode='[BCDEGRST]'
3163 # Regexp to match symbols that can be accessed directly from C.
3164 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3166 # Transform the above into a raw symbol and a C symbol.
3167 symxfrm='\1 \2\3 \3'
3169 # Transform an extracted symbol line into a proper C declaration
3170 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3172 # Transform an extracted symbol line into symbol name and symbol address
3173 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'"
3175 # Define system-specific variables.
3180 cygwin* | mingw* | pw32*)
3181 symcode='[ABCDGISTW]'
3183 hpux*) # Its linker distinguishes data from code symbols
3184 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3185 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'"
3188 symcode='[BCDEGRST]'
3198 # Handle CRLF in mingw tool chain
3202 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3206 # If we're using GNU nm, then use its standard symbol codes.
3207 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3208 symcode='[ABCDGISTW]'
3211 # Try without a prefix undercore, then with it.
3212 for ac_symprfx in "" "_"; do
3214 # Write the raw and C identifiers.
3215 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3217 # Check to see that the pipe works correctly.
3220 cat > conftest.$ac_ext <<EOF
3225 void nm_test_func(){}
3229 int main(){nm_test_var='a';nm_test_func();return(0);}
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; then
3237 # Now try to grab the symbols.
3239 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3240 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && test -s "$nlist"; then
3244 # Try sorting and uniquifying the output.
3245 if sort "$nlist" | uniq > "$nlist"T; then
3246 mv -f "$nlist"T "$nlist"
3251 # Make sure that we snagged all the symbols we need.
3252 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3253 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3254 cat <<EOF > conftest.$ac_ext
3260 # Now generate the symbol file.
3261 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3263 cat <<EOF >> conftest.$ac_ext
3264 #if defined (__STDC__) && __STDC__
3265 # define lt_ptr void *
3267 # define lt_ptr char *
3271 /* The mapping between symbol names and symbols. */
3276 lt_preloaded_symbols[] =
3279 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3280 cat <<\EOF >> conftest.$ac_ext
3288 # Now try linking the two files.
3289 mv conftest.$ac_objext conftstm.$ac_objext
3291 save_CFLAGS="$CFLAGS"
3292 LIBS="conftstm.$ac_objext"
3293 CFLAGS="$CFLAGS$no_builtin_flag"
3294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && test -s conftest; then
3302 CFLAGS="$save_CFLAGS"
3304 echo "cannot find nm_test_func in $nlist" >&5
3307 echo "cannot find nm_test_var in $nlist" >&5
3310 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3313 echo "$progname: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 rm -f conftest* conftst*
3318 # Do not use the global_symbol_pipe unless it works.
3319 if test "$pipe_works" = yes; then
3322 lt_cv_sys_global_symbol_pipe=
3328 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3329 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3330 global_symbol_to_cdecl=
3331 global_symbol_to_c_name_address=
3333 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3334 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3336 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3338 echo "$as_me:$LINENO: result: failed" >&5
3339 echo "${ECHO_T}failed" >&6
3341 echo "$as_me:$LINENO: result: ok" >&5
3342 echo "${ECHO_T}ok" >&6
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3351 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3352 # On Suns, sometimes $CPP names a directory.
3353 if test -n "$CPP" && test -d "$CPP"; then
3356 if test -z "$CPP"; then
3357 if test "${ac_cv_prog_CPP+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 # Double quotes because CPP needs to be expanded
3361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364 for ac_c_preproc_warn_flag in '' yes
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # On the NeXT, cc -E runs the code through the compiler's parser,
3369 # not just through cpp. "Syntax error" is here to catch this case.
3370 cat >conftest.$ac_ext <<_ACEOF
3371 #line $LINENO "configure"
3372 #include "confdefs.h"
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379 egrep -v '^ *\+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3392 if test -z "$ac_cpp_err"; then
3395 echo "$as_me: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3400 rm -f conftest.err conftest.$ac_ext
3402 # OK, works on sane cases. Now check whether non-existent headers
3403 # can be detected and how.
3404 cat >conftest.$ac_ext <<_ACEOF
3405 #line $LINENO "configure"
3406 #include "confdefs.h"
3407 #include <ac_nonexistent.h>
3409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412 egrep -v '^ *\+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3425 if test -z "$ac_cpp_err"; then
3426 # Broken: success on invalid input.
3429 echo "$as_me: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3431 # Passes both tests.
3435 rm -f conftest.err conftest.$ac_ext
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3452 echo "$as_me:$LINENO: result: $CPP" >&5
3453 echo "${ECHO_T}$CPP" >&6
3455 for ac_c_preproc_warn_flag in '' yes
3457 # Use a header file that comes with gcc, so configuring glibc
3458 # with a fresh cross-compiler works.
3459 # On the NeXT, cc -E runs the code through the compiler's parser,
3460 # not just through cpp. "Syntax error" is here to catch this case.
3461 cat >conftest.$ac_ext <<_ACEOF
3462 #line $LINENO "configure"
3463 #include "confdefs.h"
3467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3470 egrep -v '^ *\+' conftest.er1 >conftest.err
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev/null; then
3475 if test -s conftest.err; then
3476 ac_cpp_err=$ac_c_preproc_warn_flag
3483 if test -z "$ac_cpp_err"; then
3486 echo "$as_me: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3488 # Broken: fails on valid input.
3491 rm -f conftest.err conftest.$ac_ext
3493 # OK, works on sane cases. Now check whether non-existent headers
3494 # can be detected and how.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 #line $LINENO "configure"
3497 #include "confdefs.h"
3498 #include <ac_nonexistent.h>
3500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3503 egrep -v '^ *\+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } >/dev/null; then
3508 if test -s conftest.err; then
3509 ac_cpp_err=$ac_c_preproc_warn_flag
3516 if test -z "$ac_cpp_err"; then
3517 # Broken: success on invalid input.
3520 echo "$as_me: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 # Passes both tests.
3526 rm -f conftest.err conftest.$ac_ext
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3534 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3535 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3536 { (exit 1); exit 1; }; }
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3548 if test "${ac_cv_header_stdc+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 cat >conftest.$ac_ext <<_ACEOF
3552 #line $LINENO "configure"
3553 #include "confdefs.h"
3560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3563 egrep -v '^ *\+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null; then
3568 if test -s conftest.err; then
3569 ac_cpp_err=$ac_c_preproc_warn_flag
3576 if test -z "$ac_cpp_err"; then
3577 ac_cv_header_stdc=yes
3579 echo "$as_me: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3581 ac_cv_header_stdc=no
3583 rm -f conftest.err conftest.$ac_ext
3585 if test $ac_cv_header_stdc = yes; then
3586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3587 cat >conftest.$ac_ext <<_ACEOF
3588 #line $LINENO "configure"
3589 #include "confdefs.h"
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594 egrep "memchr" >/dev/null 2>&1; then
3597 ac_cv_header_stdc=no
3603 if test $ac_cv_header_stdc = yes; then
3604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3605 cat >conftest.$ac_ext <<_ACEOF
3606 #line $LINENO "configure"
3607 #include "confdefs.h"
3611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3612 egrep "free" >/dev/null 2>&1; then
3615 ac_cv_header_stdc=no
3621 if test $ac_cv_header_stdc = yes; then
3622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3623 if test "$cross_compiling" = yes; then
3626 cat >conftest.$ac_ext <<_ACEOF
3627 #line $LINENO "configure"
3628 #include "confdefs.h"
3630 #if ((' ' & 0x0FF) == 0x020)
3631 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3632 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3634 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3635 || ('j' <= (c) && (c) <= 'r') \
3636 || ('s' <= (c) && (c) <= 'z'))
3637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3645 for (i = 0; i < 256; i++)
3646 if (XOR (islower (i), ISLOWER (i))
3647 || toupper (i) != TOUPPER (i))
3652 rm -f conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3665 echo "$as_me: program exited with status $ac_status" >&5
3666 echo "$as_me: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3669 ac_cv_header_stdc=no
3671 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3675 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3676 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3677 if test $ac_cv_header_stdc = yes; then
3679 cat >>confdefs.h <<\_ACEOF
3680 #define STDC_HEADERS 1
3685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3696 inttypes.h stdint.h unistd.h
3698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3699 echo "$as_me:$LINENO: checking for $ac_header" >&5
3700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 #include "confdefs.h"
3707 $ac_includes_default
3709 #include <$ac_header>
3711 rm -f conftest.$ac_objext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 eval "$as_ac_Header=yes"
3725 echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 eval "$as_ac_Header=no"
3729 rm -f conftest.$ac_objext conftest.$ac_ext
3731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3734 cat >>confdefs.h <<_ACEOF
3735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3744 for ac_header in dlfcn.h
3746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3748 echo "$as_me:$LINENO: checking for $ac_header" >&5
3749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3756 # Is the header compilable?
3757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3760 #line $LINENO "configure"
3761 #include "confdefs.h"
3762 $ac_includes_default
3763 #include <$ac_header>
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -s conftest.$ac_objext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_header_compiler=yes
3779 echo "$as_me: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3781 ac_header_compiler=no
3783 rm -f conftest.$ac_objext conftest.$ac_ext
3784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3785 echo "${ECHO_T}$ac_header_compiler" >&6
3787 # Is the header present?
3788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3792 #include "confdefs.h"
3793 #include <$ac_header>
3795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3798 egrep -v '^ *\+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } >/dev/null; then
3803 if test -s conftest.err; then
3804 ac_cpp_err=$ac_c_preproc_warn_flag
3811 if test -z "$ac_cpp_err"; then
3812 ac_header_preproc=yes
3814 echo "$as_me: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3816 ac_header_preproc=no
3818 rm -f conftest.err conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3820 echo "${ECHO_T}$ac_header_preproc" >&6
3822 # So? What about this header?
3823 case $ac_header_compiler:$ac_header_preproc in
3825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3837 echo "$as_me:$LINENO: checking for $ac_header" >&5
3838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 eval "$as_ac_Header=$ac_header_preproc"
3844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3849 cat >>confdefs.h <<_ACEOF
3850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3861 # Only perform the check for file, if the check method requires it
3862 case $deplibs_check_method in
3864 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3865 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3866 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3867 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3875 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3878 ac_save_MAGIC_CMD="$MAGIC_CMD"
3879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3880 ac_dummy="/usr/bin:$PATH"
3881 for ac_dir in $ac_dummy; do
3882 test -z "$ac_dir" && ac_dir=.
3883 if test -f $ac_dir/${ac_tool_prefix}file; then
3884 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3885 if test -n "$file_magic_test_file"; then
3886 case $deplibs_check_method in
3888 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3891 egrep "$file_magic_regex" > /dev/null; then
3896 *** Warning: the command libtool uses to detect shared libraries,
3897 *** $file_magic_cmd, produces output that libtool cannot recognize.
3898 *** The result is that libtool may fail to recognize shared libraries
3899 *** as such. This will affect the creation of libtool libraries that
3900 *** depend on shared libraries, but programs linked with such libtool
3901 *** libraries will work regardless of this problem. Nevertheless, you
3902 *** may want to report the problem to your system manager and/or to
3903 *** bug-libtool@gnu.org
3913 MAGIC_CMD="$ac_save_MAGIC_CMD"
3918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3919 if test -n "$MAGIC_CMD"; then
3920 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3921 echo "${ECHO_T}$MAGIC_CMD" >&6
3923 echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3927 if test -z "$lt_cv_path_MAGIC_CMD"; then
3928 if test -n "$ac_tool_prefix"; then
3929 echo "$as_me:$LINENO: checking for file" >&5
3930 echo $ECHO_N "checking for file... $ECHO_C" >&6
3931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3942 ac_save_MAGIC_CMD="$MAGIC_CMD"
3943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3944 ac_dummy="/usr/bin:$PATH"
3945 for ac_dir in $ac_dummy; do
3946 test -z "$ac_dir" && ac_dir=.
3947 if test -f $ac_dir/file; then
3948 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3949 if test -n "$file_magic_test_file"; then
3950 case $deplibs_check_method in
3952 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3955 egrep "$file_magic_regex" > /dev/null; then
3960 *** Warning: the command libtool uses to detect shared libraries,
3961 *** $file_magic_cmd, produces output that libtool cannot recognize.
3962 *** The result is that libtool may fail to recognize shared libraries
3963 *** as such. This will affect the creation of libtool libraries that
3964 *** depend on shared libraries, but programs linked with such libtool
3965 *** libraries will work regardless of this problem. Nevertheless, you
3966 *** may want to report the problem to your system manager and/or to
3967 *** bug-libtool@gnu.org
3977 MAGIC_CMD="$ac_save_MAGIC_CMD"
3982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3983 if test -n "$MAGIC_CMD"; then
3984 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3985 echo "${ECHO_T}$MAGIC_CMD" >&6
3987 echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
4000 if test -n "$ac_tool_prefix"; then
4001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_prog_RANLIB+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 if test -n "$RANLIB"; then
4009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 RANLIB=$ac_cv_prog_RANLIB
4028 if test -n "$RANLIB"; then
4029 echo "$as_me:$LINENO: result: $RANLIB" >&5
4030 echo "${ECHO_T}$RANLIB" >&6
4032 echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4037 if test -z "$ac_cv_prog_RANLIB"; then
4038 ac_ct_RANLIB=$RANLIB
4039 # Extract the first word of "ranlib", so it can be a program name with args.
4040 set dummy ranlib; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$ac_ct_RANLIB"; then
4047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_ac_ct_RANLIB="ranlib"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4067 if test -n "$ac_ct_RANLIB"; then
4068 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4069 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4071 echo "$as_me:$LINENO: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4075 RANLIB=$ac_ct_RANLIB
4077 RANLIB="$ac_cv_prog_RANLIB"
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}strip; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_STRIP+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$STRIP"; then
4089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 STRIP=$ac_cv_prog_STRIP
4108 if test -n "$STRIP"; then
4109 echo "$as_me:$LINENO: result: $STRIP" >&5
4110 echo "${ECHO_T}$STRIP" >&6
4112 echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4117 if test -z "$ac_cv_prog_STRIP"; then
4119 # Extract the first word of "strip", so it can be a program name with args.
4120 set dummy strip; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$ac_ct_STRIP"; then
4127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_ac_ct_STRIP="strip"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4146 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4147 if test -n "$ac_ct_STRIP"; then
4148 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4149 echo "${ECHO_T}$ac_ct_STRIP" >&6
4151 echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4157 STRIP="$ac_cv_prog_STRIP"
4164 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4165 if test "${enable_libtool_lock+set}" = set; then
4166 enableval="$enable_libtool_lock"
4169 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4171 # Some flags need to be propagated to the compiler or linker for good
4175 # Find out which ABI we are using.
4176 echo '#line 4176 "configure"' > conftest.$ac_ext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178 (eval $ac_compile) 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; then
4182 case `/usr/bin/file conftest.$ac_objext` in
4198 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4199 SAVE_CFLAGS="$CFLAGS"
4200 CFLAGS="$CFLAGS -belf"
4201 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4202 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4203 if test "${lt_cv_cc_needs_belf+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214 cat >conftest.$ac_ext <<_ACEOF
4215 #line $LINENO "configure"
4216 #include "confdefs.h"
4218 #ifdef F77_DUMMY_MAIN
4222 int F77_DUMMY_MAIN() { return 1; }
4232 rm -f conftest.$ac_objext conftest$ac_exeext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4234 (eval $ac_link) 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -s conftest$ac_exeext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 lt_cv_cc_needs_belf=yes
4246 echo "$as_me: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4248 lt_cv_cc_needs_belf=no
4250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4259 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4260 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4261 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4262 CFLAGS="$SAVE_CFLAGS"
4269 # Sed substitution that helps us do robust quoting. It backslashifies
4270 # metacharacters that are still active within double-quoted strings.
4271 Xsed='sed -e s/^X//'
4272 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4274 # Same as above, but do not quote variable references.
4275 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4277 # Sed substitution to delay expansion of an escaped shell variable in a
4278 # double_quote_subst'ed string.
4279 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4285 default_ofile=libtool
4286 can_build_shared=yes
4288 # All known linkers require a `.a' archive for static linking (except M$VC,
4289 # which needs '.lib').
4291 ltmain="$ac_aux_dir/ltmain.sh"
4292 ofile="$default_ofile"
4293 with_gnu_ld="$lt_cv_prog_gnu_ld"
4294 need_locks="$enable_libtool_lock"
4297 old_CFLAGS="$CFLAGS"
4299 # Set sane defaults for various variables
4300 test -z "$AR" && AR=ar
4301 test -z "$AR_FLAGS" && AR_FLAGS=cru
4302 test -z "$AS" && AS=as
4303 test -z "$CC" && CC=cc
4304 test -z "$DLLTOOL" && DLLTOOL=dlltool
4305 test -z "$LD" && LD=ld
4306 test -z "$LN_S" && LN_S="ln -s"
4307 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4308 test -z "$NM" && NM=nm
4309 test -z "$OBJDUMP" && OBJDUMP=objdump
4310 test -z "$RANLIB" && RANLIB=:
4311 test -z "$STRIP" && STRIP=:
4312 test -z "$ac_objext" && ac_objext=o
4314 if test x"$host" != x"$build"; then
4315 ac_tool_prefix=${host_alias}-
4320 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4323 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4328 # AIX sometimes has problems with the GCC collect2 program. For some
4329 # reason, if we set the COLLECT_NAMES environment variable, the problems
4330 # vanish in a puff of smoke.
4331 if test "X${COLLECT_NAMES+set}" != Xset; then
4333 export COLLECT_NAMES
4338 # Determine commands to create old-style static archives.
4339 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4340 old_postinstall_cmds='chmod 644 $oldlib'
4341 old_postuninstall_cmds=
4343 if test -n "$RANLIB"; then
4346 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4349 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4352 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4355 # Allow CC to be a program name with arguments.
4359 echo "$as_me:$LINENO: checking for objdir" >&5
4360 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4361 rm -f .libs 2>/dev/null
4362 mkdir .libs 2>/dev/null
4363 if test -d .libs; then
4366 # MS-DOS does not allow filenames that begin with a dot.
4369 rmdir .libs 2>/dev/null
4370 echo "$as_me:$LINENO: result: $objdir" >&5
4371 echo "${ECHO_T}$objdir" >&6
4375 # Check whether --with-pic or --without-pic was given.
4376 if test "${with_pic+set}" = set; then
4382 test -z "$pic_mode" && pic_mode=default
4384 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4385 # in isolation, and that seeing it set (from the cache) indicates that
4386 # the associated values are set (in the cache) correctly too.
4387 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4389 if test "${lt_cv_prog_cc_pic+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 lt_cv_prog_cc_shlib=
4395 lt_cv_prog_cc_static=
4396 lt_cv_prog_cc_no_builtin=
4397 lt_cv_prog_cc_can_build_shared=$can_build_shared
4399 if test "$GCC" = yes; then
4400 lt_cv_prog_cc_wl='-Wl,'
4401 lt_cv_prog_cc_static='-static'
4405 # Below there is a dirty hack to force normal static linking with -ldl
4406 # The problem is because libdl dynamically linked with both libc and
4407 # libC (AIX C++ library), which obviously doesn't included in libraries
4408 # list by gcc. This cause undefined symbols with -static flags.
4409 # This hack allows C programs to be linked with "-static -ldl", but
4410 # not sure about C++ programs.
4411 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4414 # FIXME: we need at least 68020 code to build shared libraries, but
4415 # adding the `-m68020' flag to GCC prevents building anything better,
4417 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4419 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4420 # PIC is the default for these OSes.
4422 darwin* | rhapsody*)
4423 # PIC is the default on this platform
4424 # Common symbols not allowed in MH_DYLIB files
4425 lt_cv_prog_cc_pic='-fno-common'
4427 cygwin* | mingw* | pw32* | os2*)
4428 # This hack is so that the source file can tell whether it is being
4429 # built for inclusion in a dll (and should export symbols for example).
4430 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4433 if test -d /usr/nec; then
4434 lt_cv_prog_cc_pic=-Kconform_pic
4438 lt_cv_prog_cc_pic='-fPIC'
4442 # PORTME Check for PIC flags for the system compiler.
4444 aix3* | aix4* | aix5*)
4445 lt_cv_prog_cc_wl='-Wl,'
4446 # All AIX code is PIC.
4447 if test "$host_cpu" = ia64; then
4448 # AIX 5 now supports IA64 processor
4449 lt_cv_prog_cc_static='-Bstatic'
4451 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4455 hpux9* | hpux10* | hpux11*)
4456 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4457 lt_cv_prog_cc_wl='-Wl,'
4458 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4459 lt_cv_prog_cc_pic='+Z'
4462 irix5* | irix6* | nonstopux*)
4463 lt_cv_prog_cc_wl='-Wl,'
4464 lt_cv_prog_cc_static='-non_shared'
4465 # PIC (with -KPIC) is the default.
4468 cygwin* | mingw* | pw32* | os2*)
4469 # This hack is so that the source file can tell whether it is being
4470 # built for inclusion in a dll (and should export symbols for example).
4471 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4475 lt_cv_prog_cc_pic='-KPIC'
4476 lt_cv_prog_cc_static='-Bstatic'
4479 osf3* | osf4* | osf5*)
4480 # All OSF/1 code is PIC.
4481 lt_cv_prog_cc_wl='-Wl,'
4482 lt_cv_prog_cc_static='-non_shared'
4486 lt_cv_prog_cc_pic='-Kpic'
4487 lt_cv_prog_cc_static='-dn'
4488 lt_cv_prog_cc_shlib='-belf'
4492 lt_cv_prog_cc_pic='-KPIC'
4493 lt_cv_prog_cc_static='-Bstatic'
4494 lt_cv_prog_cc_wl='-Wl,'
4498 lt_cv_prog_cc_pic='-PIC'
4499 lt_cv_prog_cc_static='-Bstatic'
4500 lt_cv_prog_cc_wl='-Qoption ld '
4503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4504 lt_cv_prog_cc_pic='-KPIC'
4505 lt_cv_prog_cc_static='-Bstatic'
4506 if test "x$host_vendor" = xsni; then
4507 lt_cv_prog_cc_wl='-LD'
4509 lt_cv_prog_cc_wl='-Wl,'
4514 lt_cv_prog_cc_pic='-pic'
4515 lt_cv_prog_cc_static='-Bstatic'
4519 if test -d /usr/nec ;then
4520 lt_cv_prog_cc_pic='-Kconform_pic'
4521 lt_cv_prog_cc_static='-Bstatic'
4526 lt_cv_prog_cc_can_build_shared=no
4533 if test -z "$lt_cv_prog_cc_pic"; then
4534 echo "$as_me:$LINENO: result: none" >&5
4535 echo "${ECHO_T}none" >&6
4537 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4538 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4540 # Check to make sure the pic_flag actually works.
4541 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4542 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4543 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 save_CFLAGS="$CFLAGS"
4547 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4548 cat >conftest.$ac_ext <<_ACEOF
4549 #line $LINENO "configure"
4550 #include "confdefs.h"
4552 #ifdef F77_DUMMY_MAIN
4556 int F77_DUMMY_MAIN() { return 1; }
4566 rm -f conftest.$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4579 hpux9* | hpux10* | hpux11*)
4580 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4581 # they create non-PIC objects. So, if there were any warnings, we
4582 # assume that PIC is not supported.
4583 if test -s conftest.err; then
4584 lt_cv_prog_cc_pic_works=no
4586 lt_cv_prog_cc_pic_works=yes
4590 lt_cv_prog_cc_pic_works=yes
4595 echo "$as_me: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 lt_cv_prog_cc_pic_works=no
4600 rm -f conftest.$ac_objext conftest.$ac_ext
4601 CFLAGS="$save_CFLAGS"
4606 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4608 lt_cv_prog_cc_can_build_shared=no
4610 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4613 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4614 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4617 # Check for any special shared library compilation flags.
4618 if test -n "$lt_cv_prog_cc_shlib"; then
4619 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4620 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4621 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4623 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4624 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4625 lt_cv_prog_cc_can_build_shared=no
4629 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4630 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4631 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 lt_cv_prog_cc_static_works=no
4635 save_LDFLAGS="$LDFLAGS"
4636 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4637 cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 #include "confdefs.h"
4641 #ifdef F77_DUMMY_MAIN
4645 int F77_DUMMY_MAIN() { return 1; }
4655 rm -f conftest.$ac_objext conftest$ac_exeext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4657 (eval $ac_link) 2>&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -s conftest$ac_exeext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 lt_cv_prog_cc_static_works=yes
4669 echo "$as_me: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4673 LDFLAGS="$save_LDFLAGS"
4678 # Belt *and* braces to stop my trousers falling down:
4679 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4680 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4681 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4683 pic_flag="$lt_cv_prog_cc_pic"
4684 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4685 wl="$lt_cv_prog_cc_wl"
4686 link_static_flag="$lt_cv_prog_cc_static"
4687 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4688 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4691 # Check to see if options -o and -c are simultaneously supported by compiler
4692 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4693 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4694 if test "${lt_cv_compiler_c_o+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 $rm -r conftest 2>/dev/null
4701 echo "int some_variable = 0;" > conftest.$ac_ext
4703 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4704 # that will create temporary files in the current directory regardless of
4705 # the output directory. Thus, making CWD read-only will cause this test
4706 # to fail, enabling locking or at least warning the user not to do parallel
4709 save_CFLAGS="$CFLAGS"
4710 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4712 if { (eval echo configure:4712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4713 # The compiler can only warn and ignore the option if not recognized
4714 # So say no if there are warnings
4715 if test -s out/conftest.err; then
4716 lt_cv_compiler_c_o=no
4718 lt_cv_compiler_c_o=yes
4721 # Append any errors to the config.log.
4722 cat out/conftest.err 1>&5
4723 lt_cv_compiler_c_o=no
4725 CFLAGS="$save_CFLAGS"
4731 $rm -r conftest 2>/dev/null
4735 compiler_c_o=$lt_cv_compiler_c_o
4736 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4737 echo "${ECHO_T}$compiler_c_o" >&6
4739 if test x"$compiler_c_o" = x"yes"; then
4740 # Check to see if we can write to a .lo
4741 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4742 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4743 if test "${lt_cv_compiler_o_lo+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 lt_cv_compiler_o_lo=no
4748 save_CFLAGS="$CFLAGS"
4749 CFLAGS="$CFLAGS -c -o conftest.lo"
4750 save_objext="$ac_objext"
4752 cat >conftest.$ac_ext <<_ACEOF
4753 #line $LINENO "configure"
4754 #include "confdefs.h"
4756 #ifdef F77_DUMMY_MAIN
4760 int F77_DUMMY_MAIN() { return 1; }
4765 int some_variable = 0;
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772 (eval $ac_compile) 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 # The compiler can only warn and ignore the option if not recognized
4783 # So say no if there are warnings
4784 if test -s conftest.err; then
4785 lt_cv_compiler_o_lo=no
4787 lt_cv_compiler_o_lo=yes
4791 echo "$as_me: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4794 rm -f conftest.$ac_objext conftest.$ac_ext
4795 ac_objext="$save_objext"
4796 CFLAGS="$save_CFLAGS"
4800 compiler_o_lo=$lt_cv_compiler_o_lo
4801 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4802 echo "${ECHO_T}$compiler_o_lo" >&6
4807 # Check to see if we can do hard links to lock some files if needed
4808 hard_links="nottested"
4809 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4810 # do not overwrite the value of need_locks provided by the user
4811 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4812 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4817 ln conftest.a conftest.b 2>&5 || hard_links=no
4818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4819 echo "$as_me:$LINENO: result: $hard_links" >&5
4820 echo "${ECHO_T}$hard_links" >&6
4821 if test "$hard_links" = no; then
4822 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4823 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4830 if test "$GCC" = yes; then
4831 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4832 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4833 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4834 echo "int some_variable = 0;" > conftest.$ac_ext
4835 save_CFLAGS="$CFLAGS"
4836 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4837 compiler_rtti_exceptions=no
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 #include "confdefs.h"
4842 #ifdef F77_DUMMY_MAIN
4846 int F77_DUMMY_MAIN() { return 1; }
4851 int some_variable = 0;
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; 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 conftest.err; then
4871 compiler_rtti_exceptions=no
4873 compiler_rtti_exceptions=yes
4877 echo "$as_me: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4880 rm -f conftest.$ac_objext conftest.$ac_ext
4881 CFLAGS="$save_CFLAGS"
4882 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4883 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4885 if test "$compiler_rtti_exceptions" = "yes"; then
4886 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4888 no_builtin_flag=' -fno-builtin'
4892 # See if the linker supports building shared libraries.
4893 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4894 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4896 allow_undefined_flag=
4898 need_lib_prefix=unknown
4899 need_version=unknown
4900 # when you set need_version to no, make sure it does not cause -set_version
4901 # flags to be left without arguments
4903 archive_expsym_cmds=
4904 old_archive_from_new_cmds=
4905 old_archive_from_expsyms_cmds=
4906 export_dynamic_flag_spec=
4907 whole_archive_flag_spec=
4908 thread_safe_flag_spec=
4909 hardcode_into_libs=no
4910 hardcode_libdir_flag_spec=
4911 hardcode_libdir_separator=
4914 hardcode_shlibpath_var=unsupported
4916 link_all_deplibs=unknown
4917 always_export_symbols=no
4918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4919 # include_expsyms should be a list of space-separated symbols to be *always*
4920 # included in the symbol list
4922 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4923 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4924 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4925 # as well as any symbol that contains `d'.
4926 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4928 # platforms (ab)use it in PIC code, but their linkers get confused if
4929 # the symbol is explicitly referenced. Since portable code cannot
4930 # rely on this symbol name, it's probably fine to never include it in
4931 # preloaded symbol tables.
4932 extract_expsyms_cmds=
4935 cygwin* | mingw* | pw32*)
4936 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4937 # When not using gcc, we currently assume that we are using
4938 # Microsoft Visual C++.
4939 if test "$GCC" != yes; then
4949 if test "$with_gnu_ld" = yes; then
4950 # If archive_cmds runs LD, not CC, wlarc should be empty
4953 # See if GNU ld supports shared libraries.
4955 aix3* | aix4* | aix5*)
4956 # On AIX, the GNU linker is very broken
4957 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4961 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4962 *** to be unable to reliably create shared libraries on AIX.
4963 *** Therefore, libtool is disabling shared libraries support. If you
4964 *** really care for shared libraries, you may want to modify your PATH
4965 *** so that a non-GNU linker is found, and then restart.
4971 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)'
4972 hardcode_libdir_flag_spec='-L$libdir'
4973 hardcode_minus_L=yes
4975 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4976 # that the semantics of dynamic libraries on AmigaOS, at least up
4977 # to version 4, is to share data among multiple programs linked
4978 # with the same dynamic library. Since this doesn't match the
4979 # behavior of shared libraries on other platforms, we can use
4985 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4986 allow_undefined_flag=unsupported
4987 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4988 # support --undefined. This deserves some investigation. FIXME
4989 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4995 cygwin* | mingw* | pw32*)
4996 # hardcode_libdir_flag_spec is actually meaningless, as there is
4997 # no search path for DLLs.
4998 hardcode_libdir_flag_spec='-L$libdir'
4999 allow_undefined_flag=unsupported
5000 always_export_symbols=yes
5002 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5003 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5004 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5005 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5006 else $CC -o impgen impgen.c ; fi)~
5007 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5009 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5011 # cygwin and mingw dlls have different entry points and sets of symbols
5013 # FIXME: what about values for MSVC?
5014 dll_entry=__cygwin_dll_entry@12
5015 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5019 dll_entry=_DllMainCRTStartup@12
5020 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5024 # mingw and cygwin differ, and it's simplest to just exclude the union
5025 # of the two symbol sets.
5026 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5028 # recent cygwin and mingw systems supply a stub DllMain which the user
5029 # can override, but on older systems we have to supply one (in ltdll.c)
5030 if test "x$lt_cv_need_dllmain" = "xyes"; then
5031 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5032 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~
5033 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5039 # Extract the symbol export list from an `--export-all' def file,
5040 # then regenerate the def file from the symbol export list, so that
5041 # the compiled dll only exports the symbol export list.
5042 # Be careful not to strip the DATA tag left be newer dlltools.
5043 export_symbols_cmds="$ltdll_cmds"'
5044 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5045 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5047 # If the export-symbols file already is a .def file (1st line
5048 # is EXPORTS), use it as is.
5049 # If DATA tags from a recent dlltool are present, honour them!
5050 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5051 cp $export_symbols $output_objdir/$soname-def;
5053 echo EXPORTS > $output_objdir/$soname-def;
5055 cat $export_symbols | while read symbol; do
5058 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5059 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5061 _lt_hint=`expr 1 + \$_lt_hint`;
5065 $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~
5066 $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~
5067 $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~
5068 $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~
5069 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5074 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5077 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5078 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5083 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5087 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5088 *** create shared libraries on Solaris systems. Therefore, libtool
5089 *** is disabling shared libraries support. We urge you to upgrade GNU
5090 *** binutils to release 2.9.1 or newer. Another option is to modify
5091 *** your PATH or compiler configuration so that the native linker is
5092 *** used, and then restart.
5095 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5104 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5107 hardcode_shlibpath_var=no
5111 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5113 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5120 if test "$ld_shlibs" = yes; then
5121 runpath_var=LD_RUN_PATH
5122 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5123 export_dynamic_flag_spec='${wl}--export-dynamic'
5125 cygwin* | mingw* | pw32*)
5126 # dlltool doesn't understand --whole-archive et. al.
5127 whole_archive_flag_spec=
5130 # ancient GNU ld didn't support --whole-archive et. al.
5131 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5132 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5134 whole_archive_flag_spec=
5140 # PORTME fill in a description of your system's linker (not GNU ld)
5143 allow_undefined_flag=unsupported
5144 always_export_symbols=yes
5145 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'
5146 # Note: this linker hardcodes the directories in LIBPATH if there
5147 # are no directories specified by -L.
5148 hardcode_minus_L=yes
5149 if test "$GCC" = yes && test -z "$link_static_flag"; then
5150 # Neither direct hardcoding nor static linking is supported with a
5152 hardcode_direct=unsupported
5157 if test "$host_cpu" = ia64; then
5158 # On IA64, the linker does run time linking by default, so we don't
5159 # have to do anything special.
5160 aix_use_runtimelinking=no
5161 exp_sym_flag='-Bexport'
5164 aix_use_runtimelinking=no
5166 # Test if we are trying to use run time linking or normal
5167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5168 # need to do runtime linking.
5169 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5170 for ld_flag in $LDFLAGS; do
5171 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5172 aix_use_runtimelinking=yes
5178 exp_sym_flag='-bexport'
5179 no_entry_flag='-bnoentry'
5182 # When large executables or shared objects are built, AIX ld can
5183 # have problems creating the table of contents. If linking a library
5184 # or program results in "error TOC overflow" add -mminimal-toc to
5185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5190 hardcode_libdir_separator=':'
5191 if test "$GCC" = yes; then
5192 case $host_os in aix4.[012]|aix4.[012].*)
5193 collect2name=`${CC} -print-prog-name=collect2`
5194 if test -f "$collect2name" && \
5195 strings "$collect2name" | grep resolve_lib_name >/dev/null
5197 # We have reworked collect2
5200 # We have old collect2
5201 hardcode_direct=unsupported
5202 # It fails to find uninstalled libraries when the uninstalled
5203 # path is not listed in the libpath. Setting hardcode_minus_L
5204 # to unsupported forces relinking
5205 hardcode_minus_L=yes
5206 hardcode_libdir_flag_spec='-L$libdir'
5207 hardcode_libdir_separator=
5211 shared_flag='-shared'
5214 if test "$host_cpu" = ia64; then
5215 shared_flag='${wl}-G'
5217 if test "$aix_use_runtimelinking" = yes; then
5218 shared_flag='${wl}-G'
5220 shared_flag='${wl}-bM:SRE'
5225 # It seems that -bexpall can do strange things, so it is better to
5226 # generate a list of symbols to export.
5227 always_export_symbols=yes
5228 if test "$aix_use_runtimelinking" = yes; then
5229 # Warning - without using the other runtime loading flags (-brtl),
5230 # -berok will link without error, but may produce a broken library.
5231 allow_undefined_flag='-berok'
5232 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5233 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"
5235 if test "$host_cpu" = ia64; then
5236 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5237 allow_undefined_flag="-z nodefs"
5238 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"
5240 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5241 # Warning - without using the other run time loading flags,
5242 # -berok will link without error, but may produce a broken library.
5243 allow_undefined_flag='${wl}-berok'
5244 # This is a bit strange, but is similar to how AIX traditionally builds
5245 # it's shared libraries.
5246 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'
5252 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)'
5253 hardcode_libdir_flag_spec='-L$libdir'
5254 hardcode_minus_L=yes
5255 # see comment about different semantics on the GNU ld section
5259 cygwin* | mingw* | pw32*)
5260 # When not using gcc, we currently assume that we are using
5261 # Microsoft Visual C++.
5262 # hardcode_libdir_flag_spec is actually meaningless, as there is
5263 # no search path for DLLs.
5264 hardcode_libdir_flag_spec=' '
5265 allow_undefined_flag=unsupported
5266 # Tell ltmain to make .lib files, not .a files.
5268 # FIXME: Setting linknames here is a bad hack.
5269 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5270 # The linker will automatically build a .lib file if we build a DLL.
5271 old_archive_from_new_cmds='true'
5272 # FIXME: Should let the user specify the lib program.
5273 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5274 fix_srcfile_path='`cygpath -w "$srcfile"`'
5277 darwin* | rhapsody*)
5279 rhapsody* | darwin1.[012])
5280 allow_undefined_flag='-undefined suppress'
5283 allow_undefined_flag='-flat_namespace -undefined suppress'
5286 # FIXME: Relying on posixy $() will cause problems for
5287 # cross-compilation, but unfortunately the echo tests do not
5288 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5289 # `"' quotes if we put them in here... so don't!
5290 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5291 # We need to add '_' to the symbols in $export_symbols first
5292 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5294 hardcode_shlibpath_var=no
5295 whole_archive_flag_spec='-all_load $convenience'
5302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5303 # support. Future versions do this automatically, but an explicit c++rt0.o
5304 # does not break anything, and helps significantly (at the cost of a little
5307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5308 hardcode_libdir_flag_spec='-R$libdir'
5310 hardcode_shlibpath_var=no
5313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5317 hardcode_minus_L=yes
5318 hardcode_shlibpath_var=no
5321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5323 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5324 hardcode_libdir_flag_spec='-R$libdir'
5326 hardcode_shlibpath_var=no
5329 hpux9* | hpux10* | hpux11*)
5331 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' ;;
5332 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5335 hardcode_libdir_separator=:
5337 hardcode_minus_L=yes # Not in the search PATH, but as the default
5338 # location of the library.
5339 export_dynamic_flag_spec='${wl}-E'
5342 irix5* | irix6* | nonstopux*)
5343 if test "$GCC" = yes; then
5344 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'
5346 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'
5348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5349 hardcode_libdir_separator=:
5350 link_all_deplibs=yes
5354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5357 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5359 hardcode_libdir_flag_spec='-R$libdir'
5361 hardcode_shlibpath_var=no
5365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5368 hardcode_libdir_separator=:
5369 hardcode_shlibpath_var=no
5374 hardcode_shlibpath_var=no
5375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5378 export_dynamic_flag_spec='${wl}-E'
5381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5383 hardcode_libdir_flag_spec='-R$libdir'
5386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5394 hardcode_libdir_flag_spec='-L$libdir'
5395 hardcode_minus_L=yes
5396 allow_undefined_flag=unsupported
5397 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'
5398 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5402 if test "$GCC" = yes; then
5403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5404 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'
5406 allow_undefined_flag=' -expect_unresolved \*'
5407 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'
5409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5410 hardcode_libdir_separator=:
5413 osf4* | osf5*) # as osf3* with the addition of -msym flag
5414 if test "$GCC" = yes; then
5415 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5416 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'
5417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5419 allow_undefined_flag=' -expect_unresolved \*'
5420 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'
5421 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5422 $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'
5424 #Both c and cxx compiler support -rpath directly
5425 hardcode_libdir_flag_spec='-rpath $libdir'
5427 hardcode_libdir_separator=:
5431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5432 hardcode_shlibpath_var=no
5433 runpath_var=LD_RUN_PATH
5434 hardcode_runpath_var=yes
5435 export_dynamic_flag_spec='${wl}-Bexport'
5439 # gcc --version < 3.0 without binutils cannot create self contained
5440 # shared libraries reliably, requiring libgcc.a to resolve some of
5441 # the object symbols generated in some cases. Libraries that use
5442 # assert need libgcc.a to resolve __eprintf, for example. Linking
5443 # a copy of libgcc.a into every shared library to guarantee resolving
5444 # such symbols causes other problems: According to Tim Van Holder
5445 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5446 # (to the application) exception stack for one thing.
5447 no_undefined_flag=' -z defs'
5448 if test "$GCC" = yes; then
5449 case `$CC --version 2>/dev/null` in
5453 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5454 *** create self contained shared libraries on Solaris systems, without
5455 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5456 *** -no-undefined support, which will at least allow you to build shared
5457 *** libraries. However, you may find that when you link such libraries
5458 *** into an application without using GCC, you have to manually add
5459 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5460 *** upgrade to a newer version of GCC. Another option is to rebuild your
5461 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5468 # $CC -shared without GNU ld will not create a library from C++
5469 # object files and a static libstdc++, better avoid it by now
5470 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5471 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5473 hardcode_libdir_flag_spec='-R$libdir'
5474 hardcode_shlibpath_var=no
5476 solaris2.[0-5] | solaris2.[0-5].*) ;;
5477 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5478 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5480 link_all_deplibs=yes
5484 if test "x$host_vendor" = xsequent; then
5485 # Use $CC to link under sequent, because it throws in some extra .o
5486 # files that make .init and .fini sections work.
5487 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5489 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5491 hardcode_libdir_flag_spec='-L$libdir'
5493 hardcode_minus_L=yes
5494 hardcode_shlibpath_var=no
5498 if test "x$host_vendor" = xsno; then
5499 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5500 hardcode_direct=yes # is this really true???
5502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5503 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5505 runpath_var='LD_RUN_PATH'
5506 hardcode_shlibpath_var=no
5510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5511 hardcode_shlibpath_var=no
5512 export_dynamic_flag_spec='-Bexport'
5516 no_undefined_flag=' -z text'
5517 # $CC -shared without GNU ld will not create a library from C++
5518 # object files and a static libstdc++, better avoid it by now
5519 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5520 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5521 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5522 hardcode_libdir_flag_spec=
5523 hardcode_shlibpath_var=no
5524 runpath_var='LD_RUN_PATH'
5528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5529 hardcode_libdir_flag_spec='-L$libdir'
5530 hardcode_shlibpath_var=no
5534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5535 hardcode_libdir_flag_spec='-L$libdir'
5536 hardcode_shlibpath_var=no
5540 if test -d /usr/nec; then
5541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5542 hardcode_shlibpath_var=no
5543 runpath_var=LD_RUN_PATH
5544 hardcode_runpath_var=yes
5550 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5553 hardcode_shlibpath_var=no
5554 hardcode_runpath_var=yes
5555 runpath_var=LD_RUN_PATH
5558 sysv5uw7* | unixware7*)
5559 no_undefined_flag='${wl}-z ${wl}text'
5560 if test "$GCC" = yes; then
5561 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5563 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5565 runpath_var='LD_RUN_PATH'
5566 hardcode_shlibpath_var=no
5574 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5575 echo "${ECHO_T}$ld_shlibs" >&6
5576 test "$ld_shlibs" = no && can_build_shared=no
5578 # Check hardcoding attributes.
5579 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5580 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5582 if test -n "$hardcode_libdir_flag_spec" || \
5583 test -n "$runpath_var"; then
5585 # We can hardcode non-existant directories.
5586 if test "$hardcode_direct" != no &&
5587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5588 # have to relink, otherwise we might link with an installed library
5589 # when we should be linking with a yet-to-be-installed one
5590 ## test "$hardcode_shlibpath_var" != no &&
5591 test "$hardcode_minus_L" != no; then
5592 # Linking always hardcodes the temporary library directory.
5593 hardcode_action=relink
5595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5596 hardcode_action=immediate
5599 # We cannot hardcode anything, or else we can only hardcode existing
5601 hardcode_action=unsupported
5603 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5604 echo "${ECHO_T}$hardcode_action" >&6
5608 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5613 echo "$as_me:$LINENO: result: yes" >&5
5614 echo "${ECHO_T}yes" >&6
5616 echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5621 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5623 # PORTME Fill in your ld.so characteristics
5624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5627 libname_spec='lib$name'
5634 shlibpath_overrides_runpath=unknown
5636 dynamic_linker="$host_os ld.so"
5637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5643 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5644 shlibpath_var=LIBPATH
5646 # AIX has no versioning support, so we append a major version to the name.
5647 soname_spec='${libname}${release}.so$major'
5652 if test "$host_cpu" = ia64; then
5653 # AIX 5 supports IA64
5654 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5655 shlibpath_var=LD_LIBRARY_PATH
5657 # With GCC up to 2.95.x, collect2 would create an import file
5658 # for dependence libraries. The import file would start with
5659 # the line `#! .'. This would cause the generated library to
5660 # depend on `.', always an invalid library. This was fixed in
5661 # development snapshots of GCC prior to 3.0.
5663 aix4 | aix4.[01] | aix4.[01].*)
5664 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5666 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5673 # AIX (on Power*) has no versioning support, so currently we can
5674 # not hardcode correct soname into executable. Probably we can
5675 # add versioning support to collect2, so additional links can
5676 # be useful in future.
5677 if test "$aix_use_runtimelinking" = yes; then
5678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5679 # instead of lib<name>.a to let people know that these are not
5680 # typical AIX shared libraries.
5681 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5683 # We preserve .a as extension for shared libraries through AIX4.2
5684 # and later when we are not doing run time linking.
5685 library_names_spec='${libname}${release}.a $libname.a'
5686 soname_spec='${libname}${release}.so$major'
5688 shlibpath_var=LIBPATH
5693 library_names_spec='$libname.ixlibrary $libname.a'
5694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5695 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'
5699 library_names_spec='${libname}.so'
5700 dynamic_linker="$host_os ld.so"
5701 shlibpath_var=LIBRARY_PATH
5707 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5708 soname_spec='${libname}${release}.so$major'
5709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5710 shlibpath_var=LD_LIBRARY_PATH
5711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5713 export_dynamic_flag_spec=-rdynamic
5714 # the default ld.so.conf also contains /usr/contrib/lib and
5715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5716 # libtool to hard-code these into programs
5719 cygwin* | mingw* | pw32*)
5720 version_type=windows
5723 case $GCC,$host_os in
5725 library_names_spec='$libname.dll.a'
5726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5727 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5728 dldir=$destdir/`dirname \$dlpath`~
5729 test -d \$dldir || mkdir -p \$dldir~
5730 $install_prog .libs/$dlname \$dldir/$dlname'
5731 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5732 dlpath=$dir/\$dldll~
5736 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5737 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5743 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5746 dynamic_linker='Win32 ld.exe'
5747 # FIXME: first we should search . and the directory the executable is in
5751 darwin* | rhapsody*)
5752 dynamic_linker="$host_os dyld"
5756 # FIXME: Relying on posixy $() will cause problems for
5757 # cross-compilation, but unfortunately the echo tests do not
5758 # yet detect zsh echo's removal of \ escapes.
5759 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)'
5760 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5761 shlibpath_overrides_runpath=yes
5762 shlibpath_var=DYLD_LIBRARY_PATH
5770 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5771 version_type=freebsd-$objformat
5772 case $version_type in
5774 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5779 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5783 shlibpath_var=LD_LIBRARY_PATH
5786 shlibpath_overrides_runpath=yes
5789 shlibpath_overrides_runpath=no
5790 hardcode_into_libs=yes
5799 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5800 soname_spec='${libname}${release}.so$major'
5801 shlibpath_var=LD_LIBRARY_PATH
5802 hardcode_into_libs=yes
5805 hpux9* | hpux10* | hpux11*)
5806 # Give a soname corresponding to the major version so that dld.sl refuses to
5807 # link against other versions.
5808 dynamic_linker="$host_os dld.sl"
5812 shlibpath_var=SHLIB_PATH
5813 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5814 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5815 soname_spec='${libname}${release}.sl$major'
5816 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5817 postinstall_cmds='chmod 555 $lib'
5820 irix5* | irix6* | nonstopux*)
5822 nonstopux*) version_type=nonstopux ;;
5823 *) version_type=irix ;;
5827 soname_spec='${libname}${release}.so$major'
5828 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5830 irix5* | nonstopux*)
5834 case $LD in # libtool.m4 will add one of these switches to LD
5835 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5836 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5837 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5838 *) libsuff= shlibsuff= libmagic=never-match;;
5842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5843 shlibpath_overrides_runpath=no
5844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5848 # No shared lib support for Linux oldld, aout, or coff.
5849 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5853 # This must be Linux ELF.
5858 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5859 soname_spec='${libname}${release}.so$major'
5860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5861 shlibpath_var=LD_LIBRARY_PATH
5862 shlibpath_overrides_runpath=no
5863 # This implies no fast_install, which is unacceptable.
5864 # Some rework will be needed to allow for fast_install
5865 # before this can be enabled.
5866 hardcode_into_libs=yes
5868 # We used to test for /lib/ld.so.1 and disable shared libraries on
5869 # powerpc, because MkLinux only supported shared libraries with the
5870 # GNU dynamic linker. Since this was broken with cross compilers,
5871 # most powerpc-linux boxes support dynamic linking these days and
5872 # people can always --disable-shared, the test was removed, and we
5873 # assume the GNU/Linux dynamic linker is in use.
5874 dynamic_linker='GNU/Linux ld.so'
5881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5882 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5884 dynamic_linker='NetBSD (a.out) ld.so'
5886 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5887 soname_spec='${libname}${release}.so$major'
5888 dynamic_linker='NetBSD ld.elf_so'
5890 shlibpath_var=LD_LIBRARY_PATH
5891 shlibpath_overrides_runpath=yes
5892 hardcode_into_libs=yes
5897 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5898 shlibpath_var=LD_LIBRARY_PATH
5899 shlibpath_overrides_runpath=yes
5906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5908 openbsd2.[89] | openbsd2.[89].*)
5909 shlibpath_overrides_runpath=no
5912 shlibpath_overrides_runpath=yes
5916 shlibpath_overrides_runpath=yes
5918 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5920 shlibpath_var=LD_LIBRARY_PATH
5924 libname_spec='$name'
5926 library_names_spec='$libname.dll $libname.a'
5927 dynamic_linker='OS/2 ld.exe'
5928 shlibpath_var=LIBPATH
5931 osf3* | osf4* | osf5*)
5935 soname_spec='${libname}${release}.so'
5936 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5937 shlibpath_var=LD_LIBRARY_PATH
5938 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5939 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5944 soname_spec='${libname}${release}.so$major'
5945 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5946 shlibpath_var=LD_LIBRARY_PATH
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 shlibpath_overrides_runpath=yes
5957 hardcode_into_libs=yes
5958 # ldd complains unless libraries are executable
5959 postinstall_cmds='chmod +x $lib'
5964 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5966 shlibpath_var=LD_LIBRARY_PATH
5967 shlibpath_overrides_runpath=yes
5968 if test "$with_gnu_ld" = yes; then
5974 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5976 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5977 soname_spec='${libname}${release}.so$major'
5978 shlibpath_var=LD_LIBRARY_PATH
5979 case $host_vendor in
5981 shlibpath_overrides_runpath=no
5986 shlibpath_overrides_runpath=no
5987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5994 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5995 soname_spec='${libname}${release}.so$major'
5996 shlibpath_var=LD_LIBRARY_PATH
6003 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6004 soname_spec='${libname}${release}.so$major'
6005 shlibpath_var=LD_LIBRARY_PATH
6009 if test -d /usr/nec ;then
6011 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6012 soname_spec='$libname.so.$major'
6013 shlibpath_var=LD_LIBRARY_PATH
6021 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6022 echo "${ECHO_T}$dynamic_linker" >&6
6023 test "$dynamic_linker" = no && can_build_shared=no
6025 # Report the final consequences.
6026 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6027 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6028 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6029 echo "${ECHO_T}$can_build_shared" >&6
6031 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6032 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6033 test "$can_build_shared" = "no" && enable_shared=no
6035 # On AIX, shared libraries and static libraries use the same namespace, and
6036 # are all built from PIC.
6039 test "$enable_shared" = yes && enable_static=no
6040 if test -n "$RANLIB"; then
6041 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6042 postinstall_cmds='$RANLIB $lib'
6047 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6048 test "$enable_shared" = yes && enable_static=no
6052 echo "$as_me:$LINENO: result: $enable_shared" >&5
6053 echo "${ECHO_T}$enable_shared" >&6
6055 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6056 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6057 # Make sure either enable_shared or enable_static is yes.
6058 test "$enable_shared" = yes || enable_static=yes
6059 echo "$as_me:$LINENO: result: $enable_static" >&5
6060 echo "${ECHO_T}$enable_static" >&6
6062 if test "$hardcode_action" = relink; then
6063 # Fast installation is not supported
6064 enable_fast_install=no
6065 elif test "$shlibpath_overrides_runpath" = yes ||
6066 test "$enable_shared" = no; then
6067 # Fast installation is not necessary
6068 enable_fast_install=needless
6071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6072 if test "$GCC" = yes; then
6073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6076 if test "x$enable_dlopen" != xyes; then
6077 enable_dlopen=unknown
6078 enable_dlopen_self=unknown
6079 enable_dlopen_self_static=unknown
6086 lt_cv_dlopen="load_add_on"
6088 lt_cv_dlopen_self=yes
6091 cygwin* | mingw* | pw32*)
6092 lt_cv_dlopen="LoadLibrary"
6097 echo "$as_me:$LINENO: checking for shl_load" >&5
6098 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6099 if test "${ac_cv_func_shl_load+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 cat >conftest.$ac_ext <<_ACEOF
6103 #line $LINENO "configure"
6104 #include "confdefs.h"
6105 /* System header to define __stub macros and hopefully few prototypes,
6106 which can conflict with char shl_load (); below. */
6108 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6117 #ifdef F77_DUMMY_MAIN
6121 int F77_DUMMY_MAIN() { return 1; }
6126 /* The GNU C library defines this for functions which it implements
6127 to always fail with ENOSYS. Some functions are actually named
6128 something starting with __ and the normal name is an alias. */
6129 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6139 rm -f conftest.$ac_objext conftest$ac_exeext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141 (eval $ac_link) 2>&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -s conftest$ac_exeext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_func_shl_load=yes
6153 echo "$as_me: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6155 ac_cv_func_shl_load=no
6157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6160 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6161 if test $ac_cv_func_shl_load = yes; then
6162 lt_cv_dlopen="shl_load"
6164 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6165 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6166 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 ac_check_lib_save_LIBS=$LIBS
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 #include "confdefs.h"
6175 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6182 #ifdef F77_DUMMY_MAIN
6186 int F77_DUMMY_MAIN() { return 1; }
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_lib_dld_shl_load=yes
6210 echo "$as_me: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 ac_cv_lib_dld_shl_load=no
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6218 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6219 if test $ac_cv_lib_dld_shl_load = yes; then
6220 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6222 echo "$as_me:$LINENO: checking for dlopen" >&5
6223 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6224 if test "${ac_cv_func_dlopen+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 cat >conftest.$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6229 #include "confdefs.h"
6230 /* System header to define __stub macros and hopefully few prototypes,
6231 which can conflict with char dlopen (); below. */
6233 /* Override any gcc2 internal prototype to avoid an error. */
6237 /* We use char because int might match the return type of a gcc2
6238 builtin and then its argument prototype would still apply. */
6242 #ifdef F77_DUMMY_MAIN
6246 int F77_DUMMY_MAIN() { return 1; }
6251 /* The GNU C library defines this for functions which it implements
6252 to always fail with ENOSYS. Some functions are actually named
6253 something starting with __ and the normal name is an alias. */
6254 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266 (eval $ac_link) 2>&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -s conftest$ac_exeext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_func_dlopen=yes
6278 echo "$as_me: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6280 ac_cv_func_dlopen=no
6282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6284 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6285 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6286 if test $ac_cv_func_dlopen = yes; then
6287 lt_cv_dlopen="dlopen"
6289 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 ac_check_lib_save_LIBS=$LIBS
6296 cat >conftest.$ac_ext <<_ACEOF
6297 #line $LINENO "configure"
6298 #include "confdefs.h"
6300 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6307 #ifdef F77_DUMMY_MAIN
6311 int F77_DUMMY_MAIN() { return 1; }
6321 rm -f conftest.$ac_objext conftest$ac_exeext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323 (eval $ac_link) 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -s conftest$ac_exeext'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_cv_lib_dl_dlopen=yes
6335 echo "$as_me: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 ac_cv_lib_dl_dlopen=no
6339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6340 LIBS=$ac_check_lib_save_LIBS
6342 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6343 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6344 if test $ac_cv_lib_dl_dlopen = yes; then
6345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6347 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6348 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6349 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 ac_check_lib_save_LIBS=$LIBS
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 #include "confdefs.h"
6358 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6365 #ifdef F77_DUMMY_MAIN
6369 int F77_DUMMY_MAIN() { return 1; }
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -s conftest$ac_exeext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_lib_svld_dlopen=yes
6393 echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 ac_cv_lib_svld_dlopen=no
6397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6398 LIBS=$ac_check_lib_save_LIBS
6400 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6401 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6402 if test $ac_cv_lib_svld_dlopen = yes; then
6403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6405 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6406 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6407 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 ac_check_lib_save_LIBS=$LIBS
6412 cat >conftest.$ac_ext <<_ACEOF
6413 #line $LINENO "configure"
6414 #include "confdefs.h"
6416 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6423 #ifdef F77_DUMMY_MAIN
6427 int F77_DUMMY_MAIN() { return 1; }
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439 (eval $ac_link) 2>&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -s conftest$ac_exeext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 ac_cv_lib_dld_dld_link=yes
6451 echo "$as_me: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6453 ac_cv_lib_dld_dld_link=no
6455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6456 LIBS=$ac_check_lib_save_LIBS
6458 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6459 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6460 if test $ac_cv_lib_dld_dld_link = yes; then
6461 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6482 if test "x$lt_cv_dlopen" != xno; then
6488 case $lt_cv_dlopen in
6490 save_CPPFLAGS="$CPPFLAGS"
6491 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6493 save_LDFLAGS="$LDFLAGS"
6494 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6497 LIBS="$lt_cv_dlopen_libs $LIBS"
6499 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6500 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6501 if test "${lt_cv_dlopen_self+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 if test "$cross_compiling" = yes; then :
6505 lt_cv_dlopen_self=cross
6507 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6508 lt_status=$lt_dlunknown
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6510 "configure"
6511 #include "confdefs.h"
6520 # define LT_DLGLOBAL RTLD_GLOBAL
6523 # define LT_DLGLOBAL DL_GLOBAL
6525 # define LT_DLGLOBAL 0
6529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6530 find out it does not work in some platform. */
6531 #ifndef LT_DLLAZY_OR_NOW
6533 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6536 # define LT_DLLAZY_OR_NOW DL_LAZY
6539 # define LT_DLLAZY_OR_NOW RTLD_NOW
6542 # define LT_DLLAZY_OR_NOW DL_NOW
6544 # define LT_DLLAZY_OR_NOW 0
6552 extern "C" void exit (int);
6555 void fnord() { int i=42;}
6558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6559 int status = $lt_dlunknown;
6563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6564 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6565 /* dlclose (self); */
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6576 (./conftest; exit; ) 2>/dev/null
6579 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6580 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6581 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6584 # compilation failed
6585 lt_cv_dlopen_self=no
6592 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6593 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6595 if test "x$lt_cv_dlopen_self" = xyes; then
6596 LDFLAGS="$LDFLAGS $link_static_flag"
6597 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6598 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6599 if test "${lt_cv_dlopen_self_static+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 if test "$cross_compiling" = yes; then :
6603 lt_cv_dlopen_self_static=cross
6605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6606 lt_status=$lt_dlunknown
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6608 "configure"
6609 #include "confdefs.h"
6618 # define LT_DLGLOBAL RTLD_GLOBAL
6621 # define LT_DLGLOBAL DL_GLOBAL
6623 # define LT_DLGLOBAL 0
6627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6628 find out it does not work in some platform. */
6629 #ifndef LT_DLLAZY_OR_NOW
6631 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6634 # define LT_DLLAZY_OR_NOW DL_LAZY
6637 # define LT_DLLAZY_OR_NOW RTLD_NOW
6640 # define LT_DLLAZY_OR_NOW DL_NOW
6642 # define LT_DLLAZY_OR_NOW 0
6650 extern "C" void exit (int);
6653 void fnord() { int i=42;}
6656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6657 int status = $lt_dlunknown;
6661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6662 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6663 /* dlclose (self); */
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670 (eval $ac_link) 2>&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6674 (./conftest; exit; ) 2>/dev/null
6677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6679 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6682 # compilation failed
6683 lt_cv_dlopen_self_static=no
6690 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6691 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6694 CPPFLAGS="$save_CPPFLAGS"
6695 LDFLAGS="$save_LDFLAGS"
6700 case $lt_cv_dlopen_self in
6701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6702 *) enable_dlopen_self=unknown ;;
6705 case $lt_cv_dlopen_self_static in
6706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6707 *) enable_dlopen_self_static=unknown ;;
6712 if test "$enable_shared" = yes && test "$GCC" = yes; then
6713 case $archive_cmds in
6715 # FIXME: we may have to deal with multi-command sequences.
6718 # Test whether the compiler implicitly links with -lc since on some
6719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6720 # to ld, don't add -lc before -lgcc.
6721 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6722 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6723 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 echo 'static int dummy;' > conftest.$ac_ext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 (eval $ac_compile) 2>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; then
6736 libobjs=conftest.$ac_objext
6738 wl=$lt_cv_prog_cc_wl
6744 save_allow_undefined_flag=$allow_undefined_flag
6745 allow_undefined_flag=
6746 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6747 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }
6752 lt_cv_archive_cmds_need_lc=no
6754 lt_cv_archive_cmds_need_lc=yes
6756 allow_undefined_flag=$save_allow_undefined_flag
6758 cat conftest.err 1>&5
6762 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6763 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6767 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6769 # The second clause should only fire when bootstrapping the
6770 # libtool distribution, otherwise you forgot to ship ltmain.sh
6771 # with your package, and you will get complaints that there are
6772 # no rules to generate ltmain.sh.
6773 if test -f "$ltmain"; then
6776 # If there is no Makefile yet, we rely on a make rule to execute
6777 # `config.status --recheck' to rerun these tests and create the
6778 # libtool script then.
6779 test -f Makefile && make "$ltmain"
6782 if test -f "$ltmain"; then
6783 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6786 echo creating $ofile
6788 # Now quote all the things that may contain metacharacters while being
6789 # careful not to overquote the AC_SUBSTed values. We take copies of the
6790 # variables and quote the copies for generation of the libtool script.
6791 for var in echo old_CC old_CFLAGS \
6792 AR AR_FLAGS CC LD LN_S NM SHELL \
6793 reload_flag reload_cmds wl \
6794 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6795 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6796 library_names_spec soname_spec \
6797 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6798 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6799 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6800 old_striplib striplib file_magic_cmd export_symbols_cmds \
6801 deplibs_check_method allow_undefined_flag no_undefined_flag \
6802 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6803 global_symbol_to_c_name_address \
6804 hardcode_libdir_flag_spec hardcode_libdir_separator \
6805 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6806 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6809 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6810 old_postinstall_cmds | old_postuninstall_cmds | \
6811 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6812 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6813 postinstall_cmds | postuninstall_cmds | \
6814 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6815 # Double-quote double-evaled strings.
6816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6824 cat <<__EOF__ > "${ofile}T"
6827 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6828 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6829 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6831 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6832 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6834 # This program is free software; you can redistribute it and/or modify
6835 # it under the terms of the GNU General Public License as published by
6836 # the Free Software Foundation; either version 2 of the License, or
6837 # (at your option) any later version.
6839 # This program is distributed in the hope that it will be useful, but
6840 # WITHOUT ANY WARRANTY; without even the implied warranty of
6841 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6842 # General Public License for more details.
6844 # You should have received a copy of the GNU General Public License
6845 # along with this program; if not, write to the Free Software
6846 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6848 # As a special exception to the GNU General Public License, if you
6849 # distribute this file as part of a program that contains a
6850 # configuration script generated by Autoconf, you may include it under
6851 # the same distribution terms that you use for the rest of that program.
6853 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6854 Xsed="sed -e s/^X//"
6856 # The HP-UX ksh and POSIX shell print the target directory to stdout
6858 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6860 # ### BEGIN LIBTOOL CONFIG
6862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6864 # Shell to use when invoking shell scripts.
6867 # Whether or not to build shared libraries.
6868 build_libtool_libs=$enable_shared
6870 # Whether or not to build static libraries.
6871 build_old_libs=$enable_static
6873 # Whether or not to add -lc for building shared libraries.
6874 build_libtool_need_lc=$need_lc
6876 # Whether or not to optimize for fast installation.
6877 fast_install=$enable_fast_install
6880 host_alias=$host_alias
6883 # An echo program that does not interpret backslashes.
6888 AR_FLAGS=$lt_AR_FLAGS
6890 # The default C compiler.
6893 # Is the compiler the GNU C compiler?
6896 # The linker used to build libraries.
6899 # Whether we need hard or soft links.
6902 # A BSD-compatible nm program.
6905 # A symbol stripping program
6908 # Used to examine libraries when file_magic_cmd begins "file"
6909 MAGIC_CMD=$MAGIC_CMD
6911 # Used on cygwin: DLL creation program.
6914 # Used on cygwin: object dumper.
6917 # Used on cygwin: assembler.
6920 # The name of the directory that contains temporary libtool files.
6923 # How to create reloadable object files.
6924 reload_flag=$lt_reload_flag
6925 reload_cmds=$lt_reload_cmds
6927 # How to pass a linker flag through the compiler.
6930 # Object file suffix (normally "o").
6933 # Old archive suffix (normally "a").
6936 # Executable file suffix (normally "").
6939 # Additional compiler flags for building library objects.
6940 pic_flag=$lt_pic_flag
6943 # Does compiler simultaneously support -c and -o options?
6944 compiler_c_o=$lt_compiler_c_o
6946 # Can we write directly to a .lo ?
6947 compiler_o_lo=$lt_compiler_o_lo
6949 # Must we lock files when doing compilation ?
6950 need_locks=$lt_need_locks
6952 # Do we need the lib prefix for modules?
6953 need_lib_prefix=$need_lib_prefix
6955 # Do we need a version for libraries?
6956 need_version=$need_version
6958 # Whether dlopen is supported.
6959 dlopen_support=$enable_dlopen
6961 # Whether dlopen of programs is supported.
6962 dlopen_self=$enable_dlopen_self
6964 # Whether dlopen of statically linked programs is supported.
6965 dlopen_self_static=$enable_dlopen_self_static
6967 # Compiler flag to prevent dynamic linking.
6968 link_static_flag=$lt_link_static_flag
6970 # Compiler flag to turn off builtin functions.
6971 no_builtin_flag=$lt_no_builtin_flag
6973 # Compiler flag to allow reflexive dlopens.
6974 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6976 # Compiler flag to generate shared objects directly from archives.
6977 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6979 # Compiler flag to generate thread-safe objects.
6980 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6982 # Library versioning type.
6983 version_type=$version_type
6985 # Format of library name prefix.
6986 libname_spec=$lt_libname_spec
6988 # List of archive names. First name is the real one, the rest are links.
6989 # The last name is the one that the linker finds with -lNAME.
6990 library_names_spec=$lt_library_names_spec
6992 # The coded name of the library, if different from the real name.
6993 soname_spec=$lt_soname_spec
6995 # Commands used to build and install an old-style archive.
6997 old_archive_cmds=$lt_old_archive_cmds
6998 old_postinstall_cmds=$lt_old_postinstall_cmds
6999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7001 # Create an old-style archive from a shared archive.
7002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7004 # Create a temporary old-style archive to link instead of a shared archive.
7005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7007 # Commands used to build and install a shared archive.
7008 archive_cmds=$lt_archive_cmds
7009 archive_expsym_cmds=$lt_archive_expsym_cmds
7010 postinstall_cmds=$lt_postinstall_cmds
7011 postuninstall_cmds=$lt_postuninstall_cmds
7013 # Commands to strip libraries.
7014 old_striplib=$lt_old_striplib
7015 striplib=$lt_striplib
7017 # Method to check whether dependent libraries are shared objects.
7018 deplibs_check_method=$lt_deplibs_check_method
7020 # Command to use when deplibs_check_method == file_magic.
7021 file_magic_cmd=$lt_file_magic_cmd
7023 # Flag that allows shared libraries with undefined symbols to be built.
7024 allow_undefined_flag=$lt_allow_undefined_flag
7026 # Flag that forces no undefined symbols.
7027 no_undefined_flag=$lt_no_undefined_flag
7029 # Commands used to finish a libtool library installation in a directory.
7030 finish_cmds=$lt_finish_cmds
7032 # Same as above, but a single script fragment to be evaled but not shown.
7033 finish_eval=$lt_finish_eval
7035 # Take the output of nm and produce a listing of raw symbols and C names.
7036 global_symbol_pipe=$lt_global_symbol_pipe
7038 # Transform the output of nm in a proper C declaration
7039 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7041 # Transform the output of nm in a C name address pair
7042 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7044 # This is the shared library runtime path variable.
7045 runpath_var=$runpath_var
7047 # This is the shared library path variable.
7048 shlibpath_var=$shlibpath_var
7050 # Is shlibpath searched before the hard-coded library search path?
7051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7053 # How to hardcode a shared library path into an executable.
7054 hardcode_action=$hardcode_action
7056 # Whether we should hardcode library paths into libraries.
7057 hardcode_into_libs=$hardcode_into_libs
7059 # Flag to hardcode \$libdir into a binary during linking.
7060 # This must work even if \$libdir does not exist.
7061 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7063 # Whether we need a single -rpath flag with a separated argument.
7064 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7066 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7068 hardcode_direct=$hardcode_direct
7070 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7072 hardcode_minus_L=$hardcode_minus_L
7074 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7075 # the resulting binary.
7076 hardcode_shlibpath_var=$hardcode_shlibpath_var
7078 # Variables whose values should be saved in libtool wrapper scripts and
7079 # restored at relink time.
7080 variables_saved_for_relink="$variables_saved_for_relink"
7082 # Whether libtool must link a program against all its dependency libraries.
7083 link_all_deplibs=$link_all_deplibs
7085 # Compile-time system search path for libraries
7086 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7088 # Run-time system search path for libraries
7089 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7091 # Fix the shell variable \$srcfile for the compiler.
7092 fix_srcfile_path="$fix_srcfile_path"
7094 # Set to yes if exported symbols are required.
7095 always_export_symbols=$always_export_symbols
7097 # The commands to list exported symbols.
7098 export_symbols_cmds=$lt_export_symbols_cmds
7100 # The commands to extract the exported symbol list from a shared archive.
7101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7103 # Symbols that should not be listed in the preloaded symbols.
7104 exclude_expsyms=$lt_exclude_expsyms
7106 # Symbols that must always be exported.
7107 include_expsyms=$lt_include_expsyms
7109 # ### END LIBTOOL CONFIG
7115 cat <<\EOF >> "${ofile}T"
7117 # AIX sometimes has problems with the GCC collect2 program. For some
7118 # reason, if we set the COLLECT_NAMES environment variable, the problems
7119 # vanish in a puff of smoke.
7120 if test "X${COLLECT_NAMES+set}" != Xset; then
7122 export COLLECT_NAMES
7129 cygwin* | mingw* | pw32* | os2*)
7130 cat <<'EOF' >> "${ofile}T"
7131 # This is a source program that is used to create dlls on Windows
7132 # Don't remove nor modify the starting and closing comments
7133 # /* ltdll.c starts here */
7134 # #define WIN32_LEAN_AND_MEAN
7135 # #include <windows.h>
7136 # #undef WIN32_LEAN_AND_MEAN
7137 # #include <stdio.h>
7139 # #ifndef __CYGWIN__
7140 # # ifdef __CYGWIN32__
7141 # # define __CYGWIN__ __CYGWIN32__
7145 # #ifdef __cplusplus
7148 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7149 # #ifdef __cplusplus
7154 # #include <cygwin/cygwin_dll.h>
7155 # DECLARE_CYGWIN_DLL( DllMain );
7157 # HINSTANCE __hDllInstance_base;
7160 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7162 # __hDllInstance_base = hInst;
7165 # /* ltdll.c ends here */
7166 # This is a source program that is used to create import libraries
7167 # on Windows for dlls which lack them. Don't remove nor modify the
7168 # starting and closing comments
7169 # /* impgen.c starts here */
7170 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7172 # This file is part of GNU libtool.
7174 # This program is free software; you can redistribute it and/or modify
7175 # it under the terms of the GNU General Public License as published by
7176 # the Free Software Foundation; either version 2 of the License, or
7177 # (at your option) any later version.
7179 # This program is distributed in the hope that it will be useful,
7180 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7181 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7182 # GNU General Public License for more details.
7184 # You should have received a copy of the GNU General Public License
7185 # along with this program; if not, write to the Free Software
7186 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7189 # #include <stdio.h> /* for printf() */
7190 # #include <unistd.h> /* for open(), lseek(), read() */
7191 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7192 # #include <string.h> /* for strdup() */
7194 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7196 # #define O_BINARY 0
7199 # static unsigned int
7200 # pe_get16 (fd, offset)
7204 # unsigned char b[2];
7205 # lseek (fd, offset, SEEK_SET);
7207 # return b[0] + (b[1]<<8);
7210 # static unsigned int
7211 # pe_get32 (fd, offset)
7215 # unsigned char b[4];
7216 # lseek (fd, offset, SEEK_SET);
7218 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7221 # static unsigned int
7225 # unsigned char *b = ptr;
7226 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7235 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7236 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7237 # unsigned long name_rvas, nexp;
7238 # unsigned char *expdata, *erva;
7239 # char *filename, *dll_name;
7241 # filename = argv[1];
7243 # dll = open(filename, O_RDONLY|O_BINARY);
7247 # dll_name = filename;
7249 # for (i=0; filename[i]; i++)
7250 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7251 # dll_name = filename + i +1;
7253 # pe_header_offset = pe_get32 (dll, 0x3c);
7254 # opthdr_ofs = pe_header_offset + 4 + 20;
7255 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7257 # if (num_entries < 1) /* no exports */
7260 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7261 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7262 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7263 # secptr = (pe_header_offset + 4 + 20 +
7264 # pe_get16 (dll, pe_header_offset + 4 + 16));
7267 # for (i = 0; i < nsections; i++)
7270 # unsigned long secptr1 = secptr + 40 * i;
7271 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7272 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7273 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7274 # lseek(dll, secptr1, SEEK_SET);
7275 # read(dll, sname, 8);
7276 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7278 # expptr = fptr + (export_rva - vaddr);
7279 # if (export_rva + export_size > vaddr + vsize)
7280 # export_size = vsize - (export_rva - vaddr);
7285 # expdata = (unsigned char*)malloc(export_size);
7286 # lseek (dll, expptr, SEEK_SET);
7287 # read (dll, expdata, export_size);
7288 # erva = expdata - export_rva;
7290 # nexp = pe_as32 (expdata+24);
7291 # name_rvas = pe_as32 (expdata+32);
7293 # printf ("EXPORTS\n");
7294 # for (i = 0; i<nexp; i++)
7296 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7297 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7302 # /* impgen.c ends here */
7308 # We use sed instead of cat because bash on DJGPP gets confused if
7309 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7310 # text mode, it properly converts lines to CR/LF. This bash problem
7311 # is reportedly fixed, but why not run on old versions too?
7312 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7314 mv -f "${ofile}T" "$ofile" || \
7315 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7323 # This can be used to rebuild libtool when needed
7324 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7326 # Always use our own libtool.
7327 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7329 # Prevent multiple expansion
7332 for ac_prog in 'bison -y' byacc
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338 if test "${ac_cv_prog_YACC+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 if test -n "$YACC"; then
7342 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_YACC="$ac_prog"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 YACC=$ac_cv_prog_YACC
7361 if test -n "$YACC"; then
7362 echo "$as_me:$LINENO: result: $YACC" >&5
7363 echo "${ECHO_T}$YACC" >&6
7365 echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7369 test -n "$YACC" && break
7371 test -n "$YACC" || YACC="yacc"
7374 ac_cpp='$CPP $CPPFLAGS'
7375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7381 echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383 if test "${ac_cv_prog_CC+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 if test -n "$CC"; then
7387 ac_cv_prog_CC="$CC" # Let the user override the test.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 if test -n "$CC"; then
7407 echo "$as_me:$LINENO: result: $CC" >&5
7408 echo "${ECHO_T}$CC" >&6
7410 echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6
7415 if test -z "$ac_cv_prog_CC"; then
7417 # Extract the first word of "gcc", so it can be a program name with args.
7418 set dummy gcc; ac_word=$2
7419 echo "$as_me:$LINENO: checking for $ac_word" >&5
7420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 if test -n "$ac_ct_CC"; then
7425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_prog_ac_ct_CC="gcc"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7444 if test -n "$ac_ct_CC"; then
7445 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7446 echo "${ECHO_T}$ac_ct_CC" >&6
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7457 if test -z "$CC"; then
7458 if test -n "$ac_tool_prefix"; then
7459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}cc; ac_word=$2
7461 echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463 if test "${ac_cv_prog_CC+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 if test -n "$CC"; then
7467 ac_cv_prog_CC="$CC" # Let the user override the test.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_CC="${ac_tool_prefix}cc"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 if test -n "$CC"; then
7487 echo "$as_me:$LINENO: result: $CC" >&5
7488 echo "${ECHO_T}$CC" >&6
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7495 if test -z "$ac_cv_prog_CC"; then
7497 # Extract the first word of "cc", so it can be a program name with args.
7498 set dummy cc; ac_word=$2
7499 echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 if test -n "$ac_ct_CC"; then
7505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514 ac_cv_prog_ac_ct_CC="cc"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7524 if test -n "$ac_ct_CC"; then
7525 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7526 echo "${ECHO_T}$ac_ct_CC" >&6
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7538 if test -z "$CC"; then
7539 # Extract the first word of "cc", so it can be a program name with args.
7540 set dummy cc; ac_word=$2
7541 echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7543 if test "${ac_cv_prog_CC+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 if test -n "$CC"; then
7547 ac_cv_prog_CC="$CC" # Let the user override the test.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7558 ac_prog_rejected=yes
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 if test $ac_prog_rejected = yes; then
7569 # We found a bogon in the path, so make sure we never use it.
7570 set dummy $ac_cv_prog_CC
7572 if test $# != 0; then
7573 # We chose a different compiler from the bogus one.
7574 # However, it has the same basename, so the bogon will be chosen
7575 # first if we set CC to just the basename; use the full file name.
7577 set dummy "$as_dir/$ac_word" ${1+"$@"}
7585 if test -n "$CC"; then
7586 echo "$as_me:$LINENO: result: $CC" >&5
7587 echo "${ECHO_T}$CC" >&6
7589 echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7594 if test -z "$CC"; then
7595 if test -n "$ac_tool_prefix"; then
7598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7600 echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7602 if test "${ac_cv_prog_CC+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 if test -n "$CC"; then
7606 ac_cv_prog_CC="$CC" # Let the user override the test.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 if test -n "$CC"; then
7626 echo "$as_me:$LINENO: result: $CC" >&5
7627 echo "${ECHO_T}$CC" >&6
7629 echo "$as_me:$LINENO: result: no" >&5
7630 echo "${ECHO_T}no" >&6
7633 test -n "$CC" && break
7636 if test -z "$CC"; then
7640 # Extract the first word of "$ac_prog", so it can be a program name with args.
7641 set dummy $ac_prog; ac_word=$2
7642 echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 if test -n "$ac_ct_CC"; then
7648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_ac_ct_CC="$ac_prog"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7667 if test -n "$ac_ct_CC"; then
7668 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7669 echo "${ECHO_T}$ac_ct_CC" >&6
7671 echo "$as_me:$LINENO: result: no" >&5
7672 echo "${ECHO_T}no" >&6
7675 test -n "$ac_ct_CC" && break
7684 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7685 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7686 { (exit 1); exit 1; }; }
7688 # Provide some information about the compiler.
7689 echo "$as_me:$LINENO:" \
7690 "checking for C compiler version" >&5
7691 ac_compiler=`set X $ac_compile; echo $2`
7692 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7693 (eval $ac_compiler --version </dev/null >&5) 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }
7697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7698 (eval $ac_compiler -v </dev/null >&5) 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }
7702 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7703 (eval $ac_compiler -V </dev/null >&5) 2>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }
7708 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7709 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7710 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.$ac_ext <<_ACEOF
7714 #line $LINENO "configure"
7715 #include "confdefs.h"
7717 #ifdef F77_DUMMY_MAIN
7721 int F77_DUMMY_MAIN() { return 1; }
7734 rm -f conftest.$ac_objext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest.$ac_objext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7748 echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7752 rm -f conftest.$ac_objext conftest.$ac_ext
7753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7756 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7757 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7758 GCC=`test $ac_compiler_gnu = yes && echo yes`
7759 ac_test_CFLAGS=${CFLAGS+set}
7760 ac_save_CFLAGS=$CFLAGS
7762 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7763 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7764 if test "${ac_cv_prog_cc_g+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7771 #ifdef F77_DUMMY_MAIN
7775 int F77_DUMMY_MAIN() { return 1; }
7785 rm -f conftest.$ac_objext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787 (eval $ac_compile) 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try='test -s conftest.$ac_objext'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7799 echo "$as_me: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7803 rm -f conftest.$ac_objext conftest.$ac_ext
7805 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7807 if test "$ac_test_CFLAGS" = set; then
7808 CFLAGS=$ac_save_CFLAGS
7809 elif test $ac_cv_prog_cc_g = yes; then
7810 if test "$GCC" = yes; then
7816 if test "$GCC" = yes; then
7822 # Some people use a C++ compiler to compile C. Since we use `exit',
7823 # in C++ we need to declare it. In case someone uses the same compiler
7824 # for both compiling C and C++ we need to have the C++ compiler decide
7825 # the declaration of exit, since it's the most demanding environment.
7826 cat >conftest.$ac_ext <<_ACEOF
7831 rm -f conftest.$ac_objext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7833 (eval $ac_compile) 2>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -s conftest.$ac_objext'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 for ac_declaration in \
7845 '#include <stdlib.h>' \
7846 'extern "C" void std::exit (int) throw (); using std::exit;' \
7847 'extern "C" void std::exit (int); using std::exit;' \
7848 'extern "C" void exit (int) throw ();' \
7849 'extern "C" void exit (int);' \
7852 cat >conftest.$ac_ext <<_ACEOF
7853 #line $LINENO "configure"
7854 #include "confdefs.h"
7857 #ifdef F77_DUMMY_MAIN
7861 int F77_DUMMY_MAIN() { return 1; }
7871 rm -f conftest.$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -s conftest.$ac_objext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7885 echo "$as_me: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7889 rm -f conftest.$ac_objext conftest.$ac_ext
7890 cat >conftest.$ac_ext <<_ACEOF
7891 #line $LINENO "configure"
7892 #include "confdefs.h"
7894 #ifdef F77_DUMMY_MAIN
7898 int F77_DUMMY_MAIN() { return 1; }
7908 rm -f conftest.$ac_objext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910 (eval $ac_compile) 2>&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -s conftest.$ac_objext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7922 echo "$as_me: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7925 rm -f conftest.$ac_objext conftest.$ac_ext
7928 if test -n "$ac_declaration"; then
7929 echo '#ifdef __cplusplus' >>confdefs.h
7930 echo $ac_declaration >>confdefs.h
7931 echo '#endif' >>confdefs.h
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7938 rm -f conftest.$ac_objext conftest.$ac_ext
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945 depcc="$CC" am_compiler_list=
7947 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7948 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7949 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7953 # We make a subdir and do the tests there. Otherwise we can end up
7954 # making bogus files that we don't know about and never remove. For
7955 # instance it was reported that on HP-UX the gcc test will end up
7956 # making a dummy file named `D' -- because `-MD' means `put the output
7959 # Copy depcomp to subdir because otherwise we won't find it if we're
7960 # using a relative directory.
7961 cp "$am_depcomp" conftest.dir
7964 am_cv_CC_dependencies_compiler_type=none
7965 if test "$am_compiler_list" = ""; then
7966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7968 for depmode in $am_compiler_list; do
7969 # We need to recreate these files for each test, as the compiler may
7970 # overwrite some of them when testing with obscure command lines.
7971 # This happens at least with the AIX C compiler.
7972 echo '#include "conftest.h"' > conftest.c
7973 echo 'int i;' > conftest.h
7974 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7978 # after this tag, mechanisms are not by side-effect, so they'll
7979 # only be used when explicitly requested
7980 if test "x$enable_dependency_tracking" = xyes; then
7988 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7989 # mode. It turns out that the SunPro C++ compiler does not properly
7990 # handle `-M -o', and we need to detect this.
7991 if depmode=$depmode \
7992 source=conftest.c object=conftest.o \
7993 depfile=conftest.Po tmpdepfile=conftest.TPo \
7994 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7995 grep conftest.h conftest.Po > /dev/null 2>&1 &&
7996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7997 am_cv_CC_dependencies_compiler_type=$depmode
8005 am_cv_CC_dependencies_compiler_type=none
8009 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8010 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8011 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8014 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8015 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8016 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8017 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 cat >conftest.make <<\_ACEOF
8022 @echo 'ac_maketemp="${MAKE}"'
8024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8025 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8026 if test -n "$ac_maketemp"; then
8027 eval ac_cv_prog_make_${ac_make}_set=yes
8029 eval ac_cv_prog_make_${ac_make}_set=no
8033 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8034 echo "$as_me:$LINENO: result: yes" >&5
8035 echo "${ECHO_T}yes" >&6
8038 echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6
8040 SET_MAKE="MAKE=${MAKE-make}"
8044 # Checks for libraries.
8045 # FIXME: Replace `main' with a function in `-lX11':
8046 # AC_CHECK_LIB([X11], [main])
8047 # FIXME: Replace `main' with a function in `-ldl':
8048 # AC_CHECK_LIB([dl], [main])
8049 # FIXME: Replace `main' with a function in `-lefence':
8050 # AC_CHECK_LIB([efence], [main])
8051 # FIXME: Replace `main' with a function in `-lepp':
8052 # AC_CHECK_LIB([epp], [main])
8053 # FIXME: Replace `main' with a function in `-lm':
8054 # AC_CHECK_LIB([m], [main])
8055 # FIXME: Replace `main' with a function in `-lproj':
8056 # AC_CHECK_LIB([proj], [main])
8058 # Checks for header files.
8059 echo "$as_me:$LINENO: checking for X" >&5
8060 echo $ECHO_N "checking for X... $ECHO_C" >&6
8063 # Check whether --with-x or --without-x was given.
8064 if test "${with_x+set}" = set; then
8068 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8069 if test "x$with_x" = xno; then
8070 # The user explicitly disabled X.
8073 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8074 # Both variables are already set.
8077 if test "${ac_cv_have_x+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 # One or both of the vars are not set, and there is no cached value.
8081 ac_x_includes=no ac_x_libraries=no
8083 if mkdir conftest.dir; then
8085 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8086 cat >Imakefile <<'_ACEOF'
8088 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8090 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8092 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8093 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8094 for ac_extension in a so sl; do
8095 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8096 test -f $ac_im_libdir/libX11.$ac_extension; then
8097 ac_im_usrlibdir=$ac_im_libdir; break
8100 # Screen out bogus values from the imake configuration. They are
8101 # bogus both because they are the default anyway, and because
8102 # using them would break gcc on systems where it needs fixed includes.
8103 case $ac_im_incroot in
8105 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8107 case $ac_im_usrlibdir in
8109 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8116 # Standard set of common directories for X headers.
8117 # Check X11 before X11Rn because it is often a symlink to the current release.
8129 /usr/local/X11/include
8130 /usr/local/X11R6/include
8131 /usr/local/X11R5/include
8132 /usr/local/X11R4/include
8134 /usr/local/include/X11
8135 /usr/local/include/X11R6
8136 /usr/local/include/X11R5
8137 /usr/local/include/X11R4
8141 /usr/XFree86/include/X11
8145 /usr/unsupported/include
8147 /usr/local/x11r5/include
8148 /usr/lpp/Xamples/include
8150 /usr/openwin/include
8151 /usr/openwin/share/include'
8153 if test "$ac_x_includes" = no; then
8154 # Guess where to find include files, by looking for Intrinsic.h.
8155 # First, try using that file with no special directory specified.
8156 cat >conftest.$ac_ext <<_ACEOF
8157 #line $LINENO "configure"
8158 #include "confdefs.h"
8159 #include <X11/Intrinsic.h>
8161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8164 egrep -v '^ *\+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } >/dev/null; then
8169 if test -s conftest.err; then
8170 ac_cpp_err=$ac_c_preproc_warn_flag
8177 if test -z "$ac_cpp_err"; then
8178 # We can compile using X headers with no special include directory.
8181 echo "$as_me: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8183 for ac_dir in $ac_x_header_dirs; do
8184 if test -r "$ac_dir/X11/Intrinsic.h"; then
8185 ac_x_includes=$ac_dir
8190 rm -f conftest.err conftest.$ac_ext
8191 fi # $ac_x_includes = no
8193 if test "$ac_x_libraries" = no; then
8194 # Check for the libraries.
8195 # See if we find them without any special options.
8196 # Don't add to $LIBS permanently.
8199 cat >conftest.$ac_ext <<_ACEOF
8200 #line $LINENO "configure"
8201 #include "confdefs.h"
8202 #include <X11/Intrinsic.h>
8203 #ifdef F77_DUMMY_MAIN
8207 int F77_DUMMY_MAIN() { return 1; }
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8219 (eval $ac_link) 2>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8230 # We can link X programs with no special library path.
8233 echo "$as_me: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8236 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8238 # Don't even attempt the hair of trying to link an X program!
8239 for ac_extension in a so sl; do
8240 if test -r $ac_dir/libXt.$ac_extension; then
8241 ac_x_libraries=$ac_dir
8247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8248 fi # $ac_x_libraries = no
8250 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8251 # Didn't find X anywhere. Cache the known absence of X.
8252 ac_cv_have_x="have_x=no"
8254 # Record where we found X for the cache.
8255 ac_cv_have_x="have_x=yes \
8256 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8261 eval "$ac_cv_have_x"
8264 if test "$have_x" != yes; then
8265 echo "$as_me:$LINENO: result: $have_x" >&5
8266 echo "${ECHO_T}$have_x" >&6
8269 # If each of the values was on the command line, it overrides each guess.
8270 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8271 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8272 # Update the cache value to reflect the command line values.
8273 ac_cv_have_x="have_x=yes \
8274 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8275 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8276 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8279 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8280 # for constant arguments. Useless!
8281 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8282 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8283 if test "${ac_cv_working_alloca_h+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 #include "confdefs.h"
8290 #ifdef F77_DUMMY_MAIN
8294 int F77_DUMMY_MAIN() { return 1; }
8299 char *p = (char *) alloca (2 * sizeof (int));
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_working_alloca_h=yes
8318 echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 ac_cv_working_alloca_h=no
8322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8324 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8325 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8326 if test $ac_cv_working_alloca_h = yes; then
8328 cat >>confdefs.h <<\_ACEOF
8329 #define HAVE_ALLOCA_H 1
8334 echo "$as_me:$LINENO: checking for alloca" >&5
8335 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8336 if test "${ac_cv_func_alloca_works+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 cat >conftest.$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8341 #include "confdefs.h"
8343 # define alloca __builtin_alloca
8346 # include <malloc.h>
8347 # define alloca _alloca
8350 # include <alloca.h>
8355 # ifndef alloca /* predefined by HP cc +Olibcalls */
8363 #ifdef F77_DUMMY_MAIN
8367 int F77_DUMMY_MAIN() { return 1; }
8372 char *p = (char *) alloca (1);
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379 (eval $ac_link) 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_func_alloca_works=yes
8391 echo "$as_me: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 ac_cv_func_alloca_works=no
8395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8398 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8400 if test $ac_cv_func_alloca_works = yes; then
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_ALLOCA 1
8407 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8408 # that cause trouble. Some versions do not even contain alloca or
8409 # contain a buggy version. If you still want to use their alloca,
8410 # use ar to extract alloca.o from them instead of compiling alloca.c.
8412 ALLOCA=alloca.$ac_objext
8414 cat >>confdefs.h <<\_ACEOF
8419 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8420 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8421 if test "${ac_cv_os_cray+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8426 #include "confdefs.h"
8427 #if defined(CRAY) && ! defined(CRAY2)
8434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8435 egrep "webecray" >/dev/null 2>&1; then
8443 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8444 echo "${ECHO_T}$ac_cv_os_cray" >&6
8445 if test $ac_cv_os_cray = yes; then
8446 for ac_func in _getb67 GETB67 getb67; do
8447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8448 echo "$as_me:$LINENO: checking for $ac_func" >&5
8449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8450 if eval "test \"\${$as_ac_var+set}\" = set"; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 cat >conftest.$ac_ext <<_ACEOF
8454 #line $LINENO "configure"
8455 #include "confdefs.h"
8456 /* System header to define __stub macros and hopefully few prototypes,
8457 which can conflict with char $ac_func (); below. */
8459 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8468 #ifdef F77_DUMMY_MAIN
8472 int F77_DUMMY_MAIN() { return 1; }
8477 /* The GNU C library defines this for functions which it implements
8478 to always fail with ENOSYS. Some functions are actually named
8479 something starting with __ and the normal name is an alias. */
8480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8490 rm -f conftest.$ac_objext conftest$ac_exeext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8492 (eval $ac_link) 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 eval "$as_ac_var=yes"
8504 echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 eval "$as_ac_var=no"
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8512 if test `eval echo '${'$as_ac_var'}'` = yes; then
8514 cat >>confdefs.h <<_ACEOF
8515 #define CRAY_STACKSEG_END $ac_func
8524 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8525 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8526 if test "${ac_cv_c_stack_direction+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 if test "$cross_compiling" = yes; then
8530 ac_cv_c_stack_direction=0
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8534 #include "confdefs.h"
8536 find_stack_direction ()
8538 static char *addr = 0;
8543 return find_stack_direction ();
8546 return (&dummy > addr) ? 1 : -1;
8552 exit (find_stack_direction () < 0);
8555 rm -f conftest$ac_exeext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8557 (eval $ac_link) 2>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_c_stack_direction=1
8568 echo "$as_me: program exited with status $ac_status" >&5
8569 echo "$as_me: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8572 ac_cv_c_stack_direction=-1
8574 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8577 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8578 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8580 cat >>confdefs.h <<_ACEOF
8581 #define STACK_DIRECTION $ac_cv_c_stack_direction
8587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8589 if test "${ac_cv_header_stdc+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 #include "confdefs.h"
8601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8604 egrep -v '^ *\+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } >/dev/null; then
8609 if test -s conftest.err; then
8610 ac_cpp_err=$ac_c_preproc_warn_flag
8617 if test -z "$ac_cpp_err"; then
8618 ac_cv_header_stdc=yes
8620 echo "$as_me: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8622 ac_cv_header_stdc=no
8624 rm -f conftest.err conftest.$ac_ext
8626 if test $ac_cv_header_stdc = yes; then
8627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8635 egrep "memchr" >/dev/null 2>&1; then
8638 ac_cv_header_stdc=no
8644 if test $ac_cv_header_stdc = yes; then
8645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8653 egrep "free" >/dev/null 2>&1; then
8656 ac_cv_header_stdc=no
8662 if test $ac_cv_header_stdc = yes; then
8663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8664 if test "$cross_compiling" = yes; then
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8671 #if ((' ' & 0x0FF) == 0x020)
8672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8675 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8676 || ('j' <= (c) && (c) <= 'r') \
8677 || ('s' <= (c) && (c) <= 'z'))
8678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8686 for (i = 0; i < 256; i++)
8687 if (XOR (islower (i), ISLOWER (i))
8688 || toupper (i) != TOUPPER (i))
8693 rm -f conftest$ac_exeext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695 (eval $ac_link) 2>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8706 echo "$as_me: program exited with status $ac_status" >&5
8707 echo "$as_me: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8710 ac_cv_header_stdc=no
8712 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8716 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8717 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8718 if test $ac_cv_header_stdc = yes; then
8720 cat >>confdefs.h <<\_ACEOF
8721 #define STDC_HEADERS 1
8733 for ac_header in limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h
8735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737 echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745 # Is the header compilable?
8746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8749 #line $LINENO "configure"
8750 #include "confdefs.h"
8751 $ac_includes_default
8752 #include <$ac_header>
8754 rm -f conftest.$ac_objext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756 (eval $ac_compile) 2>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_header_compiler=yes
8768 echo "$as_me: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8770 ac_header_compiler=no
8772 rm -f conftest.$ac_objext conftest.$ac_ext
8773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8774 echo "${ECHO_T}$ac_header_compiler" >&6
8776 # Is the header present?
8777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 #include "confdefs.h"
8782 #include <$ac_header>
8784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8787 egrep -v '^ *\+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } >/dev/null; then
8792 if test -s conftest.err; then
8793 ac_cpp_err=$ac_c_preproc_warn_flag
8800 if test -z "$ac_cpp_err"; then
8801 ac_header_preproc=yes
8803 echo "$as_me: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8805 ac_header_preproc=no
8807 rm -f conftest.err conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8809 echo "${ECHO_T}$ac_header_preproc" >&6
8811 # So? What about this header?
8812 case $ac_header_compiler:$ac_header_preproc in
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8826 echo "$as_me:$LINENO: checking for $ac_header" >&5
8827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 eval "$as_ac_Header=$ac_header_preproc"
8833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838 cat >>confdefs.h <<_ACEOF
8839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847 # Checks for typedefs, structures, and compiler characteristics.
8848 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8849 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8850 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 ac_cv_prog_cc_stdc=no
8855 cat >conftest.$ac_ext <<_ACEOF
8856 #line $LINENO "configure"
8857 #include "confdefs.h"
8860 #include <sys/types.h>
8861 #include <sys/stat.h>
8862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8863 struct buf { int x; };
8864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8865 static char *e (p, i)
8871 static char *f (char * (*g) (char **, int), char **p, ...)
8876 s = g (p, va_arg (v,int));
8880 int test (int i, double x);
8881 struct s1 {int (*f) (int a);};
8882 struct s2 {int (*f) (double a);};
8883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8886 #ifdef F77_DUMMY_MAIN
8890 int F77_DUMMY_MAIN() { return 1; }
8895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8900 # Don't try gcc -ansi; that turns off useful extensions and
8901 # breaks some systems' header files.
8902 # AIX -qlanglvl=ansi
8903 # Ultrix and OSF/1 -std1
8904 # HP-UX 10.20 and later -Ae
8905 # HP-UX older versions -Aa -D_HPUX_SOURCE
8906 # SVR4 -Xc -D__EXTENSIONS__
8907 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8909 CC="$ac_save_CC $ac_arg"
8910 rm -f conftest.$ac_objext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8912 (eval $ac_compile) 2>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -s conftest.$ac_objext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_prog_cc_stdc=$ac_arg
8925 echo "$as_me: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8928 rm -f conftest.$ac_objext
8930 rm -f conftest.$ac_ext conftest.$ac_objext
8935 case "x$ac_cv_prog_cc_stdc" in
8937 echo "$as_me:$LINENO: result: none needed" >&5
8938 echo "${ECHO_T}none needed" >&6 ;;
8940 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8941 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8942 CC="$CC $ac_cv_prog_cc_stdc" ;;
8945 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8946 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8947 if test "${ac_cv_c_const+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8952 #include "confdefs.h"
8954 #ifdef F77_DUMMY_MAIN
8958 int F77_DUMMY_MAIN() { return 1; }
8963 /* FIXME: Include the comments suggested by Paul. */
8965 /* Ultrix mips cc rejects this. */
8966 typedef int charset[2];
8968 /* SunOS 4.1.1 cc rejects this. */
8969 char const *const *ccp;
8971 /* NEC SVR4.0.2 mips cc rejects this. */
8972 struct point {int x, y;};
8973 static struct point const zero = {0,0};
8974 /* AIX XL C 1.02.0.0 rejects this.
8975 It does not let you subtract one const X* pointer from another in
8976 an arm of an if-expression whose if-part is not a constant
8978 const char *g = "string";
8979 ccp = &g + (g ? g-g : 0);
8980 /* HPUX 7.0 cc rejects these. */
8983 ccp = (char const *const *) p;
8984 { /* SCO 3.2v4 cc rejects this. */
8986 char const *s = 0 ? (char *) 0 : (char const *) 0;
8990 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8992 const int *foo = &x[0];
8995 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8996 typedef const int *iptr;
9000 { /* AIX XL C 1.02.0.0 rejects this saying
9001 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9002 struct s { int j; const int *ap[3]; };
9003 struct s *b; b->j = 5;
9005 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9014 rm -f conftest.$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -s conftest.$ac_objext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9028 echo "$as_me: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9032 rm -f conftest.$ac_objext conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9035 echo "${ECHO_T}$ac_cv_c_const" >&6
9036 if test $ac_cv_c_const = no; then
9038 cat >>confdefs.h <<\_ACEOF
9044 echo "$as_me:$LINENO: checking for size_t" >&5
9045 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9046 if test "${ac_cv_type_size_t+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 cat >conftest.$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9051 #include "confdefs.h"
9052 $ac_includes_default
9053 #ifdef F77_DUMMY_MAIN
9057 int F77_DUMMY_MAIN() { return 1; }
9064 if (sizeof (size_t))
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -s conftest.$ac_objext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_cv_type_size_t=yes
9084 echo "$as_me: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9086 ac_cv_type_size_t=no
9088 rm -f conftest.$ac_objext conftest.$ac_ext
9090 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9091 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9092 if test $ac_cv_type_size_t = yes; then
9096 cat >>confdefs.h <<_ACEOF
9097 #define size_t unsigned
9102 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9103 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9104 if test "${ac_cv_struct_tm+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9108 #line $LINENO "configure"
9109 #include "confdefs.h"
9110 #include <sys/types.h>
9113 #ifdef F77_DUMMY_MAIN
9117 int F77_DUMMY_MAIN() { return 1; }
9122 struct tm *tp; tp->tm_sec;
9127 rm -f conftest.$ac_objext
9128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9129 (eval $ac_compile) 2>&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -s conftest.$ac_objext'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; }; then
9139 ac_cv_struct_tm=time.h
9141 echo "$as_me: failed program was:" >&5
9142 cat conftest.$ac_ext >&5
9143 ac_cv_struct_tm=sys/time.h
9145 rm -f conftest.$ac_objext conftest.$ac_ext
9147 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9148 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9149 if test $ac_cv_struct_tm = sys/time.h; then
9151 cat >>confdefs.h <<\_ACEOF
9152 #define TM_IN_SYS_TIME 1
9158 # Checks for library functions.
9159 echo "$as_me:$LINENO: checking for error_at_line" >&5
9160 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9161 if test "${ac_cv_lib_error_at_line+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9168 #ifdef F77_DUMMY_MAIN
9172 int F77_DUMMY_MAIN() { return 1; }
9177 error_at_line (0, 0, "", 0, "");
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_lib_error_at_line=yes
9196 echo "$as_me: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9198 ac_cv_lib_error_at_line=no
9200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9203 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9204 if test $ac_cv_lib_error_at_line = no; then
9205 LIBOBJS="$LIBOBJS error.$ac_objext"
9209 for ac_header in stdlib.h
9211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213 echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9221 # Is the header compilable?
9222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9226 #include "confdefs.h"
9227 $ac_includes_default
9228 #include <$ac_header>
9230 rm -f conftest.$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232 (eval $ac_compile) 2>&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_header_compiler=yes
9244 echo "$as_me: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246 ac_header_compiler=no
9248 rm -f conftest.$ac_objext conftest.$ac_ext
9249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9250 echo "${ECHO_T}$ac_header_compiler" >&6
9252 # Is the header present?
9253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9257 #include "confdefs.h"
9258 #include <$ac_header>
9260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9263 egrep -v '^ *\+' conftest.er1 >conftest.err
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } >/dev/null; then
9268 if test -s conftest.err; then
9269 ac_cpp_err=$ac_c_preproc_warn_flag
9276 if test -z "$ac_cpp_err"; then
9277 ac_header_preproc=yes
9279 echo "$as_me: failed program was:" >&5
9280 cat conftest.$ac_ext >&5
9281 ac_header_preproc=no
9283 rm -f conftest.err conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285 echo "${ECHO_T}$ac_header_preproc" >&6
9287 # So? What about this header?
9288 case $ac_header_compiler:$ac_header_preproc in
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9302 echo "$as_me:$LINENO: checking for $ac_header" >&5
9303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 eval "$as_ac_Header=$ac_header_preproc"
9309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9314 cat >>confdefs.h <<_ACEOF
9315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9322 echo "$as_me:$LINENO: checking for working malloc" >&5
9323 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
9324 if test "${ac_cv_func_malloc_works+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 if test "$cross_compiling" = yes; then
9328 ac_cv_func_malloc_works=no
9330 cat >conftest.$ac_ext <<_ACEOF
9331 #line $LINENO "configure"
9332 #include "confdefs.h"
9333 #if STDC_HEADERS || HAVE_STDLIB_H
9334 # include <stdlib.h>
9339 #ifdef F77_DUMMY_MAIN
9343 int F77_DUMMY_MAIN() { return 1; }
9348 exit (malloc (0) ? 0 : 1);
9353 rm -f conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355 (eval $ac_link) 2>&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; }; then
9364 ac_cv_func_malloc_works=yes
9366 echo "$as_me: program exited with status $ac_status" >&5
9367 echo "$as_me: failed program was:" >&5
9368 cat conftest.$ac_ext >&5
9370 ac_cv_func_malloc_works=no
9372 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9375 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
9376 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
9377 if test $ac_cv_func_malloc_works = yes; then
9379 cat >>confdefs.h <<\_ACEOF
9380 #define HAVE_MALLOC 1
9387 for ac_header in stdlib.h unistd.h
9389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9391 echo "$as_me:$LINENO: checking for $ac_header" >&5
9392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9399 # Is the header compilable?
9400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line $LINENO "configure"
9404 #include "confdefs.h"
9405 $ac_includes_default
9406 #include <$ac_header>
9408 rm -f conftest.$ac_objext
9409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9410 (eval $ac_compile) 2>&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -s conftest.$ac_objext'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 ac_header_compiler=yes
9422 echo "$as_me: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 ac_header_compiler=no
9426 rm -f conftest.$ac_objext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9428 echo "${ECHO_T}$ac_header_compiler" >&6
9430 # Is the header present?
9431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9433 cat >conftest.$ac_ext <<_ACEOF
9434 #line $LINENO "configure"
9435 #include "confdefs.h"
9436 #include <$ac_header>
9438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9441 egrep -v '^ *\+' conftest.er1 >conftest.err
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } >/dev/null; then
9446 if test -s conftest.err; then
9447 ac_cpp_err=$ac_c_preproc_warn_flag
9454 if test -z "$ac_cpp_err"; then
9455 ac_header_preproc=yes
9457 echo "$as_me: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9459 ac_header_preproc=no
9461 rm -f conftest.err conftest.$ac_ext
9462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9463 echo "${ECHO_T}$ac_header_preproc" >&6
9465 # So? What about this header?
9466 case $ac_header_compiler:$ac_header_preproc in
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9480 echo "$as_me:$LINENO: checking for $ac_header" >&5
9481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 eval "$as_ac_Header=$ac_header_preproc"
9487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9492 cat >>confdefs.h <<_ACEOF
9493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9501 for ac_func in getpagesize
9503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9504 echo "$as_me:$LINENO: checking for $ac_func" >&5
9505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9506 if eval "test \"\${$as_ac_var+set}\" = set"; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9510 #line $LINENO "configure"
9511 #include "confdefs.h"
9512 /* System header to define __stub macros and hopefully few prototypes,
9513 which can conflict with char $ac_func (); below. */
9515 /* Override any gcc2 internal prototype to avoid an error. */
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9524 #ifdef F77_DUMMY_MAIN
9528 int F77_DUMMY_MAIN() { return 1; }
9533 /* The GNU C library defines this for functions which it implements
9534 to always fail with ENOSYS. Some functions are actually named
9535 something starting with __ and the normal name is an alias. */
9536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } &&
9552 { ac_try='test -s conftest$ac_exeext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 eval "$as_ac_var=yes"
9560 echo "$as_me: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9562 eval "$as_ac_var=no"
9564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9568 if test `eval echo '${'$as_ac_var'}'` = yes; then
9569 cat >>confdefs.h <<_ACEOF
9570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9576 echo "$as_me:$LINENO: checking for working mmap" >&5
9577 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9578 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 if test "$cross_compiling" = yes; then
9582 ac_cv_func_mmap_fixed_mapped=no
9584 cat >conftest.$ac_ext <<_ACEOF
9585 #line $LINENO "configure"
9586 #include "confdefs.h"
9587 $ac_includes_default
9588 /* malloc might have been renamed as rpl_malloc. */
9591 /* Thanks to Mike Haertel and Jim Avera for this test.
9592 Here is a matrix of mmap possibilities:
9593 mmap private not fixed
9594 mmap private fixed at somewhere currently unmapped
9595 mmap private fixed at somewhere already mapped
9596 mmap shared not fixed
9597 mmap shared fixed at somewhere currently unmapped
9598 mmap shared fixed at somewhere already mapped
9599 For private mappings, we should verify that changes cannot be read()
9600 back from the file, nor mmap's back from the file at a different
9601 address. (There have been systems where private was not correctly
9602 implemented like the infamous i386 svr4.0, and systems where the
9603 VM page cache was not coherent with the file system buffer cache
9604 like early versions of FreeBSD and possibly contemporary NetBSD.)
9605 For shared mappings, we should conversely verify that changes get
9606 propagated back to all the places they're supposed to be.
9608 Grep wants private fixed already mapped.
9609 The main things grep needs to know about mmap are:
9610 * does it exist and is it safe to write into the mmap'd area
9611 * how to use it (BSD variants) */
9614 #include <sys/mman.h>
9616 #if !STDC_HEADERS && !HAVE_STDLIB_H
9620 /* This mess was copied from the GNU getpagesize.h. */
9621 #if !HAVE_GETPAGESIZE
9622 /* Assume that all systems that can run configure have sys/param.h. */
9623 # if !HAVE_SYS_PARAM_H
9624 # define HAVE_SYS_PARAM_H 1
9627 # ifdef _SC_PAGESIZE
9628 # define getpagesize() sysconf(_SC_PAGESIZE)
9629 # else /* no _SC_PAGESIZE */
9630 # if HAVE_SYS_PARAM_H
9631 # include <sys/param.h>
9632 # ifdef EXEC_PAGESIZE
9633 # define getpagesize() EXEC_PAGESIZE
9634 # else /* no EXEC_PAGESIZE */
9636 # define getpagesize() NBPG * CLSIZE
9639 # endif /* no CLSIZE */
9640 # else /* no NBPG */
9642 # define getpagesize() NBPC
9643 # else /* no NBPC */
9645 # define getpagesize() PAGESIZE
9646 # endif /* PAGESIZE */
9647 # endif /* no NBPC */
9648 # endif /* no NBPG */
9649 # endif /* no EXEC_PAGESIZE */
9650 # else /* no HAVE_SYS_PARAM_H */
9651 # define getpagesize() 8192 /* punt totally */
9652 # endif /* no HAVE_SYS_PARAM_H */
9653 # endif /* no _SC_PAGESIZE */
9655 #endif /* no HAVE_GETPAGESIZE */
9660 char *data, *data2, *data3;
9664 pagesize = getpagesize ();
9666 /* First, make a file with some known garbage in it. */
9667 data = (char *) malloc (pagesize);
9670 for (i = 0; i < pagesize; ++i)
9671 *(data + i) = rand ();
9673 fd = creat ("conftest.mmap", 0600);
9676 if (write (fd, data, pagesize) != pagesize)
9680 /* Next, try to mmap the file at a fixed address which already has
9681 something else allocated at it. If we can, also make sure that
9682 we see the same garbage. */
9683 fd = open ("conftest.mmap", O_RDWR);
9686 data2 = (char *) malloc (2 * pagesize);
9689 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9690 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9691 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9693 for (i = 0; i < pagesize; ++i)
9694 if (*(data + i) != *(data2 + i))
9697 /* Finally, make sure that changes to the mapped area do not
9698 percolate back to the file as seen by read(). (This is a bug on
9699 some variants of i386 svr4.0.) */
9700 for (i = 0; i < pagesize; ++i)
9701 *(data2 + i) = *(data2 + i) + 1;
9702 data3 = (char *) malloc (pagesize);
9705 if (read (fd, data3, pagesize) != pagesize)
9707 for (i = 0; i < pagesize; ++i)
9708 if (*(data + i) != *(data3 + i))
9714 rm -f conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_cv_func_mmap_fixed_mapped=yes
9727 echo "$as_me: program exited with status $ac_status" >&5
9728 echo "$as_me: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9731 ac_cv_func_mmap_fixed_mapped=no
9733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9736 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9737 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9738 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9740 cat >>confdefs.h <<\_ACEOF
9747 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9748 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9749 if test "${ac_cv_type_signal+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 cat >conftest.$ac_ext <<_ACEOF
9753 #line $LINENO "configure"
9754 #include "confdefs.h"
9755 #include <sys/types.h>
9761 extern "C" void (*signal (int, void (*)(int)))(int);
9763 void (*signal ()) ();
9766 #ifdef F77_DUMMY_MAIN
9770 int F77_DUMMY_MAIN() { return 1; }
9780 rm -f conftest.$ac_objext
9781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9782 (eval $ac_compile) 2>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -s conftest.$ac_objext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_cv_type_signal=void
9794 echo "$as_me: failed program was:" >&5
9795 cat conftest.$ac_ext >&5
9796 ac_cv_type_signal=int
9798 rm -f conftest.$ac_objext conftest.$ac_ext
9800 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9801 echo "${ECHO_T}$ac_cv_type_signal" >&6
9803 cat >>confdefs.h <<_ACEOF
9804 #define RETSIGTYPE $ac_cv_type_signal
9808 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9809 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
9810 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 rm -f conftest.sym conftest.file
9815 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9816 if test "$cross_compiling" = yes; then
9817 ac_cv_func_lstat_dereferences_slashed_symlink=no
9819 cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 #include "confdefs.h"
9822 $ac_includes_default
9823 #ifdef F77_DUMMY_MAIN
9827 int F77_DUMMY_MAIN() { return 1; }
9833 /* Linux will dereference the symlink and fail.
9834 That is better in the sense that it means we will not
9835 have to compile and use the lstat wrapper. */
9836 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
9841 rm -f conftest$ac_exeext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9854 echo "$as_me: program exited with status $ac_status" >&5
9855 echo "$as_me: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9858 ac_cv_func_lstat_dereferences_slashed_symlink=no
9860 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9863 # If the `ln -s' command failed, then we probably don't even
9864 # have an lstat function.
9865 ac_cv_func_lstat_dereferences_slashed_symlink=no
9867 rm -f conftest.sym conftest.file
9870 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9871 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
9873 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9875 cat >>confdefs.h <<_ACEOF
9876 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9880 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9881 LIBOBJS="$LIBOBJS lstat.$ac_objext"
9884 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9885 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
9886 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 if test "$cross_compiling" = yes; then
9890 ac_cv_func_stat_empty_string_bug=yes
9892 cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 #include "confdefs.h"
9895 $ac_includes_default
9896 #ifdef F77_DUMMY_MAIN
9900 int F77_DUMMY_MAIN() { return 1; }
9906 exit (stat ("", &sbuf) ? 1 : 0);
9911 rm -f conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_func_stat_empty_string_bug=yes
9924 echo "$as_me: program exited with status $ac_status" >&5
9925 echo "$as_me: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9928 ac_cv_func_stat_empty_string_bug=no
9930 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
9934 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
9935 if test $ac_cv_func_stat_empty_string_bug = yes; then
9936 LIBOBJS="$LIBOBJS stat.$ac_objext"
9938 cat >>confdefs.h <<_ACEOF
9939 #define HAVE_STAT_EMPTY_STRING_BUG 1
9944 echo "$as_me:$LINENO: checking for working strtod" >&5
9945 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
9946 if test "${ac_cv_func_strtod+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 if test "$cross_compiling" = yes; then
9950 ac_cv_func_strtod=no
9952 cat >conftest.$ac_ext <<_ACEOF
9953 #line $LINENO "configure"
9954 #include "confdefs.h"
9961 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9962 char *string = " +69";
9965 value = strtod (string, &term);
9966 if (value != 69 || term != (string + 4))
9971 /* Under Solaris 2.4, strtod returns the wrong value for the
9972 terminating character under some conditions. */
9973 char *string = "NaN";
9975 strtod (string, &term);
9976 if (term != string && *(term - 1) == 0)
9983 rm -f conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985 (eval $ac_link) 2>&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 ac_cv_func_strtod=yes
9996 echo "$as_me: program exited with status $ac_status" >&5
9997 echo "$as_me: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
10000 ac_cv_func_strtod=no
10002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10006 echo "${ECHO_T}$ac_cv_func_strtod" >&6
10007 if test $ac_cv_func_strtod = no; then
10008 LIBOBJS="$LIBOBJS strtod.$ac_objext"
10009 echo "$as_me:$LINENO: checking for pow" >&5
10010 echo $ECHO_N "checking for pow... $ECHO_C" >&6
10011 if test "${ac_cv_func_pow+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 cat >conftest.$ac_ext <<_ACEOF
10015 #line $LINENO "configure"
10016 #include "confdefs.h"
10017 /* System header to define __stub macros and hopefully few prototypes,
10018 which can conflict with char pow (); below. */
10019 #include <assert.h>
10020 /* Override any gcc2 internal prototype to avoid an error. */
10024 /* We use char because int might match the return type of a gcc2
10025 builtin and then its argument prototype would still apply. */
10029 #ifdef F77_DUMMY_MAIN
10030 # ifdef __cplusplus
10033 int F77_DUMMY_MAIN() { return 1; }
10038 /* The GNU C library defines this for functions which it implements
10039 to always fail with ENOSYS. Some functions are actually named
10040 something starting with __ and the normal name is an alias. */
10041 #if defined (__stub_pow) || defined (__stub___pow)
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -s conftest$ac_exeext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10065 echo "$as_me: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10072 echo "${ECHO_T}$ac_cv_func_pow" >&6
10074 if test $ac_cv_func_pow = no; then
10075 echo "$as_me:$LINENO: checking for pow in -lm" >&5
10076 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10077 if test "${ac_cv_lib_m_pow+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 ac_check_lib_save_LIBS=$LIBS
10082 cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10084 #include "confdefs.h"
10086 /* Override any gcc2 internal prototype to avoid an error. */
10090 /* We use char because int might match the return type of a gcc2
10091 builtin and then its argument prototype would still apply. */
10093 #ifdef F77_DUMMY_MAIN
10094 # ifdef __cplusplus
10097 int F77_DUMMY_MAIN() { return 1; }
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -s conftest$ac_exeext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_lib_m_pow=yes
10121 echo "$as_me: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10126 LIBS=$ac_check_lib_save_LIBS
10128 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10129 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10130 if test $ac_cv_lib_m_pow = yes; then
10133 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10134 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10142 for ac_func in vprintf
10144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10145 echo "$as_me:$LINENO: checking for $ac_func" >&5
10146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10147 if eval "test \"\${$as_ac_var+set}\" = set"; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 cat >conftest.$ac_ext <<_ACEOF
10151 #line $LINENO "configure"
10152 #include "confdefs.h"
10153 /* System header to define __stub macros and hopefully few prototypes,
10154 which can conflict with char $ac_func (); below. */
10155 #include <assert.h>
10156 /* Override any gcc2 internal prototype to avoid an error. */
10160 /* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10165 #ifdef F77_DUMMY_MAIN
10166 # ifdef __cplusplus
10169 int F77_DUMMY_MAIN() { return 1; }
10174 /* The GNU C library defines this for functions which it implements
10175 to always fail with ENOSYS. Some functions are actually named
10176 something starting with __ and the normal name is an alias. */
10177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -s conftest$ac_exeext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 eval "$as_ac_var=yes"
10201 echo "$as_me: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10203 eval "$as_ac_var=no"
10205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10209 if test `eval echo '${'$as_ac_var'}'` = yes; then
10210 cat >>confdefs.h <<_ACEOF
10211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10214 echo "$as_me:$LINENO: checking for _doprnt" >&5
10215 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10216 if test "${ac_cv_func__doprnt+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10222 /* System header to define __stub macros and hopefully few prototypes,
10223 which can conflict with char _doprnt (); below. */
10224 #include <assert.h>
10225 /* Override any gcc2 internal prototype to avoid an error. */
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10234 #ifdef F77_DUMMY_MAIN
10235 # ifdef __cplusplus
10238 int F77_DUMMY_MAIN() { return 1; }
10243 /* The GNU C library defines this for functions which it implements
10244 to always fail with ENOSYS. Some functions are actually named
10245 something starting with __ and the normal name is an alias. */
10246 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258 (eval $ac_link) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 ac_cv_func__doprnt=yes
10270 echo "$as_me: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 ac_cv_func__doprnt=no
10274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10276 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10277 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10278 if test $ac_cv_func__doprnt = yes; then
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_DOPRNT 1
10303 for ac_func in bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol
10305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10306 echo "$as_me:$LINENO: checking for $ac_func" >&5
10307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10308 if eval "test \"\${$as_ac_var+set}\" = set"; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 cat >conftest.$ac_ext <<_ACEOF
10312 #line $LINENO "configure"
10313 #include "confdefs.h"
10314 /* System header to define __stub macros and hopefully few prototypes,
10315 which can conflict with char $ac_func (); below. */
10316 #include <assert.h>
10317 /* Override any gcc2 internal prototype to avoid an error. */
10321 /* We use char because int might match the return type of a gcc2
10322 builtin and then its argument prototype would still apply. */
10326 #ifdef F77_DUMMY_MAIN
10327 # ifdef __cplusplus
10330 int F77_DUMMY_MAIN() { return 1; }
10335 /* The GNU C library defines this for functions which it implements
10336 to always fail with ENOSYS. Some functions are actually named
10337 something starting with __ and the normal name is an alias. */
10338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -s conftest$ac_exeext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 eval "$as_ac_var=yes"
10362 echo "$as_me: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10364 eval "$as_ac_var=no"
10366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10370 if test `eval echo '${'$as_ac_var'}'` = yes; then
10371 cat >>confdefs.h <<_ACEOF
10372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10380 cat >>confdefs.h <<_ACEOF
10381 #define FGIS_CONFIG "$sysconfdir"
10387 # Check whether --with-tcl or --without-tcl was given.
10388 if test "${with_tcl+set}" = set; then
10389 withval="$with_tcl"
10392 if test "$with_tcl" = "yes" -o "$with_tcl" = "" ; then
10394 echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl8.3" >&5
10395 echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl8.3... $ECHO_C" >&6
10396 if test "${ac_cv_lib_tcl8_3_Tcl_CreateCommand+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-ltcl8.3 $LIBS $LIBS"
10401 cat >conftest.$ac_ext <<_ACEOF
10402 #line $LINENO "configure"
10403 #include "confdefs.h"
10405 /* Override any gcc2 internal prototype to avoid an error. */
10409 /* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10411 char Tcl_CreateCommand ();
10412 #ifdef F77_DUMMY_MAIN
10413 # ifdef __cplusplus
10416 int F77_DUMMY_MAIN() { return 1; }
10421 Tcl_CreateCommand ();
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -s conftest$ac_exeext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_cv_lib_tcl8_3_Tcl_CreateCommand=yes
10440 echo "$as_me: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 ac_cv_lib_tcl8_3_Tcl_CreateCommand=no
10444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10447 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_3_Tcl_CreateCommand" >&5
10448 echo "${ECHO_T}$ac_cv_lib_tcl8_3_Tcl_CreateCommand" >&6
10449 if test $ac_cv_lib_tcl8_3_Tcl_CreateCommand = yes; then
10456 if test "HAVE_TCL83"="yes"; then
10458 if test -r /usr/include/tcl8.3/tcl.h ; then
10460 LIBS="-ltcl8.3 $LIBS"
10461 TCL_INCLUDE="-I/usr/include/tcl8.3"
10462 echo "using Tcl 8.3"
10470 TCL_INCLUDE=$TCL_INCLUDE
10473 ac_config_files="$ac_config_files Makefile dll/Makefile epu/Makefile include/Makefile tcl/Makefile"
10475 cat >confcache <<\_ACEOF
10476 # This file is a shell script that caches the results of configure
10477 # tests run on this system so they can be shared between configure
10478 # scripts and configure runs, see configure's option --config-cache.
10479 # It is not useful on other systems. If it contains results you don't
10480 # want to keep, you may remove or edit it.
10482 # config.status only pays attention to the cache file if you give it
10483 # the --recheck option to rerun configure.
10485 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10487 # following values.
10491 # The following way of writing the cache mishandles newlines in values,
10492 # but we know of no workaround that is simple, portable, and efficient.
10493 # So, don't put newlines in cache variables' values.
10494 # Ultrix sh set writes to stderr and can't be redirected directly,
10495 # and sets the high bit in the cache file unless we assign to the vars.
10498 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10500 # `set' does not quote correctly, so add quotes (double-quote
10501 # substitution turns \\\\ into \\, and sed turns \\ into \).
10504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10507 # `set' quotes correctly as required by POSIX, so do not add quotes.
10509 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10518 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10520 if cmp -s $cache_file confcache; then :; else
10521 if test -w $cache_file; then
10522 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10523 cat confcache >$cache_file
10525 echo "not updating unwritable cache $cache_file"
10530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10531 # Let make expand exec_prefix.
10532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10536 # trailing colons and then remove the whole line if VPATH becomes empty
10537 # (actually we leave an empty line to preserve line numbers).
10538 if test "x$srcdir" = x.; then
10539 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10540 s/:*\$(srcdir):*/:/;
10541 s/:*\${srcdir}:*/:/;
10543 s/^\([^=]*=[ ]*\):*/\1/;
10549 DEFS=-DHAVE_CONFIG_H
10551 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10552 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10553 Usually this means the macro was only invoked conditionally." >&5
10554 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10555 Usually this means the macro was only invoked conditionally." >&2;}
10556 { (exit 1); exit 1; }; }
10559 : ${CONFIG_STATUS=./config.status}
10560 ac_clean_files_save=$ac_clean_files
10561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10562 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10563 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10564 cat >$CONFIG_STATUS <<_ACEOF
10566 # Generated by $as_me.
10567 # Run this file to recreate the current configuration.
10568 # Compiler output produced by configure, useful for debugging
10569 # configure, is in config.log if it exists.
10572 SHELL=\${CONFIG_SHELL-$SHELL}
10575 cat >>$CONFIG_STATUS <<\_ACEOF
10577 ## --------------------- ##
10578 ## M4sh Initialization. ##
10579 ## --------------------- ##
10581 # Be Bourne compatible
10582 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10585 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10590 # Support unset when possible.
10591 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10597 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
10598 { $as_unset LANG || test "${LANG+set}" != set; } ||
10599 { LANG=C; export LANG; }
10600 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
10601 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
10602 { LC_ALL=C; export LC_ALL; }
10603 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
10604 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
10605 { LC_TIME=C; export LC_TIME; }
10606 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
10607 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
10608 { LC_CTYPE=C; export LC_CTYPE; }
10609 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
10610 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
10611 { LANGUAGE=C; export LANGUAGE; }
10612 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
10613 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
10614 { LC_COLLATE=C; export LC_COLLATE; }
10615 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
10616 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
10617 { LC_NUMERIC=C; export LC_NUMERIC; }
10618 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
10619 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
10620 { LC_MESSAGES=C; export LC_MESSAGES; }
10623 # Name of the executable.
10624 as_me=`(basename "$0") 2>/dev/null ||
10625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10626 X"$0" : 'X\(//\)$' \| \
10627 X"$0" : 'X\(/\)$' \| \
10628 . : '\(.\)' 2>/dev/null ||
10630 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10631 /^X\/\(\/\/\)$/{ s//\1/; q; }
10632 /^X\/\(\/\).*/{ s//\1/; q; }
10635 # PATH needs CR, and LINENO needs CR and PATH.
10636 # Avoid depending upon Character Ranges.
10637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10640 as_cr_digits='0123456789'
10641 as_cr_alnum=$as_cr_Letters$as_cr_digits
10643 # The user is always right.
10644 if test "${PATH_SEPARATOR+set}" != set; then
10645 echo "#! /bin/sh" >conftest.sh
10646 echo "exit 0" >>conftest.sh
10647 chmod +x conftest.sh
10648 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
10657 as_lineno_1=$LINENO
10658 as_lineno_2=$LINENO
10659 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10660 test "x$as_lineno_1" != "x$as_lineno_2" &&
10661 test "x$as_lineno_3" = "x$as_lineno_2" || {
10662 # Find who we are. Look in the path if we contain no path at all
10665 *[\\/]* ) as_myself=$0 ;;
10666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10670 test -z "$as_dir" && as_dir=.
10671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10676 # We did not find ourselves, most probably we were run as `sh COMMAND'
10677 # in which case we are not to be found in the path.
10678 if test "x$as_myself" = x; then
10681 if test ! -f "$as_myself"; then
10682 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10683 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10684 { (exit 1); exit 1; }; }
10686 case $CONFIG_SHELL in
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10692 test -z "$as_dir" && as_dir=.
10693 for as_base in sh bash ksh sh5; do
10696 if ("$as_dir/$as_base" -c '
10697 as_lineno_1=$LINENO
10698 as_lineno_2=$LINENO
10699 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10700 test "x$as_lineno_1" != "x$as_lineno_2" &&
10701 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10702 CONFIG_SHELL=$as_dir/$as_base
10703 export CONFIG_SHELL
10704 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10712 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10713 # uniformly replaced by the line number. The first 'sed' inserts a
10714 # line-number line before each line; the second 'sed' does the real
10715 # work. The second script uses 'N' to pair each line-number line
10716 # with the numbered line, and appends trailing '-' during
10717 # substitution so that $LINENO is not a special case at line end.
10718 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10719 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10720 sed '=' <$as_myself |
10725 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10728 s,^['$as_cr_digits']*\n,,
10729 ' >$as_me.lineno &&
10730 chmod +x $as_me.lineno ||
10731 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10732 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10733 { (exit 1); exit 1; }; }
10735 # Don't try to exec as it changes $[0], causing all sort of problems
10736 # (the dirname of $[0] is not the place where we might find the
10737 # original and so on. Autoconf is especially sensible to this).
10739 # Exit status is that of the last command.
10744 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10745 *c*,-n*) ECHO_N= ECHO_C='
10747 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10748 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10751 if expr a : '\(a\)' >/dev/null 2>&1; then
10757 rm -f conf$$ conf$$.exe conf$$.file
10759 if ln -s conf$$.file conf$$ 2>/dev/null; then
10760 # We could just check for DJGPP; but this test a) works b) is more generic
10761 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10762 if test -f conf$$.exe; then
10763 # Don't use ln at all; we don't have any links
10768 elif ln conf$$.file conf$$ 2>/dev/null; then
10773 rm -f conf$$ conf$$.exe conf$$.file
10775 as_executable_p="test -f"
10777 # Sed expression to map a string onto a valid CPP name.
10778 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10780 # Sed expression to map a string onto a valid variable name.
10781 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10785 # We need space, tab and new line, in precisely that order.
10791 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10795 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10796 # report actual input values of CONFIG_FILES etc. instead of their
10797 # values after options handling. Logging --version etc. is OK.
10801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10802 ## Running $as_me. ##
10807 This file was extended by fGIS $as_me 0.0.1, which was
10808 generated by GNU Autoconf 2.53. Invocation command line was
10810 CONFIG_FILES = $CONFIG_FILES
10811 CONFIG_HEADERS = $CONFIG_HEADERS
10812 CONFIG_LINKS = $CONFIG_LINKS
10813 CONFIG_COMMANDS = $CONFIG_COMMANDS
10817 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10821 # Files that config.status was made for.
10822 if test -n "$ac_config_files"; then
10823 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10826 if test -n "$ac_config_headers"; then
10827 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10830 if test -n "$ac_config_links"; then
10831 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10834 if test -n "$ac_config_commands"; then
10835 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10838 cat >>$CONFIG_STATUS <<\_ACEOF
10841 \`$as_me' instantiates files from templates according to the
10842 current configuration.
10844 Usage: $0 [OPTIONS] [FILE]...
10846 -h, --help print this help, then exit
10847 -V, --version print version number, then exit
10848 -d, --debug don't remove temporary files
10849 --recheck update $as_me by reconfiguring in the same conditions
10850 --file=FILE[:TEMPLATE]
10851 instantiate the configuration file FILE
10852 --header=FILE[:TEMPLATE]
10853 instantiate the configuration header FILE
10855 Configuration files:
10858 Configuration headers:
10861 Configuration commands:
10864 Report bugs to <bug-autoconf@gnu.org>."
10867 cat >>$CONFIG_STATUS <<_ACEOF
10869 fGIS config.status 0.0.1
10870 configured by $0, generated by GNU Autoconf 2.53,
10871 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10873 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10874 Free Software Foundation, Inc.
10875 This config.status script is free software; the Free Software Foundation
10876 gives unlimited permission to copy, distribute and modify it."
10881 cat >>$CONFIG_STATUS <<\_ACEOF
10882 # If no file are specified by the user, then we need to provide default
10883 # value. By we need to know if files were specified by the user.
10889 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10890 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10892 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10896 *) # This is not an option, so the user has probably given explicit
10898 ac_need_defaults=false;;
10902 # Handling of the options.
10904 cat >>$CONFIG_STATUS <<_ACEOF
10905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10906 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10907 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10909 cat >>$CONFIG_STATUS <<\_ACEOF
10910 --version | --vers* | -V )
10911 echo "$ac_cs_version"; exit 0 ;;
10913 # Conflict between --help and --header
10914 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10915 Try \`$0 --help' for more information." >&5
10916 echo "$as_me: error: ambiguous option: $1
10917 Try \`$0 --help' for more information." >&2;}
10918 { (exit 1); exit 1; }; };;
10919 --help | --hel | -h )
10920 echo "$ac_cs_usage"; exit 0 ;;
10921 --debug | --d* | -d )
10923 --file | --fil | --fi | --f )
10925 CONFIG_FILES="$CONFIG_FILES $1"
10926 ac_need_defaults=false;;
10927 --header | --heade | --head | --hea )
10929 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10930 ac_need_defaults=false;;
10932 # This is an error.
10933 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10934 Try \`$0 --help' for more information." >&5
10935 echo "$as_me: error: unrecognized option: $1
10936 Try \`$0 --help' for more information." >&2;}
10937 { (exit 1); exit 1; }; } ;;
10939 *) ac_config_targets="$ac_config_targets $1" ;;
10947 cat >>$CONFIG_STATUS <<_ACEOF
10949 # INIT-COMMANDS section.
10952 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10958 cat >>$CONFIG_STATUS <<\_ACEOF
10959 for ac_config_target in $ac_config_targets
10961 case "$ac_config_target" in
10962 # Handling of arguments.
10963 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10964 "dll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dll/Makefile" ;;
10965 "epu/Makefile" ) CONFIG_FILES="$CONFIG_FILES epu/Makefile" ;;
10966 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10967 "tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcl/Makefile" ;;
10968 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10969 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
10970 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10971 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10972 { (exit 1); exit 1; }; };;
10976 # If the user did not use the arguments to specify the items to instantiate,
10977 # then the envvar interface is used. Set only those that are not.
10978 # We use the long form for the default assignment because of an extremely
10979 # bizarre bug on SunOS 4.1.3.
10980 if $ac_need_defaults; then
10981 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10982 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10983 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10986 # Create a temporary directory, and hook for its removal unless debugging.
10989 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10990 trap '{ (exit 1); exit 1; }' 1 2 13 15
10993 # Create a (secure) tmp directory for tmp files.
10996 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10997 test -n "$tmp" && test -d "$tmp"
11000 tmp=$TMPDIR/cs$$-$RANDOM
11001 (umask 077 && mkdir $tmp)
11004 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11005 { (exit 1); exit 1; }
11010 cat >>$CONFIG_STATUS <<_ACEOF
11013 # CONFIG_FILES section.
11016 # No need to generate the scripts if there are no CONFIG_FILES.
11017 # This happens for instance when ./config.status config.h
11018 if test -n "\$CONFIG_FILES"; then
11019 # Protect against being on the right side of a sed subst in config.status.
11020 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11021 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11022 s,@SHELL@,$SHELL,;t t
11023 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11024 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11025 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11026 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11027 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11028 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11029 s,@exec_prefix@,$exec_prefix,;t t
11030 s,@prefix@,$prefix,;t t
11031 s,@program_transform_name@,$program_transform_name,;t t
11032 s,@bindir@,$bindir,;t t
11033 s,@sbindir@,$sbindir,;t t
11034 s,@libexecdir@,$libexecdir,;t t
11035 s,@datadir@,$datadir,;t t
11036 s,@sysconfdir@,$sysconfdir,;t t
11037 s,@sharedstatedir@,$sharedstatedir,;t t
11038 s,@localstatedir@,$localstatedir,;t t
11039 s,@libdir@,$libdir,;t t
11040 s,@includedir@,$includedir,;t t
11041 s,@oldincludedir@,$oldincludedir,;t t
11042 s,@infodir@,$infodir,;t t
11043 s,@mandir@,$mandir,;t t
11044 s,@build_alias@,$build_alias,;t t
11045 s,@host_alias@,$host_alias,;t t
11046 s,@target_alias@,$target_alias,;t t
11047 s,@DEFS@,$DEFS,;t t
11048 s,@ECHO_C@,$ECHO_C,;t t
11049 s,@ECHO_N@,$ECHO_N,;t t
11050 s,@ECHO_T@,$ECHO_T,;t t
11051 s,@LIBS@,$LIBS,;t t
11052 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11053 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11054 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11055 s,@PACKAGE@,$PACKAGE,;t t
11056 s,@VERSION@,$VERSION,;t t
11057 s,@ACLOCAL@,$ACLOCAL,;t t
11058 s,@AUTOCONF@,$AUTOCONF,;t t
11059 s,@AUTOMAKE@,$AUTOMAKE,;t t
11060 s,@AUTOHEADER@,$AUTOHEADER,;t t
11061 s,@MAKEINFO@,$MAKEINFO,;t t
11062 s,@AMTAR@,$AMTAR,;t t
11063 s,@install_sh@,$install_sh,;t t
11064 s,@STRIP@,$STRIP,;t t
11065 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11066 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11068 s,@SET_MAKE@,$SET_MAKE,;t t
11069 s,@build@,$build,;t t
11070 s,@build_cpu@,$build_cpu,;t t
11071 s,@build_vendor@,$build_vendor,;t t
11072 s,@build_os@,$build_os,;t t
11073 s,@host@,$host,;t t
11074 s,@host_cpu@,$host_cpu,;t t
11075 s,@host_vendor@,$host_vendor,;t t
11076 s,@host_os@,$host_os,;t t
11078 s,@CFLAGS@,$CFLAGS,;t t
11079 s,@LDFLAGS@,$LDFLAGS,;t t
11080 s,@CPPFLAGS@,$CPPFLAGS,;t t
11081 s,@ac_ct_CC@,$ac_ct_CC,;t t
11082 s,@EXEEXT@,$EXEEXT,;t t
11083 s,@OBJEXT@,$OBJEXT,;t t
11084 s,@DEPDIR@,$DEPDIR,;t t
11085 s,@am__include@,$am__include,;t t
11086 s,@am__quote@,$am__quote,;t t
11087 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11088 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11089 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11090 s,@CCDEPMODE@,$CCDEPMODE,;t t
11091 s,@LN_S@,$LN_S,;t t
11092 s,@ECHO@,$ECHO,;t t
11093 s,@RANLIB@,$RANLIB,;t t
11094 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11096 s,@LIBTOOL@,$LIBTOOL,;t t
11097 s,@YACC@,$YACC,;t t
11098 s,@ALLOCA@,$ALLOCA,;t t
11099 s,@LIBOBJS@,$LIBOBJS,;t t
11100 s,@POW_LIB@,$POW_LIB,;t t
11101 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
11106 cat >>$CONFIG_STATUS <<\_ACEOF
11107 # Split the substitutions into bite-sized pieces for seds with
11108 # small command number limits, like on Digital OSF/1 and HP-UX.
11109 ac_max_sed_lines=48
11110 ac_sed_frag=1 # Number of current file.
11111 ac_beg=1 # First line for current file.
11112 ac_end=$ac_max_sed_lines # Line after last line for current file.
11115 while $ac_more_lines; do
11116 if test $ac_beg -gt 1; then
11117 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11119 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11121 if test ! -s $tmp/subs.frag; then
11122 ac_more_lines=false
11124 # The purpose of the label and of the branching condition is to
11125 # speed up the sed processing (if there are no `@' at all, there
11126 # is no need to browse any of the substitutions).
11127 # These are the two extra sed commands mentioned above.
11129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11130 if test -z "$ac_sed_cmds"; then
11131 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11133 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11135 ac_sed_frag=`expr $ac_sed_frag + 1`
11137 ac_end=`expr $ac_end + $ac_max_sed_lines`
11140 if test -z "$ac_sed_cmds"; then
11143 fi # test -n "$CONFIG_FILES"
11146 cat >>$CONFIG_STATUS <<\_ACEOF
11147 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11150 - | *:- | *:-:* ) # input from stdin
11152 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11153 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11154 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11156 * ) ac_file_in=$ac_file.in ;;
11159 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11160 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11162 X"$ac_file" : 'X\(//\)[^/]' \| \
11163 X"$ac_file" : 'X\(//\)$' \| \
11164 X"$ac_file" : 'X\(/\)' \| \
11165 . : '\(.\)' 2>/dev/null ||
11167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11169 /^X\(\/\/\)$/{ s//\1/; q; }
11170 /^X\(\/\).*/{ s//\1/; q; }
11172 { case "$ac_dir" in
11173 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11177 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11178 case $as_mkdir_dir in
11179 # Skip DOS drivespec
11180 ?:) as_incr_dir=$as_mkdir_dir ;;
11182 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11183 test -d "$as_incr_dir" ||
11184 mkdir "$as_incr_dir" ||
11185 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11186 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11187 { (exit 1); exit 1; }; }
11194 if test "$ac_dir" != .; then
11195 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11196 # A "../" for each directory in $ac_dir_suffix.
11197 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11199 ac_dir_suffix= ac_top_builddir=
11203 .) # No --srcdir option. We are building in place.
11205 if test -z "$ac_top_builddir"; then
11208 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11210 [\\/]* | ?:[\\/]* ) # Absolute path.
11211 ac_srcdir=$srcdir$ac_dir_suffix;
11212 ac_top_srcdir=$srcdir ;;
11213 *) # Relative path.
11214 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11215 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11217 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11219 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11220 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
11221 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11222 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11227 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11230 if test x"$ac_file" != x-; then
11231 { echo "$as_me:$LINENO: creating $ac_file" >&5
11232 echo "$as_me: creating $ac_file" >&6;}
11235 # Let's still pretend it is `configure' which instantiates (i.e., don't
11236 # use $as_me), people would be surprised to read:
11237 # /* config.h. Generated by config.status. */
11238 if test x"$ac_file" = x-; then
11241 configure_input="$ac_file. "
11243 configure_input=$configure_input"Generated from `echo $ac_file_in |
11244 sed 's,.*/,,'` by configure."
11246 # First look for the input files in the build tree, otherwise in the
11248 ac_file_inputs=`IFS=:
11249 for f in $ac_file_in; do
11251 -) echo $tmp/stdin ;;
11253 # Absolute (can't be DOS-style, as IFS=:)
11254 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11255 echo "$as_me: error: cannot find input file: $f" >&2;}
11256 { (exit 1); exit 1; }; }
11259 if test -f "$f"; then
11262 elif test -f "$srcdir/$f"; then
11267 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11268 echo "$as_me: error: cannot find input file: $f" >&2;}
11269 { (exit 1); exit 1; }; }
11272 done` || { (exit 1); exit 1; }
11274 cat >>$CONFIG_STATUS <<_ACEOF
11278 cat >>$CONFIG_STATUS <<\_ACEOF
11280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11281 s,@configure_input@,$configure_input,;t t
11282 s,@srcdir@,$ac_srcdir,;t t
11283 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11284 s,@top_srcdir@,$ac_top_srcdir,;t t
11285 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11286 s,@builddir@,$ac_builddir,;t t
11287 s,@abs_builddir@,$ac_abs_builddir,;t t
11288 s,@top_builddir@,$ac_top_builddir,;t t
11289 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11290 s,@INSTALL@,$ac_INSTALL,;t t
11291 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11293 if test x"$ac_file" != x-; then
11294 mv $tmp/out $ac_file
11302 cat >>$CONFIG_STATUS <<\_ACEOF
11305 # CONFIG_HEADER section.
11308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11311 # ac_d sets the value in "#define NAME VALUE" lines.
11312 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11313 ac_dB='[ ].*$,\1#\2'
11316 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11317 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11318 ac_uB='$,\1#\2define\3'
11322 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11325 - | *:- | *:-:* ) # input from stdin
11327 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11329 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11331 * ) ac_file_in=$ac_file.in ;;
11334 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11335 echo "$as_me: creating $ac_file" >&6;}
11337 # First look for the input files in the build tree, otherwise in the
11339 ac_file_inputs=`IFS=:
11340 for f in $ac_file_in; do
11342 -) echo $tmp/stdin ;;
11344 # Absolute (can't be DOS-style, as IFS=:)
11345 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11346 echo "$as_me: error: cannot find input file: $f" >&2;}
11347 { (exit 1); exit 1; }; }
11350 if test -f "$f"; then
11353 elif test -f "$srcdir/$f"; then
11358 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11359 echo "$as_me: error: cannot find input file: $f" >&2;}
11360 { (exit 1); exit 1; }; }
11363 done` || { (exit 1); exit 1; }
11364 # Remove the trailing spaces.
11365 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11369 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11370 # `conftest.undefs', that substitutes the proper values into
11371 # config.h.in to produce config.h. The first handles `#define'
11372 # templates, and the second `#undef' templates.
11373 # And first: Protect against being on the right side of a sed subst in
11374 # config.status. Protect against being in an unquoted here document
11375 # in config.status.
11376 rm -f conftest.defines conftest.undefs
11377 # Using a here document instead of a string reduces the quoting nightmare.
11378 # Putting comments in sed scripts is not portable.
11380 # `end' is used to avoid that the second main sed command (meant for
11381 # 0-ary CPP macros) applies to n-ary macro definitions.
11382 # See the Autoconf documentation for `clear'.
11383 cat >confdef2sed.sed <<\_ACEOF
11388 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11390 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11393 # If some macros were called several times there might be several times
11394 # the same #defines, which is useless. Nevertheless, we may not want to
11395 # sort them, since we want the *last* AC-DEFINE to be honored.
11396 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11397 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11398 rm -f confdef2sed.sed
11400 # This sed command replaces #undef with comments. This is necessary, for
11401 # example, in the case of _POSIX_SOURCE, which is predefined and required
11402 # on some systems where configure will not decide to define it.
11403 cat >>conftest.undefs <<\_ACEOF
11404 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11407 # Break up conftest.defines because some shells have a limit on the size
11408 # of here documents, and old seds have small limits too (100 cmds).
11409 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11410 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11411 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11412 echo ' :' >>$CONFIG_STATUS
11413 rm -f conftest.tail
11414 while grep . conftest.defines >/dev/null
11416 # Write a limited-size here document to $tmp/defines.sed.
11417 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11418 # Speed up: don't consider the non `#define' lines.
11419 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11420 # Work around the forget-to-reset-the-flag bug.
11421 echo 't clr' >>$CONFIG_STATUS
11422 echo ': clr' >>$CONFIG_STATUS
11423 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11425 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11427 mv $tmp/out $tmp/in
11429 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11430 rm -f conftest.defines
11431 mv conftest.tail conftest.defines
11433 rm -f conftest.defines
11434 echo ' fi # egrep' >>$CONFIG_STATUS
11435 echo >>$CONFIG_STATUS
11437 # Break up conftest.undefs because some shells have a limit on the size
11438 # of here documents, and old seds have small limits too (100 cmds).
11439 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11440 rm -f conftest.tail
11441 while grep . conftest.undefs >/dev/null
11443 # Write a limited-size here document to $tmp/undefs.sed.
11444 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11445 # Speed up: don't consider the non `#undef'
11446 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11447 # Work around the forget-to-reset-the-flag bug.
11448 echo 't clr' >>$CONFIG_STATUS
11449 echo ': clr' >>$CONFIG_STATUS
11450 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11452 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11454 mv $tmp/out $tmp/in
11456 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11457 rm -f conftest.undefs
11458 mv conftest.tail conftest.undefs
11460 rm -f conftest.undefs
11462 cat >>$CONFIG_STATUS <<\_ACEOF
11463 # Let's still pretend it is `configure' which instantiates (i.e., don't
11464 # use $as_me), people would be surprised to read:
11465 # /* config.h. Generated by config.status. */
11466 if test x"$ac_file" = x-; then
11467 echo "/* Generated by configure. */" >$tmp/config.h
11469 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11471 cat $tmp/in >>$tmp/config.h
11473 if test x"$ac_file" != x-; then
11474 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11475 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11476 echo "$as_me: $ac_file is unchanged" >&6;}
11478 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11480 X"$ac_file" : 'X\(//\)[^/]' \| \
11481 X"$ac_file" : 'X\(//\)$' \| \
11482 X"$ac_file" : 'X\(/\)' \| \
11483 . : '\(.\)' 2>/dev/null ||
11485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11487 /^X\(\/\/\)$/{ s//\1/; q; }
11488 /^X\(\/\).*/{ s//\1/; q; }
11490 { case "$ac_dir" in
11491 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11495 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11496 case $as_mkdir_dir in
11497 # Skip DOS drivespec
11498 ?:) as_incr_dir=$as_mkdir_dir ;;
11500 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11501 test -d "$as_incr_dir" ||
11502 mkdir "$as_incr_dir" ||
11503 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11504 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11505 { (exit 1); exit 1; }; }
11511 mv $tmp/config.h $ac_file
11515 rm -f $tmp/config.h
11517 # Run the commands associated with the file.
11519 include/config.h ) # update the timestamp
11520 echo 'timestamp for include/config.h' >"include/stamp-h1"
11525 cat >>$CONFIG_STATUS <<\_ACEOF
11528 # CONFIG_COMMANDS section.
11530 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11531 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11532 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11533 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11534 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11535 X"$ac_dest" : 'X\(//\)[^/]' \| \
11536 X"$ac_dest" : 'X\(//\)$' \| \
11537 X"$ac_dest" : 'X\(/\)' \| \
11538 . : '\(.\)' 2>/dev/null ||
11540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11542 /^X\(\/\/\)$/{ s//\1/; q; }
11543 /^X\(\/\).*/{ s//\1/; q; }
11547 if test "$ac_dir" != .; then
11548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11549 # A "../" for each directory in $ac_dir_suffix.
11550 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11552 ac_dir_suffix= ac_top_builddir=
11556 .) # No --srcdir option. We are building in place.
11558 if test -z "$ac_top_builddir"; then
11561 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11563 [\\/]* | ?:[\\/]* ) # Absolute path.
11564 ac_srcdir=$srcdir$ac_dir_suffix;
11565 ac_top_srcdir=$srcdir ;;
11566 *) # Relative path.
11567 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11568 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11570 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11572 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11573 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
11574 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11575 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11578 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11579 echo "$as_me: executing $ac_dest commands" >&6;}
11581 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11582 # Strip MF so we end up with the name of the file.
11583 mf=`echo "$mf" | sed -e 's/:.*$//'`
11584 # Check whether this is an Automake generated Makefile or not.
11585 # We used to match only the files named `Makefile.in', but
11586 # some people rename them; so instead we look at the file content.
11587 # Grep'ing the first line is not enough: some people post-process
11588 # each Makefile.in and add a new line on top of each file to say so.
11589 # So let's grep whole file.
11590 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11591 dirpart=`(dirname "$mf") 2>/dev/null ||
11592 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11593 X"$mf" : 'X\(//\)[^/]' \| \
11594 X"$mf" : 'X\(//\)$' \| \
11595 X"$mf" : 'X\(/\)' \| \
11596 . : '\(.\)' 2>/dev/null ||
11598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11600 /^X\(\/\/\)$/{ s//\1/; q; }
11601 /^X\(\/\).*/{ s//\1/; q; }
11606 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11607 # Extract the definition of DEP_FILES from the Makefile without
11609 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11610 test -z "$DEPDIR" && continue
11611 # When using ansi2knr, U may be empty or an underscore; expand it
11612 U=`sed -n -e '/^U = / s///p' < "$mf"`
11613 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11614 # We invoke sed twice because it is the simplest approach to
11615 # changing $(DEPDIR) to its actual value in the expansion.
11616 for file in `sed -n -e '
11617 /^DEP_FILES = .*\\\\$/ {
11626 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11627 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11628 # Make sure the directory exists.
11629 test -f "$dirpart/$file" && continue
11630 fdir=`(dirname "$file") 2>/dev/null ||
11631 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11632 X"$file" : 'X\(//\)[^/]' \| \
11633 X"$file" : 'X\(//\)$' \| \
11634 X"$file" : 'X\(/\)' \| \
11635 . : '\(.\)' 2>/dev/null ||
11637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11639 /^X\(\/\/\)$/{ s//\1/; q; }
11640 /^X\(\/\).*/{ s//\1/; q; }
11642 { case $dirpart/$fdir in
11643 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11646 as_dummy=$dirpart/$fdir
11647 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11648 case $as_mkdir_dir in
11649 # Skip DOS drivespec
11650 ?:) as_incr_dir=$as_mkdir_dir ;;
11652 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11653 test -d "$as_incr_dir" ||
11654 mkdir "$as_incr_dir" ||
11655 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
11656 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
11657 { (exit 1); exit 1; }; }
11662 # echo "creating $dirpart/$file"
11663 echo '# dummy' > "$dirpart/$file"
11671 cat >>$CONFIG_STATUS <<\_ACEOF
11673 { (exit 0); exit 0; }
11675 chmod +x $CONFIG_STATUS
11676 ac_clean_files=$ac_clean_files_save
11679 # configure is writing to config.log, and then calls config.status.
11680 # config.status does its own redirection, appending to config.log.
11681 # Unfortunately, on DOS this fails, as config.log is still kept open
11682 # by configure, so config.status won't be able to write to it; its
11683 # output is simply discarded. So we exec the FD to /dev/null,
11684 # effectively closing config.log, so it can be properly (re)opened and
11685 # appended to by config.status. When coming back to configure, we
11686 # need to make the FD available again.
11687 if test "$no_create" != yes; then
11690 $SHELL $CONFIG_STATUS || ac_cs_success=false
11692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11693 # would make configure fail if this is the last instruction.
11694 $ac_cs_success || { (exit 1); exit 1; }