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-tclinclude=DIR directory where tcl private headers are
1014 --with-tcl directory containing tcl configuration (tclConfig.sh)
1015 --with-tkinclude directory where tk private headers are
1016 --with-tk directory containing tk configuration (tkConfig.sh)
1018 Some influential environment variables:
1019 CC C compiler command
1020 CFLAGS C compiler flags
1021 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1022 nonstandard directory <lib dir>
1023 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1024 headers in a nonstandard directory <include dir>
1027 Use these variables to override the choices made by `configure' or to help
1028 it to find libraries and programs with nonstandard names/locations.
1030 Report bugs to <dron@remotesensing.org>.
1034 if test "$ac_init_help" = "recursive"; then
1035 # If there are subdirs, report their specific --help.
1037 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1038 test -d $ac_dir || continue
1041 if test "$ac_dir" != .; then
1042 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1043 # A "../" for each directory in $ac_dir_suffix.
1044 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046 ac_dir_suffix= ac_top_builddir=
1050 .) # No --srcdir option. We are building in place.
1052 if test -z "$ac_top_builddir"; then
1055 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 [\\/]* | ?:[\\/]* ) # Absolute path.
1058 ac_srcdir=$srcdir$ac_dir_suffix;
1059 ac_top_srcdir=$srcdir ;;
1061 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1062 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1066 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1067 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1068 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1069 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1072 # Check for guested configure; otherwise get Cygnus style configure.
1073 if test -f $ac_srcdir/configure.gnu; then
1075 $SHELL $ac_srcdir/configure.gnu --help=recursive
1076 elif test -f $ac_srcdir/configure; then
1078 $SHELL $ac_srcdir/configure --help=recursive
1079 elif test -f $ac_srcdir/configure.ac ||
1080 test -f $ac_srcdir/configure.in; then
1082 $ac_configure --help
1084 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1090 test -n "$ac_init_help" && exit 0
1091 if $ac_init_version; then
1093 fGIS configure 0.0.1
1094 generated by GNU Autoconf 2.53
1096 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1097 Free Software Foundation, Inc.
1098 This configure script is free software; the Free Software Foundation
1099 gives unlimited permission to copy, distribute and modify it.
1105 This file contains any messages produced by compilers while
1106 running configure, to aid debugging if configure makes a mistake.
1108 It was created by fGIS $as_me 0.0.1, which was
1109 generated by GNU Autoconf 2.53. Invocation command line was
1120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1127 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1129 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1130 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1132 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1133 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1134 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1135 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1143 test -z "$as_dir" && as_dir=.
1144 echo "PATH: $as_dir"
1159 # Keep a trace of the command line.
1160 # Strip out --no-create and --no-recursion so they do not pile up.
1161 # Also quote any args containing shell meta-characters.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n ) continue ;;
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1173 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1175 case " $ac_configure_args " in
1176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1177 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1180 # Get rid of the leading space.
1183 # When interrupted or exit'd, cleanup temporary files, and complete
1184 # config.log. We remove comments because anyway the quotes in there
1185 # would cause problems or look ugly.
1186 # WARNING: Be sure not to use single quotes in there, as some shells,
1187 # such as our DU 5.0 friend, will then `close' the trap.
1188 trap 'exit_status=$?
1189 # Save into config.log some information that might help in debugging.
1193 ## ---------------- ##
1194 ## Cache variables. ##
1195 ## ---------------- ##
1198 # The following way of writing the cache mishandles newlines in values,
1201 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1204 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1209 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1214 if test -s confdefs.h; then
1221 sed "/^$/d" confdefs.h
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1228 rm -f core core.* *.core &&
1229 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's/^/| /' "$ac_site_file" >&5
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1304 # Check that the precious variables saved in the cache have kept the same
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1386 # AC_CONFIG_HEADERS([config.h])
1387 am__api_version="1.6"
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390 if test -f $ac_dir/install-sh; then
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1394 elif test -f $ac_dir/install.sh; then
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1398 elif test -f $ac_dir/shtool; then
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 # Find a good install program. We prefer a C program (faster),
1414 # so one script is as good as another. But avoid the broken or
1415 # incompatible versions:
1416 # SysV /etc/install, /usr/sbin/install
1417 # SunOS /usr/etc/install
1418 # IRIX /sbin/install
1420 # AmigaOS /C/install, which installs bootblocks on floppy discs
1421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1424 # ./install, which can be erroneously created by make from ./install.sh.
1425 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1426 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1427 if test -z "$INSTALL"; then
1428 if test "${ac_cv_path_install+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 # Account for people who put trailing slashes in PATH elements.
1438 ./ | .// | /cC/* | \
1439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1442 # OSF1 and SCO ODT 3.0 have their own names for install.
1443 # Don't use installbsd from OSF since it installs stuff as root
1445 for ac_prog in ginstall scoinst install; do
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1448 if test $ac_prog = install &&
1449 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1450 # AIX install. It has an incompatible calling convention.
1452 elif test $ac_prog = install &&
1453 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1454 # program-specific install script used by HP pwplus--don't use.
1457 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1469 if test "${ac_cv_path_install+set}" = set; then
1470 INSTALL=$ac_cv_path_install
1472 # As a last resort, use the slow shell script. We don't cache a
1473 # path for INSTALL within a source directory, because that will
1474 # break other packages using the cache if that directory is
1475 # removed, or if the path is relative.
1476 INSTALL=$ac_install_sh
1479 echo "$as_me:$LINENO: result: $INSTALL" >&5
1480 echo "${ECHO_T}$INSTALL" >&6
1482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1483 # It thinks the first close brace ends the variable substitution.
1484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1490 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1491 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1494 echo timestamp > conftest.file
1495 # Do `set' in a subshell so we don't clobber the current shell's
1496 # arguments. Must try -L first in case configure is actually a
1497 # symlink; some systems play weird games with the mod time of symlinks
1498 # (eg FreeBSD returns the mod time of the symlink's containing
1501 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1502 if test "$*" = "X"; then
1504 set X `ls -t $srcdir/configure conftest.file`
1507 if test "$*" != "X $srcdir/configure conftest.file" \
1508 && test "$*" != "X conftest.file $srcdir/configure"; then
1510 # If neither matched, then we have a broken ls. This can happen
1511 # if, for instance, CONFIG_SHELL is bash and it inherits a
1512 # broken ls alias from the environment. This has actually
1513 # happened. Such a system could not be considered "sane".
1514 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1515 alias in your environment" >&5
1516 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1517 alias in your environment" >&2;}
1518 { (exit 1); exit 1; }; }
1521 test "$2" = conftest.file
1527 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1528 Check your system clock" >&5
1529 echo "$as_me: error: newly created file is older than distributed files!
1530 Check your system clock" >&2;}
1531 { (exit 1); exit 1; }; }
1533 echo "$as_me:$LINENO: result: yes" >&5
1534 echo "${ECHO_T}yes" >&6
1535 test "$program_prefix" != NONE &&
1536 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1537 # Use a double $ so make ignores it.
1538 test "$program_suffix" != NONE &&
1539 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1540 # Double any \ or $. echo might interpret backslashes.
1541 # By default was `s,x,x', remove it if useless.
1542 cat <<\_ACEOF >conftest.sed
1543 s/[\\$]/&&/g;s/;s,x,x,$//
1545 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1549 # expand $ac_aux_dir to an absolute path
1550 am_aux_dir=`cd $ac_aux_dir && pwd`
1552 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1553 # Use eval to expand $SHELL
1554 if eval "$MISSING --run true"; then
1555 am_missing_run="$MISSING --run "
1558 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1559 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1562 for ac_prog in gawk mawk nawk awk
1564 # Extract the first word of "$ac_prog", so it can be a program name with args.
1565 set dummy $ac_prog; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_AWK+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$AWK"; then
1572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_AWK="$ac_prog"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 if test -n "$AWK"; then
1592 echo "$as_me:$LINENO: result: $AWK" >&5
1593 echo "${ECHO_T}$AWK" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1599 test -n "$AWK" && break
1602 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1603 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1604 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1605 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 cat >conftest.make <<\_ACEOF
1610 @echo 'ac_maketemp="${MAKE}"'
1612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1613 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1614 if test -n "$ac_maketemp"; then
1615 eval ac_cv_prog_make_${ac_make}_set=yes
1617 eval ac_cv_prog_make_${ac_make}_set=no
1621 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1622 echo "$as_me:$LINENO: result: yes" >&5
1623 echo "${ECHO_T}yes" >&6
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 SET_MAKE="MAKE=${MAKE-make}"
1631 # test to see if srcdir already configured
1632 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1633 test -f $srcdir/config.status; then
1634 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1635 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1636 { (exit 1); exit 1; }; }
1639 # Define the identity of the package.
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE "$PACKAGE"
1649 cat >>confdefs.h <<_ACEOF
1650 #define VERSION "$VERSION"
1653 # Some tools Automake needs.
1655 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1658 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1661 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1664 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1667 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1670 AMTAR=${AMTAR-"${am_missing_run}tar"}
1672 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1674 # Installed binaries are usually stripped using `strip' when the user
1675 # run `make install-strip'. However `strip' might not be the right
1676 # tool to use in cross-compilation environments, therefore Automake
1677 # will honor the `STRIP' environment variable to overrule this program.
1678 if test "$cross_compiling" != no; then
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1681 set dummy ${ac_tool_prefix}strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$STRIP"; then
1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 STRIP=$ac_cv_prog_STRIP
1707 if test -n "$STRIP"; then
1708 echo "$as_me:$LINENO: result: $STRIP" >&5
1709 echo "${ECHO_T}$STRIP" >&6
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1716 if test -z "$ac_cv_prog_STRIP"; then
1718 # Extract the first word of "strip", so it can be a program name with args.
1719 set dummy strip; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 if test -n "$ac_ct_STRIP"; then
1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_ac_ct_STRIP="strip"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1746 if test -n "$ac_ct_STRIP"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1748 echo "${ECHO_T}$ac_ct_STRIP" >&6
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1756 STRIP="$ac_cv_prog_STRIP"
1760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1762 # We need awk for the "check" target. The system "awk" is bad on
1767 # AC_CONFIG_SRCDIR([include/regex.h])
1768 # Add the stamp file to the list of files AC keeps track of,
1769 # along with our hook.
1770 ac_config_headers="$ac_config_headers include/config.h"
1776 # Check whether --enable-shared or --disable-shared was given.
1777 if test "${enable_shared+set}" = set; then
1778 enableval="$enable_shared"
1779 p=${PACKAGE-default}
1781 yes) enable_shared=yes ;;
1782 no) enable_shared=no ;;
1785 # Look at the argument we got. We use all the common list separators.
1786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1787 for pkg in $enableval; do
1788 if test "X$pkg" = "X$p"; then
1798 # Check whether --enable-static or --disable-static was given.
1799 if test "${enable_static+set}" = set; then
1800 enableval="$enable_static"
1801 p=${PACKAGE-default}
1803 yes) enable_static=yes ;;
1804 no) enable_static=no ;;
1807 # Look at the argument we got. We use all the common list separators.
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1809 for pkg in $enableval; do
1810 if test "X$pkg" = "X$p"; then
1820 # Check whether --enable-fast-install or --disable-fast-install was given.
1821 if test "${enable_fast_install+set}" = set; then
1822 enableval="$enable_fast_install"
1823 p=${PACKAGE-default}
1825 yes) enable_fast_install=yes ;;
1826 no) enable_fast_install=no ;;
1828 enable_fast_install=no
1829 # Look at the argument we got. We use all the common list separators.
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1831 for pkg in $enableval; do
1832 if test "X$pkg" = "X$p"; then
1833 enable_fast_install=yes
1840 enable_fast_install=yes
1842 # Make sure we can run config.sub.
1843 $ac_config_sub sun4 >/dev/null 2>&1 ||
1844 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1845 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1846 { (exit 1); exit 1; }; }
1848 echo "$as_me:$LINENO: checking build system type" >&5
1849 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1850 if test "${ac_cv_build+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 ac_cv_build_alias=$build_alias
1854 test -z "$ac_cv_build_alias" &&
1855 ac_cv_build_alias=`$ac_config_guess`
1856 test -z "$ac_cv_build_alias" &&
1857 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1858 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1859 { (exit 1); exit 1; }; }
1860 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1861 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1862 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1863 { (exit 1); exit 1; }; }
1866 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1867 echo "${ECHO_T}$ac_cv_build" >&6
1869 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1870 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1871 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1874 echo "$as_me:$LINENO: checking host system type" >&5
1875 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1876 if test "${ac_cv_host+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 ac_cv_host_alias=$host_alias
1880 test -z "$ac_cv_host_alias" &&
1881 ac_cv_host_alias=$ac_cv_build_alias
1882 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1883 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1884 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1885 { (exit 1); exit 1; }; }
1888 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1889 echo "${ECHO_T}$ac_cv_host" >&6
1891 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1892 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1893 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1896 rm -f .deps 2>/dev/null
1897 mkdir .deps 2>/dev/null
1898 if test -d .deps; then
1901 # MS-DOS does not allow filenames that begin with a dot.
1904 rmdir .deps 2>/dev/null
1907 ac_config_commands="$ac_config_commands depfiles"
1910 am_make=${MAKE-make}
1911 cat > confinc << 'END'
1915 # If we don't find an include directive, just comment out the code.
1916 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1917 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1921 # First try GNU make style include.
1922 echo "include confinc" > confmf
1923 # We grep out `Entering directory' and `Leaving directory'
1924 # messages which can occur if `w' ends up in MAKEFLAGS.
1925 # In particular we don't look at `^make:' because GNU make might
1926 # be invoked under some other name (usually "gmake"), in which
1927 # case it prints its new name instead of `make'.
1928 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1933 # Now try BSD make style include.
1934 if test "$am__include" = "#"; then
1935 echo '.include "confinc"' > confmf
1936 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1937 am__include=.include
1944 echo "$as_me:$LINENO: result: $_am_result" >&5
1945 echo "${ECHO_T}$_am_result" >&6
1946 rm -f confinc confmf
1948 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1949 if test "${enable_dependency_tracking+set}" = set; then
1950 enableval="$enable_dependency_tracking"
1953 if test "x$enable_dependency_tracking" != xno; then
1954 am_depcomp="$ac_aux_dir/depcomp"
1959 if test "x$enable_dependency_tracking" != xno; then
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1976 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2011 if test -z "$ac_cv_prog_CC"; then
2013 # Extract the first word of "gcc", so it can be a program name with args.
2014 set dummy gcc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$ac_ct_CC"; then
2021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_ac_ct_CC="gcc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042 echo "${ECHO_T}$ac_ct_CC" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2053 if test -z "$CC"; then
2054 if test -n "$ac_tool_prefix"; then
2055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056 set dummy ${ac_tool_prefix}cc; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$CC"; then
2063 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_prog_CC="${ac_tool_prefix}cc"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 if test -n "$CC"; then
2083 echo "$as_me:$LINENO: result: $CC" >&5
2084 echo "${ECHO_T}$CC" >&6
2086 echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2091 if test -z "$ac_cv_prog_CC"; then
2093 # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$ac_ct_CC"; then
2101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_ac_ct_CC="cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2120 if test -n "$ac_ct_CC"; then
2121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2122 echo "${ECHO_T}$ac_ct_CC" >&6
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2134 if test -z "$CC"; then
2135 # Extract the first word of "cc", so it can be a program name with args.
2136 set dummy cc; ac_word=$2
2137 echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2154 ac_prog_rejected=yes
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 if test $ac_prog_rejected = yes; then
2165 # We found a bogon in the path, so make sure we never use it.
2166 set dummy $ac_cv_prog_CC
2168 if test $# != 0; then
2169 # We chose a different compiler from the bogus one.
2170 # However, it has the same basename, so the bogon will be chosen
2171 # first if we set CC to just the basename; use the full file name.
2173 set dummy "$as_dir/$ac_word" ${1+"$@"}
2181 if test -n "$CC"; then
2182 echo "$as_me:$LINENO: result: $CC" >&5
2183 echo "${ECHO_T}$CC" >&6
2185 echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2190 if test -z "$CC"; then
2191 if test -n "$ac_tool_prefix"; then
2194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 if test -n "$CC"; then
2222 echo "$as_me:$LINENO: result: $CC" >&5
2223 echo "${ECHO_T}$CC" >&6
2225 echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2229 test -n "$CC" && break
2232 if test -z "$CC"; then
2236 # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253 ac_cv_prog_ac_ct_CC="$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2267 echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2271 test -n "$ac_ct_CC" && break
2280 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2281 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2282 { (exit 1); exit 1; }; }
2284 # Provide some information about the compiler.
2285 echo "$as_me:$LINENO:" \
2286 "checking for C compiler version" >&5
2287 ac_compiler=`set X $ac_compile; echo $2`
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2289 (eval $ac_compiler --version </dev/null >&5) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2293 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2294 (eval $ac_compiler -v </dev/null >&5) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }
2298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2299 (eval $ac_compiler -V </dev/null >&5) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #line $LINENO "configure"
2306 #include "confdefs.h"
2308 #ifdef F77_DUMMY_MAIN
2312 int F77_DUMMY_MAIN() { return 1; }
2322 ac_clean_files_save=$ac_clean_files
2323 ac_clean_files="$ac_clean_files a.out a.exe"
2324 # Try to create an executable without -o first, disregard a.out.
2325 # It will help us diagnose broken compilers, and finding out an intuition
2327 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2328 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2329 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2330 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2331 (eval $ac_link_default) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; then
2335 # Find the output, starting from the most likely. This scheme is
2336 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2339 # Be careful to initialize this variable, since it used to be cached.
2340 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2342 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2343 ls a.out conftest 2>/dev/null;
2344 ls a.* conftest.* 2>/dev/null`; do
2346 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2347 a.out ) # We found the default executable, but exeext='' is most
2350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2351 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2358 echo "$as_me: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2360 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2361 echo "$as_me: error: C compiler cannot create executables" >&2;}
2362 { (exit 77); exit 77; }; }
2365 ac_exeext=$ac_cv_exeext
2366 echo "$as_me:$LINENO: result: $ac_file" >&5
2367 echo "${ECHO_T}$ac_file" >&6
2369 # Check the compiler produces executables we can run. If not, either
2370 # the compiler is broken, or we cross compile.
2371 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2372 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2373 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2374 # If not cross compiling, check that we can run a simple program.
2375 if test "$cross_compiling" != yes; then
2376 if { ac_try='./$ac_file'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 if test "$cross_compiling" = maybe; then
2387 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'." >&5
2389 echo "$as_me: error: cannot run C compiled programs.
2390 If you meant to cross compile, use \`--host'." >&2;}
2391 { (exit 1); exit 1; }; }
2395 echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6
2398 rm -f a.out a.exe conftest$ac_cv_exeext
2399 ac_clean_files=$ac_clean_files_save
2400 # Check the compiler produces executables we can run. If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2404 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2405 echo "${ECHO_T}$cross_compiling" >&6
2407 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2410 (eval $ac_link) 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; then
2414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2416 # work properly (i.e., refer to `conftest.exe'), while it won't with
2418 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2420 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2430 { (exit 1); exit 1; }; }
2433 rm -f conftest$ac_cv_exeext
2434 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2440 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2447 #include "confdefs.h"
2449 #ifdef F77_DUMMY_MAIN
2453 int F77_DUMMY_MAIN() { return 1; }
2463 rm -f conftest.o conftest.obj
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2480 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2481 { (exit 1); exit 1; }; }
2484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2486 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2487 echo "${ECHO_T}$ac_cv_objext" >&6
2488 OBJEXT=$ac_cv_objext
2490 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2492 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 cat >conftest.$ac_ext <<_ACEOF
2496 #line $LINENO "configure"
2497 #include "confdefs.h"
2499 #ifdef F77_DUMMY_MAIN
2503 int F77_DUMMY_MAIN() { return 1; }
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2534 rm -f conftest.$ac_objext conftest.$ac_ext
2535 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2538 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2539 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2540 GCC=`test $ac_compiler_gnu = yes && echo yes`
2541 ac_test_CFLAGS=${CFLAGS+set}
2542 ac_save_CFLAGS=$CFLAGS
2544 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2545 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2546 if test "${ac_cv_prog_cc_g+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 cat >conftest.$ac_ext <<_ACEOF
2550 #line $LINENO "configure"
2551 #include "confdefs.h"
2553 #ifdef F77_DUMMY_MAIN
2557 int F77_DUMMY_MAIN() { return 1; }
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569 (eval $ac_compile) 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2581 echo "$as_me: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2585 rm -f conftest.$ac_objext conftest.$ac_ext
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2589 if test "$ac_test_CFLAGS" = set; then
2590 CFLAGS=$ac_save_CFLAGS
2591 elif test $ac_cv_prog_cc_g = yes; then
2592 if test "$GCC" = yes; then
2598 if test "$GCC" = yes; then
2604 # Some people use a C++ compiler to compile C. Since we use `exit',
2605 # in C++ we need to declare it. In case someone uses the same compiler
2606 # for both compiling C and C++ we need to have the C++ compiler decide
2607 # the declaration of exit, since it's the most demanding environment.
2608 cat >conftest.$ac_ext <<_ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 for ac_declaration in \
2627 '#include <stdlib.h>' \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2634 cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2636 #include "confdefs.h"
2639 #ifdef F77_DUMMY_MAIN
2643 int F77_DUMMY_MAIN() { return 1; }
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2672 cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 #include "confdefs.h"
2676 #ifdef F77_DUMMY_MAIN
2680 int F77_DUMMY_MAIN() { return 1; }
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2704 echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2707 rm -f conftest.$ac_objext conftest.$ac_ext
2710 if test -n "$ac_declaration"; then
2711 echo '#ifdef __cplusplus' >>confdefs.h
2712 echo $ac_declaration >>confdefs.h
2713 echo '#endif' >>confdefs.h
2717 echo "$as_me: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2720 rm -f conftest.$ac_objext conftest.$ac_ext
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 depcc="$CC" am_compiler_list=
2729 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2730 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2731 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2735 # We make a subdir and do the tests there. Otherwise we can end up
2736 # making bogus files that we don't know about and never remove. For
2737 # instance it was reported that on HP-UX the gcc test will end up
2738 # making a dummy file named `D' -- because `-MD' means `put the output
2741 # Copy depcomp to subdir because otherwise we won't find it if we're
2742 # using a relative directory.
2743 cp "$am_depcomp" conftest.dir
2746 am_cv_CC_dependencies_compiler_type=none
2747 if test "$am_compiler_list" = ""; then
2748 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2750 for depmode in $am_compiler_list; do
2751 # We need to recreate these files for each test, as the compiler may
2752 # overwrite some of them when testing with obscure command lines.
2753 # This happens at least with the AIX C compiler.
2754 echo '#include "conftest.h"' > conftest.c
2755 echo 'int i;' > conftest.h
2756 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2760 # after this tag, mechanisms are not by side-effect, so they'll
2761 # only be used when explicitly requested
2762 if test "x$enable_dependency_tracking" = xyes; then
2770 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2771 # mode. It turns out that the SunPro C++ compiler does not properly
2772 # handle `-M -o', and we need to detect this.
2773 if depmode=$depmode \
2774 source=conftest.c object=conftest.o \
2775 depfile=conftest.Po tmpdepfile=conftest.TPo \
2776 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2777 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2778 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2779 am_cv_CC_dependencies_compiler_type=$depmode
2787 am_cv_CC_dependencies_compiler_type=none
2791 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2792 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2793 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2796 # Find the correct PATH separator. Usually this is `:', but
2797 # DJGPP uses `;' like DOS.
2798 if test "X${PATH_SEPARATOR+set}" != Xset; then
2799 UNAME=${UNAME-`uname 2>/dev/null`}
2801 *-DOS) lt_cv_sys_path_separator=';' ;;
2802 *) lt_cv_sys_path_separator=':' ;;
2804 PATH_SEPARATOR=$lt_cv_sys_path_separator
2808 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2809 if test "${with_gnu_ld+set}" = set; then
2810 withval="$with_gnu_ld"
2811 test "$withval" = no || with_gnu_ld=yes
2816 if test "$GCC" = yes; then
2817 # Check if gcc -print-prog-name=ld gives a path.
2818 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2819 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2822 # gcc leaves a trailing carriage return which upsets mingw
2823 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2825 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2828 # Accept absolute paths.
2829 [\\/]* | [A-Za-z]:[\\/]*)
2830 re_direlt='/[^/][^/]*/\.\./'
2831 # Canonicalize the path of ld
2832 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2833 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2834 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2836 test -z "$LD" && LD="$ac_prog"
2839 # If it fails, then pretend we aren't using GCC.
2843 # If it is relative, then search for the first ld in PATH.
2847 elif test "$with_gnu_ld" = yes; then
2848 echo "$as_me:$LINENO: checking for GNU ld" >&5
2849 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2851 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2852 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2854 if test "${lt_cv_path_LD+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 if test -z "$LD"; then
2858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2859 for ac_dir in $PATH; do
2860 test -z "$ac_dir" && ac_dir=.
2861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2862 lt_cv_path_LD="$ac_dir/$ac_prog"
2863 # Check to see if the program is GNU ld. I'd rather use --version,
2864 # but apparently some GNU ld's only accept -v.
2865 # Break only if it was the GNU/non-GNU ld that we prefer.
2866 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2867 test "$with_gnu_ld" != no && break
2869 test "$with_gnu_ld" != yes && break
2875 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2880 if test -n "$LD"; then
2881 echo "$as_me:$LINENO: result: $LD" >&5
2882 echo "${ECHO_T}$LD" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2887 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2888 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2889 { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2891 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2892 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2896 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2897 lt_cv_prog_gnu_ld=yes
2899 lt_cv_prog_gnu_ld=no
2902 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2903 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2904 with_gnu_ld=$lt_cv_prog_gnu_ld
2907 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2908 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2909 if test "${lt_cv_ld_reload_flag+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 lt_cv_ld_reload_flag='-r'
2914 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2915 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2916 reload_flag=$lt_cv_ld_reload_flag
2917 test -n "$reload_flag" && reload_flag=" $reload_flag"
2919 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2920 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2921 if test "${lt_cv_path_NM+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$NM"; then
2925 # Let the user override the test.
2928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2929 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2930 test -z "$ac_dir" && ac_dir=.
2931 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2932 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2933 # Check to see if the nm accepts a BSD-compat flag.
2934 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2935 # nm: unknown option "B" ignored
2936 # Tru64's nm complains that /dev/null is an invalid object file
2937 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2938 lt_cv_path_NM="$tmp_nm -B"
2940 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2941 lt_cv_path_NM="$tmp_nm -p"
2944 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2945 continue # so that we can try to find one that supports BSD flags
2950 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2955 echo "$as_me:$LINENO: result: $NM" >&5
2956 echo "${ECHO_T}$NM" >&6
2958 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2959 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2961 if test "$LN_S" = "ln -s"; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2965 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2966 echo "${ECHO_T}no, using $LN_S" >&6
2969 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2970 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2971 if test "${lt_cv_deplibs_check_method+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 lt_cv_file_magic_cmd='$MAGIC_CMD'
2975 lt_cv_file_magic_test_file=
2976 lt_cv_deplibs_check_method='unknown'
2977 # Need to set the preceding variable on all platforms that support
2978 # interlibrary dependencies.
2979 # 'none' -- dependencies not supported.
2980 # `unknown' -- same as none, but documents that we really don't know.
2981 # 'pass_all' -- all dependencies passed with no checks.
2982 # 'test_compile' -- check by making test program.
2983 # 'file_magic [[regex]]' -- check by looking for files in library path
2984 # which responds to the $file_magic_cmd with a given egrep regex.
2985 # If you have `file' or equivalent on your system and you're not sure
2986 # whether `pass_all' will *always* work, you probably want this one.
2990 lt_cv_deplibs_check_method=pass_all
2994 lt_cv_deplibs_check_method=pass_all
2998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2999 lt_cv_file_magic_cmd='/usr/bin/file -L'
3000 lt_cv_file_magic_test_file=/shlib/libc.so
3003 cygwin* | mingw* | pw32*)
3004 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3005 lt_cv_file_magic_cmd='$OBJDUMP -f'
3008 darwin* | rhapsody*)
3009 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3010 lt_cv_file_magic_cmd='/usr/bin/file -L'
3012 rhapsody* | darwin1.[012])
3013 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3016 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3022 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3025 # Not sure whether the presence of OpenBSD here was a mistake.
3026 # Let's accept both of them until this is cleared up.
3027 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3028 lt_cv_file_magic_cmd=/usr/bin/file
3029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3033 lt_cv_deplibs_check_method=pass_all
3038 lt_cv_deplibs_check_method=pass_all
3042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3043 lt_cv_file_magic_cmd=/usr/bin/file
3044 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3047 irix5* | irix6* | nonstopux*)
3049 irix5* | nonstopux*)
3050 # this will be overridden with pass_all, but let us keep it just in case
3051 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3055 *-32|*"-32 ") libmagic=32-bit;;
3056 *-n32|*"-n32 ") libmagic=N32;;
3057 *-64|*"-64 ") libmagic=64-bit;;
3058 *) libmagic=never-match;;
3060 # this will be overridden with pass_all, but let us keep it just in case
3061 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3064 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3065 lt_cv_deplibs_check_method=pass_all
3068 # This must be Linux ELF.
3070 lt_cv_deplibs_check_method=pass_all
3071 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3075 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3076 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3078 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3084 lt_cv_file_magic_cmd=/usr/bin/file
3085 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3089 lt_cv_file_magic_cmd=/usr/bin/file
3090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3094 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3098 osf3* | osf4* | osf5*)
3099 # this will be overridden with pass_all, but let us keep it just in case
3100 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3101 lt_cv_file_magic_test_file=/shlib/libc.so
3102 lt_cv_deplibs_check_method=pass_all
3106 lt_cv_deplibs_check_method=pass_all
3110 lt_cv_deplibs_check_method=pass_all
3111 lt_cv_file_magic_test_file=/lib/libc.so
3114 sysv5uw[78]* | sysv4*uw2*)
3115 lt_cv_deplibs_check_method=pass_all
3118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3119 case $host_vendor in
3121 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]'
3122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3125 lt_cv_deplibs_check_method=pass_all
3128 lt_cv_file_magic_cmd='/bin/file'
3129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3132 lt_cv_file_magic_cmd='/bin/file'
3133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3134 lt_cv_file_magic_test_file=/lib/libc.so
3141 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3142 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3143 file_magic_cmd=$lt_cv_file_magic_cmd
3144 deplibs_check_method=$lt_cv_deplibs_check_method
3153 # Check for command to grab the raw symbol name followed by C symbol from nm.
3154 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3155 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3156 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 # These are sane defaults that work on at least a few old systems.
3161 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3163 # Character class describing NM global symbol codes.
3164 symcode='[BCDEGRST]'
3166 # Regexp to match symbols that can be accessed directly from C.
3167 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3169 # Transform the above into a raw symbol and a C symbol.
3170 symxfrm='\1 \2\3 \3'
3172 # Transform an extracted symbol line into a proper C declaration
3173 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3175 # Transform an extracted symbol line into symbol name and symbol address
3176 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'"
3178 # Define system-specific variables.
3183 cygwin* | mingw* | pw32*)
3184 symcode='[ABCDGISTW]'
3186 hpux*) # Its linker distinguishes data from code symbols
3187 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3188 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'"
3191 symcode='[BCDEGRST]'
3201 # Handle CRLF in mingw tool chain
3205 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3209 # If we're using GNU nm, then use its standard symbol codes.
3210 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3211 symcode='[ABCDGISTW]'
3214 # Try without a prefix undercore, then with it.
3215 for ac_symprfx in "" "_"; do
3217 # Write the raw and C identifiers.
3218 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3220 # Check to see that the pipe works correctly.
3223 cat > conftest.$ac_ext <<EOF
3228 void nm_test_func(){}
3232 int main(){nm_test_var='a';nm_test_func();return(0);}
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; then
3240 # Now try to grab the symbols.
3242 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3243 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && test -s "$nlist"; then
3247 # Try sorting and uniquifying the output.
3248 if sort "$nlist" | uniq > "$nlist"T; then
3249 mv -f "$nlist"T "$nlist"
3254 # Make sure that we snagged all the symbols we need.
3255 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3256 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3257 cat <<EOF > conftest.$ac_ext
3263 # Now generate the symbol file.
3264 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3266 cat <<EOF >> conftest.$ac_ext
3267 #if defined (__STDC__) && __STDC__
3268 # define lt_ptr void *
3270 # define lt_ptr char *
3274 /* The mapping between symbol names and symbols. */
3279 lt_preloaded_symbols[] =
3282 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3283 cat <<\EOF >> conftest.$ac_ext
3291 # Now try linking the two files.
3292 mv conftest.$ac_objext conftstm.$ac_objext
3294 save_CFLAGS="$CFLAGS"
3295 LIBS="conftstm.$ac_objext"
3296 CFLAGS="$CFLAGS$no_builtin_flag"
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298 (eval $ac_link) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } && test -s conftest; then
3305 CFLAGS="$save_CFLAGS"
3307 echo "cannot find nm_test_func in $nlist" >&5
3310 echo "cannot find nm_test_var in $nlist" >&5
3313 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3316 echo "$progname: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3319 rm -f conftest* conftst*
3321 # Do not use the global_symbol_pipe unless it works.
3322 if test "$pipe_works" = yes; then
3325 lt_cv_sys_global_symbol_pipe=
3331 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3332 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3333 global_symbol_to_cdecl=
3334 global_symbol_to_c_name_address=
3336 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3337 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3339 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3341 echo "$as_me:$LINENO: result: failed" >&5
3342 echo "${ECHO_T}failed" >&6
3344 echo "$as_me:$LINENO: result: ok" >&5
3345 echo "${ECHO_T}ok" >&6
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3359 if test -z "$CPP"; then
3360 if test "${ac_cv_prog_CPP+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 # Double quotes because CPP needs to be expanded
3364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # On the NeXT, cc -E runs the code through the compiler's parser,
3372 # not just through cpp. "Syntax error" is here to catch this case.
3373 cat >conftest.$ac_ext <<_ACEOF
3374 #line $LINENO "configure"
3375 #include "confdefs.h"
3379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3382 egrep -v '^ *\+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null; then
3387 if test -s conftest.err; then
3388 ac_cpp_err=$ac_c_preproc_warn_flag
3395 if test -z "$ac_cpp_err"; then
3398 echo "$as_me: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3403 rm -f conftest.err conftest.$ac_ext
3405 # OK, works on sane cases. Now check whether non-existent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3408 #line $LINENO "configure"
3409 #include "confdefs.h"
3410 #include <ac_nonexistent.h>
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3415 egrep -v '^ *\+' conftest.er1 >conftest.err
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null; then
3420 if test -s conftest.err; then
3421 ac_cpp_err=$ac_c_preproc_warn_flag
3428 if test -z "$ac_cpp_err"; then
3429 # Broken: success on invalid input.
3432 echo "$as_me: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3434 # Passes both tests.
3438 rm -f conftest.err conftest.$ac_ext
3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442 rm -f conftest.err conftest.$ac_ext
3443 if $ac_preproc_ok; then
3455 echo "$as_me:$LINENO: result: $CPP" >&5
3456 echo "${ECHO_T}$CPP" >&6
3458 for ac_c_preproc_warn_flag in '' yes
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
3464 cat >conftest.$ac_ext <<_ACEOF
3465 #line $LINENO "configure"
3466 #include "confdefs.h"
3470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3473 egrep -v '^ *\+' conftest.er1 >conftest.err
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } >/dev/null; then
3478 if test -s conftest.err; then
3479 ac_cpp_err=$ac_c_preproc_warn_flag
3486 if test -z "$ac_cpp_err"; then
3489 echo "$as_me: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3491 # Broken: fails on valid input.
3494 rm -f conftest.err conftest.$ac_ext
3496 # OK, works on sane cases. Now check whether non-existent headers
3497 # can be detected and how.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 #line $LINENO "configure"
3500 #include "confdefs.h"
3501 #include <ac_nonexistent.h>
3503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3506 egrep -v '^ *\+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null; then
3511 if test -s conftest.err; then
3512 ac_cpp_err=$ac_c_preproc_warn_flag
3519 if test -z "$ac_cpp_err"; then
3520 # Broken: success on invalid input.
3523 echo "$as_me: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3525 # Passes both tests.
3529 rm -f conftest.err conftest.$ac_ext
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.err conftest.$ac_ext
3534 if $ac_preproc_ok; then
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3538 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3539 { (exit 1); exit 1; }; }
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3551 if test "${ac_cv_header_stdc+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 cat >conftest.$ac_ext <<_ACEOF
3555 #line $LINENO "configure"
3556 #include "confdefs.h"
3563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3566 egrep -v '^ *\+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3579 if test -z "$ac_cpp_err"; then
3580 ac_cv_header_stdc=yes
3582 echo "$as_me: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 ac_cv_header_stdc=no
3586 rm -f conftest.err conftest.$ac_ext
3588 if test $ac_cv_header_stdc = yes; then
3589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3590 cat >conftest.$ac_ext <<_ACEOF
3591 #line $LINENO "configure"
3592 #include "confdefs.h"
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597 egrep "memchr" >/dev/null 2>&1; then
3600 ac_cv_header_stdc=no
3606 if test $ac_cv_header_stdc = yes; then
3607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3608 cat >conftest.$ac_ext <<_ACEOF
3609 #line $LINENO "configure"
3610 #include "confdefs.h"
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 egrep "free" >/dev/null 2>&1; then
3618 ac_cv_header_stdc=no
3624 if test $ac_cv_header_stdc = yes; then
3625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3626 if test "$cross_compiling" = yes; then
3629 cat >conftest.$ac_ext <<_ACEOF
3630 #line $LINENO "configure"
3631 #include "confdefs.h"
3633 #if ((' ' & 0x0FF) == 0x020)
3634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3637 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3638 || ('j' <= (c) && (c) <= 'r') \
3639 || ('s' <= (c) && (c) <= 'z'))
3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3648 for (i = 0; i < 256; i++)
3649 if (XOR (islower (i), ISLOWER (i))
3650 || toupper (i) != TOUPPER (i))
3655 rm -f conftest$ac_exeext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3657 (eval $ac_link) 2>&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3668 echo "$as_me: program exited with status $ac_status" >&5
3669 echo "$as_me: failed program was:" >&5
3670 cat conftest.$ac_ext >&5
3672 ac_cv_header_stdc=no
3674 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3679 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3680 if test $ac_cv_header_stdc = yes; then
3682 cat >>confdefs.h <<\_ACEOF
3683 #define STDC_HEADERS 1
3688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3698 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3699 inttypes.h stdint.h unistd.h
3701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3702 echo "$as_me:$LINENO: checking for $ac_header" >&5
3703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 cat >conftest.$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3709 #include "confdefs.h"
3710 $ac_includes_default
3712 #include <$ac_header>
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -s conftest.$ac_objext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 eval "$as_ac_Header=yes"
3728 echo "$as_me: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 eval "$as_ac_Header=no"
3732 rm -f conftest.$ac_objext conftest.$ac_ext
3734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3737 cat >>confdefs.h <<_ACEOF
3738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3747 for ac_header in dlfcn.h
3749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751 echo "$as_me:$LINENO: checking for $ac_header" >&5
3752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3759 # Is the header compilable?
3760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 #include "confdefs.h"
3765 $ac_includes_default
3766 #include <$ac_header>
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -s conftest.$ac_objext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_header_compiler=yes
3782 echo "$as_me: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3784 ac_header_compiler=no
3786 rm -f conftest.$ac_objext conftest.$ac_ext
3787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3788 echo "${ECHO_T}$ac_header_compiler" >&6
3790 # Is the header present?
3791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3793 cat >conftest.$ac_ext <<_ACEOF
3794 #line $LINENO "configure"
3795 #include "confdefs.h"
3796 #include <$ac_header>
3798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3801 egrep -v '^ *\+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } >/dev/null; then
3806 if test -s conftest.err; then
3807 ac_cpp_err=$ac_c_preproc_warn_flag
3814 if test -z "$ac_cpp_err"; then
3815 ac_header_preproc=yes
3817 echo "$as_me: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819 ac_header_preproc=no
3821 rm -f conftest.err conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3823 echo "${ECHO_T}$ac_header_preproc" >&6
3825 # So? What about this header?
3826 case $ac_header_compiler:$ac_header_preproc in
3828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3840 echo "$as_me:$LINENO: checking for $ac_header" >&5
3841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 eval "$as_ac_Header=$ac_header_preproc"
3847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3852 cat >>confdefs.h <<_ACEOF
3853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3864 # Only perform the check for file, if the check method requires it
3865 case $deplibs_check_method in
3867 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3868 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3869 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3870 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3878 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3881 ac_save_MAGIC_CMD="$MAGIC_CMD"
3882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3883 ac_dummy="/usr/bin:$PATH"
3884 for ac_dir in $ac_dummy; do
3885 test -z "$ac_dir" && ac_dir=.
3886 if test -f $ac_dir/${ac_tool_prefix}file; then
3887 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3888 if test -n "$file_magic_test_file"; then
3889 case $deplibs_check_method in
3891 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3894 egrep "$file_magic_regex" > /dev/null; then
3899 *** Warning: the command libtool uses to detect shared libraries,
3900 *** $file_magic_cmd, produces output that libtool cannot recognize.
3901 *** The result is that libtool may fail to recognize shared libraries
3902 *** as such. This will affect the creation of libtool libraries that
3903 *** depend on shared libraries, but programs linked with such libtool
3904 *** libraries will work regardless of this problem. Nevertheless, you
3905 *** may want to report the problem to your system manager and/or to
3906 *** bug-libtool@gnu.org
3916 MAGIC_CMD="$ac_save_MAGIC_CMD"
3921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3922 if test -n "$MAGIC_CMD"; then
3923 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3924 echo "${ECHO_T}$MAGIC_CMD" >&6
3926 echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6
3930 if test -z "$lt_cv_path_MAGIC_CMD"; then
3931 if test -n "$ac_tool_prefix"; then
3932 echo "$as_me:$LINENO: checking for file" >&5
3933 echo $ECHO_N "checking for file... $ECHO_C" >&6
3934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3945 ac_save_MAGIC_CMD="$MAGIC_CMD"
3946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3947 ac_dummy="/usr/bin:$PATH"
3948 for ac_dir in $ac_dummy; do
3949 test -z "$ac_dir" && ac_dir=.
3950 if test -f $ac_dir/file; then
3951 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3952 if test -n "$file_magic_test_file"; then
3953 case $deplibs_check_method in
3955 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3958 egrep "$file_magic_regex" > /dev/null; then
3963 *** Warning: the command libtool uses to detect shared libraries,
3964 *** $file_magic_cmd, produces output that libtool cannot recognize.
3965 *** The result is that libtool may fail to recognize shared libraries
3966 *** as such. This will affect the creation of libtool libraries that
3967 *** depend on shared libraries, but programs linked with such libtool
3968 *** libraries will work regardless of this problem. Nevertheless, you
3969 *** may want to report the problem to your system manager and/or to
3970 *** bug-libtool@gnu.org
3980 MAGIC_CMD="$ac_save_MAGIC_CMD"
3985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3986 if test -n "$MAGIC_CMD"; then
3987 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3988 echo "${ECHO_T}$MAGIC_CMD" >&6
3990 echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_RANLIB+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 if test -n "$RANLIB"; then
4012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 RANLIB=$ac_cv_prog_RANLIB
4031 if test -n "$RANLIB"; then
4032 echo "$as_me:$LINENO: result: $RANLIB" >&5
4033 echo "${ECHO_T}$RANLIB" >&6
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4040 if test -z "$ac_cv_prog_RANLIB"; then
4041 ac_ct_RANLIB=$RANLIB
4042 # Extract the first word of "ranlib", so it can be a program name with args.
4043 set dummy ranlib; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test -n "$ac_ct_RANLIB"; then
4050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_RANLIB="ranlib"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4070 if test -n "$ac_ct_RANLIB"; then
4071 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4072 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4078 RANLIB=$ac_ct_RANLIB
4080 RANLIB="$ac_cv_prog_RANLIB"
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}strip; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_prog_STRIP+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 if test -n "$STRIP"; then
4092 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 STRIP=$ac_cv_prog_STRIP
4111 if test -n "$STRIP"; then
4112 echo "$as_me:$LINENO: result: $STRIP" >&5
4113 echo "${ECHO_T}$STRIP" >&6
4115 echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4120 if test -z "$ac_cv_prog_STRIP"; then
4122 # Extract the first word of "strip", so it can be a program name with args.
4123 set dummy strip; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 if test -n "$ac_ct_STRIP"; then
4130 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_ac_ct_STRIP="strip"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4149 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4150 if test -n "$ac_ct_STRIP"; then
4151 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4152 echo "${ECHO_T}$ac_ct_STRIP" >&6
4154 echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4160 STRIP="$ac_cv_prog_STRIP"
4167 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4168 if test "${enable_libtool_lock+set}" = set; then
4169 enableval="$enable_libtool_lock"
4172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4174 # Some flags need to be propagated to the compiler or linker for good
4178 # Find out which ABI we are using.
4179 echo '#line 4179 "configure"' > conftest.$ac_ext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; then
4185 case `/usr/bin/file conftest.$ac_objext` in
4201 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4202 SAVE_CFLAGS="$CFLAGS"
4203 CFLAGS="$CFLAGS -belf"
4204 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4205 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4206 if test "${lt_cv_cc_needs_belf+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 cat >conftest.$ac_ext <<_ACEOF
4218 #line $LINENO "configure"
4219 #include "confdefs.h"
4221 #ifdef F77_DUMMY_MAIN
4225 int F77_DUMMY_MAIN() { return 1; }
4235 rm -f conftest.$ac_objext conftest$ac_exeext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4237 (eval $ac_link) 2>&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -s conftest$ac_exeext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 lt_cv_cc_needs_belf=yes
4249 echo "$as_me: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4251 lt_cv_cc_needs_belf=no
4253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4262 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4263 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4264 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4265 CFLAGS="$SAVE_CFLAGS"
4272 # Sed substitution that helps us do robust quoting. It backslashifies
4273 # metacharacters that are still active within double-quoted strings.
4274 Xsed='sed -e s/^X//'
4275 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4277 # Same as above, but do not quote variable references.
4278 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4280 # Sed substitution to delay expansion of an escaped shell variable in a
4281 # double_quote_subst'ed string.
4282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4288 default_ofile=libtool
4289 can_build_shared=yes
4291 # All known linkers require a `.a' archive for static linking (except M$VC,
4292 # which needs '.lib').
4294 ltmain="$ac_aux_dir/ltmain.sh"
4295 ofile="$default_ofile"
4296 with_gnu_ld="$lt_cv_prog_gnu_ld"
4297 need_locks="$enable_libtool_lock"
4300 old_CFLAGS="$CFLAGS"
4302 # Set sane defaults for various variables
4303 test -z "$AR" && AR=ar
4304 test -z "$AR_FLAGS" && AR_FLAGS=cru
4305 test -z "$AS" && AS=as
4306 test -z "$CC" && CC=cc
4307 test -z "$DLLTOOL" && DLLTOOL=dlltool
4308 test -z "$LD" && LD=ld
4309 test -z "$LN_S" && LN_S="ln -s"
4310 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4311 test -z "$NM" && NM=nm
4312 test -z "$OBJDUMP" && OBJDUMP=objdump
4313 test -z "$RANLIB" && RANLIB=:
4314 test -z "$STRIP" && STRIP=:
4315 test -z "$ac_objext" && ac_objext=o
4317 if test x"$host" != x"$build"; then
4318 ac_tool_prefix=${host_alias}-
4323 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4326 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4331 # AIX sometimes has problems with the GCC collect2 program. For some
4332 # reason, if we set the COLLECT_NAMES environment variable, the problems
4333 # vanish in a puff of smoke.
4334 if test "X${COLLECT_NAMES+set}" != Xset; then
4336 export COLLECT_NAMES
4341 # Determine commands to create old-style static archives.
4342 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4343 old_postinstall_cmds='chmod 644 $oldlib'
4344 old_postuninstall_cmds=
4346 if test -n "$RANLIB"; then
4349 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4352 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4355 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4358 # Allow CC to be a program name with arguments.
4362 echo "$as_me:$LINENO: checking for objdir" >&5
4363 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4364 rm -f .libs 2>/dev/null
4365 mkdir .libs 2>/dev/null
4366 if test -d .libs; then
4369 # MS-DOS does not allow filenames that begin with a dot.
4372 rmdir .libs 2>/dev/null
4373 echo "$as_me:$LINENO: result: $objdir" >&5
4374 echo "${ECHO_T}$objdir" >&6
4378 # Check whether --with-pic or --without-pic was given.
4379 if test "${with_pic+set}" = set; then
4385 test -z "$pic_mode" && pic_mode=default
4387 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4388 # in isolation, and that seeing it set (from the cache) indicates that
4389 # the associated values are set (in the cache) correctly too.
4390 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4391 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4392 if test "${lt_cv_prog_cc_pic+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 lt_cv_prog_cc_shlib=
4398 lt_cv_prog_cc_static=
4399 lt_cv_prog_cc_no_builtin=
4400 lt_cv_prog_cc_can_build_shared=$can_build_shared
4402 if test "$GCC" = yes; then
4403 lt_cv_prog_cc_wl='-Wl,'
4404 lt_cv_prog_cc_static='-static'
4408 # Below there is a dirty hack to force normal static linking with -ldl
4409 # The problem is because libdl dynamically linked with both libc and
4410 # libC (AIX C++ library), which obviously doesn't included in libraries
4411 # list by gcc. This cause undefined symbols with -static flags.
4412 # This hack allows C programs to be linked with "-static -ldl", but
4413 # not sure about C++ programs.
4414 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4417 # FIXME: we need at least 68020 code to build shared libraries, but
4418 # adding the `-m68020' flag to GCC prevents building anything better,
4420 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4422 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4423 # PIC is the default for these OSes.
4425 darwin* | rhapsody*)
4426 # PIC is the default on this platform
4427 # Common symbols not allowed in MH_DYLIB files
4428 lt_cv_prog_cc_pic='-fno-common'
4430 cygwin* | mingw* | pw32* | os2*)
4431 # This hack is so that the source file can tell whether it is being
4432 # built for inclusion in a dll (and should export symbols for example).
4433 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4436 if test -d /usr/nec; then
4437 lt_cv_prog_cc_pic=-Kconform_pic
4441 lt_cv_prog_cc_pic='-fPIC'
4445 # PORTME Check for PIC flags for the system compiler.
4447 aix3* | aix4* | aix5*)
4448 lt_cv_prog_cc_wl='-Wl,'
4449 # All AIX code is PIC.
4450 if test "$host_cpu" = ia64; then
4451 # AIX 5 now supports IA64 processor
4452 lt_cv_prog_cc_static='-Bstatic'
4454 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4458 hpux9* | hpux10* | hpux11*)
4459 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4460 lt_cv_prog_cc_wl='-Wl,'
4461 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4462 lt_cv_prog_cc_pic='+Z'
4465 irix5* | irix6* | nonstopux*)
4466 lt_cv_prog_cc_wl='-Wl,'
4467 lt_cv_prog_cc_static='-non_shared'
4468 # PIC (with -KPIC) is the default.
4471 cygwin* | mingw* | pw32* | os2*)
4472 # This hack is so that the source file can tell whether it is being
4473 # built for inclusion in a dll (and should export symbols for example).
4474 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4478 lt_cv_prog_cc_pic='-KPIC'
4479 lt_cv_prog_cc_static='-Bstatic'
4482 osf3* | osf4* | osf5*)
4483 # All OSF/1 code is PIC.
4484 lt_cv_prog_cc_wl='-Wl,'
4485 lt_cv_prog_cc_static='-non_shared'
4489 lt_cv_prog_cc_pic='-Kpic'
4490 lt_cv_prog_cc_static='-dn'
4491 lt_cv_prog_cc_shlib='-belf'
4495 lt_cv_prog_cc_pic='-KPIC'
4496 lt_cv_prog_cc_static='-Bstatic'
4497 lt_cv_prog_cc_wl='-Wl,'
4501 lt_cv_prog_cc_pic='-PIC'
4502 lt_cv_prog_cc_static='-Bstatic'
4503 lt_cv_prog_cc_wl='-Qoption ld '
4506 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4507 lt_cv_prog_cc_pic='-KPIC'
4508 lt_cv_prog_cc_static='-Bstatic'
4509 if test "x$host_vendor" = xsni; then
4510 lt_cv_prog_cc_wl='-LD'
4512 lt_cv_prog_cc_wl='-Wl,'
4517 lt_cv_prog_cc_pic='-pic'
4518 lt_cv_prog_cc_static='-Bstatic'
4522 if test -d /usr/nec ;then
4523 lt_cv_prog_cc_pic='-Kconform_pic'
4524 lt_cv_prog_cc_static='-Bstatic'
4529 lt_cv_prog_cc_can_build_shared=no
4536 if test -z "$lt_cv_prog_cc_pic"; then
4537 echo "$as_me:$LINENO: result: none" >&5
4538 echo "${ECHO_T}none" >&6
4540 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4541 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4543 # Check to make sure the pic_flag actually works.
4544 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4545 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4546 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 save_CFLAGS="$CFLAGS"
4550 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4551 cat >conftest.$ac_ext <<_ACEOF
4552 #line $LINENO "configure"
4553 #include "confdefs.h"
4555 #ifdef F77_DUMMY_MAIN
4559 int F77_DUMMY_MAIN() { return 1; }
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4582 hpux9* | hpux10* | hpux11*)
4583 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4584 # they create non-PIC objects. So, if there were any warnings, we
4585 # assume that PIC is not supported.
4586 if test -s conftest.err; then
4587 lt_cv_prog_cc_pic_works=no
4589 lt_cv_prog_cc_pic_works=yes
4593 lt_cv_prog_cc_pic_works=yes
4598 echo "$as_me: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4600 lt_cv_prog_cc_pic_works=no
4603 rm -f conftest.$ac_objext conftest.$ac_ext
4604 CFLAGS="$save_CFLAGS"
4609 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4611 lt_cv_prog_cc_can_build_shared=no
4613 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4616 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4617 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4620 # Check for any special shared library compilation flags.
4621 if test -n "$lt_cv_prog_cc_shlib"; then
4622 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4623 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4624 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4626 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4627 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4628 lt_cv_prog_cc_can_build_shared=no
4632 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4633 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4634 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 lt_cv_prog_cc_static_works=no
4638 save_LDFLAGS="$LDFLAGS"
4639 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 #line $LINENO "configure"
4642 #include "confdefs.h"
4644 #ifdef F77_DUMMY_MAIN
4648 int F77_DUMMY_MAIN() { return 1; }
4658 rm -f conftest.$ac_objext conftest$ac_exeext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660 (eval $ac_link) 2>&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 lt_cv_prog_cc_static_works=yes
4672 echo "$as_me: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4676 LDFLAGS="$save_LDFLAGS"
4681 # Belt *and* braces to stop my trousers falling down:
4682 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4683 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4684 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4686 pic_flag="$lt_cv_prog_cc_pic"
4687 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4688 wl="$lt_cv_prog_cc_wl"
4689 link_static_flag="$lt_cv_prog_cc_static"
4690 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4691 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4694 # Check to see if options -o and -c are simultaneously supported by compiler
4695 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4697 if test "${lt_cv_compiler_c_o+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 $rm -r conftest 2>/dev/null
4704 echo "int some_variable = 0;" > conftest.$ac_ext
4706 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4707 # that will create temporary files in the current directory regardless of
4708 # the output directory. Thus, making CWD read-only will cause this test
4709 # to fail, enabling locking or at least warning the user not to do parallel
4712 save_CFLAGS="$CFLAGS"
4713 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4715 if { (eval echo configure:4715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4716 # The compiler can only warn and ignore the option if not recognized
4717 # So say no if there are warnings
4718 if test -s out/conftest.err; then
4719 lt_cv_compiler_c_o=no
4721 lt_cv_compiler_c_o=yes
4724 # Append any errors to the config.log.
4725 cat out/conftest.err 1>&5
4726 lt_cv_compiler_c_o=no
4728 CFLAGS="$save_CFLAGS"
4734 $rm -r conftest 2>/dev/null
4738 compiler_c_o=$lt_cv_compiler_c_o
4739 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4740 echo "${ECHO_T}$compiler_c_o" >&6
4742 if test x"$compiler_c_o" = x"yes"; then
4743 # Check to see if we can write to a .lo
4744 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4745 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4746 if test "${lt_cv_compiler_o_lo+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 lt_cv_compiler_o_lo=no
4751 save_CFLAGS="$CFLAGS"
4752 CFLAGS="$CFLAGS -c -o conftest.lo"
4753 save_objext="$ac_objext"
4755 cat >conftest.$ac_ext <<_ACEOF
4756 #line $LINENO "configure"
4757 #include "confdefs.h"
4759 #ifdef F77_DUMMY_MAIN
4763 int F77_DUMMY_MAIN() { return 1; }
4768 int some_variable = 0;
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 # The compiler can only warn and ignore the option if not recognized
4786 # So say no if there are warnings
4787 if test -s conftest.err; then
4788 lt_cv_compiler_o_lo=no
4790 lt_cv_compiler_o_lo=yes
4794 echo "$as_me: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4797 rm -f conftest.$ac_objext conftest.$ac_ext
4798 ac_objext="$save_objext"
4799 CFLAGS="$save_CFLAGS"
4803 compiler_o_lo=$lt_cv_compiler_o_lo
4804 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4805 echo "${ECHO_T}$compiler_o_lo" >&6
4810 # Check to see if we can do hard links to lock some files if needed
4811 hard_links="nottested"
4812 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4813 # do not overwrite the value of need_locks provided by the user
4814 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4815 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4820 ln conftest.a conftest.b 2>&5 || hard_links=no
4821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4822 echo "$as_me:$LINENO: result: $hard_links" >&5
4823 echo "${ECHO_T}$hard_links" >&6
4824 if test "$hard_links" = no; then
4825 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4826 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4833 if test "$GCC" = yes; then
4834 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4835 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4837 echo "int some_variable = 0;" > conftest.$ac_ext
4838 save_CFLAGS="$CFLAGS"
4839 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4840 compiler_rtti_exceptions=no
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4845 #ifdef F77_DUMMY_MAIN
4849 int F77_DUMMY_MAIN() { return 1; }
4854 int some_variable = 0;
4859 rm -f conftest.$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861 (eval $ac_compile) 2>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4871 # The compiler can only warn and ignore the option if not recognized
4872 # So say no if there are warnings
4873 if test -s conftest.err; then
4874 compiler_rtti_exceptions=no
4876 compiler_rtti_exceptions=yes
4880 echo "$as_me: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4883 rm -f conftest.$ac_objext conftest.$ac_ext
4884 CFLAGS="$save_CFLAGS"
4885 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4886 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4888 if test "$compiler_rtti_exceptions" = "yes"; then
4889 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4891 no_builtin_flag=' -fno-builtin'
4895 # See if the linker supports building shared libraries.
4896 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4897 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4899 allow_undefined_flag=
4901 need_lib_prefix=unknown
4902 need_version=unknown
4903 # when you set need_version to no, make sure it does not cause -set_version
4904 # flags to be left without arguments
4906 archive_expsym_cmds=
4907 old_archive_from_new_cmds=
4908 old_archive_from_expsyms_cmds=
4909 export_dynamic_flag_spec=
4910 whole_archive_flag_spec=
4911 thread_safe_flag_spec=
4912 hardcode_into_libs=no
4913 hardcode_libdir_flag_spec=
4914 hardcode_libdir_separator=
4917 hardcode_shlibpath_var=unsupported
4919 link_all_deplibs=unknown
4920 always_export_symbols=no
4921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4922 # include_expsyms should be a list of space-separated symbols to be *always*
4923 # included in the symbol list
4925 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4926 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4927 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4928 # as well as any symbol that contains `d'.
4929 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4930 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4931 # platforms (ab)use it in PIC code, but their linkers get confused if
4932 # the symbol is explicitly referenced. Since portable code cannot
4933 # rely on this symbol name, it's probably fine to never include it in
4934 # preloaded symbol tables.
4935 extract_expsyms_cmds=
4938 cygwin* | mingw* | pw32*)
4939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4940 # When not using gcc, we currently assume that we are using
4941 # Microsoft Visual C++.
4942 if test "$GCC" != yes; then
4952 if test "$with_gnu_ld" = yes; then
4953 # If archive_cmds runs LD, not CC, wlarc should be empty
4956 # See if GNU ld supports shared libraries.
4958 aix3* | aix4* | aix5*)
4959 # On AIX, the GNU linker is very broken
4960 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4964 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4965 *** to be unable to reliably create shared libraries on AIX.
4966 *** Therefore, libtool is disabling shared libraries support. If you
4967 *** really care for shared libraries, you may want to modify your PATH
4968 *** so that a non-GNU linker is found, and then restart.
4974 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)'
4975 hardcode_libdir_flag_spec='-L$libdir'
4976 hardcode_minus_L=yes
4978 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4979 # that the semantics of dynamic libraries on AmigaOS, at least up
4980 # to version 4, is to share data among multiple programs linked
4981 # with the same dynamic library. Since this doesn't match the
4982 # behavior of shared libraries on other platforms, we can use
4988 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4989 allow_undefined_flag=unsupported
4990 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4991 # support --undefined. This deserves some investigation. FIXME
4992 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4998 cygwin* | mingw* | pw32*)
4999 # hardcode_libdir_flag_spec is actually meaningless, as there is
5000 # no search path for DLLs.
5001 hardcode_libdir_flag_spec='-L$libdir'
5002 allow_undefined_flag=unsupported
5003 always_export_symbols=yes
5005 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5006 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5007 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5008 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5009 else $CC -o impgen impgen.c ; fi)~
5010 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5012 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5014 # cygwin and mingw dlls have different entry points and sets of symbols
5016 # FIXME: what about values for MSVC?
5017 dll_entry=__cygwin_dll_entry@12
5018 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5022 dll_entry=_DllMainCRTStartup@12
5023 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5027 # mingw and cygwin differ, and it's simplest to just exclude the union
5028 # of the two symbol sets.
5029 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5031 # recent cygwin and mingw systems supply a stub DllMain which the user
5032 # can override, but on older systems we have to supply one (in ltdll.c)
5033 if test "x$lt_cv_need_dllmain" = "xyes"; then
5034 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5035 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~
5036 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5042 # Extract the symbol export list from an `--export-all' def file,
5043 # then regenerate the def file from the symbol export list, so that
5044 # the compiled dll only exports the symbol export list.
5045 # Be careful not to strip the DATA tag left be newer dlltools.
5046 export_symbols_cmds="$ltdll_cmds"'
5047 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5048 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5050 # If the export-symbols file already is a .def file (1st line
5051 # is EXPORTS), use it as is.
5052 # If DATA tags from a recent dlltool are present, honour them!
5053 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5054 cp $export_symbols $output_objdir/$soname-def;
5056 echo EXPORTS > $output_objdir/$soname-def;
5058 cat $export_symbols | while read symbol; do
5061 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5062 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5064 _lt_hint=`expr 1 + \$_lt_hint`;
5068 $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~
5069 $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~
5070 $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~
5071 $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~
5072 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5077 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5080 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5081 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5086 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5090 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5091 *** create shared libraries on Solaris systems. Therefore, libtool
5092 *** is disabling shared libraries support. We urge you to upgrade GNU
5093 *** binutils to release 2.9.1 or newer. Another option is to modify
5094 *** your PATH or compiler configuration so that the native linker is
5095 *** used, and then restart.
5098 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5107 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5110 hardcode_shlibpath_var=no
5114 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5123 if test "$ld_shlibs" = yes; then
5124 runpath_var=LD_RUN_PATH
5125 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5126 export_dynamic_flag_spec='${wl}--export-dynamic'
5128 cygwin* | mingw* | pw32*)
5129 # dlltool doesn't understand --whole-archive et. al.
5130 whole_archive_flag_spec=
5133 # ancient GNU ld didn't support --whole-archive et. al.
5134 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5137 whole_archive_flag_spec=
5143 # PORTME fill in a description of your system's linker (not GNU ld)
5146 allow_undefined_flag=unsupported
5147 always_export_symbols=yes
5148 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'
5149 # Note: this linker hardcodes the directories in LIBPATH if there
5150 # are no directories specified by -L.
5151 hardcode_minus_L=yes
5152 if test "$GCC" = yes && test -z "$link_static_flag"; then
5153 # Neither direct hardcoding nor static linking is supported with a
5155 hardcode_direct=unsupported
5160 if test "$host_cpu" = ia64; then
5161 # On IA64, the linker does run time linking by default, so we don't
5162 # have to do anything special.
5163 aix_use_runtimelinking=no
5164 exp_sym_flag='-Bexport'
5167 aix_use_runtimelinking=no
5169 # Test if we are trying to use run time linking or normal
5170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5171 # need to do runtime linking.
5172 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5173 for ld_flag in $LDFLAGS; do
5174 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5175 aix_use_runtimelinking=yes
5181 exp_sym_flag='-bexport'
5182 no_entry_flag='-bnoentry'
5185 # When large executables or shared objects are built, AIX ld can
5186 # have problems creating the table of contents. If linking a library
5187 # or program results in "error TOC overflow" add -mminimal-toc to
5188 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5189 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5193 hardcode_libdir_separator=':'
5194 if test "$GCC" = yes; then
5195 case $host_os in aix4.[012]|aix4.[012].*)
5196 collect2name=`${CC} -print-prog-name=collect2`
5197 if test -f "$collect2name" && \
5198 strings "$collect2name" | grep resolve_lib_name >/dev/null
5200 # We have reworked collect2
5203 # We have old collect2
5204 hardcode_direct=unsupported
5205 # It fails to find uninstalled libraries when the uninstalled
5206 # path is not listed in the libpath. Setting hardcode_minus_L
5207 # to unsupported forces relinking
5208 hardcode_minus_L=yes
5209 hardcode_libdir_flag_spec='-L$libdir'
5210 hardcode_libdir_separator=
5214 shared_flag='-shared'
5217 if test "$host_cpu" = ia64; then
5218 shared_flag='${wl}-G'
5220 if test "$aix_use_runtimelinking" = yes; then
5221 shared_flag='${wl}-G'
5223 shared_flag='${wl}-bM:SRE'
5228 # It seems that -bexpall can do strange things, so it is better to
5229 # generate a list of symbols to export.
5230 always_export_symbols=yes
5231 if test "$aix_use_runtimelinking" = yes; then
5232 # Warning - without using the other runtime loading flags (-brtl),
5233 # -berok will link without error, but may produce a broken library.
5234 allow_undefined_flag='-berok'
5235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5236 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"
5238 if test "$host_cpu" = ia64; then
5239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5240 allow_undefined_flag="-z nodefs"
5241 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"
5243 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5244 # Warning - without using the other run time loading flags,
5245 # -berok will link without error, but may produce a broken library.
5246 allow_undefined_flag='${wl}-berok'
5247 # This is a bit strange, but is similar to how AIX traditionally builds
5248 # it's shared libraries.
5249 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'
5255 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)'
5256 hardcode_libdir_flag_spec='-L$libdir'
5257 hardcode_minus_L=yes
5258 # see comment about different semantics on the GNU ld section
5262 cygwin* | mingw* | pw32*)
5263 # When not using gcc, we currently assume that we are using
5264 # Microsoft Visual C++.
5265 # hardcode_libdir_flag_spec is actually meaningless, as there is
5266 # no search path for DLLs.
5267 hardcode_libdir_flag_spec=' '
5268 allow_undefined_flag=unsupported
5269 # Tell ltmain to make .lib files, not .a files.
5271 # FIXME: Setting linknames here is a bad hack.
5272 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5273 # The linker will automatically build a .lib file if we build a DLL.
5274 old_archive_from_new_cmds='true'
5275 # FIXME: Should let the user specify the lib program.
5276 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5277 fix_srcfile_path='`cygpath -w "$srcfile"`'
5280 darwin* | rhapsody*)
5282 rhapsody* | darwin1.[012])
5283 allow_undefined_flag='-undefined suppress'
5286 allow_undefined_flag='-flat_namespace -undefined suppress'
5289 # FIXME: Relying on posixy $() will cause problems for
5290 # cross-compilation, but unfortunately the echo tests do not
5291 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5292 # `"' quotes if we put them in here... so don't!
5293 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5294 # We need to add '_' to the symbols in $export_symbols first
5295 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5297 hardcode_shlibpath_var=no
5298 whole_archive_flag_spec='-all_load $convenience'
5305 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5306 # support. Future versions do this automatically, but an explicit c++rt0.o
5307 # does not break anything, and helps significantly (at the cost of a little
5310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5311 hardcode_libdir_flag_spec='-R$libdir'
5313 hardcode_shlibpath_var=no
5316 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5320 hardcode_minus_L=yes
5321 hardcode_shlibpath_var=no
5324 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5326 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5327 hardcode_libdir_flag_spec='-R$libdir'
5329 hardcode_shlibpath_var=no
5332 hpux9* | hpux10* | hpux11*)
5334 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' ;;
5335 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5338 hardcode_libdir_separator=:
5340 hardcode_minus_L=yes # Not in the search PATH, but as the default
5341 # location of the library.
5342 export_dynamic_flag_spec='${wl}-E'
5345 irix5* | irix6* | nonstopux*)
5346 if test "$GCC" = yes; then
5347 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'
5349 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'
5351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5352 hardcode_libdir_separator=:
5353 link_all_deplibs=yes
5357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5360 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5362 hardcode_libdir_flag_spec='-R$libdir'
5364 hardcode_shlibpath_var=no
5368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5371 hardcode_libdir_separator=:
5372 hardcode_shlibpath_var=no
5377 hardcode_shlibpath_var=no
5378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5381 export_dynamic_flag_spec='${wl}-E'
5384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5386 hardcode_libdir_flag_spec='-R$libdir'
5389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5397 hardcode_libdir_flag_spec='-L$libdir'
5398 hardcode_minus_L=yes
5399 allow_undefined_flag=unsupported
5400 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'
5401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5405 if test "$GCC" = yes; then
5406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5407 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'
5409 allow_undefined_flag=' -expect_unresolved \*'
5410 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'
5412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5413 hardcode_libdir_separator=:
5416 osf4* | osf5*) # as osf3* with the addition of -msym flag
5417 if test "$GCC" = yes; then
5418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5419 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'
5420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5422 allow_undefined_flag=' -expect_unresolved \*'
5423 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'
5424 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5425 $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'
5427 #Both c and cxx compiler support -rpath directly
5428 hardcode_libdir_flag_spec='-rpath $libdir'
5430 hardcode_libdir_separator=:
5434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5435 hardcode_shlibpath_var=no
5436 runpath_var=LD_RUN_PATH
5437 hardcode_runpath_var=yes
5438 export_dynamic_flag_spec='${wl}-Bexport'
5442 # gcc --version < 3.0 without binutils cannot create self contained
5443 # shared libraries reliably, requiring libgcc.a to resolve some of
5444 # the object symbols generated in some cases. Libraries that use
5445 # assert need libgcc.a to resolve __eprintf, for example. Linking
5446 # a copy of libgcc.a into every shared library to guarantee resolving
5447 # such symbols causes other problems: According to Tim Van Holder
5448 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5449 # (to the application) exception stack for one thing.
5450 no_undefined_flag=' -z defs'
5451 if test "$GCC" = yes; then
5452 case `$CC --version 2>/dev/null` in
5456 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5457 *** create self contained shared libraries on Solaris systems, without
5458 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5459 *** -no-undefined support, which will at least allow you to build shared
5460 *** libraries. However, you may find that when you link such libraries
5461 *** into an application without using GCC, you have to manually add
5462 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5463 *** upgrade to a newer version of GCC. Another option is to rebuild your
5464 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5471 # $CC -shared without GNU ld will not create a library from C++
5472 # object files and a static libstdc++, better avoid it by now
5473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5474 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5476 hardcode_libdir_flag_spec='-R$libdir'
5477 hardcode_shlibpath_var=no
5479 solaris2.[0-5] | solaris2.[0-5].*) ;;
5480 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5481 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5483 link_all_deplibs=yes
5487 if test "x$host_vendor" = xsequent; then
5488 # Use $CC to link under sequent, because it throws in some extra .o
5489 # files that make .init and .fini sections work.
5490 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5492 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5494 hardcode_libdir_flag_spec='-L$libdir'
5496 hardcode_minus_L=yes
5497 hardcode_shlibpath_var=no
5501 if test "x$host_vendor" = xsno; then
5502 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5503 hardcode_direct=yes # is this really true???
5505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5506 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5508 runpath_var='LD_RUN_PATH'
5509 hardcode_shlibpath_var=no
5513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5514 hardcode_shlibpath_var=no
5515 export_dynamic_flag_spec='-Bexport'
5519 no_undefined_flag=' -z text'
5520 # $CC -shared without GNU ld will not create a library from C++
5521 # object files and a static libstdc++, better avoid it by now
5522 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5523 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5524 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5525 hardcode_libdir_flag_spec=
5526 hardcode_shlibpath_var=no
5527 runpath_var='LD_RUN_PATH'
5531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5532 hardcode_libdir_flag_spec='-L$libdir'
5533 hardcode_shlibpath_var=no
5537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5538 hardcode_libdir_flag_spec='-L$libdir'
5539 hardcode_shlibpath_var=no
5543 if test -d /usr/nec; then
5544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5545 hardcode_shlibpath_var=no
5546 runpath_var=LD_RUN_PATH
5547 hardcode_runpath_var=yes
5553 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5556 hardcode_shlibpath_var=no
5557 hardcode_runpath_var=yes
5558 runpath_var=LD_RUN_PATH
5561 sysv5uw7* | unixware7*)
5562 no_undefined_flag='${wl}-z ${wl}text'
5563 if test "$GCC" = yes; then
5564 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5566 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5568 runpath_var='LD_RUN_PATH'
5569 hardcode_shlibpath_var=no
5577 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5578 echo "${ECHO_T}$ld_shlibs" >&6
5579 test "$ld_shlibs" = no && can_build_shared=no
5581 # Check hardcoding attributes.
5582 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5585 if test -n "$hardcode_libdir_flag_spec" || \
5586 test -n "$runpath_var"; then
5588 # We can hardcode non-existant directories.
5589 if test "$hardcode_direct" != no &&
5590 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5591 # have to relink, otherwise we might link with an installed library
5592 # when we should be linking with a yet-to-be-installed one
5593 ## test "$hardcode_shlibpath_var" != no &&
5594 test "$hardcode_minus_L" != no; then
5595 # Linking always hardcodes the temporary library directory.
5596 hardcode_action=relink
5598 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5599 hardcode_action=immediate
5602 # We cannot hardcode anything, or else we can only hardcode existing
5604 hardcode_action=unsupported
5606 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5607 echo "${ECHO_T}$hardcode_action" >&6
5611 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5612 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5613 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5616 echo "$as_me:$LINENO: result: yes" >&5
5617 echo "${ECHO_T}yes" >&6
5619 echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5623 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5624 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5626 # PORTME Fill in your ld.so characteristics
5627 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5628 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5630 libname_spec='lib$name'
5637 shlibpath_overrides_runpath=unknown
5639 dynamic_linker="$host_os ld.so"
5640 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5646 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5647 shlibpath_var=LIBPATH
5649 # AIX has no versioning support, so we append a major version to the name.
5650 soname_spec='${libname}${release}.so$major'
5655 if test "$host_cpu" = ia64; then
5656 # AIX 5 supports IA64
5657 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5658 shlibpath_var=LD_LIBRARY_PATH
5660 # With GCC up to 2.95.x, collect2 would create an import file
5661 # for dependence libraries. The import file would start with
5662 # the line `#! .'. This would cause the generated library to
5663 # depend on `.', always an invalid library. This was fixed in
5664 # development snapshots of GCC prior to 3.0.
5666 aix4 | aix4.[01] | aix4.[01].*)
5667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5669 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5676 # AIX (on Power*) has no versioning support, so currently we can
5677 # not hardcode correct soname into executable. Probably we can
5678 # add versioning support to collect2, so additional links can
5679 # be useful in future.
5680 if test "$aix_use_runtimelinking" = yes; then
5681 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5682 # instead of lib<name>.a to let people know that these are not
5683 # typical AIX shared libraries.
5684 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5686 # We preserve .a as extension for shared libraries through AIX4.2
5687 # and later when we are not doing run time linking.
5688 library_names_spec='${libname}${release}.a $libname.a'
5689 soname_spec='${libname}${release}.so$major'
5691 shlibpath_var=LIBPATH
5696 library_names_spec='$libname.ixlibrary $libname.a'
5697 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5698 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'
5702 library_names_spec='${libname}.so'
5703 dynamic_linker="$host_os ld.so"
5704 shlibpath_var=LIBRARY_PATH
5710 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5711 soname_spec='${libname}${release}.so$major'
5712 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5713 shlibpath_var=LD_LIBRARY_PATH
5714 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5715 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5716 export_dynamic_flag_spec=-rdynamic
5717 # the default ld.so.conf also contains /usr/contrib/lib and
5718 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5719 # libtool to hard-code these into programs
5722 cygwin* | mingw* | pw32*)
5723 version_type=windows
5726 case $GCC,$host_os in
5728 library_names_spec='$libname.dll.a'
5729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5730 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5731 dldir=$destdir/`dirname \$dlpath`~
5732 test -d \$dldir || mkdir -p \$dldir~
5733 $install_prog .libs/$dlname \$dldir/$dlname'
5734 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5735 dlpath=$dir/\$dldll~
5739 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5746 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5749 dynamic_linker='Win32 ld.exe'
5750 # FIXME: first we should search . and the directory the executable is in
5754 darwin* | rhapsody*)
5755 dynamic_linker="$host_os dyld"
5759 # FIXME: Relying on posixy $() will cause problems for
5760 # cross-compilation, but unfortunately the echo tests do not
5761 # yet detect zsh echo's removal of \ escapes.
5762 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)'
5763 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5764 shlibpath_overrides_runpath=yes
5765 shlibpath_var=DYLD_LIBRARY_PATH
5773 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5774 version_type=freebsd-$objformat
5775 case $version_type in
5777 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5782 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5786 shlibpath_var=LD_LIBRARY_PATH
5789 shlibpath_overrides_runpath=yes
5792 shlibpath_overrides_runpath=no
5793 hardcode_into_libs=yes
5802 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5803 soname_spec='${libname}${release}.so$major'
5804 shlibpath_var=LD_LIBRARY_PATH
5805 hardcode_into_libs=yes
5808 hpux9* | hpux10* | hpux11*)
5809 # Give a soname corresponding to the major version so that dld.sl refuses to
5810 # link against other versions.
5811 dynamic_linker="$host_os dld.sl"
5815 shlibpath_var=SHLIB_PATH
5816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5817 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5818 soname_spec='${libname}${release}.sl$major'
5819 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5820 postinstall_cmds='chmod 555 $lib'
5823 irix5* | irix6* | nonstopux*)
5825 nonstopux*) version_type=nonstopux ;;
5826 *) version_type=irix ;;
5830 soname_spec='${libname}${release}.so$major'
5831 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5833 irix5* | nonstopux*)
5837 case $LD in # libtool.m4 will add one of these switches to LD
5838 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5839 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5840 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5841 *) libsuff= shlibsuff= libmagic=never-match;;
5845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5846 shlibpath_overrides_runpath=no
5847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5851 # No shared lib support for Linux oldld, aout, or coff.
5852 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5856 # This must be Linux ELF.
5861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5862 soname_spec='${libname}${release}.so$major'
5863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5864 shlibpath_var=LD_LIBRARY_PATH
5865 shlibpath_overrides_runpath=no
5866 # This implies no fast_install, which is unacceptable.
5867 # Some rework will be needed to allow for fast_install
5868 # before this can be enabled.
5869 hardcode_into_libs=yes
5871 # We used to test for /lib/ld.so.1 and disable shared libraries on
5872 # powerpc, because MkLinux only supported shared libraries with the
5873 # GNU dynamic linker. Since this was broken with cross compilers,
5874 # most powerpc-linux boxes support dynamic linking these days and
5875 # people can always --disable-shared, the test was removed, and we
5876 # assume the GNU/Linux dynamic linker is in use.
5877 dynamic_linker='GNU/Linux ld.so'
5884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5885 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5887 dynamic_linker='NetBSD (a.out) ld.so'
5889 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5890 soname_spec='${libname}${release}.so$major'
5891 dynamic_linker='NetBSD ld.elf_so'
5893 shlibpath_var=LD_LIBRARY_PATH
5894 shlibpath_overrides_runpath=yes
5895 hardcode_into_libs=yes
5900 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5901 shlibpath_var=LD_LIBRARY_PATH
5902 shlibpath_overrides_runpath=yes
5909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5911 openbsd2.[89] | openbsd2.[89].*)
5912 shlibpath_overrides_runpath=no
5915 shlibpath_overrides_runpath=yes
5919 shlibpath_overrides_runpath=yes
5921 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5923 shlibpath_var=LD_LIBRARY_PATH
5927 libname_spec='$name'
5929 library_names_spec='$libname.dll $libname.a'
5930 dynamic_linker='OS/2 ld.exe'
5931 shlibpath_var=LIBPATH
5934 osf3* | osf4* | osf5*)
5938 soname_spec='${libname}${release}.so'
5939 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5940 shlibpath_var=LD_LIBRARY_PATH
5941 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5942 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5947 soname_spec='${libname}${release}.so$major'
5948 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5949 shlibpath_var=LD_LIBRARY_PATH
5956 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5957 soname_spec='${libname}${release}.so$major'
5958 shlibpath_var=LD_LIBRARY_PATH
5959 shlibpath_overrides_runpath=yes
5960 hardcode_into_libs=yes
5961 # ldd complains unless libraries are executable
5962 postinstall_cmds='chmod +x $lib'
5967 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5969 shlibpath_var=LD_LIBRARY_PATH
5970 shlibpath_overrides_runpath=yes
5971 if test "$with_gnu_ld" = yes; then
5977 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5980 soname_spec='${libname}${release}.so$major'
5981 shlibpath_var=LD_LIBRARY_PATH
5982 case $host_vendor in
5984 shlibpath_overrides_runpath=no
5989 shlibpath_overrides_runpath=no
5990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5997 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5998 soname_spec='${libname}${release}.so$major'
5999 shlibpath_var=LD_LIBRARY_PATH
6006 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6007 soname_spec='${libname}${release}.so$major'
6008 shlibpath_var=LD_LIBRARY_PATH
6012 if test -d /usr/nec ;then
6014 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6015 soname_spec='$libname.so.$major'
6016 shlibpath_var=LD_LIBRARY_PATH
6024 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6025 echo "${ECHO_T}$dynamic_linker" >&6
6026 test "$dynamic_linker" = no && can_build_shared=no
6028 # Report the final consequences.
6029 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6030 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6031 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6032 echo "${ECHO_T}$can_build_shared" >&6
6034 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6035 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6036 test "$can_build_shared" = "no" && enable_shared=no
6038 # On AIX, shared libraries and static libraries use the same namespace, and
6039 # are all built from PIC.
6042 test "$enable_shared" = yes && enable_static=no
6043 if test -n "$RANLIB"; then
6044 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6045 postinstall_cmds='$RANLIB $lib'
6050 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6051 test "$enable_shared" = yes && enable_static=no
6055 echo "$as_me:$LINENO: result: $enable_shared" >&5
6056 echo "${ECHO_T}$enable_shared" >&6
6058 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6059 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6060 # Make sure either enable_shared or enable_static is yes.
6061 test "$enable_shared" = yes || enable_static=yes
6062 echo "$as_me:$LINENO: result: $enable_static" >&5
6063 echo "${ECHO_T}$enable_static" >&6
6065 if test "$hardcode_action" = relink; then
6066 # Fast installation is not supported
6067 enable_fast_install=no
6068 elif test "$shlibpath_overrides_runpath" = yes ||
6069 test "$enable_shared" = no; then
6070 # Fast installation is not necessary
6071 enable_fast_install=needless
6074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6075 if test "$GCC" = yes; then
6076 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6079 if test "x$enable_dlopen" != xyes; then
6080 enable_dlopen=unknown
6081 enable_dlopen_self=unknown
6082 enable_dlopen_self_static=unknown
6089 lt_cv_dlopen="load_add_on"
6091 lt_cv_dlopen_self=yes
6094 cygwin* | mingw* | pw32*)
6095 lt_cv_dlopen="LoadLibrary"
6100 echo "$as_me:$LINENO: checking for shl_load" >&5
6101 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6102 if test "${ac_cv_func_shl_load+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 cat >conftest.$ac_ext <<_ACEOF
6106 #line $LINENO "configure"
6107 #include "confdefs.h"
6108 /* System header to define __stub macros and hopefully few prototypes,
6109 which can conflict with char shl_load (); below. */
6111 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6120 #ifdef F77_DUMMY_MAIN
6124 int F77_DUMMY_MAIN() { return 1; }
6129 /* The GNU C library defines this for functions which it implements
6130 to always fail with ENOSYS. Some functions are actually named
6131 something starting with __ and the normal name is an alias. */
6132 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6142 rm -f conftest.$ac_objext conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144 (eval $ac_link) 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -s conftest$ac_exeext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_func_shl_load=yes
6156 echo "$as_me: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6158 ac_cv_func_shl_load=no
6160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6163 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6164 if test $ac_cv_func_shl_load = yes; then
6165 lt_cv_dlopen="shl_load"
6167 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6168 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6169 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 ac_check_lib_save_LIBS=$LIBS
6174 cat >conftest.$ac_ext <<_ACEOF
6175 #line $LINENO "configure"
6176 #include "confdefs.h"
6178 /* Override any gcc2 internal prototype to avoid an error. */
6182 /* We use char because int might match the return type of a gcc2
6183 builtin and then its argument prototype would still apply. */
6185 #ifdef F77_DUMMY_MAIN
6189 int F77_DUMMY_MAIN() { return 1; }
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6201 (eval $ac_link) 2>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -s conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_lib_dld_shl_load=yes
6213 echo "$as_me: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 ac_cv_lib_dld_shl_load=no
6217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6218 LIBS=$ac_check_lib_save_LIBS
6220 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6221 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6222 if test $ac_cv_lib_dld_shl_load = yes; then
6223 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6225 echo "$as_me:$LINENO: checking for dlopen" >&5
6226 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6227 if test "${ac_cv_func_dlopen+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6232 #include "confdefs.h"
6233 /* System header to define __stub macros and hopefully few prototypes,
6234 which can conflict with char dlopen (); below. */
6236 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6245 #ifdef F77_DUMMY_MAIN
6249 int F77_DUMMY_MAIN() { return 1; }
6254 /* The GNU C library defines this for functions which it implements
6255 to always fail with ENOSYS. Some functions are actually named
6256 something starting with __ and the normal name is an alias. */
6257 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6267 rm -f conftest.$ac_objext conftest$ac_exeext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6269 (eval $ac_link) 2>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -s conftest$ac_exeext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_cv_func_dlopen=yes
6281 echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6283 ac_cv_func_dlopen=no
6285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6287 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6288 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6289 if test $ac_cv_func_dlopen = yes; then
6290 lt_cv_dlopen="dlopen"
6292 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6293 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6294 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 ac_check_lib_save_LIBS=$LIBS
6299 cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6301 #include "confdefs.h"
6303 /* Override any gcc2 internal prototype to avoid an error. */
6307 /* We use char because int might match the return type of a gcc2
6308 builtin and then its argument prototype would still apply. */
6310 #ifdef F77_DUMMY_MAIN
6314 int F77_DUMMY_MAIN() { return 1; }
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326 (eval $ac_link) 2>&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest$ac_exeext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_cv_lib_dl_dlopen=yes
6338 echo "$as_me: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 ac_cv_lib_dl_dlopen=no
6342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6343 LIBS=$ac_check_lib_save_LIBS
6345 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6346 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6347 if test $ac_cv_lib_dl_dlopen = yes; then
6348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6350 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6351 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6352 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 ac_check_lib_save_LIBS=$LIBS
6357 cat >conftest.$ac_ext <<_ACEOF
6358 #line $LINENO "configure"
6359 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6368 #ifdef F77_DUMMY_MAIN
6372 int F77_DUMMY_MAIN() { return 1; }
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384 (eval $ac_link) 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -s conftest$ac_exeext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_lib_svld_dlopen=yes
6396 echo "$as_me: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6398 ac_cv_lib_svld_dlopen=no
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 LIBS=$ac_check_lib_save_LIBS
6403 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6404 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6405 if test $ac_cv_lib_svld_dlopen = yes; then
6406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6408 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6409 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6410 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 ac_check_lib_save_LIBS=$LIBS
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6419 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6426 #ifdef F77_DUMMY_MAIN
6430 int F77_DUMMY_MAIN() { return 1; }
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -s conftest$ac_exeext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_cv_lib_dld_dld_link=yes
6454 echo "$as_me: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 ac_cv_lib_dld_dld_link=no
6458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6459 LIBS=$ac_check_lib_save_LIBS
6461 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6462 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6463 if test $ac_cv_lib_dld_dld_link = yes; then
6464 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6485 if test "x$lt_cv_dlopen" != xno; then
6491 case $lt_cv_dlopen in
6493 save_CPPFLAGS="$CPPFLAGS"
6494 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6496 save_LDFLAGS="$LDFLAGS"
6497 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6500 LIBS="$lt_cv_dlopen_libs $LIBS"
6502 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6503 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6504 if test "${lt_cv_dlopen_self+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 if test "$cross_compiling" = yes; then :
6508 lt_cv_dlopen_self=cross
6510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6511 lt_status=$lt_dlunknown
6512 cat > conftest.$ac_ext <<EOF
6513 #line 6513 "configure"
6514 #include "confdefs.h"
6523 # define LT_DLGLOBAL RTLD_GLOBAL
6526 # define LT_DLGLOBAL DL_GLOBAL
6528 # define LT_DLGLOBAL 0
6532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6533 find out it does not work in some platform. */
6534 #ifndef LT_DLLAZY_OR_NOW
6536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6539 # define LT_DLLAZY_OR_NOW DL_LAZY
6542 # define LT_DLLAZY_OR_NOW RTLD_NOW
6545 # define LT_DLLAZY_OR_NOW DL_NOW
6547 # define LT_DLLAZY_OR_NOW 0
6555 extern "C" void exit (int);
6558 void fnord() { int i=42;}
6561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6562 int status = $lt_dlunknown;
6566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6567 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6568 /* dlclose (self); */
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6579 (./conftest; exit; ) 2>/dev/null
6582 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6583 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6584 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6587 # compilation failed
6588 lt_cv_dlopen_self=no
6595 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6596 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6598 if test "x$lt_cv_dlopen_self" = xyes; then
6599 LDFLAGS="$LDFLAGS $link_static_flag"
6600 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6601 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6602 if test "${lt_cv_dlopen_self_static+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 if test "$cross_compiling" = yes; then :
6606 lt_cv_dlopen_self_static=cross
6608 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6609 lt_status=$lt_dlunknown
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6611 "configure"
6612 #include "confdefs.h"
6621 # define LT_DLGLOBAL RTLD_GLOBAL
6624 # define LT_DLGLOBAL DL_GLOBAL
6626 # define LT_DLGLOBAL 0
6630 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6631 find out it does not work in some platform. */
6632 #ifndef LT_DLLAZY_OR_NOW
6634 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6637 # define LT_DLLAZY_OR_NOW DL_LAZY
6640 # define LT_DLLAZY_OR_NOW RTLD_NOW
6643 # define LT_DLLAZY_OR_NOW DL_NOW
6645 # define LT_DLLAZY_OR_NOW 0
6653 extern "C" void exit (int);
6656 void fnord() { int i=42;}
6659 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6660 int status = $lt_dlunknown;
6664 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6665 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6666 /* dlclose (self); */
6672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673 (eval $ac_link) 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6677 (./conftest; exit; ) 2>/dev/null
6680 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6681 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6682 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6685 # compilation failed
6686 lt_cv_dlopen_self_static=no
6693 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6694 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6697 CPPFLAGS="$save_CPPFLAGS"
6698 LDFLAGS="$save_LDFLAGS"
6703 case $lt_cv_dlopen_self in
6704 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6705 *) enable_dlopen_self=unknown ;;
6708 case $lt_cv_dlopen_self_static in
6709 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6710 *) enable_dlopen_self_static=unknown ;;
6715 if test "$enable_shared" = yes && test "$GCC" = yes; then
6716 case $archive_cmds in
6718 # FIXME: we may have to deal with multi-command sequences.
6721 # Test whether the compiler implicitly links with -lc since on some
6722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6723 # to ld, don't add -lc before -lgcc.
6724 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6726 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 echo 'static int dummy;' > conftest.$ac_ext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733 (eval $ac_compile) 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; then
6739 libobjs=conftest.$ac_objext
6741 wl=$lt_cv_prog_cc_wl
6747 save_allow_undefined_flag=$allow_undefined_flag
6748 allow_undefined_flag=
6749 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6750 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }
6755 lt_cv_archive_cmds_need_lc=no
6757 lt_cv_archive_cmds_need_lc=yes
6759 allow_undefined_flag=$save_allow_undefined_flag
6761 cat conftest.err 1>&5
6765 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6766 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6770 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6772 # The second clause should only fire when bootstrapping the
6773 # libtool distribution, otherwise you forgot to ship ltmain.sh
6774 # with your package, and you will get complaints that there are
6775 # no rules to generate ltmain.sh.
6776 if test -f "$ltmain"; then
6779 # If there is no Makefile yet, we rely on a make rule to execute
6780 # `config.status --recheck' to rerun these tests and create the
6781 # libtool script then.
6782 test -f Makefile && make "$ltmain"
6785 if test -f "$ltmain"; then
6786 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6789 echo creating $ofile
6791 # Now quote all the things that may contain metacharacters while being
6792 # careful not to overquote the AC_SUBSTed values. We take copies of the
6793 # variables and quote the copies for generation of the libtool script.
6794 for var in echo old_CC old_CFLAGS \
6795 AR AR_FLAGS CC LD LN_S NM SHELL \
6796 reload_flag reload_cmds wl \
6797 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6798 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6799 library_names_spec soname_spec \
6800 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6801 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6802 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6803 old_striplib striplib file_magic_cmd export_symbols_cmds \
6804 deplibs_check_method allow_undefined_flag no_undefined_flag \
6805 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6806 global_symbol_to_c_name_address \
6807 hardcode_libdir_flag_spec hardcode_libdir_separator \
6808 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6809 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6812 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6813 old_postinstall_cmds | old_postuninstall_cmds | \
6814 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6815 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6816 postinstall_cmds | postuninstall_cmds | \
6817 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6818 # Double-quote double-evaled strings.
6819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6827 cat <<__EOF__ > "${ofile}T"
6830 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6831 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6834 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6835 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6837 # This program is free software; you can redistribute it and/or modify
6838 # it under the terms of the GNU General Public License as published by
6839 # the Free Software Foundation; either version 2 of the License, or
6840 # (at your option) any later version.
6842 # This program is distributed in the hope that it will be useful, but
6843 # WITHOUT ANY WARRANTY; without even the implied warranty of
6844 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6845 # General Public License for more details.
6847 # You should have received a copy of the GNU General Public License
6848 # along with this program; if not, write to the Free Software
6849 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6851 # As a special exception to the GNU General Public License, if you
6852 # distribute this file as part of a program that contains a
6853 # configuration script generated by Autoconf, you may include it under
6854 # the same distribution terms that you use for the rest of that program.
6856 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6857 Xsed="sed -e s/^X//"
6859 # The HP-UX ksh and POSIX shell print the target directory to stdout
6861 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6863 # ### BEGIN LIBTOOL CONFIG
6865 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6867 # Shell to use when invoking shell scripts.
6870 # Whether or not to build shared libraries.
6871 build_libtool_libs=$enable_shared
6873 # Whether or not to build static libraries.
6874 build_old_libs=$enable_static
6876 # Whether or not to add -lc for building shared libraries.
6877 build_libtool_need_lc=$need_lc
6879 # Whether or not to optimize for fast installation.
6880 fast_install=$enable_fast_install
6883 host_alias=$host_alias
6886 # An echo program that does not interpret backslashes.
6891 AR_FLAGS=$lt_AR_FLAGS
6893 # The default C compiler.
6896 # Is the compiler the GNU C compiler?
6899 # The linker used to build libraries.
6902 # Whether we need hard or soft links.
6905 # A BSD-compatible nm program.
6908 # A symbol stripping program
6911 # Used to examine libraries when file_magic_cmd begins "file"
6912 MAGIC_CMD=$MAGIC_CMD
6914 # Used on cygwin: DLL creation program.
6917 # Used on cygwin: object dumper.
6920 # Used on cygwin: assembler.
6923 # The name of the directory that contains temporary libtool files.
6926 # How to create reloadable object files.
6927 reload_flag=$lt_reload_flag
6928 reload_cmds=$lt_reload_cmds
6930 # How to pass a linker flag through the compiler.
6933 # Object file suffix (normally "o").
6936 # Old archive suffix (normally "a").
6939 # Executable file suffix (normally "").
6942 # Additional compiler flags for building library objects.
6943 pic_flag=$lt_pic_flag
6946 # Does compiler simultaneously support -c and -o options?
6947 compiler_c_o=$lt_compiler_c_o
6949 # Can we write directly to a .lo ?
6950 compiler_o_lo=$lt_compiler_o_lo
6952 # Must we lock files when doing compilation ?
6953 need_locks=$lt_need_locks
6955 # Do we need the lib prefix for modules?
6956 need_lib_prefix=$need_lib_prefix
6958 # Do we need a version for libraries?
6959 need_version=$need_version
6961 # Whether dlopen is supported.
6962 dlopen_support=$enable_dlopen
6964 # Whether dlopen of programs is supported.
6965 dlopen_self=$enable_dlopen_self
6967 # Whether dlopen of statically linked programs is supported.
6968 dlopen_self_static=$enable_dlopen_self_static
6970 # Compiler flag to prevent dynamic linking.
6971 link_static_flag=$lt_link_static_flag
6973 # Compiler flag to turn off builtin functions.
6974 no_builtin_flag=$lt_no_builtin_flag
6976 # Compiler flag to allow reflexive dlopens.
6977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6979 # Compiler flag to generate shared objects directly from archives.
6980 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6982 # Compiler flag to generate thread-safe objects.
6983 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6985 # Library versioning type.
6986 version_type=$version_type
6988 # Format of library name prefix.
6989 libname_spec=$lt_libname_spec
6991 # List of archive names. First name is the real one, the rest are links.
6992 # The last name is the one that the linker finds with -lNAME.
6993 library_names_spec=$lt_library_names_spec
6995 # The coded name of the library, if different from the real name.
6996 soname_spec=$lt_soname_spec
6998 # Commands used to build and install an old-style archive.
7000 old_archive_cmds=$lt_old_archive_cmds
7001 old_postinstall_cmds=$lt_old_postinstall_cmds
7002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7004 # Create an old-style archive from a shared archive.
7005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7007 # Create a temporary old-style archive to link instead of a shared archive.
7008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7010 # Commands used to build and install a shared archive.
7011 archive_cmds=$lt_archive_cmds
7012 archive_expsym_cmds=$lt_archive_expsym_cmds
7013 postinstall_cmds=$lt_postinstall_cmds
7014 postuninstall_cmds=$lt_postuninstall_cmds
7016 # Commands to strip libraries.
7017 old_striplib=$lt_old_striplib
7018 striplib=$lt_striplib
7020 # Method to check whether dependent libraries are shared objects.
7021 deplibs_check_method=$lt_deplibs_check_method
7023 # Command to use when deplibs_check_method == file_magic.
7024 file_magic_cmd=$lt_file_magic_cmd
7026 # Flag that allows shared libraries with undefined symbols to be built.
7027 allow_undefined_flag=$lt_allow_undefined_flag
7029 # Flag that forces no undefined symbols.
7030 no_undefined_flag=$lt_no_undefined_flag
7032 # Commands used to finish a libtool library installation in a directory.
7033 finish_cmds=$lt_finish_cmds
7035 # Same as above, but a single script fragment to be evaled but not shown.
7036 finish_eval=$lt_finish_eval
7038 # Take the output of nm and produce a listing of raw symbols and C names.
7039 global_symbol_pipe=$lt_global_symbol_pipe
7041 # Transform the output of nm in a proper C declaration
7042 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7044 # Transform the output of nm in a C name address pair
7045 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7047 # This is the shared library runtime path variable.
7048 runpath_var=$runpath_var
7050 # This is the shared library path variable.
7051 shlibpath_var=$shlibpath_var
7053 # Is shlibpath searched before the hard-coded library search path?
7054 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7056 # How to hardcode a shared library path into an executable.
7057 hardcode_action=$hardcode_action
7059 # Whether we should hardcode library paths into libraries.
7060 hardcode_into_libs=$hardcode_into_libs
7062 # Flag to hardcode \$libdir into a binary during linking.
7063 # This must work even if \$libdir does not exist.
7064 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7066 # Whether we need a single -rpath flag with a separated argument.
7067 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7069 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7071 hardcode_direct=$hardcode_direct
7073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7075 hardcode_minus_L=$hardcode_minus_L
7077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7078 # the resulting binary.
7079 hardcode_shlibpath_var=$hardcode_shlibpath_var
7081 # Variables whose values should be saved in libtool wrapper scripts and
7082 # restored at relink time.
7083 variables_saved_for_relink="$variables_saved_for_relink"
7085 # Whether libtool must link a program against all its dependency libraries.
7086 link_all_deplibs=$link_all_deplibs
7088 # Compile-time system search path for libraries
7089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7091 # Run-time system search path for libraries
7092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7094 # Fix the shell variable \$srcfile for the compiler.
7095 fix_srcfile_path="$fix_srcfile_path"
7097 # Set to yes if exported symbols are required.
7098 always_export_symbols=$always_export_symbols
7100 # The commands to list exported symbols.
7101 export_symbols_cmds=$lt_export_symbols_cmds
7103 # The commands to extract the exported symbol list from a shared archive.
7104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7106 # Symbols that should not be listed in the preloaded symbols.
7107 exclude_expsyms=$lt_exclude_expsyms
7109 # Symbols that must always be exported.
7110 include_expsyms=$lt_include_expsyms
7112 # ### END LIBTOOL CONFIG
7118 cat <<\EOF >> "${ofile}T"
7120 # AIX sometimes has problems with the GCC collect2 program. For some
7121 # reason, if we set the COLLECT_NAMES environment variable, the problems
7122 # vanish in a puff of smoke.
7123 if test "X${COLLECT_NAMES+set}" != Xset; then
7125 export COLLECT_NAMES
7132 cygwin* | mingw* | pw32* | os2*)
7133 cat <<'EOF' >> "${ofile}T"
7134 # This is a source program that is used to create dlls on Windows
7135 # Don't remove nor modify the starting and closing comments
7136 # /* ltdll.c starts here */
7137 # #define WIN32_LEAN_AND_MEAN
7138 # #include <windows.h>
7139 # #undef WIN32_LEAN_AND_MEAN
7140 # #include <stdio.h>
7142 # #ifndef __CYGWIN__
7143 # # ifdef __CYGWIN32__
7144 # # define __CYGWIN__ __CYGWIN32__
7148 # #ifdef __cplusplus
7151 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7152 # #ifdef __cplusplus
7157 # #include <cygwin/cygwin_dll.h>
7158 # DECLARE_CYGWIN_DLL( DllMain );
7160 # HINSTANCE __hDllInstance_base;
7163 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7165 # __hDllInstance_base = hInst;
7168 # /* ltdll.c ends here */
7169 # This is a source program that is used to create import libraries
7170 # on Windows for dlls which lack them. Don't remove nor modify the
7171 # starting and closing comments
7172 # /* impgen.c starts here */
7173 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7175 # This file is part of GNU libtool.
7177 # This program is free software; you can redistribute it and/or modify
7178 # it under the terms of the GNU General Public License as published by
7179 # the Free Software Foundation; either version 2 of the License, or
7180 # (at your option) any later version.
7182 # This program is distributed in the hope that it will be useful,
7183 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7185 # GNU General Public License for more details.
7187 # You should have received a copy of the GNU General Public License
7188 # along with this program; if not, write to the Free Software
7189 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7192 # #include <stdio.h> /* for printf() */
7193 # #include <unistd.h> /* for open(), lseek(), read() */
7194 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7195 # #include <string.h> /* for strdup() */
7197 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7199 # #define O_BINARY 0
7202 # static unsigned int
7203 # pe_get16 (fd, offset)
7207 # unsigned char b[2];
7208 # lseek (fd, offset, SEEK_SET);
7210 # return b[0] + (b[1]<<8);
7213 # static unsigned int
7214 # pe_get32 (fd, offset)
7218 # unsigned char b[4];
7219 # lseek (fd, offset, SEEK_SET);
7221 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7224 # static unsigned int
7228 # unsigned char *b = ptr;
7229 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7238 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7239 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7240 # unsigned long name_rvas, nexp;
7241 # unsigned char *expdata, *erva;
7242 # char *filename, *dll_name;
7244 # filename = argv[1];
7246 # dll = open(filename, O_RDONLY|O_BINARY);
7250 # dll_name = filename;
7252 # for (i=0; filename[i]; i++)
7253 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7254 # dll_name = filename + i +1;
7256 # pe_header_offset = pe_get32 (dll, 0x3c);
7257 # opthdr_ofs = pe_header_offset + 4 + 20;
7258 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7260 # if (num_entries < 1) /* no exports */
7263 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7264 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7265 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7266 # secptr = (pe_header_offset + 4 + 20 +
7267 # pe_get16 (dll, pe_header_offset + 4 + 16));
7270 # for (i = 0; i < nsections; i++)
7273 # unsigned long secptr1 = secptr + 40 * i;
7274 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7275 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7276 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7277 # lseek(dll, secptr1, SEEK_SET);
7278 # read(dll, sname, 8);
7279 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7281 # expptr = fptr + (export_rva - vaddr);
7282 # if (export_rva + export_size > vaddr + vsize)
7283 # export_size = vsize - (export_rva - vaddr);
7288 # expdata = (unsigned char*)malloc(export_size);
7289 # lseek (dll, expptr, SEEK_SET);
7290 # read (dll, expdata, export_size);
7291 # erva = expdata - export_rva;
7293 # nexp = pe_as32 (expdata+24);
7294 # name_rvas = pe_as32 (expdata+32);
7296 # printf ("EXPORTS\n");
7297 # for (i = 0; i<nexp; i++)
7299 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7300 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7305 # /* impgen.c ends here */
7311 # We use sed instead of cat because bash on DJGPP gets confused if
7312 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7313 # text mode, it properly converts lines to CR/LF. This bash problem
7314 # is reportedly fixed, but why not run on old versions too?
7315 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7317 mv -f "${ofile}T" "$ofile" || \
7318 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7326 # This can be used to rebuild libtool when needed
7327 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7329 # Always use our own libtool.
7330 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7332 # Prevent multiple expansion
7335 for ac_prog in 'bison -y' byacc
7337 # Extract the first word of "$ac_prog", so it can be a program name with args.
7338 set dummy $ac_prog; ac_word=$2
7339 echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341 if test "${ac_cv_prog_YACC+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 if test -n "$YACC"; then
7345 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_YACC="$ac_prog"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 YACC=$ac_cv_prog_YACC
7364 if test -n "$YACC"; then
7365 echo "$as_me:$LINENO: result: $YACC" >&5
7366 echo "${ECHO_T}$YACC" >&6
7368 echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7372 test -n "$YACC" && break
7374 test -n "$YACC" || YACC="yacc"
7377 ac_cpp='$CPP $CPPFLAGS'
7378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381 if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7384 echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386 if test "${ac_cv_prog_CC+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 if test -n "$CC"; then
7390 ac_cv_prog_CC="$CC" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 if test -n "$CC"; then
7410 echo "$as_me:$LINENO: result: $CC" >&5
7411 echo "${ECHO_T}$CC" >&6
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7418 if test -z "$ac_cv_prog_CC"; then
7420 # Extract the first word of "gcc", so it can be a program name with args.
7421 set dummy gcc; ac_word=$2
7422 echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 if test -n "$ac_ct_CC"; then
7428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_ac_ct_CC="gcc"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7447 if test -n "$ac_ct_CC"; then
7448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7449 echo "${ECHO_T}$ac_ct_CC" >&6
7451 echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7460 if test -z "$CC"; then
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}cc; ac_word=$2
7464 echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466 if test "${ac_cv_prog_CC+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 if test -n "$CC"; then
7470 ac_cv_prog_CC="$CC" # Let the user override the test.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_CC="${ac_tool_prefix}cc"
7480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 if test -n "$CC"; then
7490 echo "$as_me:$LINENO: result: $CC" >&5
7491 echo "${ECHO_T}$CC" >&6
7493 echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6
7498 if test -z "$ac_cv_prog_CC"; then
7500 # Extract the first word of "cc", so it can be a program name with args.
7501 set dummy cc; ac_word=$2
7502 echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 if test -n "$ac_ct_CC"; then
7508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_ac_ct_CC="cc"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7527 if test -n "$ac_ct_CC"; then
7528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7529 echo "${ECHO_T}$ac_ct_CC" >&6
7531 echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7541 if test -z "$CC"; then
7542 # Extract the first word of "cc", so it can be a program name with args.
7543 set dummy cc; ac_word=$2
7544 echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546 if test "${ac_cv_prog_CC+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 if test -n "$CC"; then
7550 ac_cv_prog_CC="$CC" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7561 ac_prog_rejected=yes
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 if test $ac_prog_rejected = yes; then
7572 # We found a bogon in the path, so make sure we never use it.
7573 set dummy $ac_cv_prog_CC
7575 if test $# != 0; then
7576 # We chose a different compiler from the bogus one.
7577 # However, it has the same basename, so the bogon will be chosen
7578 # first if we set CC to just the basename; use the full file name.
7580 set dummy "$as_dir/$ac_word" ${1+"$@"}
7588 if test -n "$CC"; then
7589 echo "$as_me:$LINENO: result: $CC" >&5
7590 echo "${ECHO_T}$CC" >&6
7592 echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7597 if test -z "$CC"; then
7598 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7603 echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7605 if test "${ac_cv_prog_CC+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 if test -n "$CC"; then
7609 ac_cv_prog_CC="$CC" # Let the user override the test.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 if test -n "$CC"; then
7629 echo "$as_me:$LINENO: result: $CC" >&5
7630 echo "${ECHO_T}$CC" >&6
7632 echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6
7636 test -n "$CC" && break
7639 if test -z "$CC"; then
7643 # Extract the first word of "$ac_prog", so it can be a program name with args.
7644 set dummy $ac_prog; ac_word=$2
7645 echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 if test -n "$ac_ct_CC"; then
7651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_ac_ct_CC="$ac_prog"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7670 if test -n "$ac_ct_CC"; then
7671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7672 echo "${ECHO_T}$ac_ct_CC" >&6
7674 echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7678 test -n "$ac_ct_CC" && break
7687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7688 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7689 { (exit 1); exit 1; }; }
7691 # Provide some information about the compiler.
7692 echo "$as_me:$LINENO:" \
7693 "checking for C compiler version" >&5
7694 ac_compiler=`set X $ac_compile; echo $2`
7695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7696 (eval $ac_compiler --version </dev/null >&5) 2>&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }
7700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7701 (eval $ac_compiler -v </dev/null >&5) 2>&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }
7705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7706 (eval $ac_compiler -V </dev/null >&5) 2>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }
7711 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7712 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7713 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7718 #include "confdefs.h"
7720 #ifdef F77_DUMMY_MAIN
7724 int F77_DUMMY_MAIN() { return 1; }
7737 rm -f conftest.$ac_objext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739 (eval $ac_compile) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7751 echo "$as_me: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7755 rm -f conftest.$ac_objext conftest.$ac_ext
7756 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7759 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7760 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7761 GCC=`test $ac_compiler_gnu = yes && echo yes`
7762 ac_test_CFLAGS=${CFLAGS+set}
7763 ac_save_CFLAGS=$CFLAGS
7765 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7766 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7767 if test "${ac_cv_prog_cc_g+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 cat >conftest.$ac_ext <<_ACEOF
7771 #line $LINENO "configure"
7772 #include "confdefs.h"
7774 #ifdef F77_DUMMY_MAIN
7778 int F77_DUMMY_MAIN() { return 1; }
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -s conftest.$ac_objext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7802 echo "$as_me: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7810 if test "$ac_test_CFLAGS" = set; then
7811 CFLAGS=$ac_save_CFLAGS
7812 elif test $ac_cv_prog_cc_g = yes; then
7813 if test "$GCC" = yes; then
7819 if test "$GCC" = yes; then
7825 # Some people use a C++ compiler to compile C. Since we use `exit',
7826 # in C++ we need to declare it. In case someone uses the same compiler
7827 # for both compiling C and C++ we need to have the C++ compiler decide
7828 # the declaration of exit, since it's the most demanding environment.
7829 cat >conftest.$ac_ext <<_ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 for ac_declaration in \
7848 '#include <stdlib.h>' \
7849 'extern "C" void std::exit (int) throw (); using std::exit;' \
7850 'extern "C" void std::exit (int); using std::exit;' \
7851 'extern "C" void exit (int) throw ();' \
7852 'extern "C" void exit (int);' \
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7860 #ifdef F77_DUMMY_MAIN
7864 int F77_DUMMY_MAIN() { return 1; }
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7888 echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7892 rm -f conftest.$ac_objext conftest.$ac_ext
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7895 #include "confdefs.h"
7897 #ifdef F77_DUMMY_MAIN
7901 int F77_DUMMY_MAIN() { return 1; }
7911 rm -f conftest.$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913 (eval $ac_compile) 2>&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -s conftest.$ac_objext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7925 echo "$as_me: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 rm -f conftest.$ac_objext conftest.$ac_ext
7931 if test -n "$ac_declaration"; then
7932 echo '#ifdef __cplusplus' >>confdefs.h
7933 echo $ac_declaration >>confdefs.h
7934 echo '#endif' >>confdefs.h
7938 echo "$as_me: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7941 rm -f conftest.$ac_objext conftest.$ac_ext
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948 depcc="$CC" am_compiler_list=
7950 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7952 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7956 # We make a subdir and do the tests there. Otherwise we can end up
7957 # making bogus files that we don't know about and never remove. For
7958 # instance it was reported that on HP-UX the gcc test will end up
7959 # making a dummy file named `D' -- because `-MD' means `put the output
7962 # Copy depcomp to subdir because otherwise we won't find it if we're
7963 # using a relative directory.
7964 cp "$am_depcomp" conftest.dir
7967 am_cv_CC_dependencies_compiler_type=none
7968 if test "$am_compiler_list" = ""; then
7969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7971 for depmode in $am_compiler_list; do
7972 # We need to recreate these files for each test, as the compiler may
7973 # overwrite some of them when testing with obscure command lines.
7974 # This happens at least with the AIX C compiler.
7975 echo '#include "conftest.h"' > conftest.c
7976 echo 'int i;' > conftest.h
7977 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7981 # after this tag, mechanisms are not by side-effect, so they'll
7982 # only be used when explicitly requested
7983 if test "x$enable_dependency_tracking" = xyes; then
7991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7992 # mode. It turns out that the SunPro C++ compiler does not properly
7993 # handle `-M -o', and we need to detect this.
7994 if depmode=$depmode \
7995 source=conftest.c object=conftest.o \
7996 depfile=conftest.Po tmpdepfile=conftest.TPo \
7997 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7998 grep conftest.h conftest.Po > /dev/null 2>&1 &&
7999 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8000 am_cv_CC_dependencies_compiler_type=$depmode
8008 am_cv_CC_dependencies_compiler_type=none
8012 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8013 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8014 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8017 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8018 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8019 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8020 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 cat >conftest.make <<\_ACEOF
8025 @echo 'ac_maketemp="${MAKE}"'
8027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8028 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8029 if test -n "$ac_maketemp"; then
8030 eval ac_cv_prog_make_${ac_make}_set=yes
8032 eval ac_cv_prog_make_${ac_make}_set=no
8036 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8037 echo "$as_me:$LINENO: result: yes" >&5
8038 echo "${ECHO_T}yes" >&6
8041 echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8043 SET_MAKE="MAKE=${MAKE-make}"
8047 # Checks for libraries.
8048 # FIXME: Replace `main' with a function in `-lX11':
8049 # AC_CHECK_LIB([X11], [main])
8050 # FIXME: Replace `main' with a function in `-ldl':
8051 # AC_CHECK_LIB([dl], [main])
8052 # FIXME: Replace `main' with a function in `-lefence':
8053 # AC_CHECK_LIB([efence], [main])
8054 # FIXME: Replace `main' with a function in `-lm':
8055 # AC_CHECK_LIB([m], [main])
8056 # FIXME: Replace `main' with a function in `-lproj':
8057 # AC_CHECK_LIB([proj], [main])
8059 # Checks for header files.
8060 echo "$as_me:$LINENO: checking for X" >&5
8061 echo $ECHO_N "checking for X... $ECHO_C" >&6
8064 # Check whether --with-x or --without-x was given.
8065 if test "${with_x+set}" = set; then
8069 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8070 if test "x$with_x" = xno; then
8071 # The user explicitly disabled X.
8074 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8075 # Both variables are already set.
8078 if test "${ac_cv_have_x+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 # One or both of the vars are not set, and there is no cached value.
8082 ac_x_includes=no ac_x_libraries=no
8084 if mkdir conftest.dir; then
8086 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8087 cat >Imakefile <<'_ACEOF'
8089 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8091 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8093 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8095 for ac_extension in a so sl; do
8096 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8097 test -f $ac_im_libdir/libX11.$ac_extension; then
8098 ac_im_usrlibdir=$ac_im_libdir; break
8101 # Screen out bogus values from the imake configuration. They are
8102 # bogus both because they are the default anyway, and because
8103 # using them would break gcc on systems where it needs fixed includes.
8104 case $ac_im_incroot in
8106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8108 case $ac_im_usrlibdir in
8110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8117 # Standard set of common directories for X headers.
8118 # Check X11 before X11Rn because it is often a symlink to the current release.
8130 /usr/local/X11/include
8131 /usr/local/X11R6/include
8132 /usr/local/X11R5/include
8133 /usr/local/X11R4/include
8135 /usr/local/include/X11
8136 /usr/local/include/X11R6
8137 /usr/local/include/X11R5
8138 /usr/local/include/X11R4
8142 /usr/XFree86/include/X11
8146 /usr/unsupported/include
8148 /usr/local/x11r5/include
8149 /usr/lpp/Xamples/include
8151 /usr/openwin/include
8152 /usr/openwin/share/include'
8154 if test "$ac_x_includes" = no; then
8155 # Guess where to find include files, by looking for Intrinsic.h.
8156 # First, try using that file with no special directory specified.
8157 cat >conftest.$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8159 #include "confdefs.h"
8160 #include <X11/Intrinsic.h>
8162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8165 egrep -v '^ *\+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } >/dev/null; then
8170 if test -s conftest.err; then
8171 ac_cpp_err=$ac_c_preproc_warn_flag
8178 if test -z "$ac_cpp_err"; then
8179 # We can compile using X headers with no special include directory.
8182 echo "$as_me: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8184 for ac_dir in $ac_x_header_dirs; do
8185 if test -r "$ac_dir/X11/Intrinsic.h"; then
8186 ac_x_includes=$ac_dir
8191 rm -f conftest.err conftest.$ac_ext
8192 fi # $ac_x_includes = no
8194 if test "$ac_x_libraries" = no; then
8195 # Check for the libraries.
8196 # See if we find them without any special options.
8197 # Don't add to $LIBS permanently.
8200 cat >conftest.$ac_ext <<_ACEOF
8201 #line $LINENO "configure"
8202 #include "confdefs.h"
8203 #include <X11/Intrinsic.h>
8204 #ifdef F77_DUMMY_MAIN
8208 int F77_DUMMY_MAIN() { return 1; }
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8231 # We can link X programs with no special library path.
8234 echo "$as_me: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8237 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8239 # Don't even attempt the hair of trying to link an X program!
8240 for ac_extension in a so sl; do
8241 if test -r $ac_dir/libXt.$ac_extension; then
8242 ac_x_libraries=$ac_dir
8248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8249 fi # $ac_x_libraries = no
8251 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8252 # Didn't find X anywhere. Cache the known absence of X.
8253 ac_cv_have_x="have_x=no"
8255 # Record where we found X for the cache.
8256 ac_cv_have_x="have_x=yes \
8257 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8262 eval "$ac_cv_have_x"
8265 if test "$have_x" != yes; then
8266 echo "$as_me:$LINENO: result: $have_x" >&5
8267 echo "${ECHO_T}$have_x" >&6
8270 # If each of the values was on the command line, it overrides each guess.
8271 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8272 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8273 # Update the cache value to reflect the command line values.
8274 ac_cv_have_x="have_x=yes \
8275 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8276 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8277 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8280 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8281 # for constant arguments. Useless!
8282 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8283 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8284 if test "${ac_cv_working_alloca_h+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 cat >conftest.$ac_ext <<_ACEOF
8288 #line $LINENO "configure"
8289 #include "confdefs.h"
8291 #ifdef F77_DUMMY_MAIN
8295 int F77_DUMMY_MAIN() { return 1; }
8300 char *p = (char *) alloca (2 * sizeof (int));
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -s conftest$ac_exeext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 ac_cv_working_alloca_h=yes
8319 echo "$as_me: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8321 ac_cv_working_alloca_h=no
8323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8327 if test $ac_cv_working_alloca_h = yes; then
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_ALLOCA_H 1
8335 echo "$as_me:$LINENO: checking for alloca" >&5
8336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8337 if test "${ac_cv_func_alloca_works+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 cat >conftest.$ac_ext <<_ACEOF
8341 #line $LINENO "configure"
8342 #include "confdefs.h"
8344 # define alloca __builtin_alloca
8347 # include <malloc.h>
8348 # define alloca _alloca
8351 # include <alloca.h>
8356 # ifndef alloca /* predefined by HP cc +Olibcalls */
8364 #ifdef F77_DUMMY_MAIN
8368 int F77_DUMMY_MAIN() { return 1; }
8373 char *p = (char *) alloca (1);
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380 (eval $ac_link) 2>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_func_alloca_works=yes
8392 echo "$as_me: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8394 ac_cv_func_alloca_works=no
8396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8399 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8401 if test $ac_cv_func_alloca_works = yes; then
8403 cat >>confdefs.h <<\_ACEOF
8404 #define HAVE_ALLOCA 1
8408 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8409 # that cause trouble. Some versions do not even contain alloca or
8410 # contain a buggy version. If you still want to use their alloca,
8411 # use ar to extract alloca.o from them instead of compiling alloca.c.
8413 ALLOCA=alloca.$ac_objext
8415 cat >>confdefs.h <<\_ACEOF
8420 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8421 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8422 if test "${ac_cv_os_cray+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 cat >conftest.$ac_ext <<_ACEOF
8426 #line $LINENO "configure"
8427 #include "confdefs.h"
8428 #if defined(CRAY) && ! defined(CRAY2)
8435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8436 egrep "webecray" >/dev/null 2>&1; then
8444 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8445 echo "${ECHO_T}$ac_cv_os_cray" >&6
8446 if test $ac_cv_os_cray = yes; then
8447 for ac_func in _getb67 GETB67 getb67; do
8448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8449 echo "$as_me:$LINENO: checking for $ac_func" >&5
8450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8451 if eval "test \"\${$as_ac_var+set}\" = set"; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8456 #include "confdefs.h"
8457 /* System header to define __stub macros and hopefully few prototypes,
8458 which can conflict with char $ac_func (); below. */
8460 /* Override any gcc2 internal prototype to avoid an error. */
8464 /* We use char because int might match the return type of a gcc2
8465 builtin and then its argument prototype would still apply. */
8469 #ifdef F77_DUMMY_MAIN
8473 int F77_DUMMY_MAIN() { return 1; }
8478 /* The GNU C library defines this for functions which it implements
8479 to always fail with ENOSYS. Some functions are actually named
8480 something starting with __ and the normal name is an alias. */
8481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493 (eval $ac_link) 2>&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 eval "$as_ac_var=yes"
8505 echo "$as_me: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8507 eval "$as_ac_var=no"
8509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8513 if test `eval echo '${'$as_ac_var'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define CRAY_STACKSEG_END $ac_func
8525 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8526 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8527 if test "${ac_cv_c_stack_direction+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 if test "$cross_compiling" = yes; then
8531 ac_cv_c_stack_direction=0
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8535 #include "confdefs.h"
8537 find_stack_direction ()
8539 static char *addr = 0;
8544 return find_stack_direction ();
8547 return (&dummy > addr) ? 1 : -1;
8553 exit (find_stack_direction () < 0);
8556 rm -f conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_c_stack_direction=1
8569 echo "$as_me: program exited with status $ac_status" >&5
8570 echo "$as_me: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8573 ac_cv_c_stack_direction=-1
8575 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8578 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8579 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8581 cat >>confdefs.h <<_ACEOF
8582 #define STACK_DIRECTION $ac_cv_c_stack_direction
8588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8590 if test "${ac_cv_header_stdc+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8595 #include "confdefs.h"
8602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8605 egrep -v '^ *\+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } >/dev/null; then
8610 if test -s conftest.err; then
8611 ac_cpp_err=$ac_c_preproc_warn_flag
8618 if test -z "$ac_cpp_err"; then
8619 ac_cv_header_stdc=yes
8621 echo "$as_me: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8623 ac_cv_header_stdc=no
8625 rm -f conftest.err conftest.$ac_ext
8627 if test $ac_cv_header_stdc = yes; then
8628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8629 cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 #include "confdefs.h"
8635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8636 egrep "memchr" >/dev/null 2>&1; then
8639 ac_cv_header_stdc=no
8645 if test $ac_cv_header_stdc = yes; then
8646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8647 cat >conftest.$ac_ext <<_ACEOF
8648 #line $LINENO "configure"
8649 #include "confdefs.h"
8653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8654 egrep "free" >/dev/null 2>&1; then
8657 ac_cv_header_stdc=no
8663 if test $ac_cv_header_stdc = yes; then
8664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8665 if test "$cross_compiling" = yes; then
8668 cat >conftest.$ac_ext <<_ACEOF
8669 #line $LINENO "configure"
8670 #include "confdefs.h"
8672 #if ((' ' & 0x0FF) == 0x020)
8673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8676 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8677 || ('j' <= (c) && (c) <= 'r') \
8678 || ('s' <= (c) && (c) <= 'z'))
8679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8687 for (i = 0; i < 256; i++)
8688 if (XOR (islower (i), ISLOWER (i))
8689 || toupper (i) != TOUPPER (i))
8694 rm -f conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8707 echo "$as_me: program exited with status $ac_status" >&5
8708 echo "$as_me: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8711 ac_cv_header_stdc=no
8713 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8717 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8718 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8719 if test $ac_cv_header_stdc = yes; then
8721 cat >>confdefs.h <<\_ACEOF
8722 #define STDC_HEADERS 1
8734 for ac_header in limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h
8736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo "$as_me:$LINENO: checking for $ac_header" >&5
8739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8746 # Is the header compilable?
8747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8751 #include "confdefs.h"
8752 $ac_includes_default
8753 #include <$ac_header>
8755 rm -f conftest.$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -s conftest.$ac_objext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 ac_header_compiler=yes
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 ac_header_compiler=no
8773 rm -f conftest.$ac_objext conftest.$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775 echo "${ECHO_T}$ac_header_compiler" >&6
8777 # Is the header present?
8778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line $LINENO "configure"
8782 #include "confdefs.h"
8783 #include <$ac_header>
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8788 egrep -v '^ *\+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } >/dev/null; then
8793 if test -s conftest.err; then
8794 ac_cpp_err=$ac_c_preproc_warn_flag
8801 if test -z "$ac_cpp_err"; then
8802 ac_header_preproc=yes
8804 echo "$as_me: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 ac_header_preproc=no
8808 rm -f conftest.err conftest.$ac_ext
8809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8810 echo "${ECHO_T}$ac_header_preproc" >&6
8812 # So? What about this header?
8813 case $ac_header_compiler:$ac_header_preproc in
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8827 echo "$as_me:$LINENO: checking for $ac_header" >&5
8828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 eval "$as_ac_Header=$ac_header_preproc"
8834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8848 # Checks for typedefs, structures, and compiler characteristics.
8849 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8850 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8851 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 ac_cv_prog_cc_stdc=no
8856 cat >conftest.$ac_ext <<_ACEOF
8857 #line $LINENO "configure"
8858 #include "confdefs.h"
8861 #include <sys/types.h>
8862 #include <sys/stat.h>
8863 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8864 struct buf { int x; };
8865 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8866 static char *e (p, i)
8872 static char *f (char * (*g) (char **, int), char **p, ...)
8877 s = g (p, va_arg (v,int));
8881 int test (int i, double x);
8882 struct s1 {int (*f) (int a);};
8883 struct s2 {int (*f) (double a);};
8884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8887 #ifdef F77_DUMMY_MAIN
8891 int F77_DUMMY_MAIN() { return 1; }
8896 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8901 # Don't try gcc -ansi; that turns off useful extensions and
8902 # breaks some systems' header files.
8903 # AIX -qlanglvl=ansi
8904 # Ultrix and OSF/1 -std1
8905 # HP-UX 10.20 and later -Ae
8906 # HP-UX older versions -Aa -D_HPUX_SOURCE
8907 # SVR4 -Xc -D__EXTENSIONS__
8908 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8910 CC="$ac_save_CC $ac_arg"
8911 rm -f conftest.$ac_objext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913 (eval $ac_compile) 2>&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -s conftest.$ac_objext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_cv_prog_cc_stdc=$ac_arg
8926 echo "$as_me: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8929 rm -f conftest.$ac_objext
8931 rm -f conftest.$ac_ext conftest.$ac_objext
8936 case "x$ac_cv_prog_cc_stdc" in
8938 echo "$as_me:$LINENO: result: none needed" >&5
8939 echo "${ECHO_T}none needed" >&6 ;;
8941 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8942 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8943 CC="$CC $ac_cv_prog_cc_stdc" ;;
8946 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8947 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8948 if test "${ac_cv_c_const+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8952 #line $LINENO "configure"
8953 #include "confdefs.h"
8955 #ifdef F77_DUMMY_MAIN
8959 int F77_DUMMY_MAIN() { return 1; }
8964 /* FIXME: Include the comments suggested by Paul. */
8966 /* Ultrix mips cc rejects this. */
8967 typedef int charset[2];
8969 /* SunOS 4.1.1 cc rejects this. */
8970 char const *const *ccp;
8972 /* NEC SVR4.0.2 mips cc rejects this. */
8973 struct point {int x, y;};
8974 static struct point const zero = {0,0};
8975 /* AIX XL C 1.02.0.0 rejects this.
8976 It does not let you subtract one const X* pointer from another in
8977 an arm of an if-expression whose if-part is not a constant
8979 const char *g = "string";
8980 ccp = &g + (g ? g-g : 0);
8981 /* HPUX 7.0 cc rejects these. */
8984 ccp = (char const *const *) p;
8985 { /* SCO 3.2v4 cc rejects this. */
8987 char const *s = 0 ? (char *) 0 : (char const *) 0;
8991 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8993 const int *foo = &x[0];
8996 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8997 typedef const int *iptr;
9001 { /* AIX XL C 1.02.0.0 rejects this saying
9002 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9003 struct s { int j; const int *ap[3]; };
9004 struct s *b; b->j = 5;
9006 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9015 rm -f conftest.$ac_objext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9017 (eval $ac_compile) 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9029 echo "$as_me: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9033 rm -f conftest.$ac_objext conftest.$ac_ext
9035 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9036 echo "${ECHO_T}$ac_cv_c_const" >&6
9037 if test $ac_cv_c_const = no; then
9039 cat >>confdefs.h <<\_ACEOF
9045 echo "$as_me:$LINENO: checking for size_t" >&5
9046 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9047 if test "${ac_cv_type_size_t+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9051 #line $LINENO "configure"
9052 #include "confdefs.h"
9053 $ac_includes_default
9054 #ifdef F77_DUMMY_MAIN
9058 int F77_DUMMY_MAIN() { return 1; }
9065 if (sizeof (size_t))
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -s conftest.$ac_objext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 ac_cv_type_size_t=yes
9085 echo "$as_me: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 ac_cv_type_size_t=no
9089 rm -f conftest.$ac_objext conftest.$ac_ext
9091 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9092 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9093 if test $ac_cv_type_size_t = yes; then
9097 cat >>confdefs.h <<_ACEOF
9098 #define size_t unsigned
9103 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9104 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9105 if test "${ac_cv_struct_tm+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9109 #line $LINENO "configure"
9110 #include "confdefs.h"
9111 #include <sys/types.h>
9114 #ifdef F77_DUMMY_MAIN
9118 int F77_DUMMY_MAIN() { return 1; }
9123 struct tm *tp; tp->tm_sec;
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_cv_struct_tm=time.h
9142 echo "$as_me: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 ac_cv_struct_tm=sys/time.h
9146 rm -f conftest.$ac_objext conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9149 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9150 if test $ac_cv_struct_tm = sys/time.h; then
9152 cat >>confdefs.h <<\_ACEOF
9153 #define TM_IN_SYS_TIME 1
9159 # Checks for library functions.
9160 echo "$as_me:$LINENO: checking for error_at_line" >&5
9161 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9162 if test "${ac_cv_lib_error_at_line+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 #include "confdefs.h"
9169 #ifdef F77_DUMMY_MAIN
9173 int F77_DUMMY_MAIN() { return 1; }
9178 error_at_line (0, 0, "", 0, "");
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
9189 { ac_try='test -s conftest$ac_exeext'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195 ac_cv_lib_error_at_line=yes
9197 echo "$as_me: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9199 ac_cv_lib_error_at_line=no
9201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9203 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9204 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9205 if test $ac_cv_lib_error_at_line = no; then
9206 LIBOBJS="$LIBOBJS error.$ac_objext"
9210 for ac_header in stdlib.h
9212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9214 echo "$as_me:$LINENO: checking for $ac_header" >&5
9215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9222 # Is the header compilable?
9223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9226 #line $LINENO "configure"
9227 #include "confdefs.h"
9228 $ac_includes_default
9229 #include <$ac_header>
9231 rm -f conftest.$ac_objext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233 (eval $ac_compile) 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -s conftest.$ac_objext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 ac_header_compiler=yes
9245 echo "$as_me: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9247 ac_header_compiler=no
9249 rm -f conftest.$ac_objext conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9251 echo "${ECHO_T}$ac_header_compiler" >&6
9253 # Is the header present?
9254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9256 cat >conftest.$ac_ext <<_ACEOF
9257 #line $LINENO "configure"
9258 #include "confdefs.h"
9259 #include <$ac_header>
9261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9264 egrep -v '^ *\+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } >/dev/null; then
9269 if test -s conftest.err; then
9270 ac_cpp_err=$ac_c_preproc_warn_flag
9277 if test -z "$ac_cpp_err"; then
9278 ac_header_preproc=yes
9280 echo "$as_me: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9282 ac_header_preproc=no
9284 rm -f conftest.err conftest.$ac_ext
9285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9286 echo "${ECHO_T}$ac_header_preproc" >&6
9288 # So? What about this header?
9289 case $ac_header_compiler:$ac_header_preproc in
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9303 echo "$as_me:$LINENO: checking for $ac_header" >&5
9304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 eval "$as_ac_Header=$ac_header_preproc"
9310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9323 echo "$as_me:$LINENO: checking for working malloc" >&5
9324 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
9325 if test "${ac_cv_func_malloc_works+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 if test "$cross_compiling" = yes; then
9329 ac_cv_func_malloc_works=no
9331 cat >conftest.$ac_ext <<_ACEOF
9332 #line $LINENO "configure"
9333 #include "confdefs.h"
9334 #if STDC_HEADERS || HAVE_STDLIB_H
9335 # include <stdlib.h>
9340 #ifdef F77_DUMMY_MAIN
9344 int F77_DUMMY_MAIN() { return 1; }
9349 exit (malloc (0) ? 0 : 1);
9354 rm -f conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_func_malloc_works=yes
9367 echo "$as_me: program exited with status $ac_status" >&5
9368 echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9371 ac_cv_func_malloc_works=no
9373 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9376 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
9377 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
9378 if test $ac_cv_func_malloc_works = yes; then
9380 cat >>confdefs.h <<\_ACEOF
9381 #define HAVE_MALLOC 1
9388 for ac_header in stdlib.h unistd.h
9390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9392 echo "$as_me:$LINENO: checking for $ac_header" >&5
9393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9400 # Is the header compilable?
9401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9403 cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9406 $ac_includes_default
9407 #include <$ac_header>
9409 rm -f conftest.$ac_objext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9411 (eval $ac_compile) 2>&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -s conftest.$ac_objext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421 ac_header_compiler=yes
9423 echo "$as_me: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9425 ac_header_compiler=no
9427 rm -f conftest.$ac_objext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9429 echo "${ECHO_T}$ac_header_compiler" >&6
9431 # Is the header present?
9432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9436 #include "confdefs.h"
9437 #include <$ac_header>
9439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9442 egrep -v '^ *\+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } >/dev/null; then
9447 if test -s conftest.err; then
9448 ac_cpp_err=$ac_c_preproc_warn_flag
9455 if test -z "$ac_cpp_err"; then
9456 ac_header_preproc=yes
9458 echo "$as_me: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9460 ac_header_preproc=no
9462 rm -f conftest.err conftest.$ac_ext
9463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9464 echo "${ECHO_T}$ac_header_preproc" >&6
9466 # So? What about this header?
9467 case $ac_header_compiler:$ac_header_preproc in
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9481 echo "$as_me:$LINENO: checking for $ac_header" >&5
9482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 eval "$as_ac_Header=$ac_header_preproc"
9488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9493 cat >>confdefs.h <<_ACEOF
9494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9502 for ac_func in getpagesize
9504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9505 echo "$as_me:$LINENO: checking for $ac_func" >&5
9506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9507 if eval "test \"\${$as_ac_var+set}\" = set"; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9511 #line $LINENO "configure"
9512 #include "confdefs.h"
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char $ac_func (); below. */
9516 /* Override any gcc2 internal prototype to avoid an error. */
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9525 #ifdef F77_DUMMY_MAIN
9529 int F77_DUMMY_MAIN() { return 1; }
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -s conftest$ac_exeext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 eval "$as_ac_var=yes"
9561 echo "$as_me: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 eval "$as_ac_var=no"
9565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9569 if test `eval echo '${'$as_ac_var'}'` = yes; then
9570 cat >>confdefs.h <<_ACEOF
9571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9577 echo "$as_me:$LINENO: checking for working mmap" >&5
9578 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9579 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 if test "$cross_compiling" = yes; then
9583 ac_cv_func_mmap_fixed_mapped=no
9585 cat >conftest.$ac_ext <<_ACEOF
9586 #line $LINENO "configure"
9587 #include "confdefs.h"
9588 $ac_includes_default
9589 /* malloc might have been renamed as rpl_malloc. */
9592 /* Thanks to Mike Haertel and Jim Avera for this test.
9593 Here is a matrix of mmap possibilities:
9594 mmap private not fixed
9595 mmap private fixed at somewhere currently unmapped
9596 mmap private fixed at somewhere already mapped
9597 mmap shared not fixed
9598 mmap shared fixed at somewhere currently unmapped
9599 mmap shared fixed at somewhere already mapped
9600 For private mappings, we should verify that changes cannot be read()
9601 back from the file, nor mmap's back from the file at a different
9602 address. (There have been systems where private was not correctly
9603 implemented like the infamous i386 svr4.0, and systems where the
9604 VM page cache was not coherent with the file system buffer cache
9605 like early versions of FreeBSD and possibly contemporary NetBSD.)
9606 For shared mappings, we should conversely verify that changes get
9607 propagated back to all the places they're supposed to be.
9609 Grep wants private fixed already mapped.
9610 The main things grep needs to know about mmap are:
9611 * does it exist and is it safe to write into the mmap'd area
9612 * how to use it (BSD variants) */
9615 #include <sys/mman.h>
9617 #if !STDC_HEADERS && !HAVE_STDLIB_H
9621 /* This mess was copied from the GNU getpagesize.h. */
9622 #if !HAVE_GETPAGESIZE
9623 /* Assume that all systems that can run configure have sys/param.h. */
9624 # if !HAVE_SYS_PARAM_H
9625 # define HAVE_SYS_PARAM_H 1
9628 # ifdef _SC_PAGESIZE
9629 # define getpagesize() sysconf(_SC_PAGESIZE)
9630 # else /* no _SC_PAGESIZE */
9631 # if HAVE_SYS_PARAM_H
9632 # include <sys/param.h>
9633 # ifdef EXEC_PAGESIZE
9634 # define getpagesize() EXEC_PAGESIZE
9635 # else /* no EXEC_PAGESIZE */
9637 # define getpagesize() NBPG * CLSIZE
9640 # endif /* no CLSIZE */
9641 # else /* no NBPG */
9643 # define getpagesize() NBPC
9644 # else /* no NBPC */
9646 # define getpagesize() PAGESIZE
9647 # endif /* PAGESIZE */
9648 # endif /* no NBPC */
9649 # endif /* no NBPG */
9650 # endif /* no EXEC_PAGESIZE */
9651 # else /* no HAVE_SYS_PARAM_H */
9652 # define getpagesize() 8192 /* punt totally */
9653 # endif /* no HAVE_SYS_PARAM_H */
9654 # endif /* no _SC_PAGESIZE */
9656 #endif /* no HAVE_GETPAGESIZE */
9661 char *data, *data2, *data3;
9665 pagesize = getpagesize ();
9667 /* First, make a file with some known garbage in it. */
9668 data = (char *) malloc (pagesize);
9671 for (i = 0; i < pagesize; ++i)
9672 *(data + i) = rand ();
9674 fd = creat ("conftest.mmap", 0600);
9677 if (write (fd, data, pagesize) != pagesize)
9681 /* Next, try to mmap the file at a fixed address which already has
9682 something else allocated at it. If we can, also make sure that
9683 we see the same garbage. */
9684 fd = open ("conftest.mmap", O_RDWR);
9687 data2 = (char *) malloc (2 * pagesize);
9690 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9691 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9694 for (i = 0; i < pagesize; ++i)
9695 if (*(data + i) != *(data2 + i))
9698 /* Finally, make sure that changes to the mapped area do not
9699 percolate back to the file as seen by read(). (This is a bug on
9700 some variants of i386 svr4.0.) */
9701 for (i = 0; i < pagesize; ++i)
9702 *(data2 + i) = *(data2 + i) + 1;
9703 data3 = (char *) malloc (pagesize);
9706 if (read (fd, data3, pagesize) != pagesize)
9708 for (i = 0; i < pagesize; ++i)
9709 if (*(data + i) != *(data3 + i))
9715 rm -f conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_func_mmap_fixed_mapped=yes
9728 echo "$as_me: program exited with status $ac_status" >&5
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 ac_cv_func_mmap_fixed_mapped=no
9734 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9738 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9739 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9741 cat >>confdefs.h <<\_ACEOF
9748 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9749 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9750 if test "${ac_cv_type_signal+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 cat >conftest.$ac_ext <<_ACEOF
9754 #line $LINENO "configure"
9755 #include "confdefs.h"
9756 #include <sys/types.h>
9762 extern "C" void (*signal (int, void (*)(int)))(int);
9764 void (*signal ()) ();
9767 #ifdef F77_DUMMY_MAIN
9771 int F77_DUMMY_MAIN() { return 1; }
9781 rm -f conftest.$ac_objext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9783 (eval $ac_compile) 2>&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -s conftest.$ac_objext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_type_signal=void
9795 echo "$as_me: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9797 ac_cv_type_signal=int
9799 rm -f conftest.$ac_objext conftest.$ac_ext
9801 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9802 echo "${ECHO_T}$ac_cv_type_signal" >&6
9804 cat >>confdefs.h <<_ACEOF
9805 #define RETSIGTYPE $ac_cv_type_signal
9809 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9810 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
9811 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 rm -f conftest.sym conftest.file
9816 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9817 if test "$cross_compiling" = yes; then
9818 ac_cv_func_lstat_dereferences_slashed_symlink=no
9820 cat >conftest.$ac_ext <<_ACEOF
9821 #line $LINENO "configure"
9822 #include "confdefs.h"
9823 $ac_includes_default
9824 #ifdef F77_DUMMY_MAIN
9828 int F77_DUMMY_MAIN() { return 1; }
9834 /* Linux will dereference the symlink and fail.
9835 That is better in the sense that it means we will not
9836 have to compile and use the lstat wrapper. */
9837 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
9842 rm -f conftest$ac_exeext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9855 echo "$as_me: program exited with status $ac_status" >&5
9856 echo "$as_me: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9859 ac_cv_func_lstat_dereferences_slashed_symlink=no
9861 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9864 # If the `ln -s' command failed, then we probably don't even
9865 # have an lstat function.
9866 ac_cv_func_lstat_dereferences_slashed_symlink=no
9868 rm -f conftest.sym conftest.file
9871 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9872 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
9874 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9876 cat >>confdefs.h <<_ACEOF
9877 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9881 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9882 LIBOBJS="$LIBOBJS lstat.$ac_objext"
9885 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9886 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
9887 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 if test "$cross_compiling" = yes; then
9891 ac_cv_func_stat_empty_string_bug=yes
9893 cat >conftest.$ac_ext <<_ACEOF
9894 #line $LINENO "configure"
9895 #include "confdefs.h"
9896 $ac_includes_default
9897 #ifdef F77_DUMMY_MAIN
9901 int F77_DUMMY_MAIN() { return 1; }
9907 exit (stat ("", &sbuf) ? 1 : 0);
9912 rm -f conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_func_stat_empty_string_bug=yes
9925 echo "$as_me: program exited with status $ac_status" >&5
9926 echo "$as_me: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9929 ac_cv_func_stat_empty_string_bug=no
9931 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9934 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
9935 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
9936 if test $ac_cv_func_stat_empty_string_bug = yes; then
9937 LIBOBJS="$LIBOBJS stat.$ac_objext"
9939 cat >>confdefs.h <<_ACEOF
9940 #define HAVE_STAT_EMPTY_STRING_BUG 1
9945 echo "$as_me:$LINENO: checking for working strtod" >&5
9946 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
9947 if test "${ac_cv_func_strtod+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 if test "$cross_compiling" = yes; then
9951 ac_cv_func_strtod=no
9953 cat >conftest.$ac_ext <<_ACEOF
9954 #line $LINENO "configure"
9955 #include "confdefs.h"
9962 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9963 char *string = " +69";
9966 value = strtod (string, &term);
9967 if (value != 69 || term != (string + 4))
9972 /* Under Solaris 2.4, strtod returns the wrong value for the
9973 terminating character under some conditions. */
9974 char *string = "NaN";
9976 strtod (string, &term);
9977 if (term != string && *(term - 1) == 0)
9984 rm -f conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_func_strtod=yes
9997 echo "$as_me: program exited with status $ac_status" >&5
9998 echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 ( exit $ac_status )
10001 ac_cv_func_strtod=no
10003 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10006 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10007 echo "${ECHO_T}$ac_cv_func_strtod" >&6
10008 if test $ac_cv_func_strtod = no; then
10009 LIBOBJS="$LIBOBJS strtod.$ac_objext"
10010 echo "$as_me:$LINENO: checking for pow" >&5
10011 echo $ECHO_N "checking for pow... $ECHO_C" >&6
10012 if test "${ac_cv_func_pow+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10016 #line $LINENO "configure"
10017 #include "confdefs.h"
10018 /* System header to define __stub macros and hopefully few prototypes,
10019 which can conflict with char pow (); below. */
10020 #include <assert.h>
10021 /* Override any gcc2 internal prototype to avoid an error. */
10025 /* We use char because int might match the return type of a gcc2
10026 builtin and then its argument prototype would still apply. */
10030 #ifdef F77_DUMMY_MAIN
10031 # ifdef __cplusplus
10034 int F77_DUMMY_MAIN() { return 1; }
10039 /* The GNU C library defines this for functions which it implements
10040 to always fail with ENOSYS. Some functions are actually named
10041 something starting with __ and the normal name is an alias. */
10042 #if defined (__stub_pow) || defined (__stub___pow)
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10066 echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10073 echo "${ECHO_T}$ac_cv_func_pow" >&6
10075 if test $ac_cv_func_pow = no; then
10076 echo "$as_me:$LINENO: checking for pow in -lm" >&5
10077 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10078 if test "${ac_cv_lib_m_pow+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 ac_check_lib_save_LIBS=$LIBS
10083 cat >conftest.$ac_ext <<_ACEOF
10084 #line $LINENO "configure"
10085 #include "confdefs.h"
10087 /* Override any gcc2 internal prototype to avoid an error. */
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10094 #ifdef F77_DUMMY_MAIN
10095 # ifdef __cplusplus
10098 int F77_DUMMY_MAIN() { return 1; }
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_lib_m_pow=yes
10122 echo "$as_me: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10129 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10130 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10131 if test $ac_cv_lib_m_pow = yes; then
10134 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10135 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10143 for ac_func in vprintf
10145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10146 echo "$as_me:$LINENO: checking for $ac_func" >&5
10147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_var+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 cat >conftest.$ac_ext <<_ACEOF
10152 #line $LINENO "configure"
10153 #include "confdefs.h"
10154 /* System header to define __stub macros and hopefully few prototypes,
10155 which can conflict with char $ac_func (); below. */
10156 #include <assert.h>
10157 /* Override any gcc2 internal prototype to avoid an error. */
10161 /* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10166 #ifdef F77_DUMMY_MAIN
10167 # ifdef __cplusplus
10170 int F77_DUMMY_MAIN() { return 1; }
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10188 rm -f conftest.$ac_objext conftest$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -s conftest$ac_exeext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 eval "$as_ac_var=yes"
10202 echo "$as_me: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10204 eval "$as_ac_var=no"
10206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10210 if test `eval echo '${'$as_ac_var'}'` = yes; then
10211 cat >>confdefs.h <<_ACEOF
10212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10215 echo "$as_me:$LINENO: checking for _doprnt" >&5
10216 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10217 if test "${ac_cv_func__doprnt+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 #include "confdefs.h"
10223 /* System header to define __stub macros and hopefully few prototypes,
10224 which can conflict with char _doprnt (); below. */
10225 #include <assert.h>
10226 /* Override any gcc2 internal prototype to avoid an error. */
10230 /* We use char because int might match the return type of a gcc2
10231 builtin and then its argument prototype would still apply. */
10235 #ifdef F77_DUMMY_MAIN
10236 # ifdef __cplusplus
10239 int F77_DUMMY_MAIN() { return 1; }
10244 /* The GNU C library defines this for functions which it implements
10245 to always fail with ENOSYS. Some functions are actually named
10246 something starting with __ and the normal name is an alias. */
10247 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259 (eval $ac_link) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_func__doprnt=yes
10271 echo "$as_me: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 ac_cv_func__doprnt=no
10275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10277 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10278 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10279 if test $ac_cv_func__doprnt = yes; then
10281 cat >>confdefs.h <<\_ACEOF
10282 #define HAVE_DOPRNT 1
10304 for ac_func in bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol
10306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10307 echo "$as_me:$LINENO: checking for $ac_func" >&5
10308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10309 if eval "test \"\${$as_ac_var+set}\" = set"; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 cat >conftest.$ac_ext <<_ACEOF
10313 #line $LINENO "configure"
10314 #include "confdefs.h"
10315 /* System header to define __stub macros and hopefully few prototypes,
10316 which can conflict with char $ac_func (); below. */
10317 #include <assert.h>
10318 /* Override any gcc2 internal prototype to avoid an error. */
10322 /* We use char because int might match the return type of a gcc2
10323 builtin and then its argument prototype would still apply. */
10327 #ifdef F77_DUMMY_MAIN
10328 # ifdef __cplusplus
10331 int F77_DUMMY_MAIN() { return 1; }
10336 /* The GNU C library defines this for functions which it implements
10337 to always fail with ENOSYS. Some functions are actually named
10338 something starting with __ and the normal name is an alias. */
10339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } &&
10355 { ac_try='test -s conftest$ac_exeext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 eval "$as_ac_var=yes"
10363 echo "$as_me: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 eval "$as_ac_var=no"
10367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10371 if test `eval echo '${'$as_ac_var'}'` = yes; then
10372 cat >>confdefs.h <<_ACEOF
10373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10382 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10384 ac_define_dir=`eval echo $"$sysconfdir"`
10385 ac_define_dir=`eval echo $ac_define_dir`
10387 cat >>confdefs.h <<_ACEOF
10388 #define FGIS_CONFIG "$ac_define_dir"
10395 FGIS_LIBDIR=$"$libdir"
10396 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10397 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10398 FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10399 FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10406 # Ok, lets find the tcl source trees so we can use the headers
10407 # Warning: transition of version 9 to 10 will break this algorithm
10408 # because 10 sorts before 9. We also look for just tcl. We have to
10409 # be careful that we don't match stuff like tclX by accident.
10410 # the alternative search directory is involked by --with-tclinclude
10413 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
10414 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
10416 # Check whether --with-tclinclude or --without-tclinclude was given.
10417 if test "${with_tclinclude+set}" = set; then
10418 withval="$with_tclinclude"
10419 with_tclinclude=${withval}
10421 if test "${ac_cv_c_tclh+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 # first check to see if --with-tclinclude was specified
10426 if test x"${with_tclinclude}" != x ; then
10427 if test -f ${with_tclinclude}/tclInt.h ; then
10428 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
10429 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
10430 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
10432 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
10433 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
10434 { (exit 1); exit 1; }; }
10438 # next check if it came with Tcl configuration file
10439 if test x"${ac_cv_c_tclconfig}" != x ; then
10440 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
10441 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)`
10445 # next check in private source directory
10447 # since ls returns lowest version numbers first, reverse its output
10448 if test x"${ac_cv_c_tclh}" = x ; then
10451 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10452 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` \
10453 ${srcdir}/../../tcl \
10454 `ls -dr ${srcdir}/../../tcl[9].[0-9].[0-9] ${srcdir}/../../tcl[9].[0-9] 2>/dev/null` \
10455 `ls -dr ${srcdir}/../../tcl[8].[2-9].[0-9] ${srcdir}/../../tcl[8].[2-9] 2>/dev/null` \
10456 ${srcdir}/../../../tcl \
10457 `ls -dr ${srcdir}/../../../tcl[9].[0-9].[0-9] ${srcdir}/../../../tcl[9].[0-9] 2>/dev/null ` \
10458 `ls -dr ${srcdir}/../../../tcl[8].[2-9].[0-9] ${srcdir}/../../../tcl[8].[2-9] 2>/dev/null ` ; do
10459 if test -f $i/generic/tclInt.h ; then
10460 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10466 # check Debian-specific locations
10467 if test x"${ac_cv_c_tclh}" = x ; then
10469 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tcl-private /usr/include/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10470 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tcl-private /usr/include/tcl[8].[2-9]/tcl-private 2>/dev/null`; do
10471 if test -f $i/generic/tclInt.h ; then
10472 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10478 # finally check in a few common install locations
10480 # since ls returns lowest version numbers first, reverse its output
10481 if test x"${ac_cv_c_tclh}" = x ; then
10483 `ls -dr /usr/lib/tcl[9].[0-9].[0-9]/tcl-private /usr/lib/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10484 `ls -dr /usr/lib/tcl[8].[2-9].[0-9]/tcl-private /usr/lib/tcl[8].[2-9]/tcl-private 2>/dev/null` \
10485 `ls -dr /usr/local/src/tcl[9].[0-9].[0-9] /usr/local/src/tcl[9].[0-9] 2>/dev/null` \
10486 `ls -dr /usr/local/src/tcl[8].[2-9].[0-9] /usr/local/src/tcl[8].[2-9] 2>/dev/null` \
10487 `ls -dr /usr/local/lib/tcl[9].[0-9].[0-9] /usr/local/lib/tcl[9].[0-9] 2>/dev/null` \
10488 `ls -dr /usr/local/lib/tcl[8].[2-9].[0-9] /usr/local/lib/tcl[8].[2-9] 2>/dev/null` \
10489 /usr/local/src/tcl \
10490 /usr/local/lib/tcl \
10491 ${prefix}/include ; do
10492 if test -f $i/generic/tclInt.h ; then
10493 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10498 # see if one is installed
10499 if test x"${ac_cv_c_tclh}" = x ; then
10500 if test "${ac_cv_header_tclInt_h+set}" = set; then
10501 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10502 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10503 if test "${ac_cv_header_tclInt_h+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10507 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10509 # Is the header compilable?
10510 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
10511 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
10512 cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10514 #include "confdefs.h"
10515 $ac_includes_default
10516 #include <tclInt.h>
10518 rm -f conftest.$ac_objext
10519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10520 (eval $ac_compile) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -s conftest.$ac_objext'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_header_compiler=yes
10532 echo "$as_me: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10534 ac_header_compiler=no
10536 rm -f conftest.$ac_objext conftest.$ac_ext
10537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538 echo "${ECHO_T}$ac_header_compiler" >&6
10540 # Is the header present?
10541 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
10542 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 #include "confdefs.h"
10546 #include <tclInt.h>
10548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10551 egrep -v '^ *\+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } >/dev/null; then
10556 if test -s conftest.err; then
10557 ac_cpp_err=$ac_c_preproc_warn_flag
10564 if test -z "$ac_cpp_err"; then
10565 ac_header_preproc=yes
10567 echo "$as_me: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10569 ac_header_preproc=no
10571 rm -f conftest.err conftest.$ac_ext
10572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10573 echo "${ECHO_T}$ac_header_preproc" >&6
10575 # So? What about this header?
10576 case $ac_header_compiler:$ac_header_preproc in
10578 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10579 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10581 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;};;
10583 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
10584 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
10586 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10588 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;};;
10590 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10591 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10592 if test "${ac_cv_header_tclInt_h+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 ac_cv_header_tclInt_h=$ac_header_preproc
10597 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10598 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10601 if test $ac_cv_header_tclInt_h = yes; then
10602 ac_cv_c_tclh=installed
10612 if test x"${ac_cv_c_tclh}" = x ; then
10613 TCLHDIR="# no Tcl private headers found"
10614 TCLHDIRDASHI="# no Tcl private headers found"
10615 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
10616 echo "$as_me: error: Can't find Tcl private headers" >&2;}
10617 { (exit 1); exit 1; }; }
10619 if test x"${ac_cv_c_tclh}" != x ; then
10621 if test x"${ac_cv_c_tclh}" = x"installed" ; then
10622 echo "$as_me:$LINENO: result: is installed" >&5
10623 echo "${ECHO_T}is installed" >&6
10628 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
10629 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
10630 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
10631 TCLHDIR="${ac_cv_c_tclh}"
10632 TCLHDIRDASHI="-I${ac_cv_c_tclh}"
10633 TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library
10641 if test x"$no_tcl" = x"true" ; then
10642 echo " ERROR: Can't find Tcl headers or library."
10643 echo " See README for information on how to obtain Tcl."
10644 echo " If Tcl is installed, see INSTALL on how to tell"
10645 echo " configure where Tcl is installed."
10650 # Ok, lets find the tcl configuration
10651 # First, look for one uninstalled.
10652 # the alternative search directory is invoked by --with-tcl
10655 if test x"${no_tcl}" = x ; then
10656 # we reset no_tcl in case something fails here
10659 # Check whether --with-tcl or --without-tcl was given.
10660 if test "${with_tcl+set}" = set; then
10661 withval="$with_tcl"
10662 with_tclconfig=${withval}
10664 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
10665 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
10666 if test "${ac_cv_c_tclconfig+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 # First check to see if --with-tcl was specified.
10672 if test x"${with_tclconfig}" != x ; then
10673 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10674 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10676 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
10677 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
10678 { (exit 1); exit 1; }; }
10682 # then check for a private Tcl installation
10683 if test x"${ac_cv_c_tclconfig}" = x ; then
10686 `ls -dr ../tcl[9].[0-9].[0-9] ../tcl[9].[0-9] 2>/dev/null` \
10687 `ls -dr ../tcl[8].[2-9].[0-9] ../tcl[8].[2-9] 2>/dev/null` \
10689 `ls -dr ../../tcl[9].[0-9].[0-9] ../../tcl[9].[0-9] 2>/dev/null` \
10690 `ls -dr ../../tcl[8].[2-9].[0-9] ../../tcl[8].[2-9] 2>/dev/null` \
10692 `ls -dr ../../../tcl[9].[0-9].[0-9] ../../../tcl[9].[0-9] 2>/dev/null` \
10693 `ls -dr ../../../tcl[8].[2-9].[0-9] ../../../tcl[8].[2-9] 2>/dev/null` ; do
10694 if test -f "$i/unix/tclConfig.sh" ; then
10695 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10700 # check in a few common install locations
10701 if test x"${ac_cv_c_tclconfig}" = x ; then
10702 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10703 if test -f "$i/tclConfig.sh" ; then
10704 ac_cv_c_tclconfig=`(cd $i; pwd)`
10710 # check Debian-specific locations
10711 if test x"${ac_cv_c_tclconfig}" = x ; then
10713 `ls -dr /usr/lib/tcl[9].[0-9].[0-9] /usr/lib/tcl[9].[0-9] 2>/dev/null` \
10714 `ls -dr /usr/lib/tcl[8].[2-9].[0-9] /usr/lib/tcl[8].[2-9] 2>/dev/null` ; do
10715 if test -f "$i/tclConfig.sh" ; then
10716 ac_cv_c_tclconfig=`(cd $i; pwd)`
10722 # check in a few other private locations
10723 if test x"${ac_cv_c_tclconfig}" = x ; then
10726 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10727 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` ; do
10728 if test -f "$i/unix/tclConfig.sh" ; then
10729 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10737 if test x"${ac_cv_c_tclconfig}" = x ; then
10738 TCLCONFIG="# no Tcl configs found"
10739 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
10740 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10743 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
10744 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
10745 echo "${ECHO_T}found $TCLCONFIG" >&6
10762 # Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
10763 # as just SHLIB_SUFFIX. How bizarre.
10764 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
10769 # if Tcl's build directory has been removed, TCL_LIB_SPEC should
10770 # be used instead of TCL_BUILD_LIB_SPEC
10772 # eval used to expand out TCL_DBGX
10773 eval "LIBS=\"$TCL_BUILD_LIB_SPEC $TCL_LIBS\""
10774 echo "$as_me:$LINENO: checking Tcl build library" >&5
10775 echo $ECHO_N "checking Tcl build library... $ECHO_C" >&6
10776 echo "$as_me:$LINENO: result: $LIBS" >&5
10777 echo "${ECHO_T}$LIBS" >&6
10779 echo "$as_me:$LINENO: checking for Tcl_CreateCommand" >&5
10780 echo $ECHO_N "checking for Tcl_CreateCommand... $ECHO_C" >&6
10781 if test "${ac_cv_func_Tcl_CreateCommand+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10785 #line $LINENO "configure"
10786 #include "confdefs.h"
10787 /* System header to define __stub macros and hopefully few prototypes,
10788 which can conflict with char Tcl_CreateCommand (); below. */
10789 #include <assert.h>
10790 /* Override any gcc2 internal prototype to avoid an error. */
10794 /* We use char because int might match the return type of a gcc2
10795 builtin and then its argument prototype would still apply. */
10796 char Tcl_CreateCommand ();
10799 #ifdef F77_DUMMY_MAIN
10800 # ifdef __cplusplus
10803 int F77_DUMMY_MAIN() { return 1; }
10808 /* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811 #if defined (__stub_Tcl_CreateCommand) || defined (__stub___Tcl_CreateCommand)
10814 f = Tcl_CreateCommand;
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823 (eval $ac_link) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_func_Tcl_CreateCommand=yes
10835 echo "$as_me: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 ac_cv_func_Tcl_CreateCommand=no
10839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10841 echo "$as_me:$LINENO: result: $ac_cv_func_Tcl_CreateCommand" >&5
10842 echo "${ECHO_T}$ac_cv_func_Tcl_CreateCommand" >&6
10843 if test $ac_cv_func_Tcl_CreateCommand = yes; then
10845 echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10846 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10847 echo "$as_me:$LINENO: result: yes" >&5
10848 echo "${ECHO_T}yes" >&6
10852 TCL_BUILD_LIB_SPEC=$TCL_LIB_SPEC
10853 # Can't pull the following CHECKING call out since it will be
10854 # broken up by the CHECK_FUNC just above.
10855 echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10856 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10857 echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6
10870 TCL_INC_DIR=$TCL_INC_DIR
10872 TCL_PACKAGE_PATH=$TCL_PACKAGE_PATH
10877 # Ok, lets find the tk source trees so we can use the headers
10878 # If the directory (presumably symlink) named "tk" exists, use that one
10879 # in preference to any others. Same logic is used when choosing library
10880 # and again with Tcl. The search order is the best place to look first, then in
10881 # decreasing significance. The loop breaks if the trigger file is found.
10882 # Note the gross little conversion here of srcdir by cd'ing to the found
10883 # directory. This converts the path from a relative to an absolute, so
10884 # recursive cache variables for the path will work right. We check all
10885 # the possible paths in one loop rather than many seperate loops to speed
10887 # the alternative search directory is involked by --with-tkinclude
10890 echo "$as_me:$LINENO: checking for Tk private headers" >&5
10891 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
10893 # Check whether --with-tkinclude or --without-tkinclude was given.
10894 if test "${with_tkinclude+set}" = set; then
10895 withval="$with_tkinclude"
10896 with_tkinclude=${withval}
10898 if test "${ac_cv_c_tkh+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 # first check to see if --with-tkinclude was specified
10903 if test x"${with_tkinclude}" != x ; then
10904 if test -f ${with_tkinclude}/tk.h ; then
10905 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
10906 elif test -f ${with_tkinclude}/generic/tk.h ; then
10907 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
10909 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
10910 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
10911 { (exit 1); exit 1; }; }
10915 # next check if it came with Tk configuration file
10916 if test x"${ac_cv_c_tkconfig}" != x ; then
10917 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
10918 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/../generic; pwd)`
10922 # next check in private source directory
10924 # since ls returns lowest version numbers first, reverse its output
10925 if test x"${ac_cv_c_tkh}" = x ; then
10928 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
10929 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
10930 ${srcdir}/../../tk \
10931 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
10932 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
10933 ${srcdir}/../../../tk \
10934 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` \
10935 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` ; do
10936 if test -f $i/generic/tk.h ; then
10937 ac_cv_c_tkh=`(cd $i/generic; pwd)`
10943 # check Debian-specific locations
10944 if test x"${ac_cv_c_tkh}" = x ; then
10946 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tk-private /usr/include/tcl[9].[0-9]/tk-private 2>/dev/null` \
10947 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tk-private /usr/include/tcl[8].[2-9]/tk-private 2>/dev/null` ; do
10948 if test -f $i/generic/tk.h ; then
10949 ac_cv_c_tkh=`(cd $i/generic; pwd)`
10955 # finally check in a few common install locations
10957 # since ls returns lowest version numbers first, reverse its output
10958 if test x"${ac_cv_c_tkh}" = x ; then
10960 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
10961 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
10962 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
10963 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
10964 /usr/local/src/tk \
10965 /usr/local/lib/tk \
10966 ${prefix}/include ; do
10967 if test -f $i/generic/tk.h ; then
10968 ac_cv_c_tkh=`(cd $i/generic; pwd)`
10973 # see if one is installed
10974 if test x"${ac_cv_c_tkh}" = x ; then
10975 if test "${ac_cv_header_tk_h+set}" = set; then
10976 echo "$as_me:$LINENO: checking for tk.h" >&5
10977 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
10978 if test "${ac_cv_header_tk_h+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
10982 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
10984 # Is the header compilable?
10985 echo "$as_me:$LINENO: checking tk.h usability" >&5
10986 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10990 $ac_includes_default
10993 rm -f conftest.$ac_objext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10995 (eval $ac_compile) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_header_compiler=yes
11007 echo "$as_me: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11009 ac_header_compiler=no
11011 rm -f conftest.$ac_objext conftest.$ac_ext
11012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11013 echo "${ECHO_T}$ac_header_compiler" >&6
11015 # Is the header present?
11016 echo "$as_me:$LINENO: checking tk.h presence" >&5
11017 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
11018 cat >conftest.$ac_ext <<_ACEOF
11019 #line $LINENO "configure"
11020 #include "confdefs.h"
11023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11026 egrep -v '^ *\+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } >/dev/null; then
11031 if test -s conftest.err; then
11032 ac_cpp_err=$ac_c_preproc_warn_flag
11039 if test -z "$ac_cpp_err"; then
11040 ac_header_preproc=yes
11042 echo "$as_me: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11044 ac_header_preproc=no
11046 rm -f conftest.err conftest.$ac_ext
11047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11048 echo "${ECHO_T}$ac_header_preproc" >&6
11050 # So? What about this header?
11051 case $ac_header_compiler:$ac_header_preproc in
11053 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
11054 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11056 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;};;
11058 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
11059 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
11061 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11063 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;};;
11065 echo "$as_me:$LINENO: checking for tk.h" >&5
11066 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
11067 if test "${ac_cv_header_tk_h+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 ac_cv_header_tk_h=$ac_header_preproc
11072 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11073 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11076 if test $ac_cv_header_tk_h = yes; then
11077 ac_cv_c_tkh=installed
11087 if test x"${ac_cv_c_tkh}" != x ; then
11089 if test x"${ac_cv_c_tkh}" = x"installed" ; then
11090 echo "$as_me:$LINENO: result: is installed" >&5
11091 echo "${ECHO_T}is installed" >&6
11094 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
11095 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
11096 # this hack is cause the TKHDIRDASHI won't print if there is a "-I" in it.
11097 TKHDIRDASHI="-I${ac_cv_c_tkh}"
11100 TKHDIRDASHI="# no Tk directory found"
11101 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
11102 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
11110 # Ok, lets find the tk configuration
11111 # First, look for one uninstalled.
11112 # the alternative search directory is invoked by --with-tk
11115 if test x"${no_tk}" = x ; then
11116 # we reset no_tk in case something fails here
11119 # Check whether --with-tk or --without-tk was given.
11120 if test "${with_tk+set}" = set; then
11122 with_tkconfig=${withval}
11124 echo "$as_me:$LINENO: checking for Tk configuration" >&5
11125 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
11126 if test "${ac_cv_c_tkconfig+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 # First check to see if --with-tk was specified.
11132 if test x"${with_tkconfig}" != x ; then
11133 if test -f "${with_tkconfig}/tkConfig.sh" ; then
11134 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
11136 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
11137 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
11138 { (exit 1); exit 1; }; }
11142 # then check for a private Tk library
11143 if test x"${ac_cv_c_tkconfig}" = x ; then
11146 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11147 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11149 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11150 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11152 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` \
11153 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` ; do
11154 if test -f "$i/unix/tkConfig.sh" ; then
11155 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11160 # check in a few common install locations
11161 if test x"${ac_cv_c_tkconfig}" = x ; then
11162 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
11163 if test -f "$i/tkConfig.sh" ; then
11164 ac_cv_c_tkconfig=`(cd $i; pwd)`
11169 # check Debian-specific locations
11170 if test x"${ac_cv_c_tkconfig}" = x ; then
11172 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` \
11173 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` ; do
11174 if test -f "$i/tkConfig.sh" ; then
11175 ac_cv_c_tkconfig=`(cd $i; pwd)`
11180 # check in a few other private locations
11181 if test x"${ac_cv_c_tkconfig}" = x ; then
11184 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11185 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` ; do
11186 if test -f "$i/unix/tkConfig.sh" ; then
11187 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11195 if test x"${ac_cv_c_tkconfig}" = x ; then
11196 TKCONFIG="# no Tk configs found"
11197 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
11198 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
11201 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
11202 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
11203 echo "${ECHO_T}found $TKCONFIG" >&6
11209 if test -f "$TKCONFIG" ; then
11223 # if Tk's build directory has been removed, TK_LIB_SPEC should
11224 # be used instead of TK_BUILD_LIB_SPEC
11226 # eval used to expand out TK_DBGX
11227 eval "LIBS=\"$TK_BUILD_LIB_SPEC $TCL_BUILD_LIB_SPEC $TK_LIBS\""
11228 echo "$as_me:$LINENO: checking for Tk_Init" >&5
11229 echo $ECHO_N "checking for Tk_Init... $ECHO_C" >&6
11230 if test "${ac_cv_func_Tk_Init+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 cat >conftest.$ac_ext <<_ACEOF
11234 #line $LINENO "configure"
11235 #include "confdefs.h"
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char Tk_Init (); below. */
11238 #include <assert.h>
11239 /* Override any gcc2 internal prototype to avoid an error. */
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11248 #ifdef F77_DUMMY_MAIN
11249 # ifdef __cplusplus
11252 int F77_DUMMY_MAIN() { return 1; }
11257 /* The GNU C library defines this for functions which it implements
11258 to always fail with ENOSYS. Some functions are actually named
11259 something starting with __ and the normal name is an alias. */
11260 #if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
11270 rm -f conftest.$ac_objext conftest$ac_exeext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272 (eval $ac_link) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -s conftest$ac_exeext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_cv_func_Tk_Init=yes
11284 echo "$as_me: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 ac_cv_func_Tk_Init=no
11288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11290 echo "$as_me:$LINENO: result: $ac_cv_func_Tk_Init" >&5
11291 echo "${ECHO_T}$ac_cv_func_Tk_Init" >&6
11292 if test $ac_cv_func_Tk_Init = yes; then
11294 echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11295 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11296 echo "$as_me:$LINENO: result: yes" >&5
11297 echo "${ECHO_T}yes" >&6
11301 TK_BUILD_LIB_SPEC=$TK_LIB_SPEC
11302 # Can't pull the following CHECKING call out since it will be
11303 # broken up by the CHECK_FUNC just above.
11304 echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11305 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11306 echo "$as_me:$LINENO: result: no" >&5
11307 echo "${ECHO_T}no" >&6
11316 TK_INC_DIR=$TK_INC_DIR
11319 ac_config_files="$ac_config_files Makefile dll/Makefile epu/Makefile include/Makefile lib/Makefile tcl/Makefile tcl/pkgIndex.tcl"
11321 cat >confcache <<\_ACEOF
11322 # This file is a shell script that caches the results of configure
11323 # tests run on this system so they can be shared between configure
11324 # scripts and configure runs, see configure's option --config-cache.
11325 # It is not useful on other systems. If it contains results you don't
11326 # want to keep, you may remove or edit it.
11328 # config.status only pays attention to the cache file if you give it
11329 # the --recheck option to rerun configure.
11331 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11333 # following values.
11337 # The following way of writing the cache mishandles newlines in values,
11338 # but we know of no workaround that is simple, portable, and efficient.
11339 # So, don't put newlines in cache variables' values.
11340 # Ultrix sh set writes to stderr and can't be redirected directly,
11341 # and sets the high bit in the cache file unless we assign to the vars.
11344 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11346 # `set' does not quote correctly, so add quotes (double-quote
11347 # substitution turns \\\\ into \\, and sed turns \\ into \).
11350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11353 # `set' quotes correctly as required by POSIX, so do not add quotes.
11355 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11364 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11366 if cmp -s $cache_file confcache; then :; else
11367 if test -w $cache_file; then
11368 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11369 cat confcache >$cache_file
11371 echo "not updating unwritable cache $cache_file"
11376 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11377 # Let make expand exec_prefix.
11378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11380 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11381 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11382 # trailing colons and then remove the whole line if VPATH becomes empty
11383 # (actually we leave an empty line to preserve line numbers).
11384 if test "x$srcdir" = x.; then
11385 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11386 s/:*\$(srcdir):*/:/;
11387 s/:*\${srcdir}:*/:/;
11389 s/^\([^=]*=[ ]*\):*/\1/;
11395 DEFS=-DHAVE_CONFIG_H
11397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11398 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11399 Usually this means the macro was only invoked conditionally." >&5
11400 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11401 Usually this means the macro was only invoked conditionally." >&2;}
11402 { (exit 1); exit 1; }; }
11405 : ${CONFIG_STATUS=./config.status}
11406 ac_clean_files_save=$ac_clean_files
11407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11408 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11409 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11410 cat >$CONFIG_STATUS <<_ACEOF
11412 # Generated by $as_me.
11413 # Run this file to recreate the current configuration.
11414 # Compiler output produced by configure, useful for debugging
11415 # configure, is in config.log if it exists.
11418 SHELL=\${CONFIG_SHELL-$SHELL}
11421 cat >>$CONFIG_STATUS <<\_ACEOF
11423 ## --------------------- ##
11424 ## M4sh Initialization. ##
11425 ## --------------------- ##
11427 # Be Bourne compatible
11428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11431 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11436 # Support unset when possible.
11437 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11443 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11444 { $as_unset LANG || test "${LANG+set}" != set; } ||
11445 { LANG=C; export LANG; }
11446 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11447 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11448 { LC_ALL=C; export LC_ALL; }
11449 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11450 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11451 { LC_TIME=C; export LC_TIME; }
11452 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11453 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11454 { LC_CTYPE=C; export LC_CTYPE; }
11455 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11456 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11457 { LANGUAGE=C; export LANGUAGE; }
11458 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11459 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11460 { LC_COLLATE=C; export LC_COLLATE; }
11461 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11462 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11463 { LC_NUMERIC=C; export LC_NUMERIC; }
11464 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11465 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11466 { LC_MESSAGES=C; export LC_MESSAGES; }
11469 # Name of the executable.
11470 as_me=`(basename "$0") 2>/dev/null ||
11471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11472 X"$0" : 'X\(//\)$' \| \
11473 X"$0" : 'X\(/\)$' \| \
11474 . : '\(.\)' 2>/dev/null ||
11476 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11477 /^X\/\(\/\/\)$/{ s//\1/; q; }
11478 /^X\/\(\/\).*/{ s//\1/; q; }
11481 # PATH needs CR, and LINENO needs CR and PATH.
11482 # Avoid depending upon Character Ranges.
11483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11486 as_cr_digits='0123456789'
11487 as_cr_alnum=$as_cr_Letters$as_cr_digits
11489 # The user is always right.
11490 if test "${PATH_SEPARATOR+set}" != set; then
11491 echo "#! /bin/sh" >conftest.sh
11492 echo "exit 0" >>conftest.sh
11493 chmod +x conftest.sh
11494 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11503 as_lineno_1=$LINENO
11504 as_lineno_2=$LINENO
11505 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11506 test "x$as_lineno_1" != "x$as_lineno_2" &&
11507 test "x$as_lineno_3" = "x$as_lineno_2" || {
11508 # Find who we are. Look in the path if we contain no path at all
11511 *[\\/]* ) as_myself=$0 ;;
11512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11516 test -z "$as_dir" && as_dir=.
11517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11522 # We did not find ourselves, most probably we were run as `sh COMMAND'
11523 # in which case we are not to be found in the path.
11524 if test "x$as_myself" = x; then
11527 if test ! -f "$as_myself"; then
11528 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11530 { (exit 1); exit 1; }; }
11532 case $CONFIG_SHELL in
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11538 test -z "$as_dir" && as_dir=.
11539 for as_base in sh bash ksh sh5; do
11542 if ("$as_dir/$as_base" -c '
11543 as_lineno_1=$LINENO
11544 as_lineno_2=$LINENO
11545 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11546 test "x$as_lineno_1" != "x$as_lineno_2" &&
11547 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11548 CONFIG_SHELL=$as_dir/$as_base
11549 export CONFIG_SHELL
11550 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11558 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11559 # uniformly replaced by the line number. The first 'sed' inserts a
11560 # line-number line before each line; the second 'sed' does the real
11561 # work. The second script uses 'N' to pair each line-number line
11562 # with the numbered line, and appends trailing '-' during
11563 # substitution so that $LINENO is not a special case at line end.
11564 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11565 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11566 sed '=' <$as_myself |
11571 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11574 s,^['$as_cr_digits']*\n,,
11575 ' >$as_me.lineno &&
11576 chmod +x $as_me.lineno ||
11577 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11578 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11579 { (exit 1); exit 1; }; }
11581 # Don't try to exec as it changes $[0], causing all sort of problems
11582 # (the dirname of $[0] is not the place where we might find the
11583 # original and so on. Autoconf is especially sensible to this).
11585 # Exit status is that of the last command.
11590 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11591 *c*,-n*) ECHO_N= ECHO_C='
11593 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11594 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11597 if expr a : '\(a\)' >/dev/null 2>&1; then
11603 rm -f conf$$ conf$$.exe conf$$.file
11605 if ln -s conf$$.file conf$$ 2>/dev/null; then
11606 # We could just check for DJGPP; but this test a) works b) is more generic
11607 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11608 if test -f conf$$.exe; then
11609 # Don't use ln at all; we don't have any links
11614 elif ln conf$$.file conf$$ 2>/dev/null; then
11619 rm -f conf$$ conf$$.exe conf$$.file
11621 as_executable_p="test -f"
11623 # Sed expression to map a string onto a valid CPP name.
11624 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11626 # Sed expression to map a string onto a valid variable name.
11627 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11631 # We need space, tab and new line, in precisely that order.
11637 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11641 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11642 # report actual input values of CONFIG_FILES etc. instead of their
11643 # values after options handling. Logging --version etc. is OK.
11647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11648 ## Running $as_me. ##
11653 This file was extended by fGIS $as_me 0.0.1, which was
11654 generated by GNU Autoconf 2.53. Invocation command line was
11656 CONFIG_FILES = $CONFIG_FILES
11657 CONFIG_HEADERS = $CONFIG_HEADERS
11658 CONFIG_LINKS = $CONFIG_LINKS
11659 CONFIG_COMMANDS = $CONFIG_COMMANDS
11663 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11667 # Files that config.status was made for.
11668 if test -n "$ac_config_files"; then
11669 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11672 if test -n "$ac_config_headers"; then
11673 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11676 if test -n "$ac_config_links"; then
11677 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11680 if test -n "$ac_config_commands"; then
11681 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11684 cat >>$CONFIG_STATUS <<\_ACEOF
11687 \`$as_me' instantiates files from templates according to the
11688 current configuration.
11690 Usage: $0 [OPTIONS] [FILE]...
11692 -h, --help print this help, then exit
11693 -V, --version print version number, then exit
11694 -d, --debug don't remove temporary files
11695 --recheck update $as_me by reconfiguring in the same conditions
11696 --file=FILE[:TEMPLATE]
11697 instantiate the configuration file FILE
11698 --header=FILE[:TEMPLATE]
11699 instantiate the configuration header FILE
11701 Configuration files:
11704 Configuration headers:
11707 Configuration commands:
11710 Report bugs to <bug-autoconf@gnu.org>."
11713 cat >>$CONFIG_STATUS <<_ACEOF
11715 fGIS config.status 0.0.1
11716 configured by $0, generated by GNU Autoconf 2.53,
11717 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11719 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11720 Free Software Foundation, Inc.
11721 This config.status script is free software; the Free Software Foundation
11722 gives unlimited permission to copy, distribute and modify it."
11727 cat >>$CONFIG_STATUS <<\_ACEOF
11728 # If no file are specified by the user, then we need to provide default
11729 # value. By we need to know if files were specified by the user.
11735 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11736 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11738 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11742 *) # This is not an option, so the user has probably given explicit
11744 ac_need_defaults=false;;
11748 # Handling of the options.
11750 cat >>$CONFIG_STATUS <<_ACEOF
11751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11752 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11753 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11755 cat >>$CONFIG_STATUS <<\_ACEOF
11756 --version | --vers* | -V )
11757 echo "$ac_cs_version"; exit 0 ;;
11759 # Conflict between --help and --header
11760 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11761 Try \`$0 --help' for more information." >&5
11762 echo "$as_me: error: ambiguous option: $1
11763 Try \`$0 --help' for more information." >&2;}
11764 { (exit 1); exit 1; }; };;
11765 --help | --hel | -h )
11766 echo "$ac_cs_usage"; exit 0 ;;
11767 --debug | --d* | -d )
11769 --file | --fil | --fi | --f )
11771 CONFIG_FILES="$CONFIG_FILES $1"
11772 ac_need_defaults=false;;
11773 --header | --heade | --head | --hea )
11775 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11776 ac_need_defaults=false;;
11778 # This is an error.
11779 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11780 Try \`$0 --help' for more information." >&5
11781 echo "$as_me: error: unrecognized option: $1
11782 Try \`$0 --help' for more information." >&2;}
11783 { (exit 1); exit 1; }; } ;;
11785 *) ac_config_targets="$ac_config_targets $1" ;;
11793 cat >>$CONFIG_STATUS <<_ACEOF
11795 # INIT-COMMANDS section.
11798 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11804 cat >>$CONFIG_STATUS <<\_ACEOF
11805 for ac_config_target in $ac_config_targets
11807 case "$ac_config_target" in
11808 # Handling of arguments.
11809 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11810 "dll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dll/Makefile" ;;
11811 "epu/Makefile" ) CONFIG_FILES="$CONFIG_FILES epu/Makefile" ;;
11812 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11813 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11814 "tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcl/Makefile" ;;
11815 "tcl/pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES tcl/pkgIndex.tcl" ;;
11816 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11817 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
11818 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11819 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11820 { (exit 1); exit 1; }; };;
11824 # If the user did not use the arguments to specify the items to instantiate,
11825 # then the envvar interface is used. Set only those that are not.
11826 # We use the long form for the default assignment because of an extremely
11827 # bizarre bug on SunOS 4.1.3.
11828 if $ac_need_defaults; then
11829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11834 # Create a temporary directory, and hook for its removal unless debugging.
11837 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11838 trap '{ (exit 1); exit 1; }' 1 2 13 15
11841 # Create a (secure) tmp directory for tmp files.
11844 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11845 test -n "$tmp" && test -d "$tmp"
11848 tmp=$TMPDIR/cs$$-$RANDOM
11849 (umask 077 && mkdir $tmp)
11852 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11853 { (exit 1); exit 1; }
11858 cat >>$CONFIG_STATUS <<_ACEOF
11861 # CONFIG_FILES section.
11864 # No need to generate the scripts if there are no CONFIG_FILES.
11865 # This happens for instance when ./config.status config.h
11866 if test -n "\$CONFIG_FILES"; then
11867 # Protect against being on the right side of a sed subst in config.status.
11868 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11869 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11870 s,@SHELL@,$SHELL,;t t
11871 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11872 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11873 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11874 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11875 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11876 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11877 s,@exec_prefix@,$exec_prefix,;t t
11878 s,@prefix@,$prefix,;t t
11879 s,@program_transform_name@,$program_transform_name,;t t
11880 s,@bindir@,$bindir,;t t
11881 s,@sbindir@,$sbindir,;t t
11882 s,@libexecdir@,$libexecdir,;t t
11883 s,@datadir@,$datadir,;t t
11884 s,@sysconfdir@,$sysconfdir,;t t
11885 s,@sharedstatedir@,$sharedstatedir,;t t
11886 s,@localstatedir@,$localstatedir,;t t
11887 s,@libdir@,$libdir,;t t
11888 s,@includedir@,$includedir,;t t
11889 s,@oldincludedir@,$oldincludedir,;t t
11890 s,@infodir@,$infodir,;t t
11891 s,@mandir@,$mandir,;t t
11892 s,@build_alias@,$build_alias,;t t
11893 s,@host_alias@,$host_alias,;t t
11894 s,@target_alias@,$target_alias,;t t
11895 s,@DEFS@,$DEFS,;t t
11896 s,@ECHO_C@,$ECHO_C,;t t
11897 s,@ECHO_N@,$ECHO_N,;t t
11898 s,@ECHO_T@,$ECHO_T,;t t
11899 s,@LIBS@,$LIBS,;t t
11900 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11901 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11902 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11903 s,@PACKAGE@,$PACKAGE,;t t
11904 s,@VERSION@,$VERSION,;t t
11905 s,@ACLOCAL@,$ACLOCAL,;t t
11906 s,@AUTOCONF@,$AUTOCONF,;t t
11907 s,@AUTOMAKE@,$AUTOMAKE,;t t
11908 s,@AUTOHEADER@,$AUTOHEADER,;t t
11909 s,@MAKEINFO@,$MAKEINFO,;t t
11910 s,@AMTAR@,$AMTAR,;t t
11911 s,@install_sh@,$install_sh,;t t
11912 s,@STRIP@,$STRIP,;t t
11913 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11914 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11916 s,@SET_MAKE@,$SET_MAKE,;t t
11917 s,@build@,$build,;t t
11918 s,@build_cpu@,$build_cpu,;t t
11919 s,@build_vendor@,$build_vendor,;t t
11920 s,@build_os@,$build_os,;t t
11921 s,@host@,$host,;t t
11922 s,@host_cpu@,$host_cpu,;t t
11923 s,@host_vendor@,$host_vendor,;t t
11924 s,@host_os@,$host_os,;t t
11926 s,@CFLAGS@,$CFLAGS,;t t
11927 s,@LDFLAGS@,$LDFLAGS,;t t
11928 s,@CPPFLAGS@,$CPPFLAGS,;t t
11929 s,@ac_ct_CC@,$ac_ct_CC,;t t
11930 s,@EXEEXT@,$EXEEXT,;t t
11931 s,@OBJEXT@,$OBJEXT,;t t
11932 s,@DEPDIR@,$DEPDIR,;t t
11933 s,@am__include@,$am__include,;t t
11934 s,@am__quote@,$am__quote,;t t
11935 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11936 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11937 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11938 s,@CCDEPMODE@,$CCDEPMODE,;t t
11939 s,@LN_S@,$LN_S,;t t
11940 s,@ECHO@,$ECHO,;t t
11941 s,@RANLIB@,$RANLIB,;t t
11942 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11944 s,@LIBTOOL@,$LIBTOOL,;t t
11945 s,@YACC@,$YACC,;t t
11946 s,@ALLOCA@,$ALLOCA,;t t
11947 s,@LIBOBJS@,$LIBOBJS,;t t
11948 s,@POW_LIB@,$POW_LIB,;t t
11949 s,@FGIS_LIBDIR@,$FGIS_LIBDIR,;t t
11950 s,@TCLHDIR@,$TCLHDIR,;t t
11951 s,@TCLHDIRDASHI@,$TCLHDIRDASHI,;t t
11952 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
11953 s,@TCL_DEFS@,$TCL_DEFS,;t t
11954 s,@TCL_DELETEME@,$TCL_DELETEME,;t t
11955 s,@TCL_DBGX@,$TCL_DBGX,;t t
11956 s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
11957 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
11958 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
11959 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
11960 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
11961 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
11962 s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
11963 s,@TCL_INC_DIR@,$TCL_INC_DIR,;t t
11964 s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
11965 s,@TKHDIRDASHI@,$TKHDIRDASHI,;t t
11966 s,@TK_VERSION@,$TK_VERSION,;t t
11967 s,@TK_DEFS@,$TK_DEFS,;t t
11968 s,@TK_DBGX@,$TK_DBGX,;t t
11969 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
11970 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
11971 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
11972 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
11973 s,@TK_INC_DIR@,$TK_INC_DIR,;t t
11978 cat >>$CONFIG_STATUS <<\_ACEOF
11979 # Split the substitutions into bite-sized pieces for seds with
11980 # small command number limits, like on Digital OSF/1 and HP-UX.
11981 ac_max_sed_lines=48
11982 ac_sed_frag=1 # Number of current file.
11983 ac_beg=1 # First line for current file.
11984 ac_end=$ac_max_sed_lines # Line after last line for current file.
11987 while $ac_more_lines; do
11988 if test $ac_beg -gt 1; then
11989 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11991 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11993 if test ! -s $tmp/subs.frag; then
11994 ac_more_lines=false
11996 # The purpose of the label and of the branching condition is to
11997 # speed up the sed processing (if there are no `@' at all, there
11998 # is no need to browse any of the substitutions).
11999 # These are the two extra sed commands mentioned above.
12001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12002 if test -z "$ac_sed_cmds"; then
12003 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12005 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12007 ac_sed_frag=`expr $ac_sed_frag + 1`
12009 ac_end=`expr $ac_end + $ac_max_sed_lines`
12012 if test -z "$ac_sed_cmds"; then
12015 fi # test -n "$CONFIG_FILES"
12018 cat >>$CONFIG_STATUS <<\_ACEOF
12019 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12020 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12022 - | *:- | *:-:* ) # input from stdin
12024 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12026 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12028 * ) ac_file_in=$ac_file.in ;;
12031 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12032 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12034 X"$ac_file" : 'X\(//\)[^/]' \| \
12035 X"$ac_file" : 'X\(//\)$' \| \
12036 X"$ac_file" : 'X\(/\)' \| \
12037 . : '\(.\)' 2>/dev/null ||
12039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12041 /^X\(\/\/\)$/{ s//\1/; q; }
12042 /^X\(\/\).*/{ s//\1/; q; }
12044 { case "$ac_dir" in
12045 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12049 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12050 case $as_mkdir_dir in
12051 # Skip DOS drivespec
12052 ?:) as_incr_dir=$as_mkdir_dir ;;
12054 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12055 test -d "$as_incr_dir" ||
12056 mkdir "$as_incr_dir" ||
12057 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12058 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12059 { (exit 1); exit 1; }; }
12066 if test "$ac_dir" != .; then
12067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12068 # A "../" for each directory in $ac_dir_suffix.
12069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12071 ac_dir_suffix= ac_top_builddir=
12075 .) # No --srcdir option. We are building in place.
12077 if test -z "$ac_top_builddir"; then
12080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12082 [\\/]* | ?:[\\/]* ) # Absolute path.
12083 ac_srcdir=$srcdir$ac_dir_suffix;
12084 ac_top_srcdir=$srcdir ;;
12085 *) # Relative path.
12086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12089 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12091 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12092 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12093 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12094 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12099 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12102 if test x"$ac_file" != x-; then
12103 { echo "$as_me:$LINENO: creating $ac_file" >&5
12104 echo "$as_me: creating $ac_file" >&6;}
12107 # Let's still pretend it is `configure' which instantiates (i.e., don't
12108 # use $as_me), people would be surprised to read:
12109 # /* config.h. Generated by config.status. */
12110 if test x"$ac_file" = x-; then
12113 configure_input="$ac_file. "
12115 configure_input=$configure_input"Generated from `echo $ac_file_in |
12116 sed 's,.*/,,'` by configure."
12118 # First look for the input files in the build tree, otherwise in the
12120 ac_file_inputs=`IFS=:
12121 for f in $ac_file_in; do
12123 -) echo $tmp/stdin ;;
12125 # Absolute (can't be DOS-style, as IFS=:)
12126 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12127 echo "$as_me: error: cannot find input file: $f" >&2;}
12128 { (exit 1); exit 1; }; }
12131 if test -f "$f"; then
12134 elif test -f "$srcdir/$f"; then
12139 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12140 echo "$as_me: error: cannot find input file: $f" >&2;}
12141 { (exit 1); exit 1; }; }
12144 done` || { (exit 1); exit 1; }
12146 cat >>$CONFIG_STATUS <<_ACEOF
12150 cat >>$CONFIG_STATUS <<\_ACEOF
12152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12153 s,@configure_input@,$configure_input,;t t
12154 s,@srcdir@,$ac_srcdir,;t t
12155 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12156 s,@top_srcdir@,$ac_top_srcdir,;t t
12157 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12158 s,@builddir@,$ac_builddir,;t t
12159 s,@abs_builddir@,$ac_abs_builddir,;t t
12160 s,@top_builddir@,$ac_top_builddir,;t t
12161 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12162 s,@INSTALL@,$ac_INSTALL,;t t
12163 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12165 if test x"$ac_file" != x-; then
12166 mv $tmp/out $ac_file
12174 cat >>$CONFIG_STATUS <<\_ACEOF
12177 # CONFIG_HEADER section.
12180 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12181 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12183 # ac_d sets the value in "#define NAME VALUE" lines.
12184 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12185 ac_dB='[ ].*$,\1#\2'
12188 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12189 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12190 ac_uB='$,\1#\2define\3'
12194 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12195 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12197 - | *:- | *:-:* ) # input from stdin
12199 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12201 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12202 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12203 * ) ac_file_in=$ac_file.in ;;
12206 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12207 echo "$as_me: creating $ac_file" >&6;}
12209 # First look for the input files in the build tree, otherwise in the
12211 ac_file_inputs=`IFS=:
12212 for f in $ac_file_in; do
12214 -) echo $tmp/stdin ;;
12216 # Absolute (can't be DOS-style, as IFS=:)
12217 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12218 echo "$as_me: error: cannot find input file: $f" >&2;}
12219 { (exit 1); exit 1; }; }
12222 if test -f "$f"; then
12225 elif test -f "$srcdir/$f"; then
12230 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12231 echo "$as_me: error: cannot find input file: $f" >&2;}
12232 { (exit 1); exit 1; }; }
12235 done` || { (exit 1); exit 1; }
12236 # Remove the trailing spaces.
12237 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12241 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12242 # `conftest.undefs', that substitutes the proper values into
12243 # config.h.in to produce config.h. The first handles `#define'
12244 # templates, and the second `#undef' templates.
12245 # And first: Protect against being on the right side of a sed subst in
12246 # config.status. Protect against being in an unquoted here document
12247 # in config.status.
12248 rm -f conftest.defines conftest.undefs
12249 # Using a here document instead of a string reduces the quoting nightmare.
12250 # Putting comments in sed scripts is not portable.
12252 # `end' is used to avoid that the second main sed command (meant for
12253 # 0-ary CPP macros) applies to n-ary macro definitions.
12254 # See the Autoconf documentation for `clear'.
12255 cat >confdef2sed.sed <<\_ACEOF
12260 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12262 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12265 # If some macros were called several times there might be several times
12266 # the same #defines, which is useless. Nevertheless, we may not want to
12267 # sort them, since we want the *last* AC-DEFINE to be honored.
12268 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12269 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12270 rm -f confdef2sed.sed
12272 # This sed command replaces #undef with comments. This is necessary, for
12273 # example, in the case of _POSIX_SOURCE, which is predefined and required
12274 # on some systems where configure will not decide to define it.
12275 cat >>conftest.undefs <<\_ACEOF
12276 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12279 # Break up conftest.defines because some shells have a limit on the size
12280 # of here documents, and old seds have small limits too (100 cmds).
12281 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12282 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12283 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12284 echo ' :' >>$CONFIG_STATUS
12285 rm -f conftest.tail
12286 while grep . conftest.defines >/dev/null
12288 # Write a limited-size here document to $tmp/defines.sed.
12289 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12290 # Speed up: don't consider the non `#define' lines.
12291 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12292 # Work around the forget-to-reset-the-flag bug.
12293 echo 't clr' >>$CONFIG_STATUS
12294 echo ': clr' >>$CONFIG_STATUS
12295 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12297 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12299 mv $tmp/out $tmp/in
12301 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12302 rm -f conftest.defines
12303 mv conftest.tail conftest.defines
12305 rm -f conftest.defines
12306 echo ' fi # egrep' >>$CONFIG_STATUS
12307 echo >>$CONFIG_STATUS
12309 # Break up conftest.undefs because some shells have a limit on the size
12310 # of here documents, and old seds have small limits too (100 cmds).
12311 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12312 rm -f conftest.tail
12313 while grep . conftest.undefs >/dev/null
12315 # Write a limited-size here document to $tmp/undefs.sed.
12316 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12317 # Speed up: don't consider the non `#undef'
12318 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12319 # Work around the forget-to-reset-the-flag bug.
12320 echo 't clr' >>$CONFIG_STATUS
12321 echo ': clr' >>$CONFIG_STATUS
12322 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12324 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12326 mv $tmp/out $tmp/in
12328 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12329 rm -f conftest.undefs
12330 mv conftest.tail conftest.undefs
12332 rm -f conftest.undefs
12334 cat >>$CONFIG_STATUS <<\_ACEOF
12335 # Let's still pretend it is `configure' which instantiates (i.e., don't
12336 # use $as_me), people would be surprised to read:
12337 # /* config.h. Generated by config.status. */
12338 if test x"$ac_file" = x-; then
12339 echo "/* Generated by configure. */" >$tmp/config.h
12341 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12343 cat $tmp/in >>$tmp/config.h
12345 if test x"$ac_file" != x-; then
12346 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12347 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12348 echo "$as_me: $ac_file is unchanged" >&6;}
12350 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12352 X"$ac_file" : 'X\(//\)[^/]' \| \
12353 X"$ac_file" : 'X\(//\)$' \| \
12354 X"$ac_file" : 'X\(/\)' \| \
12355 . : '\(.\)' 2>/dev/null ||
12357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12359 /^X\(\/\/\)$/{ s//\1/; q; }
12360 /^X\(\/\).*/{ s//\1/; q; }
12362 { case "$ac_dir" in
12363 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12367 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12368 case $as_mkdir_dir in
12369 # Skip DOS drivespec
12370 ?:) as_incr_dir=$as_mkdir_dir ;;
12372 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12373 test -d "$as_incr_dir" ||
12374 mkdir "$as_incr_dir" ||
12375 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12376 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12377 { (exit 1); exit 1; }; }
12383 mv $tmp/config.h $ac_file
12387 rm -f $tmp/config.h
12389 # Run the commands associated with the file.
12391 include/config.h ) # update the timestamp
12392 echo 'timestamp for include/config.h' >"include/stamp-h1"
12397 cat >>$CONFIG_STATUS <<\_ACEOF
12400 # CONFIG_COMMANDS section.
12402 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12403 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12404 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12405 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12406 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12407 X"$ac_dest" : 'X\(//\)[^/]' \| \
12408 X"$ac_dest" : 'X\(//\)$' \| \
12409 X"$ac_dest" : 'X\(/\)' \| \
12410 . : '\(.\)' 2>/dev/null ||
12412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12414 /^X\(\/\/\)$/{ s//\1/; q; }
12415 /^X\(\/\).*/{ s//\1/; q; }
12419 if test "$ac_dir" != .; then
12420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12421 # A "../" for each directory in $ac_dir_suffix.
12422 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12424 ac_dir_suffix= ac_top_builddir=
12428 .) # No --srcdir option. We are building in place.
12430 if test -z "$ac_top_builddir"; then
12433 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12435 [\\/]* | ?:[\\/]* ) # Absolute path.
12436 ac_srcdir=$srcdir$ac_dir_suffix;
12437 ac_top_srcdir=$srcdir ;;
12438 *) # Relative path.
12439 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12440 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12442 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12444 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12445 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12446 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12447 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12450 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12451 echo "$as_me: executing $ac_dest commands" >&6;}
12453 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12454 # Strip MF so we end up with the name of the file.
12455 mf=`echo "$mf" | sed -e 's/:.*$//'`
12456 # Check whether this is an Automake generated Makefile or not.
12457 # We used to match only the files named `Makefile.in', but
12458 # some people rename them; so instead we look at the file content.
12459 # Grep'ing the first line is not enough: some people post-process
12460 # each Makefile.in and add a new line on top of each file to say so.
12461 # So let's grep whole file.
12462 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12463 dirpart=`(dirname "$mf") 2>/dev/null ||
12464 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12465 X"$mf" : 'X\(//\)[^/]' \| \
12466 X"$mf" : 'X\(//\)$' \| \
12467 X"$mf" : 'X\(/\)' \| \
12468 . : '\(.\)' 2>/dev/null ||
12470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12472 /^X\(\/\/\)$/{ s//\1/; q; }
12473 /^X\(\/\).*/{ s//\1/; q; }
12478 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12479 # Extract the definition of DEP_FILES from the Makefile without
12481 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12482 test -z "$DEPDIR" && continue
12483 # When using ansi2knr, U may be empty or an underscore; expand it
12484 U=`sed -n -e '/^U = / s///p' < "$mf"`
12485 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12486 # We invoke sed twice because it is the simplest approach to
12487 # changing $(DEPDIR) to its actual value in the expansion.
12488 for file in `sed -n -e '
12489 /^DEP_FILES = .*\\\\$/ {
12498 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12499 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12500 # Make sure the directory exists.
12501 test -f "$dirpart/$file" && continue
12502 fdir=`(dirname "$file") 2>/dev/null ||
12503 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12504 X"$file" : 'X\(//\)[^/]' \| \
12505 X"$file" : 'X\(//\)$' \| \
12506 X"$file" : 'X\(/\)' \| \
12507 . : '\(.\)' 2>/dev/null ||
12509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12511 /^X\(\/\/\)$/{ s//\1/; q; }
12512 /^X\(\/\).*/{ s//\1/; q; }
12514 { case $dirpart/$fdir in
12515 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12518 as_dummy=$dirpart/$fdir
12519 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12520 case $as_mkdir_dir in
12521 # Skip DOS drivespec
12522 ?:) as_incr_dir=$as_mkdir_dir ;;
12524 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12525 test -d "$as_incr_dir" ||
12526 mkdir "$as_incr_dir" ||
12527 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
12528 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
12529 { (exit 1); exit 1; }; }
12534 # echo "creating $dirpart/$file"
12535 echo '# dummy' > "$dirpart/$file"
12543 cat >>$CONFIG_STATUS <<\_ACEOF
12545 { (exit 0); exit 0; }
12547 chmod +x $CONFIG_STATUS
12548 ac_clean_files=$ac_clean_files_save
12551 # configure is writing to config.log, and then calls config.status.
12552 # config.status does its own redirection, appending to config.log.
12553 # Unfortunately, on DOS this fails, as config.log is still kept open
12554 # by configure, so config.status won't be able to write to it; its
12555 # output is simply discarded. So we exec the FD to /dev/null,
12556 # effectively closing config.log, so it can be properly (re)opened and
12557 # appended to by config.status. When coming back to configure, we
12558 # need to make the FD available again.
12559 if test "$no_create" != yes; then
12562 $SHELL $CONFIG_STATUS || ac_cs_success=false
12564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12565 # would make configure fail if this is the last instruction.
12566 $ac_cs_success || { (exit 1); exit 1; }