2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for [LLVM] [1.0].
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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.
416 PACKAGE_NAME='[LLVM]'
417 PACKAGE_TARNAME='--llvm--'
418 PACKAGE_VERSION='[1.0]'
419 PACKAGE_STRING='[LLVM] [1.0]'
420 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
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>
459 ac_unique_file=""Makefile.config.in""
461 # Initialize some variables set by options.
463 ac_init_version=false
464 # The variables have the same names as the options, with
465 # dashes changed to underlines.
473 program_transform_name=s,x,x,
481 # Installation directory options.
482 # These are left unexpanded so users can "make install exec_prefix=/foo"
483 # and all the variables that are supposed to be based on exec_prefix
484 # by default will actually change.
485 # Use braces instead of parens because sh, perl, etc. also accept them.
486 bindir='${exec_prefix}/bin'
487 sbindir='${exec_prefix}/sbin'
488 libexecdir='${exec_prefix}/libexec'
489 datadir='${prefix}/share'
490 sysconfdir='${prefix}/etc'
491 sharedstatedir='${prefix}/com'
492 localstatedir='${prefix}/var'
493 libdir='${exec_prefix}/lib'
494 includedir='${prefix}/include'
495 oldincludedir='/usr/include'
496 infodir='${prefix}/info'
497 mandir='${prefix}/man'
502 # If the previous option needs an argument, assign it.
503 if test -n "$ac_prev"; then
504 eval "$ac_prev=\$ac_option"
509 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
511 # Accept the important Cygnus configure options, so we can diagnose typos.
515 -bindir | --bindir | --bindi | --bind | --bin | --bi)
517 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 -build | --build | --buil | --bui | --bu)
521 ac_prev=build_alias ;;
522 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
523 build_alias=$ac_optarg ;;
525 -cache-file | --cache-file | --cache-fil | --cache-fi \
526 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
527 ac_prev=cache_file ;;
528 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
529 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
530 cache_file=$ac_optarg ;;
533 cache_file=config.cache ;;
535 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
537 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
539 datadir=$ac_optarg ;;
541 -disable-* | --disable-*)
542 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
543 # Reject names that are not valid shell variable names.
544 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
545 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
546 { (exit 1); exit 1; }; }
547 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
548 eval "enable_$ac_feature=no" ;;
550 -enable-* | --enable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "enable_$ac_feature='$ac_optarg'" ;;
563 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
564 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
565 | --exec | --exe | --ex)
566 ac_prev=exec_prefix ;;
567 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
568 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
569 | --exec=* | --exe=* | --ex=*)
570 exec_prefix=$ac_optarg ;;
572 -gas | --gas | --ga | --g)
573 # Obsolete; use --with-gas.
576 -help | --help | --hel | --he | -h)
578 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
579 ac_init_help=recursive ;;
580 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
581 ac_init_help=short ;;
583 -host | --host | --hos | --ho)
584 ac_prev=host_alias ;;
585 -host=* | --host=* | --hos=* | --ho=*)
586 host_alias=$ac_optarg ;;
588 -includedir | --includedir | --includedi | --included | --include \
589 | --includ | --inclu | --incl | --inc)
590 ac_prev=includedir ;;
591 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
592 | --includ=* | --inclu=* | --incl=* | --inc=*)
593 includedir=$ac_optarg ;;
595 -infodir | --infodir | --infodi | --infod | --info | --inf)
597 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
598 infodir=$ac_optarg ;;
600 -libdir | --libdir | --libdi | --libd)
602 -libdir=* | --libdir=* | --libdi=* | --libd=*)
605 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
606 | --libexe | --libex | --libe)
607 ac_prev=libexecdir ;;
608 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
609 | --libexe=* | --libex=* | --libe=*)
610 libexecdir=$ac_optarg ;;
612 -localstatedir | --localstatedir | --localstatedi | --localstated \
613 | --localstate | --localstat | --localsta | --localst \
614 | --locals | --local | --loca | --loc | --lo)
615 ac_prev=localstatedir ;;
616 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
617 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
618 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
619 localstatedir=$ac_optarg ;;
621 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
623 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 # Obsolete; use --without-fp.
630 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
631 | --no-cr | --no-c | -n)
634 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
635 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
639 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
640 | --oldin | --oldi | --old | --ol | --o)
641 ac_prev=oldincludedir ;;
642 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
643 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
644 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
645 oldincludedir=$ac_optarg ;;
647 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
649 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652 -program-prefix | --program-prefix | --program-prefi | --program-pref \
653 | --program-pre | --program-pr | --program-p)
654 ac_prev=program_prefix ;;
655 -program-prefix=* | --program-prefix=* | --program-prefi=* \
656 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
657 program_prefix=$ac_optarg ;;
659 -program-suffix | --program-suffix | --program-suffi | --program-suff \
660 | --program-suf | --program-su | --program-s)
661 ac_prev=program_suffix ;;
662 -program-suffix=* | --program-suffix=* | --program-suffi=* \
663 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
664 program_suffix=$ac_optarg ;;
666 -program-transform-name | --program-transform-name \
667 | --program-transform-nam | --program-transform-na \
668 | --program-transform-n | --program-transform- \
669 | --program-transform | --program-transfor \
670 | --program-transfo | --program-transf \
671 | --program-trans | --program-tran \
672 | --progr-tra | --program-tr | --program-t)
673 ac_prev=program_transform_name ;;
674 -program-transform-name=* | --program-transform-name=* \
675 | --program-transform-nam=* | --program-transform-na=* \
676 | --program-transform-n=* | --program-transform-=* \
677 | --program-transform=* | --program-transfor=* \
678 | --program-transfo=* | --program-transf=* \
679 | --program-trans=* | --program-tran=* \
680 | --progr-tra=* | --program-tr=* | --program-t=*)
681 program_transform_name=$ac_optarg ;;
683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
684 | -silent | --silent | --silen | --sile | --sil)
687 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
689 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
691 sbindir=$ac_optarg ;;
693 -sharedstatedir | --sharedstatedir | --sharedstatedi \
694 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
695 | --sharedst | --shareds | --shared | --share | --shar \
697 ac_prev=sharedstatedir ;;
698 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
699 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
700 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
702 sharedstatedir=$ac_optarg ;;
704 -site | --site | --sit)
706 -site=* | --site=* | --sit=*)
709 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
711 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
715 | --syscon | --sysco | --sysc | --sys | --sy)
716 ac_prev=sysconfdir ;;
717 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
718 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
719 sysconfdir=$ac_optarg ;;
721 -target | --target | --targe | --targ | --tar | --ta | --t)
722 ac_prev=target_alias ;;
723 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
724 target_alias=$ac_optarg ;;
726 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 -version | --version | --versio | --versi | --vers | -V)
733 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
734 # Reject names that are not valid shell variable names.
735 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
736 { echo "$as_me: error: invalid package name: $ac_package" >&2
737 { (exit 1); exit 1; }; }
738 ac_package=`echo $ac_package| sed 's/-/_/g'`
740 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 eval "with_$ac_package='$ac_optarg'" ;;
745 -without-* | --without-*)
746 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package | sed 's/-/_/g'`
752 eval "with_$ac_package=no" ;;
755 # Obsolete; use --with-x.
758 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
759 | --x-incl | --x-inc | --x-in | --x-i)
760 ac_prev=x_includes ;;
761 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
762 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
763 x_includes=$ac_optarg ;;
765 -x-libraries | --x-libraries | --x-librarie | --x-librari \
766 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
767 ac_prev=x_libraries ;;
768 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
769 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
770 x_libraries=$ac_optarg ;;
772 -*) { echo "$as_me: error: unrecognized option: $ac_option
773 Try \`$0 --help' for more information." >&2
774 { (exit 1); exit 1; }; }
778 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
779 # Reject names that are not valid shell variable names.
780 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
781 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
782 { (exit 1); exit 1; }; }
783 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
784 eval "$ac_envvar='$ac_optarg'"
788 # FIXME: should be removed in autoconf 3.0.
789 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
790 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
791 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
792 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 if test -n "$ac_prev"; then
799 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
800 { echo "$as_me: error: missing argument to $ac_option" >&2
801 { (exit 1); exit 1; }; }
804 # Be sure to have absolute paths.
805 for ac_var in exec_prefix prefix
807 eval ac_val=$`echo $ac_var`
809 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
810 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
811 { (exit 1); exit 1; }; };;
815 # Be sure to have absolute paths.
816 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
817 localstatedir libdir includedir oldincludedir infodir mandir
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # There might be people who depend on the old broken behavior: `$host'
828 # used to hold the argument of --host etc.
829 # FIXME: To remove some day.
834 # FIXME: To remove some day.
835 if test "x$host_alias" != x; then
836 if test "x$build_alias" = x; then
837 cross_compiling=maybe
838 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
839 If a cross compiler is detected then cross compile mode will be used." >&2
840 elif test "x$build_alias" != "x$host_alias"; then
846 test -n "$host_alias" && ac_tool_prefix=$host_alias-
848 test "$silent" = yes && exec 6>/dev/null
851 # Find the source files, if location was not specified.
852 if test -z "$srcdir"; then
853 ac_srcdir_defaulted=yes
854 # Try the directory containing this script, then its parent.
855 ac_confdir=`(dirname "$0") 2>/dev/null ||
856 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
857 X"$0" : 'X\(//\)[^/]' \| \
858 X"$0" : 'X\(//\)$' \| \
859 X"$0" : 'X\(/\)' \| \
860 . : '\(.\)' 2>/dev/null ||
862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
864 /^X\(\/\/\)$/{ s//\1/; q; }
865 /^X\(\/\).*/{ s//\1/; q; }
868 if test ! -r $srcdir/$ac_unique_file; then
872 ac_srcdir_defaulted=no
874 if test ! -r $srcdir/$ac_unique_file; then
875 if test "$ac_srcdir_defaulted" = yes; then
876 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
877 { (exit 1); exit 1; }; }
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
880 { (exit 1); exit 1; }; }
883 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
884 ac_env_build_alias_set=${build_alias+set}
885 ac_env_build_alias_value=$build_alias
886 ac_cv_env_build_alias_set=${build_alias+set}
887 ac_cv_env_build_alias_value=$build_alias
888 ac_env_host_alias_set=${host_alias+set}
889 ac_env_host_alias_value=$host_alias
890 ac_cv_env_host_alias_set=${host_alias+set}
891 ac_cv_env_host_alias_value=$host_alias
892 ac_env_target_alias_set=${target_alias+set}
893 ac_env_target_alias_value=$target_alias
894 ac_cv_env_target_alias_set=${target_alias+set}
895 ac_cv_env_target_alias_value=$target_alias
896 ac_env_CXX_set=${CXX+set}
897 ac_env_CXX_value=$CXX
898 ac_cv_env_CXX_set=${CXX+set}
899 ac_cv_env_CXX_value=$CXX
900 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
901 ac_env_CXXFLAGS_value=$CXXFLAGS
902 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
903 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
904 ac_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_env_LDFLAGS_value=$LDFLAGS
906 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
907 ac_cv_env_LDFLAGS_value=$LDFLAGS
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_CPP_set=${CPP+set}
921 ac_env_CPP_value=$CPP
922 ac_cv_env_CPP_set=${CPP+set}
923 ac_cv_env_CPP_value=$CPP
926 # Report the --help message.
928 if test "$ac_init_help" = "long"; then
929 # Omit some internal or obsolete options to make the list less imposing.
930 # This message is too long to be a string in the A/UX 3.1 sh.
932 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
934 Usage: $0 [OPTION]... [VAR=VALUE]...
936 To assign environment variables (e.g., CC, CFLAGS...), specify them as
937 VAR=VALUE. See below for descriptions of some of the useful variables.
939 Defaults for the options are specified in brackets.
942 -h, --help display this help and exit
943 --help=short display options specific to this package
944 --help=recursive display the short help of all the included packages
945 -V, --version display version information and exit
946 -q, --quiet, --silent do not print \`checking...' messages
947 --cache-file=FILE cache test results in FILE [disabled]
948 -C, --config-cache alias for \`--cache-file=config.cache'
949 -n, --no-create do not create output files
950 --srcdir=DIR find the sources in DIR [configure dir or \`..']
955 Installation directories:
956 --prefix=PREFIX install architecture-independent files in PREFIX
958 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
961 By default, \`make install' will install all the files in
962 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
963 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
964 for instance \`--prefix=\$HOME'.
966 For better control, use the options below.
968 Fine tuning of the installation directories:
969 --bindir=DIR user executables [EPREFIX/bin]
970 --sbindir=DIR system admin executables [EPREFIX/sbin]
971 --libexecdir=DIR program executables [EPREFIX/libexec]
972 --datadir=DIR read-only architecture-independent data [PREFIX/share]
973 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
974 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
975 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
976 --libdir=DIR object code libraries [EPREFIX/lib]
977 --includedir=DIR C header files [PREFIX/include]
978 --oldincludedir=DIR C header files for non-gcc [/usr/include]
979 --infodir=DIR info documentation [PREFIX/info]
980 --mandir=DIR man documentation [PREFIX/man]
986 --build=BUILD configure for building on BUILD [guessed]
987 --host=HOST cross-compile to build programs to run on HOST [BUILD]
988 --target=TARGET configure for building compilers for TARGET [HOST]
992 if test -n "$ac_init_help"; then
993 case $ac_init_help in
994 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
999 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1000 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1001 --enable-shared=PKGS build shared libraries default=yes
1002 --enable-static=PKGS build static libraries default=yes
1003 --enable-fast-install=PKGS optimize for fast installation default=yes
1004 --disable-libtool-lock avoid locking (might break parallel builds)
1005 --enable-purify Compile with purify (default is NO)
1006 --enable-verbose Enable verbose compilation messages (default is NO)
1007 --enable-profiling Compile with profiling information (default is NO)
1008 --enable-optimized Compile with optimizations enabled (default is NO)
1009 --enable-spec Compile SPEC benchmarks (default is NO)
1010 --enable-precompiled_bytecode
1011 Use pre-compiled bytecode (default is NO)
1012 --enable-jit Enable Just In Time Compiling (default is NO)
1015 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1016 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1017 --with-gnu-ld assume the C compiler uses GNU ld default=no
1018 --with-pic try to use only PIC/non-PIC objects default=use both
1019 --with-spec Location of SPEC benchmarks
1020 --with-llvmgccdir Location of LLVM GCC front-end
1021 --with-bcrepos Location of Bytecode Repository
1022 --with-papi Location of PAPI
1023 --with-objroot Location where object files should be placed
1025 --with-purify Location of purify program
1027 Some influential environment variables:
1028 CXX C++ compiler command
1029 CXXFLAGS C++ compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1034 CC C compiler command
1035 CFLAGS C compiler flags
1038 Use these variables to override the choices made by `configure' or to help
1039 it to find libraries and programs with nonstandard names/locations.
1041 Report bugs to <llvmbugs@cs.uiuc.edu>.
1045 if test "$ac_init_help" = "recursive"; then
1046 # If there are subdirs, report their specific --help.
1048 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049 test -d $ac_dir || continue
1052 if test "$ac_dir" != .; then
1053 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054 # A "../" for each directory in $ac_dir_suffix.
1055 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057 ac_dir_suffix= ac_top_builddir=
1061 .) # No --srcdir option. We are building in place.
1063 if test -z "$ac_top_builddir"; then
1066 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1068 [\\/]* | ?:[\\/]* ) # Absolute path.
1069 ac_srcdir=$srcdir$ac_dir_suffix;
1070 ac_top_srcdir=$srcdir ;;
1072 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1075 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1077 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1078 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1079 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1080 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1083 # Check for guested configure; otherwise get Cygnus style configure.
1084 if test -f $ac_srcdir/configure.gnu; then
1086 $SHELL $ac_srcdir/configure.gnu --help=recursive
1087 elif test -f $ac_srcdir/configure; then
1089 $SHELL $ac_srcdir/configure --help=recursive
1090 elif test -f $ac_srcdir/configure.ac ||
1091 test -f $ac_srcdir/configure.in; then
1093 $ac_configure --help
1095 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1101 test -n "$ac_init_help" && exit 0
1102 if $ac_init_version; then
1104 [LLVM] configure [1.0]
1105 generated by GNU Autoconf 2.53
1107 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1108 Free Software Foundation, Inc.
1109 This configure script is free software; the Free Software Foundation
1110 gives unlimited permission to copy, distribute and modify it.
1116 This file contains any messages produced by compilers while
1117 running configure, to aid debugging if configure makes a mistake.
1119 It was created by [LLVM] $as_me [1.0], which was
1120 generated by GNU Autoconf 2.53. Invocation command line was
1131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1132 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1133 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1134 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1135 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1138 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1140 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1141 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1143 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1144 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1145 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1146 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1154 test -z "$as_dir" && as_dir=.
1155 echo "PATH: $as_dir"
1170 # Keep a trace of the command line.
1171 # Strip out --no-create and --no-recursion so they do not pile up.
1172 # Also quote any args containing shell meta-characters.
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n ) continue ;;
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1184 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1186 case " $ac_configure_args " in
1187 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1188 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1191 # Get rid of the leading space.
1194 # When interrupted or exit'd, cleanup temporary files, and complete
1195 # config.log. We remove comments because anyway the quotes in there
1196 # would cause problems or look ugly.
1197 # WARNING: Be sure not to use single quotes in there, as some shells,
1198 # such as our DU 5.0 friend, will then `close' the trap.
1199 trap 'exit_status=$?
1200 # Save into config.log some information that might help in debugging.
1204 ## ---------------- ##
1205 ## Cache variables. ##
1206 ## ---------------- ##
1209 # The following way of writing the cache mishandles newlines in values,
1212 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1215 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1220 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1225 if test -s confdefs.h; then
1232 sed "/^$/d" confdefs.h
1235 test "$ac_signal" != 0 &&
1236 echo "$as_me: caught signal $ac_signal"
1237 echo "$as_me: exit $exit_status"
1239 rm -f core core.* *.core &&
1240 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1243 for ac_signal in 1 2 13 15; do
1244 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1249 rm -rf conftest* confdefs.h
1250 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1253 # Predefined preprocessor variables.
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_NAME "$PACKAGE_NAME"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_STRING "$PACKAGE_STRING"
1275 cat >>confdefs.h <<_ACEOF
1276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280 # Let the site file select an alternate cache file if it wants to.
1281 # Prefer explicitly selected file to automatically selected ones.
1282 if test -z "$CONFIG_SITE"; then
1283 if test "x$prefix" != xNONE; then
1284 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1286 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1289 for ac_site_file in $CONFIG_SITE; do
1290 if test -r "$ac_site_file"; then
1291 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1292 echo "$as_me: loading site script $ac_site_file" >&6;}
1293 sed 's/^/| /' "$ac_site_file" >&5
1298 if test -r "$cache_file"; then
1299 # Some versions of bash will fail to source /dev/null (special
1300 # files actually), so we avoid doing that.
1301 if test -f "$cache_file"; then
1302 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1303 echo "$as_me: loading cache $cache_file" >&6;}
1305 [\\/]* | ?:[\\/]* ) . $cache_file;;
1306 *) . ./$cache_file;;
1310 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1311 echo "$as_me: creating cache $cache_file" >&6;}
1315 # Check that the precious variables saved in the cache have kept the same
1317 ac_cache_corrupted=false
1318 for ac_var in `(set) 2>&1 |
1319 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1321 eval ac_new_set=\$ac_env_${ac_var}_set
1322 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1323 eval ac_new_val="\$ac_env_${ac_var}_value"
1324 case $ac_old_set,$ac_new_set in
1326 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1327 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1328 ac_cache_corrupted=: ;;
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1332 ac_cache_corrupted=: ;;
1335 if test "x$ac_old_val" != "x$ac_new_val"; then
1336 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1337 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1338 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1339 echo "$as_me: former value: $ac_old_val" >&2;}
1340 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1341 echo "$as_me: current value: $ac_new_val" >&2;}
1342 ac_cache_corrupted=:
1345 # Pass precious variables to config.status.
1346 if test "$ac_new_set" = set; then
1348 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1349 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1350 *) ac_arg=$ac_var=$ac_new_val ;;
1352 case " $ac_configure_args " in
1353 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1354 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358 if $ac_cache_corrupted; then
1359 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1360 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1361 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1362 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1363 { (exit 1); exit 1; }; }
1367 ac_cpp='$CPP $CPPFLAGS'
1368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1398 ac_config_headers="$ac_config_headers include/Config/config.h"
1403 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1404 if test -f $ac_dir/install-sh; then
1406 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 elif test -f $ac_dir/install.sh; then
1410 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 elif test -f $ac_dir/shtool; then
1414 ac_install_sh="$ac_aux_dir/shtool install -c"
1418 if test -z "$ac_aux_dir"; then
1419 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1420 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1421 { (exit 1); exit 1; }; }
1423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427 # Find a good install program. We prefer a C program (faster),
1428 # so one script is as good as another. But avoid the broken or
1429 # incompatible versions:
1430 # SysV /etc/install, /usr/sbin/install
1431 # SunOS /usr/etc/install
1432 # IRIX /sbin/install
1434 # AmigaOS /C/install, which installs bootblocks on floppy discs
1435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1438 # ./install, which can be erroneously created by make from ./install.sh.
1439 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1440 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1441 if test -z "$INSTALL"; then
1442 if test "${ac_cv_path_install+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 # Account for people who put trailing slashes in PATH elements.
1452 ./ | .// | /cC/* | \
1453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1456 # OSF1 and SCO ODT 3.0 have their own names for install.
1457 # Don't use installbsd from OSF since it installs stuff as root
1459 for ac_prog in ginstall scoinst install; do
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1462 if test $ac_prog = install &&
1463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1464 # AIX install. It has an incompatible calling convention.
1466 elif test $ac_prog = install &&
1467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1468 # program-specific install script used by HP pwplus--don't use.
1471 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1483 if test "${ac_cv_path_install+set}" = set; then
1484 INSTALL=$ac_cv_path_install
1486 # As a last resort, use the slow shell script. We don't cache a
1487 # path for INSTALL within a source directory, because that will
1488 # break other packages using the cache if that directory is
1489 # removed, or if the path is relative.
1490 INSTALL=$ac_install_sh
1493 echo "$as_me:$LINENO: result: $INSTALL" >&5
1494 echo "${ECHO_T}$INSTALL" >&6
1496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1497 # It thinks the first close brace ends the variable substitution.
1498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1505 # Make sure we can run config.sub.
1506 $ac_config_sub sun4 >/dev/null 2>&1 ||
1507 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1508 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1509 { (exit 1); exit 1; }; }
1511 echo "$as_me:$LINENO: checking build system type" >&5
1512 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1513 if test "${ac_cv_build+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 ac_cv_build_alias=$build_alias
1517 test -z "$ac_cv_build_alias" &&
1518 ac_cv_build_alias=`$ac_config_guess`
1519 test -z "$ac_cv_build_alias" &&
1520 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1522 { (exit 1); exit 1; }; }
1523 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1524 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1525 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1526 { (exit 1); exit 1; }; }
1529 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1530 echo "${ECHO_T}$ac_cv_build" >&6
1532 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1533 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1534 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1537 echo "$as_me:$LINENO: checking host system type" >&5
1538 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1539 if test "${ac_cv_host+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 ac_cv_host_alias=$host_alias
1543 test -z "$ac_cv_host_alias" &&
1544 ac_cv_host_alias=$ac_cv_build_alias
1545 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1552 echo "${ECHO_T}$ac_cv_host" >&6
1554 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$as_me:$LINENO: checking target system type" >&5
1560 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1561 if test "${ac_cv_target+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 ac_cv_target_alias=$target_alias
1565 test "x$ac_cv_target_alias" = "x" &&
1566 ac_cv_target_alias=$ac_cv_host_alias
1567 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1574 echo "${ECHO_T}$ac_cv_target" >&6
1575 target=$ac_cv_target
1576 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 # The aliases save the names the user supplied, while $host etc.
1582 # will get canonicalized.
1583 test -n "$target_alias" &&
1584 test "$program_prefix$program_suffix$program_transform_name" = \
1586 program_prefix=${target_alias}-
1591 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
1593 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1599 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1609 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1616 ac_cpp='$CXXCPP $CPPFLAGS'
1617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1620 if test -n "$ac_tool_prefix"; then
1621 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CXX+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CXX"; then
1631 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 if test -n "$CXX"; then
1651 echo "$as_me:$LINENO: result: $CXX" >&5
1652 echo "${ECHO_T}$CXX" >&6
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1658 test -n "$CXX" && break
1661 if test -z "$CXX"; then
1663 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1665 # Extract the first word of "$ac_prog", so it can be a program name with args.
1666 set dummy $ac_prog; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$ac_ct_CXX"; then
1673 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CXX="$ac_prog"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1692 if test -n "$ac_ct_CXX"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1694 echo "${ECHO_T}$ac_ct_CXX" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1700 test -n "$ac_ct_CXX" && break
1702 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1708 # Provide some information about the compiler.
1709 echo "$as_me:$LINENO:" \
1710 "checking for C++ compiler version" >&5
1711 ac_compiler=`set X $ac_compile; echo $2`
1712 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1713 (eval $ac_compiler --version </dev/null >&5) 2>&5
1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716 (exit $ac_status); }
1717 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1718 (eval $ac_compiler -v </dev/null >&5) 2>&5
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }
1722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1723 (eval $ac_compiler -V </dev/null >&5) 2>&5
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }
1728 cat >conftest.$ac_ext <<_ACEOF
1729 #line $LINENO "configure"
1730 #include "confdefs.h"
1732 #ifdef F77_DUMMY_MAIN
1736 int F77_DUMMY_MAIN() { return 1; }
1746 ac_clean_files_save=$ac_clean_files
1747 ac_clean_files="$ac_clean_files a.out a.exe"
1748 # Try to create an executable without -o first, disregard a.out.
1749 # It will help us diagnose broken compilers, and finding out an intuition
1751 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1752 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # Find the output, starting from the most likely. This scheme is
1760 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1763 # Be careful to initialize this variable, since it used to be cached.
1764 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1767 ls a.out conftest 2>/dev/null;
1768 ls a.* conftest.* 2>/dev/null`; do
1770 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1771 a.out ) # We found the default executable, but exeext='' is most
1774 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1775 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1782 echo "$as_me: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1784 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1785 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1786 { (exit 77); exit 77; }; }
1789 ac_exeext=$ac_cv_exeext
1790 echo "$as_me:$LINENO: result: $ac_file" >&5
1791 echo "${ECHO_T}$ac_file" >&6
1793 # Check the compiler produces executables we can run. If not, either
1794 # the compiler is broken, or we cross compile.
1795 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1796 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1797 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1798 # If not cross compiling, check that we can run a simple program.
1799 if test "$cross_compiling" != yes; then
1800 if { ac_try='./$ac_file'
1801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 if test "$cross_compiling" = maybe; then
1811 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1812 If you meant to cross compile, use \`--host'." >&5
1813 echo "$as_me: error: cannot run C++ compiled programs.
1814 If you meant to cross compile, use \`--host'." >&2;}
1815 { (exit 1); exit 1; }; }
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1822 rm -f a.out a.exe conftest$ac_cv_exeext
1823 ac_clean_files=$ac_clean_files_save
1824 # Check the compiler produces executables we can run. If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1828 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1829 echo "${ECHO_T}$cross_compiling" >&6
1831 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1834 (eval $ac_link) 2>&5
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; then
1838 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1839 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1840 # work properly (i.e., refer to `conftest.exe'), while it won't with
1842 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1844 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1853 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1854 { (exit 1); exit 1; }; }
1857 rm -f conftest$ac_cv_exeext
1858 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1859 echo "${ECHO_T}$ac_cv_exeext" >&6
1861 rm -f conftest.$ac_ext
1862 EXEEXT=$ac_cv_exeext
1864 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1866 if test "${ac_cv_objext+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line $LINENO "configure"
1871 #include "confdefs.h"
1873 #ifdef F77_DUMMY_MAIN
1877 int F77_DUMMY_MAIN() { return 1; }
1887 rm -f conftest.o conftest.obj
1888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1889 (eval $ac_compile) 2>&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1896 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1904 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1910 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1911 echo "${ECHO_T}$ac_cv_objext" >&6
1912 OBJEXT=$ac_cv_objext
1914 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1915 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1916 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 cat >conftest.$ac_ext <<_ACEOF
1920 #line $LINENO "configure"
1921 #include "confdefs.h"
1923 #ifdef F77_DUMMY_MAIN
1927 int F77_DUMMY_MAIN() { return 1; }
1940 rm -f conftest.$ac_objext
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); } &&
1946 { ac_try='test -s conftest.$ac_objext'
1947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1954 echo "$as_me: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1958 rm -f conftest.$ac_objext conftest.$ac_ext
1959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1962 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1963 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1964 GXX=`test $ac_compiler_gnu = yes && echo yes`
1965 ac_test_CXXFLAGS=${CXXFLAGS+set}
1966 ac_save_CXXFLAGS=$CXXFLAGS
1968 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1969 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1970 if test "${ac_cv_prog_cxx_g+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 #include "confdefs.h"
1977 #ifdef F77_DUMMY_MAIN
1981 int F77_DUMMY_MAIN() { return 1; }
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -s conftest.$ac_objext'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; }; then
2003 ac_cv_prog_cxx_g=yes
2005 echo "$as_me: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2009 rm -f conftest.$ac_objext conftest.$ac_ext
2011 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2012 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2013 if test "$ac_test_CXXFLAGS" = set; then
2014 CXXFLAGS=$ac_save_CXXFLAGS
2015 elif test $ac_cv_prog_cxx_g = yes; then
2016 if test "$GXX" = yes; then
2022 if test "$GXX" = yes; then
2028 for ac_declaration in \
2030 '#include <stdlib.h>' \
2031 'extern "C" void std::exit (int) throw (); using std::exit;' \
2032 'extern "C" void std::exit (int); using std::exit;' \
2033 'extern "C" void exit (int) throw ();' \
2034 'extern "C" void exit (int);' \
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2039 #include "confdefs.h"
2042 #ifdef F77_DUMMY_MAIN
2046 int F77_DUMMY_MAIN() { return 1; }
2056 rm -f conftest.$ac_objext
2057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2058 (eval $ac_compile) 2>&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2070 echo "$as_me: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2074 rm -f conftest.$ac_objext conftest.$ac_ext
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2079 #ifdef F77_DUMMY_MAIN
2083 int F77_DUMMY_MAIN() { return 1; }
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2110 rm -f conftest.$ac_objext conftest.$ac_ext
2113 if test -n "$ac_declaration"; then
2114 echo '#ifdef __cplusplus' >>confdefs.h
2115 echo $ac_declaration >>confdefs.h
2116 echo '#endif' >>confdefs.h
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 if test -n "$CC"; then
2161 echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6
2164 echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6
2168 test -n "$CC" && break
2171 if test -z "$CC"; then
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test -n "$ac_ct_CC"; then
2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_ac_ct_CC="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204 echo "${ECHO_T}$ac_ct_CC" >&6
2206 echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2210 test -n "$ac_ct_CC" && break
2217 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2218 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2219 { (exit 1); exit 1; }; }
2221 # Provide some information about the compiler.
2222 echo "$as_me:$LINENO:" \
2223 "checking for C compiler version" >&5
2224 ac_compiler=`set X $ac_compile; echo $2`
2225 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2226 (eval $ac_compiler --version </dev/null >&5) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }
2230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2231 (eval $ac_compiler -v </dev/null >&5) 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }
2235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2236 (eval $ac_compiler -V </dev/null >&5) 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }
2241 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2242 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2243 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 cat >conftest.$ac_ext <<_ACEOF
2247 #line $LINENO "configure"
2248 #include "confdefs.h"
2250 #ifdef F77_DUMMY_MAIN
2254 int F77_DUMMY_MAIN() { return 1; }
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2281 echo "$as_me: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2285 rm -f conftest.$ac_objext conftest.$ac_ext
2286 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2289 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291 GCC=`test $ac_compiler_gnu = yes && echo yes`
2292 ac_test_CFLAGS=${CFLAGS+set}
2293 ac_save_CFLAGS=$CFLAGS
2295 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_g+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #line $LINENO "configure"
2302 #include "confdefs.h"
2304 #ifdef F77_DUMMY_MAIN
2308 int F77_DUMMY_MAIN() { return 1; }
2318 rm -f conftest.$ac_objext
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -s conftest.$ac_objext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2336 rm -f conftest.$ac_objext conftest.$ac_ext
2338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2340 if test "$ac_test_CFLAGS" = set; then
2341 CFLAGS=$ac_save_CFLAGS
2342 elif test $ac_cv_prog_cc_g = yes; then
2343 if test "$GCC" = yes; then
2349 if test "$GCC" = yes; then
2355 # Some people use a C++ compiler to compile C. Since we use `exit',
2356 # in C++ we need to declare it. In case someone uses the same compiler
2357 # for both compiling C and C++ we need to have the C++ compiler decide
2358 # the declaration of exit, since it's the most demanding environment.
2359 cat >conftest.$ac_ext <<_ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 for ac_declaration in \
2378 '#include <stdlib.h>' \
2379 'extern "C" void std::exit (int) throw (); using std::exit;' \
2380 'extern "C" void std::exit (int); using std::exit;' \
2381 'extern "C" void exit (int) throw ();' \
2382 'extern "C" void exit (int);' \
2385 cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2387 #include "confdefs.h"
2390 #ifdef F77_DUMMY_MAIN
2394 int F77_DUMMY_MAIN() { return 1; }
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2422 rm -f conftest.$ac_objext conftest.$ac_ext
2423 cat >conftest.$ac_ext <<_ACEOF
2424 #line $LINENO "configure"
2425 #include "confdefs.h"
2427 #ifdef F77_DUMMY_MAIN
2431 int F77_DUMMY_MAIN() { return 1; }
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2455 echo "$as_me: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 rm -f conftest.$ac_objext conftest.$ac_ext
2461 if test -n "$ac_declaration"; then
2462 echo '#ifdef __cplusplus' >>confdefs.h
2463 echo $ac_declaration >>confdefs.h
2464 echo '#endif' >>confdefs.h
2468 echo "$as_me: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 rm -f conftest.$ac_objext conftest.$ac_ext
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2484 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2485 # On Suns, sometimes $CPP names a directory.
2486 if test -n "$CPP" && test -d "$CPP"; then
2489 if test -z "$CPP"; then
2490 if test "${ac_cv_prog_CPP+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 # Double quotes because CPP needs to be expanded
2494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2497 for ac_c_preproc_warn_flag in '' yes
2499 # Use a header file that comes with gcc, so configuring glibc
2500 # with a fresh cross-compiler works.
2501 # On the NeXT, cc -E runs the code through the compiler's parser,
2502 # not just through cpp. "Syntax error" is here to catch this case.
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line $LINENO "configure"
2505 #include "confdefs.h"
2509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2512 egrep -v '^ *\+' conftest.er1 >conftest.err
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } >/dev/null; then
2517 if test -s conftest.err; then
2518 ac_cpp_err=$ac_c_preproc_warn_flag
2525 if test -z "$ac_cpp_err"; then
2528 echo "$as_me: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2530 # Broken: fails on valid input.
2533 rm -f conftest.err conftest.$ac_ext
2535 # OK, works on sane cases. Now check whether non-existent headers
2536 # can be detected and how.
2537 cat >conftest.$ac_ext <<_ACEOF
2538 #line $LINENO "configure"
2539 #include "confdefs.h"
2540 #include <ac_nonexistent.h>
2542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2545 egrep -v '^ *\+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } >/dev/null; then
2550 if test -s conftest.err; then
2551 ac_cpp_err=$ac_c_preproc_warn_flag
2558 if test -z "$ac_cpp_err"; then
2559 # Broken: success on invalid input.
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 # Passes both tests.
2568 rm -f conftest.err conftest.$ac_ext
2571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2572 rm -f conftest.err conftest.$ac_ext
2573 if $ac_preproc_ok; then
2585 echo "$as_me:$LINENO: result: $CPP" >&5
2586 echo "${ECHO_T}$CPP" >&6
2588 for ac_c_preproc_warn_flag in '' yes
2590 # Use a header file that comes with gcc, so configuring glibc
2591 # with a fresh cross-compiler works.
2592 # On the NeXT, cc -E runs the code through the compiler's parser,
2593 # not just through cpp. "Syntax error" is here to catch this case.
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #line $LINENO "configure"
2596 #include "confdefs.h"
2600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2603 egrep -v '^ *\+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } >/dev/null; then
2608 if test -s conftest.err; then
2609 ac_cpp_err=$ac_c_preproc_warn_flag
2616 if test -z "$ac_cpp_err"; then
2619 echo "$as_me: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2621 # Broken: fails on valid input.
2624 rm -f conftest.err conftest.$ac_ext
2626 # OK, works on sane cases. Now check whether non-existent headers
2627 # can be detected and how.
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 #include "confdefs.h"
2631 #include <ac_nonexistent.h>
2633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2636 egrep -v '^ *\+' conftest.er1 >conftest.err
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } >/dev/null; then
2641 if test -s conftest.err; then
2642 ac_cpp_err=$ac_c_preproc_warn_flag
2649 if test -z "$ac_cpp_err"; then
2650 # Broken: success on invalid input.
2653 echo "$as_me: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2655 # Passes both tests.
2659 rm -f conftest.err conftest.$ac_ext
2662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2663 rm -f conftest.err conftest.$ac_ext
2664 if $ac_preproc_ok; then
2667 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2669 { (exit 1); exit 1; }; }
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 if test "$GCC" != "yes"
2681 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2682 echo "$as_me: error: gcc required but not found" >&2;}
2683 { (exit 1); exit 1; }; }
2686 if test "$GXX" != "yes"
2688 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2689 echo "$as_me: error: g++ required but not found" >&2;}
2690 { (exit 1); exit 1; }; }
2693 echo "$as_me:$LINENO: checking for GNU make" >&5
2694 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2695 if test "${_cv_gnu_make_command+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 _cv_gnu_make_command='' ;
2699 for a in "$MAKE" make gmake gnumake ; do
2700 if test -z "$a" ; then continue ; fi ;
2701 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2702 _cv_gnu_make_command=$a ;
2708 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2709 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2710 if test "x$_cv_gnu_make_command" != "x" ; then
2714 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2715 echo "${ECHO_T}\"Not found\"" >&6;
2719 if test -z "$_cv_gnu_make_command"
2721 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2722 echo "$as_me: error: GNU Make required but not found" >&2;}
2723 { (exit 1); exit 1; }; }
2727 echo "$as_me:$LINENO: checking " >&5
2728 echo $ECHO_N "checking ... $ECHO_C" >&6
2729 if test "${ac_cv_has_flex+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 for ac_prog in flex lex
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738 if test "${ac_cv_prog_LEX+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -n "$LEX"; then
2742 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_LEX="$ac_prog"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 if test -n "$LEX"; then
2762 echo "$as_me:$LINENO: result: $LEX" >&5
2763 echo "${ECHO_T}$LEX" >&6
2765 echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2769 test -n "$LEX" && break
2771 test -n "$LEX" || LEX=":"
2773 if test -z "$LEXLIB"
2775 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2776 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2777 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 ac_check_lib_save_LIBS=$LIBS
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2784 #include "confdefs.h"
2786 /* Override any gcc2 internal prototype to avoid an error. */
2790 /* We use char because int might match the return type of a gcc2
2791 builtin and then its argument prototype would still apply. */
2793 #ifdef F77_DUMMY_MAIN
2797 int F77_DUMMY_MAIN() { return 1; }
2807 rm -f conftest.$ac_objext conftest$ac_exeext
2808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2809 (eval $ac_link) 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest$ac_exeext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 ac_cv_lib_fl_yywrap=yes
2821 echo "$as_me: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2823 ac_cv_lib_fl_yywrap=no
2825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2826 LIBS=$ac_check_lib_save_LIBS
2828 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2829 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2830 if test $ac_cv_lib_fl_yywrap = yes; then
2833 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2834 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2835 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 ac_check_lib_save_LIBS=$LIBS
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2842 #include "confdefs.h"
2844 /* Override any gcc2 internal prototype to avoid an error. */
2848 /* We use char because int might match the return type of a gcc2
2849 builtin and then its argument prototype would still apply. */
2851 #ifdef F77_DUMMY_MAIN
2855 int F77_DUMMY_MAIN() { return 1; }
2865 rm -f conftest.$ac_objext conftest$ac_exeext
2866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2867 (eval $ac_link) 2>&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 { ac_try='test -s conftest$ac_exeext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_cv_lib_l_yywrap=yes
2879 echo "$as_me: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881 ac_cv_lib_l_yywrap=no
2883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2884 LIBS=$ac_check_lib_save_LIBS
2886 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2887 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2888 if test $ac_cv_lib_l_yywrap = yes; then
2896 if test "x$LEX" != "x:"; then
2897 echo "$as_me:$LINENO: checking lex output file root" >&5
2898 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2899 if test "${ac_cv_prog_lex_root+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 # The minimal lex program is just a single line: %%. But some broken lexes
2903 # (Solaris, I think it was) want two %% lines, so accommodate them.
2904 cat >conftest.l <<_ACEOF
2908 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2909 (eval $LEX conftest.l) 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913 if test -f lex.yy.c; then
2914 ac_cv_prog_lex_root=lex.yy
2915 elif test -f lexyy.c; then
2916 ac_cv_prog_lex_root=lexyy
2918 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2919 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2920 { (exit 1); exit 1; }; }
2923 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2924 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2926 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2928 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2929 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2930 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 # POSIX says lex can declare yytext either as a pointer or an array; the
2934 # default is implementation-dependent. Figure out which it is, since
2935 # not all implementations provide the %pointer and %array declarations.
2936 ac_cv_prog_lex_yytext_pointer=no
2937 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2939 LIBS="$LIBS $LEXLIB"
2940 cat >conftest.$ac_ext <<_ACEOF
2941 `cat $LEX_OUTPUT_ROOT.c`
2943 rm -f conftest.$ac_objext conftest$ac_exeext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945 (eval $ac_link) 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest$ac_exeext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 ac_cv_prog_lex_yytext_pointer=yes
2957 echo "$as_me: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2962 rm -f "${LEX_OUTPUT_ROOT}.c"
2965 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2966 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2967 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2969 cat >>confdefs.h <<\_ACEOF
2970 #define YYTEXT_POINTER 1
2978 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
2979 echo "${ECHO_T}$ac_cv_has_flex" >&6
2980 if test "$LEX" != "flex"; then
2981 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
2982 echo "$as_me: error: flex not found but required" >&2;}
2983 { (exit 1); exit 1; }; }
2986 echo "$as_me:$LINENO: checking " >&5
2987 echo $ECHO_N "checking ... $ECHO_C" >&6
2988 if test "${ac_cv_has_bison+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 for ac_prog in 'bison -y' byacc
2993 # Extract the first word of "$ac_prog", so it can be a program name with args.
2994 set dummy $ac_prog; ac_word=$2
2995 echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2997 if test "${ac_cv_prog_YACC+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 if test -n "$YACC"; then
3001 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_YACC="$ac_prog"
3011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 YACC=$ac_cv_prog_YACC
3020 if test -n "$YACC"; then
3021 echo "$as_me:$LINENO: result: $YACC" >&5
3022 echo "${ECHO_T}$YACC" >&6
3024 echo "$as_me:$LINENO: result: no" >&5
3025 echo "${ECHO_T}no" >&6
3028 test -n "$YACC" && break
3030 test -n "$YACC" || YACC="yacc"
3034 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3035 echo "${ECHO_T}$ac_cv_has_bison" >&6
3036 if test "$YACC" != "bison -y"; then
3037 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3038 echo "$as_me: error: bison not found but required" >&2;}
3039 { (exit 1); exit 1; }; }
3046 # Check whether --enable-shared or --disable-shared was given.
3047 if test "${enable_shared+set}" = set; then
3048 enableval="$enable_shared"
3049 p=${PACKAGE-default}
3051 yes) enable_shared=yes ;;
3052 no) enable_shared=no ;;
3055 # Look at the argument we got. We use all the common list separators.
3056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3057 for pkg in $enableval; do
3058 if test "X$pkg" = "X$p"; then
3068 # Check whether --enable-static or --disable-static was given.
3069 if test "${enable_static+set}" = set; then
3070 enableval="$enable_static"
3071 p=${PACKAGE-default}
3073 yes) enable_static=yes ;;
3074 no) enable_static=no ;;
3077 # Look at the argument we got. We use all the common list separators.
3078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3079 for pkg in $enableval; do
3080 if test "X$pkg" = "X$p"; then
3090 # Check whether --enable-fast-install or --disable-fast-install was given.
3091 if test "${enable_fast_install+set}" = set; then
3092 enableval="$enable_fast_install"
3093 p=${PACKAGE-default}
3095 yes) enable_fast_install=yes ;;
3096 no) enable_fast_install=no ;;
3098 enable_fast_install=no
3099 # Look at the argument we got. We use all the common list separators.
3100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3101 for pkg in $enableval; do
3102 if test "X$pkg" = "X$p"; then
3103 enable_fast_install=yes
3110 enable_fast_install=yes
3112 # Find the correct PATH separator. Usually this is `:', but
3113 # DJGPP uses `;' like DOS.
3114 if test "X${PATH_SEPARATOR+set}" != Xset; then
3115 UNAME=${UNAME-`uname 2>/dev/null`}
3117 *-DOS) lt_cv_sys_path_separator=';' ;;
3118 *) lt_cv_sys_path_separator=':' ;;
3120 PATH_SEPARATOR=$lt_cv_sys_path_separator
3124 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3125 if test "${with_gnu_ld+set}" = set; then
3126 withval="$with_gnu_ld"
3127 test "$withval" = no || with_gnu_ld=yes
3132 if test "$GCC" = yes; then
3133 # Check if gcc -print-prog-name=ld gives a path.
3134 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3135 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3138 # gcc leaves a trailing carriage return which upsets mingw
3139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3144 # Accept absolute paths.
3145 [\\/]* | [A-Za-z]:[\\/]*)
3146 re_direlt='/[^/][^/]*/\.\./'
3147 # Canonicalize the path of ld
3148 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3150 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3152 test -z "$LD" && LD="$ac_prog"
3155 # If it fails, then pretend we aren't using GCC.
3159 # If it is relative, then search for the first ld in PATH.
3163 elif test "$with_gnu_ld" = yes; then
3164 echo "$as_me:$LINENO: checking for GNU ld" >&5
3165 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3167 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3168 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3170 if test "${lt_cv_path_LD+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 if test -z "$LD"; then
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3175 for ac_dir in $PATH; do
3176 test -z "$ac_dir" && ac_dir=.
3177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3178 lt_cv_path_LD="$ac_dir/$ac_prog"
3179 # Check to see if the program is GNU ld. I'd rather use --version,
3180 # but apparently some GNU ld's only accept -v.
3181 # Break only if it was the GNU/non-GNU ld that we prefer.
3182 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3183 test "$with_gnu_ld" != no && break
3185 test "$with_gnu_ld" != yes && break
3191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3196 if test -n "$LD"; then
3197 echo "$as_me:$LINENO: result: $LD" >&5
3198 echo "${ECHO_T}$LD" >&6
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3205 { (exit 1); exit 1; }; }
3206 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3212 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3213 lt_cv_prog_gnu_ld=yes
3215 lt_cv_prog_gnu_ld=no
3218 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3220 with_gnu_ld=$lt_cv_prog_gnu_ld
3223 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3224 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3225 if test "${lt_cv_ld_reload_flag+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 lt_cv_ld_reload_flag='-r'
3230 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3231 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3232 reload_flag=$lt_cv_ld_reload_flag
3233 test -n "$reload_flag" && reload_flag=" $reload_flag"
3235 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3236 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3237 if test "${lt_cv_path_NM+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 if test -n "$NM"; then
3241 # Let the user override the test.
3244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3245 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3246 test -z "$ac_dir" && ac_dir=.
3247 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3248 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3249 # Check to see if the nm accepts a BSD-compat flag.
3250 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3251 # nm: unknown option "B" ignored
3252 # Tru64's nm complains that /dev/null is an invalid object file
3253 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3254 lt_cv_path_NM="$tmp_nm -B"
3256 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3257 lt_cv_path_NM="$tmp_nm -p"
3260 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3261 continue # so that we can try to find one that supports BSD flags
3266 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3271 echo "$as_me:$LINENO: result: $NM" >&5
3272 echo "${ECHO_T}$NM" >&6
3274 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3275 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3277 if test "$LN_S" = "ln -s"; then
3278 echo "$as_me:$LINENO: result: yes" >&5
3279 echo "${ECHO_T}yes" >&6
3281 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3282 echo "${ECHO_T}no, using $LN_S" >&6
3285 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3286 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3287 if test "${lt_cv_deplibs_check_method+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 lt_cv_file_magic_cmd='$MAGIC_CMD'
3291 lt_cv_file_magic_test_file=
3292 lt_cv_deplibs_check_method='unknown'
3293 # Need to set the preceding variable on all platforms that support
3294 # interlibrary dependencies.
3295 # 'none' -- dependencies not supported.
3296 # `unknown' -- same as none, but documents that we really don't know.
3297 # 'pass_all' -- all dependencies passed with no checks.
3298 # 'test_compile' -- check by making test program.
3299 # 'file_magic [[regex]]' -- check by looking for files in library path
3300 # which responds to the $file_magic_cmd with a given egrep regex.
3301 # If you have `file' or equivalent on your system and you're not sure
3302 # whether `pass_all' will *always* work, you probably want this one.
3306 lt_cv_deplibs_check_method=pass_all
3310 lt_cv_deplibs_check_method=pass_all
3314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3315 lt_cv_file_magic_cmd='/usr/bin/file -L'
3316 lt_cv_file_magic_test_file=/shlib/libc.so
3319 cygwin* | mingw* | pw32*)
3320 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3321 lt_cv_file_magic_cmd='$OBJDUMP -f'
3324 darwin* | rhapsody*)
3325 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3326 lt_cv_file_magic_cmd='/usr/bin/file -L'
3328 rhapsody* | darwin1.[012])
3329 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3332 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3341 # Not sure whether the presence of OpenBSD here was a mistake.
3342 # Let's accept both of them until this is cleared up.
3343 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3344 lt_cv_file_magic_cmd=/usr/bin/file
3345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3349 lt_cv_deplibs_check_method=pass_all
3354 lt_cv_deplibs_check_method=pass_all
3358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3359 lt_cv_file_magic_cmd=/usr/bin/file
3360 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3366 # this will be overridden with pass_all, but let us keep it just in case
3367 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3371 *-32|*"-32 ") libmagic=32-bit;;
3372 *-n32|*"-n32 ") libmagic=N32;;
3373 *-64|*"-64 ") libmagic=64-bit;;
3374 *) libmagic=never-match;;
3376 # this will be overridden with pass_all, but let us keep it just in case
3377 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3380 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3381 lt_cv_deplibs_check_method=pass_all
3384 # This must be Linux ELF.
3387 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3388 lt_cv_deplibs_check_method=pass_all ;;
3390 # glibc up to 2.1.1 does not perform some relocations on ARM
3391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3393 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3397 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3398 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3400 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3406 lt_cv_file_magic_cmd=/usr/bin/file
3407 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3411 lt_cv_file_magic_cmd=/usr/bin/file
3412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3416 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3420 osf3* | osf4* | osf5*)
3421 # this will be overridden with pass_all, but let us keep it just in case
3422 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3423 lt_cv_file_magic_test_file=/shlib/libc.so
3424 lt_cv_deplibs_check_method=pass_all
3428 lt_cv_deplibs_check_method=pass_all
3432 lt_cv_deplibs_check_method=pass_all
3433 lt_cv_file_magic_test_file=/lib/libc.so
3436 sysv5uw[78]* | sysv4*uw2*)
3437 lt_cv_deplibs_check_method=pass_all
3440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3441 case $host_vendor in
3443 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]'
3444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3447 lt_cv_deplibs_check_method=pass_all
3450 lt_cv_file_magic_cmd='/bin/file'
3451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3454 lt_cv_file_magic_cmd='/bin/file'
3455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3456 lt_cv_file_magic_test_file=/lib/libc.so
3463 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3465 file_magic_cmd=$lt_cv_file_magic_cmd
3466 deplibs_check_method=$lt_cv_deplibs_check_method
3474 # Check for command to grab the raw symbol name followed by C symbol from nm.
3475 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3476 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3477 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 # These are sane defaults that work on at least a few old systems.
3482 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3484 # Character class describing NM global symbol codes.
3485 symcode='[BCDEGRST]'
3487 # Regexp to match symbols that can be accessed directly from C.
3488 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3490 # Transform the above into a raw symbol and a C symbol.
3491 symxfrm='\1 \2\3 \3'
3493 # Transform an extracted symbol line into a proper C declaration
3494 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3496 # Transform an extracted symbol line into symbol name and symbol address
3497 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'"
3499 # Define system-specific variables.
3504 cygwin* | mingw* | pw32*)
3505 symcode='[ABCDGISTW]'
3507 hpux*) # Its linker distinguishes data from code symbols
3508 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3509 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'"
3512 symcode='[BCDEGRST]'
3522 # Handle CRLF in mingw tool chain
3526 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3530 # If we're using GNU nm, then use its standard symbol codes.
3531 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3532 symcode='[ABCDGISTW]'
3535 # Try without a prefix undercore, then with it.
3536 for ac_symprfx in "" "_"; do
3538 # Write the raw and C identifiers.
3539 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3541 # Check to see that the pipe works correctly.
3544 cat > conftest.$ac_ext <<EOF
3549 void nm_test_func(){}
3553 int main(){nm_test_var='a';nm_test_func();return(0);}
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; then
3561 # Now try to grab the symbols.
3563 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3564 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && test -s "$nlist"; then
3568 # Try sorting and uniquifying the output.
3569 if sort "$nlist" | uniq > "$nlist"T; then
3570 mv -f "$nlist"T "$nlist"
3575 # Make sure that we snagged all the symbols we need.
3576 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3577 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3578 cat <<EOF > conftest.$ac_ext
3584 # Now generate the symbol file.
3585 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3587 cat <<EOF >> conftest.$ac_ext
3588 #if defined (__STDC__) && __STDC__
3589 # define lt_ptr void *
3591 # define lt_ptr char *
3595 /* The mapping between symbol names and symbols. */
3600 lt_preloaded_symbols[] =
3603 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3604 cat <<\EOF >> conftest.$ac_ext
3612 # Now try linking the two files.
3613 mv conftest.$ac_objext conftstm.$ac_objext
3615 save_CFLAGS="$CFLAGS"
3616 LIBS="conftstm.$ac_objext"
3617 CFLAGS="$CFLAGS$no_builtin_flag"
3618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619 (eval $ac_link) 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && test -s conftest; then
3626 CFLAGS="$save_CFLAGS"
3628 echo "cannot find nm_test_func in $nlist" >&5
3631 echo "cannot find nm_test_var in $nlist" >&5
3634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3637 echo "$progname: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3640 rm -f conftest* conftst*
3642 # Do not use the global_symbol_pipe unless it works.
3643 if test "$pipe_works" = yes; then
3646 lt_cv_sys_global_symbol_pipe=
3652 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3654 global_symbol_to_cdecl=
3655 global_symbol_to_c_name_address=
3657 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3658 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3660 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3662 echo "$as_me:$LINENO: result: failed" >&5
3663 echo "${ECHO_T}failed" >&6
3665 echo "$as_me:$LINENO: result: ok" >&5
3666 echo "${ECHO_T}ok" >&6
3670 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3671 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3672 if test "${ac_cv_header_stdc+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 #include "confdefs.h"
3684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3687 egrep -v '^ *\+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } >/dev/null; then
3692 if test -s conftest.err; then
3693 ac_cpp_err=$ac_c_preproc_warn_flag
3700 if test -z "$ac_cpp_err"; then
3701 ac_cv_header_stdc=yes
3703 echo "$as_me: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3705 ac_cv_header_stdc=no
3707 rm -f conftest.err conftest.$ac_ext
3709 if test $ac_cv_header_stdc = yes; then
3710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3713 #include "confdefs.h"
3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718 egrep "memchr" >/dev/null 2>&1; then
3721 ac_cv_header_stdc=no
3727 if test $ac_cv_header_stdc = yes; then
3728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3729 cat >conftest.$ac_ext <<_ACEOF
3730 #line $LINENO "configure"
3731 #include "confdefs.h"
3735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3736 egrep "free" >/dev/null 2>&1; then
3739 ac_cv_header_stdc=no
3745 if test $ac_cv_header_stdc = yes; then
3746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3747 if test "$cross_compiling" = yes; then
3750 cat >conftest.$ac_ext <<_ACEOF
3751 #line $LINENO "configure"
3752 #include "confdefs.h"
3754 #if ((' ' & 0x0FF) == 0x020)
3755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3758 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3759 || ('j' <= (c) && (c) <= 'r') \
3760 || ('s' <= (c) && (c) <= 'z'))
3761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3769 for (i = 0; i < 256; i++)
3770 if (XOR (islower (i), ISLOWER (i))
3771 || toupper (i) != TOUPPER (i))
3776 rm -f conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3789 echo "$as_me: program exited with status $ac_status" >&5
3790 echo "$as_me: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 ac_cv_header_stdc=no
3795 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3799 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3800 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3801 if test $ac_cv_header_stdc = yes; then
3803 cat >>confdefs.h <<\_ACEOF
3804 #define STDC_HEADERS 1
3809 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3820 inttypes.h stdint.h unistd.h
3822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3823 echo "$as_me:$LINENO: checking for $ac_header" >&5
3824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 cat >conftest.$ac_ext <<_ACEOF
3829 #line $LINENO "configure"
3830 #include "confdefs.h"
3831 $ac_includes_default
3833 #include <$ac_header>
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 eval "$as_ac_Header=yes"
3849 echo "$as_me: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 eval "$as_ac_Header=no"
3853 rm -f conftest.$ac_objext conftest.$ac_ext
3855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3858 cat >>confdefs.h <<_ACEOF
3859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868 for ac_header in dlfcn.h
3870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3872 echo "$as_me:$LINENO: checking for $ac_header" >&5
3873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3880 # Is the header compilable?
3881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3883 cat >conftest.$ac_ext <<_ACEOF
3884 #line $LINENO "configure"
3885 #include "confdefs.h"
3886 $ac_includes_default
3887 #include <$ac_header>
3889 rm -f conftest.$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -s conftest.$ac_objext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 ac_header_compiler=yes
3903 echo "$as_me: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3905 ac_header_compiler=no
3907 rm -f conftest.$ac_objext conftest.$ac_ext
3908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3909 echo "${ECHO_T}$ac_header_compiler" >&6
3911 # Is the header present?
3912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line $LINENO "configure"
3916 #include "confdefs.h"
3917 #include <$ac_header>
3919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3922 egrep -v '^ *\+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } >/dev/null; then
3927 if test -s conftest.err; then
3928 ac_cpp_err=$ac_c_preproc_warn_flag
3935 if test -z "$ac_cpp_err"; then
3936 ac_header_preproc=yes
3938 echo "$as_me: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 ac_header_preproc=no
3942 rm -f conftest.err conftest.$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3944 echo "${ECHO_T}$ac_header_preproc" >&6
3946 # So? What about this header?
3947 case $ac_header_compiler:$ac_header_preproc in
3949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3961 echo "$as_me:$LINENO: checking for $ac_header" >&5
3962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 eval "$as_ac_Header=$ac_header_preproc"
3968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3973 cat >>confdefs.h <<_ACEOF
3974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3985 # Only perform the check for file, if the check method requires it
3986 case $deplibs_check_method in
3988 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3989 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3990 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3991 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4002 ac_save_MAGIC_CMD="$MAGIC_CMD"
4003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4004 ac_dummy="/usr/bin:$PATH"
4005 for ac_dir in $ac_dummy; do
4006 test -z "$ac_dir" && ac_dir=.
4007 if test -f $ac_dir/${ac_tool_prefix}file; then
4008 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4009 if test -n "$file_magic_test_file"; then
4010 case $deplibs_check_method in
4012 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4015 egrep "$file_magic_regex" > /dev/null; then
4020 *** Warning: the command libtool uses to detect shared libraries,
4021 *** $file_magic_cmd, produces output that libtool cannot recognize.
4022 *** The result is that libtool may fail to recognize shared libraries
4023 *** as such. This will affect the creation of libtool libraries that
4024 *** depend on shared libraries, but programs linked with such libtool
4025 *** libraries will work regardless of this problem. Nevertheless, you
4026 *** may want to report the problem to your system manager and/or to
4027 *** bug-libtool@gnu.org
4037 MAGIC_CMD="$ac_save_MAGIC_CMD"
4042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4043 if test -n "$MAGIC_CMD"; then
4044 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4045 echo "${ECHO_T}$MAGIC_CMD" >&6
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4051 if test -z "$lt_cv_path_MAGIC_CMD"; then
4052 if test -n "$ac_tool_prefix"; then
4053 echo "$as_me:$LINENO: checking for file" >&5
4054 echo $ECHO_N "checking for file... $ECHO_C" >&6
4055 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4066 ac_save_MAGIC_CMD="$MAGIC_CMD"
4067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4068 ac_dummy="/usr/bin:$PATH"
4069 for ac_dir in $ac_dummy; do
4070 test -z "$ac_dir" && ac_dir=.
4071 if test -f $ac_dir/file; then
4072 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4073 if test -n "$file_magic_test_file"; then
4074 case $deplibs_check_method in
4076 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4079 egrep "$file_magic_regex" > /dev/null; then
4084 *** Warning: the command libtool uses to detect shared libraries,
4085 *** $file_magic_cmd, produces output that libtool cannot recognize.
4086 *** The result is that libtool may fail to recognize shared libraries
4087 *** as such. This will affect the creation of libtool libraries that
4088 *** depend on shared libraries, but programs linked with such libtool
4089 *** libraries will work regardless of this problem. Nevertheless, you
4090 *** may want to report the problem to your system manager and/or to
4091 *** bug-libtool@gnu.org
4101 MAGIC_CMD="$ac_save_MAGIC_CMD"
4106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4107 if test -n "$MAGIC_CMD"; then
4108 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4109 echo "${ECHO_T}$MAGIC_CMD" >&6
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4124 if test -n "$ac_tool_prefix"; then
4125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4127 echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129 if test "${ac_cv_prog_RANLIB+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 if test -n "$RANLIB"; then
4133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 RANLIB=$ac_cv_prog_RANLIB
4152 if test -n "$RANLIB"; then
4153 echo "$as_me:$LINENO: result: $RANLIB" >&5
4154 echo "${ECHO_T}$RANLIB" >&6
4156 echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4161 if test -z "$ac_cv_prog_RANLIB"; then
4162 ac_ct_RANLIB=$RANLIB
4163 # Extract the first word of "ranlib", so it can be a program name with args.
4164 set dummy ranlib; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 if test -n "$ac_ct_RANLIB"; then
4171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_RANLIB="ranlib"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4191 if test -n "$ac_ct_RANLIB"; then
4192 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4193 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4195 echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4199 RANLIB=$ac_ct_RANLIB
4201 RANLIB="$ac_cv_prog_RANLIB"
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}strip; ac_word=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_prog_STRIP+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 if test -n "$STRIP"; then
4213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 STRIP=$ac_cv_prog_STRIP
4232 if test -n "$STRIP"; then
4233 echo "$as_me:$LINENO: result: $STRIP" >&5
4234 echo "${ECHO_T}$STRIP" >&6
4236 echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4241 if test -z "$ac_cv_prog_STRIP"; then
4243 # Extract the first word of "strip", so it can be a program name with args.
4244 set dummy strip; ac_word=$2
4245 echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if test -n "$ac_ct_STRIP"; then
4251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_STRIP="strip"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4271 if test -n "$ac_ct_STRIP"; then
4272 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4273 echo "${ECHO_T}$ac_ct_STRIP" >&6
4275 echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4281 STRIP="$ac_cv_prog_STRIP"
4288 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4289 if test "${enable_libtool_lock+set}" = set; then
4290 enableval="$enable_libtool_lock"
4293 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4295 # Some flags need to be propagated to the compiler or linker for good
4299 # Find out which ABI we are using.
4300 echo '#line 4300 "configure"' > conftest.$ac_ext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302 (eval $ac_compile) 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; then
4306 case `/usr/bin/file conftest.$ac_objext` in
4322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4323 SAVE_CFLAGS="$CFLAGS"
4324 CFLAGS="$CFLAGS -belf"
4325 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4326 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4327 if test "${lt_cv_cc_needs_belf+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 cat >conftest.$ac_ext <<_ACEOF
4339 #line $LINENO "configure"
4340 #include "confdefs.h"
4342 #ifdef F77_DUMMY_MAIN
4346 int F77_DUMMY_MAIN() { return 1; }
4356 rm -f conftest.$ac_objext conftest$ac_exeext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358 (eval $ac_link) 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -s conftest$ac_exeext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 lt_cv_cc_needs_belf=yes
4370 echo "$as_me: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4372 lt_cv_cc_needs_belf=no
4374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4383 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4386 CFLAGS="$SAVE_CFLAGS"
4393 # Sed substitution that helps us do robust quoting. It backslashifies
4394 # metacharacters that are still active within double-quoted strings.
4395 Xsed='sed -e s/^X//'
4396 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4398 # Same as above, but do not quote variable references.
4399 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4401 # Sed substitution to delay expansion of an escaped shell variable in a
4402 # double_quote_subst'ed string.
4403 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4409 default_ofile=libtool
4410 can_build_shared=yes
4412 # All known linkers require a `.a' archive for static linking (except M$VC,
4413 # which needs '.lib').
4415 ltmain="$ac_aux_dir/ltmain.sh"
4416 ofile="$default_ofile"
4417 with_gnu_ld="$lt_cv_prog_gnu_ld"
4418 need_locks="$enable_libtool_lock"
4421 old_CFLAGS="$CFLAGS"
4423 # Set sane defaults for various variables
4424 test -z "$AR" && AR=ar
4425 test -z "$AR_FLAGS" && AR_FLAGS=cru
4426 test -z "$AS" && AS=as
4427 test -z "$CC" && CC=cc
4428 test -z "$DLLTOOL" && DLLTOOL=dlltool
4429 test -z "$LD" && LD=ld
4430 test -z "$LN_S" && LN_S="ln -s"
4431 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4432 test -z "$NM" && NM=nm
4433 test -z "$OBJDUMP" && OBJDUMP=objdump
4434 test -z "$RANLIB" && RANLIB=:
4435 test -z "$STRIP" && STRIP=:
4436 test -z "$ac_objext" && ac_objext=o
4438 if test x"$host" != x"$build"; then
4439 ac_tool_prefix=${host_alias}-
4444 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4447 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4452 # AIX sometimes has problems with the GCC collect2 program. For some
4453 # reason, if we set the COLLECT_NAMES environment variable, the problems
4454 # vanish in a puff of smoke.
4455 if test "X${COLLECT_NAMES+set}" != Xset; then
4457 export COLLECT_NAMES
4462 # Determine commands to create old-style static archives.
4463 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4464 old_postinstall_cmds='chmod 644 $oldlib'
4465 old_postuninstall_cmds=
4467 if test -n "$RANLIB"; then
4470 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4473 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4476 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4479 # Allow CC to be a program name with arguments.
4483 ## FIXME: this should be a separate macro
4485 echo "$as_me:$LINENO: checking for objdir" >&5
4486 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4487 rm -f .libs 2>/dev/null
4488 mkdir .libs 2>/dev/null
4489 if test -d .libs; then
4492 # MS-DOS does not allow filenames that begin with a dot.
4495 rmdir .libs 2>/dev/null
4496 echo "$as_me:$LINENO: result: $objdir" >&5
4497 echo "${ECHO_T}$objdir" >&6
4502 ## FIXME: this should be a separate macro
4505 # Check whether --with-pic or --without-pic was given.
4506 if test "${with_pic+set}" = set; then
4512 test -z "$pic_mode" && pic_mode=default
4514 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4515 # in isolation, and that seeing it set (from the cache) indicates that
4516 # the associated values are set (in the cache) correctly too.
4517 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4519 if test "${lt_cv_prog_cc_pic+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 lt_cv_prog_cc_shlib=
4525 lt_cv_prog_cc_static=
4526 lt_cv_prog_cc_no_builtin=
4527 lt_cv_prog_cc_can_build_shared=$can_build_shared
4529 if test "$GCC" = yes; then
4530 lt_cv_prog_cc_wl='-Wl,'
4531 lt_cv_prog_cc_static='-static'
4535 # Below there is a dirty hack to force normal static linking with -ldl
4536 # The problem is because libdl dynamically linked with both libc and
4537 # libC (AIX C++ library), which obviously doesn't included in libraries
4538 # list by gcc. This cause undefined symbols with -static flags.
4539 # This hack allows C programs to be linked with "-static -ldl", but
4540 # not sure about C++ programs.
4541 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4544 # FIXME: we need at least 68020 code to build shared libraries, but
4545 # adding the `-m68020' flag to GCC prevents building anything better,
4547 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4549 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4550 # PIC is the default for these OSes.
4552 darwin* | rhapsody*)
4553 # PIC is the default on this platform
4554 # Common symbols not allowed in MH_DYLIB files
4555 lt_cv_prog_cc_pic='-fno-common'
4557 cygwin* | mingw* | pw32* | os2*)
4558 # This hack is so that the source file can tell whether it is being
4559 # built for inclusion in a dll (and should export symbols for example).
4560 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4563 if test -d /usr/nec; then
4564 lt_cv_prog_cc_pic=-Kconform_pic
4568 lt_cv_prog_cc_pic='-fPIC'
4572 # PORTME Check for PIC flags for the system compiler.
4574 aix3* | aix4* | aix5*)
4575 lt_cv_prog_cc_wl='-Wl,'
4576 # All AIX code is PIC.
4577 if test "$host_cpu" = ia64; then
4578 # AIX 5 now supports IA64 processor
4579 lt_cv_prog_cc_static='-Bstatic'
4581 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4585 hpux9* | hpux10* | hpux11*)
4586 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4587 lt_cv_prog_cc_wl='-Wl,'
4588 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4589 lt_cv_prog_cc_pic='+Z'
4593 lt_cv_prog_cc_wl='-Wl,'
4594 lt_cv_prog_cc_static='-non_shared'
4595 # PIC (with -KPIC) is the default.
4598 cygwin* | mingw* | pw32* | os2*)
4599 # This hack is so that the source file can tell whether it is being
4600 # built for inclusion in a dll (and should export symbols for example).
4601 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4605 lt_cv_prog_cc_pic='-KPIC'
4606 lt_cv_prog_cc_static='-Bstatic'
4609 osf3* | osf4* | osf5*)
4610 # All OSF/1 code is PIC.
4611 lt_cv_prog_cc_wl='-Wl,'
4612 lt_cv_prog_cc_static='-non_shared'
4616 lt_cv_prog_cc_pic='-Kpic'
4617 lt_cv_prog_cc_static='-dn'
4618 lt_cv_prog_cc_shlib='-belf'
4622 lt_cv_prog_cc_pic='-KPIC'
4623 lt_cv_prog_cc_static='-Bstatic'
4624 lt_cv_prog_cc_wl='-Wl,'
4628 lt_cv_prog_cc_pic='-PIC'
4629 lt_cv_prog_cc_static='-Bstatic'
4630 lt_cv_prog_cc_wl='-Qoption ld '
4633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4634 lt_cv_prog_cc_pic='-KPIC'
4635 lt_cv_prog_cc_static='-Bstatic'
4636 if test "x$host_vendor" = xsni; then
4637 lt_cv_prog_cc_wl='-LD'
4639 lt_cv_prog_cc_wl='-Wl,'
4644 lt_cv_prog_cc_pic='-pic'
4645 lt_cv_prog_cc_static='-Bstatic'
4649 if test -d /usr/nec ;then
4650 lt_cv_prog_cc_pic='-Kconform_pic'
4651 lt_cv_prog_cc_static='-Bstatic'
4656 lt_cv_prog_cc_can_build_shared=no
4663 if test -z "$lt_cv_prog_cc_pic"; then
4664 echo "$as_me:$LINENO: result: none" >&5
4665 echo "${ECHO_T}none" >&6
4667 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4668 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4670 # Check to make sure the pic_flag actually works.
4671 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4672 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4673 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 save_CFLAGS="$CFLAGS"
4677 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4678 cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4680 #include "confdefs.h"
4682 #ifdef F77_DUMMY_MAIN
4686 int F77_DUMMY_MAIN() { return 1; }
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4709 hpux9* | hpux10* | hpux11*)
4710 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4711 # they create non-PIC objects. So, if there were any warnings, we
4712 # assume that PIC is not supported.
4713 if test -s conftest.err; then
4714 lt_cv_prog_cc_pic_works=no
4716 lt_cv_prog_cc_pic_works=yes
4720 lt_cv_prog_cc_pic_works=yes
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 lt_cv_prog_cc_pic_works=no
4730 rm -f conftest.$ac_objext conftest.$ac_ext
4731 CFLAGS="$save_CFLAGS"
4736 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4738 lt_cv_prog_cc_can_build_shared=no
4740 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4743 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4744 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4749 # Check for any special shared library compilation flags.
4750 if test -n "$lt_cv_prog_cc_shlib"; then
4751 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4752 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4753 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4755 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4756 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4757 lt_cv_prog_cc_can_build_shared=no
4761 ## FIXME: this should be a separate macro
4763 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4764 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4765 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 lt_cv_prog_cc_static_works=no
4769 save_LDFLAGS="$LDFLAGS"
4770 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4771 cat >conftest.$ac_ext <<_ACEOF
4772 #line $LINENO "configure"
4773 #include "confdefs.h"
4775 #ifdef F77_DUMMY_MAIN
4779 int F77_DUMMY_MAIN() { return 1; }
4789 rm -f conftest.$ac_objext conftest$ac_exeext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791 (eval $ac_link) 2>&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -s conftest$ac_exeext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 lt_cv_prog_cc_static_works=yes
4803 echo "$as_me: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4807 LDFLAGS="$save_LDFLAGS"
4812 # Belt *and* braces to stop my trousers falling down:
4813 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4814 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4815 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4817 pic_flag="$lt_cv_prog_cc_pic"
4818 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4819 wl="$lt_cv_prog_cc_wl"
4820 link_static_flag="$lt_cv_prog_cc_static"
4821 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4822 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4827 ## FIXME: this should be a separate macro
4829 # Check to see if options -o and -c are simultaneously supported by compiler
4830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4832 if test "${lt_cv_compiler_c_o+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 $rm -r conftest 2>/dev/null
4839 echo "int some_variable = 0;" > conftest.$ac_ext
4841 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4842 # that will create temporary files in the current directory regardless of
4843 # the output directory. Thus, making CWD read-only will cause this test
4844 # to fail, enabling locking or at least warning the user not to do parallel
4847 save_CFLAGS="$CFLAGS"
4848 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4850 if { (eval echo configure:4850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4851 # The compiler can only warn and ignore the option if not recognized
4852 # So say no if there are warnings
4853 if test -s out/conftest.err; then
4854 lt_cv_compiler_c_o=no
4856 lt_cv_compiler_c_o=yes
4859 # Append any errors to the config.log.
4860 cat out/conftest.err 1>&5
4861 lt_cv_compiler_c_o=no
4863 CFLAGS="$save_CFLAGS"
4869 $rm -r conftest 2>/dev/null
4873 compiler_c_o=$lt_cv_compiler_c_o
4874 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4875 echo "${ECHO_T}$compiler_c_o" >&6
4877 if test x"$compiler_c_o" = x"yes"; then
4878 # Check to see if we can write to a .lo
4879 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4880 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4881 if test "${lt_cv_compiler_o_lo+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 lt_cv_compiler_o_lo=no
4886 save_CFLAGS="$CFLAGS"
4887 CFLAGS="$CFLAGS -c -o conftest.lo"
4888 save_objext="$ac_objext"
4890 cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4892 #include "confdefs.h"
4894 #ifdef F77_DUMMY_MAIN
4898 int F77_DUMMY_MAIN() { return 1; }
4903 int some_variable = 0;
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 # The compiler can only warn and ignore the option if not recognized
4921 # So say no if there are warnings
4922 if test -s conftest.err; then
4923 lt_cv_compiler_o_lo=no
4925 lt_cv_compiler_o_lo=yes
4929 echo "$as_me: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4932 rm -f conftest.$ac_objext conftest.$ac_ext
4933 ac_objext="$save_objext"
4934 CFLAGS="$save_CFLAGS"
4938 compiler_o_lo=$lt_cv_compiler_o_lo
4939 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4940 echo "${ECHO_T}$compiler_o_lo" >&6
4947 ## FIXME: this should be a separate macro
4949 # Check to see if we can do hard links to lock some files if needed
4950 hard_links="nottested"
4951 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4952 # do not overwrite the value of need_locks provided by the user
4953 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4959 ln conftest.a conftest.b 2>&5 || hard_links=no
4960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4961 echo "$as_me:$LINENO: result: $hard_links" >&5
4962 echo "${ECHO_T}$hard_links" >&6
4963 if test "$hard_links" = no; then
4964 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4974 ## FIXME: this should be a separate macro
4976 if test "$GCC" = yes; then
4977 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4978 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4979 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4980 echo "int some_variable = 0;" > conftest.$ac_ext
4981 save_CFLAGS="$CFLAGS"
4982 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4983 compiler_rtti_exceptions=no
4984 cat >conftest.$ac_ext <<_ACEOF
4985 #line $LINENO "configure"
4986 #include "confdefs.h"
4988 #ifdef F77_DUMMY_MAIN
4992 int F77_DUMMY_MAIN() { return 1; }
4997 int some_variable = 0;
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 # The compiler can only warn and ignore the option if not recognized
5015 # So say no if there are warnings
5016 if test -s conftest.err; then
5017 compiler_rtti_exceptions=no
5019 compiler_rtti_exceptions=yes
5023 echo "$as_me: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5026 rm -f conftest.$ac_objext conftest.$ac_ext
5027 CFLAGS="$save_CFLAGS"
5028 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5029 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5031 if test "$compiler_rtti_exceptions" = "yes"; then
5032 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5034 no_builtin_flag=' -fno-builtin'
5040 ## FIXME: this should be a separate macro
5042 # See if the linker supports building shared libraries.
5043 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5044 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5046 allow_undefined_flag=
5048 need_lib_prefix=unknown
5049 need_version=unknown
5050 # when you set need_version to no, make sure it does not cause -set_version
5051 # flags to be left without arguments
5053 archive_expsym_cmds=
5054 old_archive_from_new_cmds=
5055 old_archive_from_expsyms_cmds=
5056 export_dynamic_flag_spec=
5057 whole_archive_flag_spec=
5058 thread_safe_flag_spec=
5059 hardcode_into_libs=no
5060 hardcode_libdir_flag_spec=
5061 hardcode_libdir_separator=
5064 hardcode_shlibpath_var=unsupported
5066 link_all_deplibs=unknown
5067 always_export_symbols=no
5068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5069 # include_expsyms should be a list of space-separated symbols to be *always*
5070 # included in the symbol list
5072 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5073 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5074 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5075 # as well as any symbol that contains `d'.
5076 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5078 # platforms (ab)use it in PIC code, but their linkers get confused if
5079 # the symbol is explicitly referenced. Since portable code cannot
5080 # rely on this symbol name, it's probably fine to never include it in
5081 # preloaded symbol tables.
5082 extract_expsyms_cmds=
5085 cygwin* | mingw* | pw32*)
5086 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5087 # When not using gcc, we currently assume that we are using
5088 # Microsoft Visual C++.
5089 if test "$GCC" != yes; then
5099 if test "$with_gnu_ld" = yes; then
5100 # If archive_cmds runs LD, not CC, wlarc should be empty
5103 # See if GNU ld supports shared libraries.
5105 aix3* | aix4* | aix5*)
5106 # On AIX, the GNU linker is very broken
5107 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5111 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5112 *** to be unable to reliably create shared libraries on AIX.
5113 *** Therefore, libtool is disabling shared libraries support. If you
5114 *** really care for shared libraries, you may want to modify your PATH
5115 *** so that a non-GNU linker is found, and then restart.
5121 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)'
5122 hardcode_libdir_flag_spec='-L$libdir'
5123 hardcode_minus_L=yes
5125 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5126 # that the semantics of dynamic libraries on AmigaOS, at least up
5127 # to version 4, is to share data among multiple programs linked
5128 # with the same dynamic library. Since this doesn't match the
5129 # behavior of shared libraries on other platforms, we can use
5135 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5136 allow_undefined_flag=unsupported
5137 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5138 # support --undefined. This deserves some investigation. FIXME
5139 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5145 cygwin* | mingw* | pw32*)
5146 # hardcode_libdir_flag_spec is actually meaningless, as there is
5147 # no search path for DLLs.
5148 hardcode_libdir_flag_spec='-L$libdir'
5149 allow_undefined_flag=unsupported
5150 always_export_symbols=yes
5152 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5153 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5154 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5155 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5156 else $CC -o impgen impgen.c ; fi)~
5157 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5159 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5161 # cygwin and mingw dlls have different entry points and sets of symbols
5163 # FIXME: what about values for MSVC?
5164 dll_entry=__cygwin_dll_entry@12
5165 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5169 dll_entry=_DllMainCRTStartup@12
5170 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5174 # mingw and cygwin differ, and it's simplest to just exclude the union
5175 # of the two symbol sets.
5176 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5178 # recent cygwin and mingw systems supply a stub DllMain which the user
5179 # can override, but on older systems we have to supply one (in ltdll.c)
5180 if test "x$lt_cv_need_dllmain" = "xyes"; then
5181 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5182 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~
5183 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5189 # Extract the symbol export list from an `--export-all' def file,
5190 # then regenerate the def file from the symbol export list, so that
5191 # the compiled dll only exports the symbol export list.
5192 # Be careful not to strip the DATA tag left be newer dlltools.
5193 export_symbols_cmds="$ltdll_cmds"'
5194 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5195 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5197 # If the export-symbols file already is a .def file (1st line
5198 # is EXPORTS), use it as is.
5199 # If DATA tags from a recent dlltool are present, honour them!
5200 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5201 cp $export_symbols $output_objdir/$soname-def;
5203 echo EXPORTS > $output_objdir/$soname-def;
5205 cat $export_symbols | while read symbol; do
5208 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5209 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5211 _lt_hint=`expr 1 + \$_lt_hint`;
5215 $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~
5216 $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~
5217 $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~
5218 $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~
5219 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5224 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5227 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5228 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5233 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5238 *** create shared libraries on Solaris systems. Therefore, libtool
5239 *** is disabling shared libraries support. We urge you to upgrade GNU
5240 *** binutils to release 2.9.1 or newer. Another option is to modify
5241 *** your PATH or compiler configuration so that the native linker is
5242 *** used, and then restart.
5245 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5254 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5257 hardcode_shlibpath_var=no
5261 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5270 if test "$ld_shlibs" = yes; then
5271 runpath_var=LD_RUN_PATH
5272 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5273 export_dynamic_flag_spec='${wl}--export-dynamic'
5275 cygwin* | mingw* | pw32*)
5276 # dlltool doesn't understand --whole-archive et. al.
5277 whole_archive_flag_spec=
5280 # ancient GNU ld didn't support --whole-archive et. al.
5281 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5282 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5284 whole_archive_flag_spec=
5290 # PORTME fill in a description of your system's linker (not GNU ld)
5293 allow_undefined_flag=unsupported
5294 always_export_symbols=yes
5295 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'
5296 # Note: this linker hardcodes the directories in LIBPATH if there
5297 # are no directories specified by -L.
5298 hardcode_minus_L=yes
5299 if test "$GCC" = yes && test -z "$link_static_flag"; then
5300 # Neither direct hardcoding nor static linking is supported with a
5302 hardcode_direct=unsupported
5307 if test "$host_cpu" = ia64; then
5308 # On IA64, the linker does run time linking by default, so we don't
5309 # have to do anything special.
5310 aix_use_runtimelinking=no
5311 exp_sym_flag='-Bexport'
5314 aix_use_runtimelinking=no
5316 # Test if we are trying to use run time linking or normal
5317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5318 # need to do runtime linking.
5319 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5320 for ld_flag in $LDFLAGS; do
5321 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5322 aix_use_runtimelinking=yes
5328 exp_sym_flag='-bexport'
5329 no_entry_flag='-bnoentry'
5332 # When large executables or shared objects are built, AIX ld can
5333 # have problems creating the table of contents. If linking a library
5334 # or program results in "error TOC overflow" add -mminimal-toc to
5335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5340 hardcode_libdir_separator=':'
5341 if test "$GCC" = yes; then
5342 case $host_os in aix4.[012]|aix4.[012].*)
5343 collect2name=`${CC} -print-prog-name=collect2`
5344 if test -f "$collect2name" && \
5345 strings "$collect2name" | grep resolve_lib_name >/dev/null
5347 # We have reworked collect2
5350 # We have old collect2
5351 hardcode_direct=unsupported
5352 # It fails to find uninstalled libraries when the uninstalled
5353 # path is not listed in the libpath. Setting hardcode_minus_L
5354 # to unsupported forces relinking
5355 hardcode_minus_L=yes
5356 hardcode_libdir_flag_spec='-L$libdir'
5357 hardcode_libdir_separator=
5361 shared_flag='-shared'
5364 if test "$host_cpu" = ia64; then
5365 shared_flag='${wl}-G'
5367 if test "$aix_use_runtimelinking" = yes; then
5368 shared_flag='${wl}-G'
5370 shared_flag='${wl}-bM:SRE'
5375 # It seems that -bexpall can do strange things, so it is better to
5376 # generate a list of symbols to export.
5377 always_export_symbols=yes
5378 if test "$aix_use_runtimelinking" = yes; then
5379 # Warning - without using the other runtime loading flags (-brtl),
5380 # -berok will link without error, but may produce a broken library.
5381 allow_undefined_flag='-berok'
5382 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5383 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"
5385 if test "$host_cpu" = ia64; then
5386 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5387 allow_undefined_flag="-z nodefs"
5388 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"
5390 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5391 # Warning - without using the other run time loading flags,
5392 # -berok will link without error, but may produce a broken library.
5393 allow_undefined_flag='${wl}-berok'
5394 # This is a bit strange, but is similar to how AIX traditionally builds
5395 # it's shared libraries.
5396 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5402 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)'
5403 hardcode_libdir_flag_spec='-L$libdir'
5404 hardcode_minus_L=yes
5405 # see comment about different semantics on the GNU ld section
5409 cygwin* | mingw* | pw32*)
5410 # When not using gcc, we currently assume that we are using
5411 # Microsoft Visual C++.
5412 # hardcode_libdir_flag_spec is actually meaningless, as there is
5413 # no search path for DLLs.
5414 hardcode_libdir_flag_spec=' '
5415 allow_undefined_flag=unsupported
5416 # Tell ltmain to make .lib files, not .a files.
5418 # FIXME: Setting linknames here is a bad hack.
5419 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5420 # The linker will automatically build a .lib file if we build a DLL.
5421 old_archive_from_new_cmds='true'
5422 # FIXME: Should let the user specify the lib program.
5423 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5424 fix_srcfile_path='`cygpath -w "$srcfile"`'
5427 darwin* | rhapsody*)
5429 rhapsody* | darwin1.[012])
5430 allow_undefined_flag='-undefined suppress'
5433 allow_undefined_flag='-flat_namespace -undefined suppress'
5436 # FIXME: Relying on posixy $() will cause problems for
5437 # cross-compilation, but unfortunately the echo tests do not
5438 # yet detect zsh echo's removal of \ escapes.
5439 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5440 # We need to add '_' to the symbols in $export_symbols first
5441 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5443 hardcode_shlibpath_var=no
5444 whole_archive_flag_spec='-all_load $convenience'
5451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5452 # support. Future versions do this automatically, but an explicit c++rt0.o
5453 # does not break anything, and helps significantly (at the cost of a little
5456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5457 hardcode_libdir_flag_spec='-R$libdir'
5459 hardcode_shlibpath_var=no
5462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5466 hardcode_minus_L=yes
5467 hardcode_shlibpath_var=no
5470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5472 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5473 hardcode_libdir_flag_spec='-R$libdir'
5475 hardcode_shlibpath_var=no
5478 hpux9* | hpux10* | hpux11*)
5480 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' ;;
5481 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5484 hardcode_libdir_separator=:
5486 hardcode_minus_L=yes # Not in the search PATH, but as the default
5487 # location of the library.
5488 export_dynamic_flag_spec='${wl}-E'
5492 if test "$GCC" = yes; then
5493 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'
5495 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'
5497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5498 hardcode_libdir_separator=:
5499 link_all_deplibs=yes
5503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5506 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5508 hardcode_libdir_flag_spec='-R$libdir'
5510 hardcode_shlibpath_var=no
5514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5517 hardcode_libdir_separator=:
5518 hardcode_shlibpath_var=no
5523 hardcode_shlibpath_var=no
5524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5526 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5527 export_dynamic_flag_spec='${wl}-E'
5530 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5532 hardcode_libdir_flag_spec='-R$libdir'
5535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5543 hardcode_libdir_flag_spec='-L$libdir'
5544 hardcode_minus_L=yes
5545 allow_undefined_flag=unsupported
5546 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'
5547 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5551 if test "$GCC" = yes; then
5552 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5553 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'
5555 allow_undefined_flag=' -expect_unresolved \*'
5556 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'
5558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5559 hardcode_libdir_separator=:
5562 osf4* | osf5*) # as osf3* with the addition of -msym flag
5563 if test "$GCC" = yes; then
5564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5565 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'
5566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5568 allow_undefined_flag=' -expect_unresolved \*'
5569 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'
5570 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5571 $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'
5573 #Both c and cxx compiler support -rpath directly
5574 hardcode_libdir_flag_spec='-rpath $libdir'
5576 hardcode_libdir_separator=:
5580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5581 hardcode_shlibpath_var=no
5582 runpath_var=LD_RUN_PATH
5583 hardcode_runpath_var=yes
5584 export_dynamic_flag_spec='${wl}-Bexport'
5588 # gcc --version < 3.0 without binutils cannot create self contained
5589 # shared libraries reliably, requiring libgcc.a to resolve some of
5590 # the object symbols generated in some cases. Libraries that use
5591 # assert need libgcc.a to resolve __eprintf, for example. Linking
5592 # a copy of libgcc.a into every shared library to guarantee resolving
5593 # such symbols causes other problems: According to Tim Van Holder
5594 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5595 # (to the application) exception stack for one thing.
5596 no_undefined_flag=' -z defs'
5597 if test "$GCC" = yes; then
5598 case `$CC --version 2>/dev/null` in
5602 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5603 *** create self contained shared libraries on Solaris systems, without
5604 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5605 *** -no-undefined support, which will at least allow you to build shared
5606 *** libraries. However, you may find that when you link such libraries
5607 *** into an application without using GCC, you have to manually add
5608 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5609 *** upgrade to a newer version of GCC. Another option is to rebuild your
5610 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5617 # $CC -shared without GNU ld will not create a library from C++
5618 # object files and a static libstdc++, better avoid it by now
5619 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5620 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5622 hardcode_libdir_flag_spec='-R$libdir'
5623 hardcode_shlibpath_var=no
5625 solaris2.[0-5] | solaris2.[0-5].*) ;;
5626 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5627 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5629 link_all_deplibs=yes
5633 if test "x$host_vendor" = xsequent; then
5634 # Use $CC to link under sequent, because it throws in some extra .o
5635 # files that make .init and .fini sections work.
5636 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5640 hardcode_libdir_flag_spec='-L$libdir'
5642 hardcode_minus_L=yes
5643 hardcode_shlibpath_var=no
5647 if test "x$host_vendor" = xsno; then
5648 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5649 hardcode_direct=yes # is this really true???
5651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5652 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5654 runpath_var='LD_RUN_PATH'
5655 hardcode_shlibpath_var=no
5659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5660 hardcode_shlibpath_var=no
5661 export_dynamic_flag_spec='-Bexport'
5665 no_undefined_flag=' -z text'
5666 # $CC -shared without GNU ld will not create a library from C++
5667 # object files and a static libstdc++, better avoid it by now
5668 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5669 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5670 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5671 hardcode_libdir_flag_spec=
5672 hardcode_shlibpath_var=no
5673 runpath_var='LD_RUN_PATH'
5677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5678 hardcode_libdir_flag_spec='-L$libdir'
5679 hardcode_shlibpath_var=no
5683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5684 hardcode_libdir_flag_spec='-L$libdir'
5685 hardcode_shlibpath_var=no
5689 if test -d /usr/nec; then
5690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5691 hardcode_shlibpath_var=no
5692 runpath_var=LD_RUN_PATH
5693 hardcode_runpath_var=yes
5699 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5702 hardcode_shlibpath_var=no
5703 hardcode_runpath_var=yes
5704 runpath_var=LD_RUN_PATH
5707 sysv5uw7* | unixware7*)
5708 no_undefined_flag='${wl}-z ${wl}text'
5709 if test "$GCC" = yes; then
5710 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5712 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5714 runpath_var='LD_RUN_PATH'
5715 hardcode_shlibpath_var=no
5723 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5724 echo "${ECHO_T}$ld_shlibs" >&6
5725 test "$ld_shlibs" = no && can_build_shared=no
5729 ## FIXME: this should be a separate macro
5731 # Check hardcoding attributes.
5732 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5733 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5735 if test -n "$hardcode_libdir_flag_spec" || \
5736 test -n "$runpath_var"; then
5738 # We can hardcode non-existant directories.
5739 if test "$hardcode_direct" != no &&
5740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5741 # have to relink, otherwise we might link with an installed library
5742 # when we should be linking with a yet-to-be-installed one
5743 ## test "$hardcode_shlibpath_var" != no &&
5744 test "$hardcode_minus_L" != no; then
5745 # Linking always hardcodes the temporary library directory.
5746 hardcode_action=relink
5748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5749 hardcode_action=immediate
5752 # We cannot hardcode anything, or else we can only hardcode existing
5754 hardcode_action=unsupported
5756 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5757 echo "${ECHO_T}$hardcode_action" >&6
5761 ## FIXME: this should be a separate macro
5765 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5766 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5767 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5768 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5769 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5770 echo "$as_me:$LINENO: result: yes" >&5
5771 echo "${ECHO_T}yes" >&6
5773 echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5779 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5780 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5782 ## FIXME: this should be a separate macro
5784 # PORTME Fill in your ld.so characteristics
5785 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5786 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5788 libname_spec='lib$name'
5795 shlibpath_overrides_runpath=unknown
5797 dynamic_linker="$host_os ld.so"
5798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5804 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5805 shlibpath_var=LIBPATH
5807 # AIX has no versioning support, so we append a major version to the name.
5808 soname_spec='${libname}${release}.so$major'
5813 if test "$host_cpu" = ia64; then
5814 # AIX 5 supports IA64
5815 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5816 shlibpath_var=LD_LIBRARY_PATH
5818 # With GCC up to 2.95.x, collect2 would create an import file
5819 # for dependence libraries. The import file would start with
5820 # the line `#! .'. This would cause the generated library to
5821 # depend on `.', always an invalid library. This was fixed in
5822 # development snapshots of GCC prior to 3.0.
5824 aix4 | aix4.[01] | aix4.[01].*)
5825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5827 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5834 # AIX (on Power*) has no versioning support, so currently we can
5835 # not hardcode correct soname into executable. Probably we can
5836 # add versioning support to collect2, so additional links can
5837 # be useful in future.
5838 if test "$aix_use_runtimelinking" = yes; then
5839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5840 # instead of lib<name>.a to let people know that these are not
5841 # typical AIX shared libraries.
5842 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5844 # We preserve .a as extension for shared libraries through AIX4.2
5845 # and later when we are not doing run time linking.
5846 library_names_spec='${libname}${release}.a $libname.a'
5847 soname_spec='${libname}${release}.so$major'
5849 shlibpath_var=LIBPATH
5854 library_names_spec='$libname.ixlibrary $libname.a'
5855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5856 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'
5860 library_names_spec='${libname}.so'
5861 dynamic_linker="$host_os ld.so"
5862 shlibpath_var=LIBRARY_PATH
5868 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5869 soname_spec='${libname}${release}.so$major'
5870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5871 shlibpath_var=LD_LIBRARY_PATH
5872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5874 export_dynamic_flag_spec=-rdynamic
5875 # the default ld.so.conf also contains /usr/contrib/lib and
5876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5877 # libtool to hard-code these into programs
5880 cygwin* | mingw* | pw32*)
5881 version_type=windows
5884 case $GCC,$host_os in
5886 library_names_spec='$libname.dll.a'
5887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5888 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5889 dldir=$destdir/`dirname \$dlpath`~
5890 test -d \$dldir || mkdir -p \$dldir~
5891 $install_prog .libs/$dlname \$dldir/$dlname'
5892 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5893 dlpath=$dir/\$dldll~
5897 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5904 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5907 dynamic_linker='Win32 ld.exe'
5908 # FIXME: first we should search . and the directory the executable is in
5912 darwin* | rhapsody*)
5913 dynamic_linker="$host_os dyld"
5917 # FIXME: Relying on posixy $() will cause problems for
5918 # cross-compilation, but unfortunately the echo tests do not
5919 # yet detect zsh echo's removal of \ escapes.
5920 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)'
5921 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5922 shlibpath_overrides_runpath=yes
5923 shlibpath_var=DYLD_LIBRARY_PATH
5931 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5932 version_type=freebsd-$objformat
5933 case $version_type in
5935 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5940 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5944 shlibpath_var=LD_LIBRARY_PATH
5947 shlibpath_overrides_runpath=yes
5950 shlibpath_overrides_runpath=no
5951 hardcode_into_libs=yes
5960 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5961 soname_spec='${libname}${release}.so$major'
5962 shlibpath_var=LD_LIBRARY_PATH
5963 hardcode_into_libs=yes
5966 hpux9* | hpux10* | hpux11*)
5967 # Give a soname corresponding to the major version so that dld.sl refuses to
5968 # link against other versions.
5969 dynamic_linker="$host_os dld.sl"
5973 shlibpath_var=SHLIB_PATH
5974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5975 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5976 soname_spec='${libname}${release}.sl$major'
5977 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5978 postinstall_cmds='chmod 555 $lib'
5985 soname_spec='${libname}${release}.so$major'
5986 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5992 case $LD in # libtool.m4 will add one of these switches to LD
5993 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5994 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5995 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5996 *) libsuff= shlibsuff= libmagic=never-match;;
6000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6001 shlibpath_overrides_runpath=no
6002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6006 # No shared lib support for Linux oldld, aout, or coff.
6007 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6011 # This must be Linux ELF.
6016 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6017 soname_spec='${libname}${release}.so$major'
6018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6019 shlibpath_var=LD_LIBRARY_PATH
6020 shlibpath_overrides_runpath=no
6021 # This implies no fast_install, which is unacceptable.
6022 # Some rework will be needed to allow for fast_install
6023 # before this can be enabled.
6024 hardcode_into_libs=yes
6026 # We used to test for /lib/ld.so.1 and disable shared libraries on
6027 # powerpc, because MkLinux only supported shared libraries with the
6028 # GNU dynamic linker. Since this was broken with cross compilers,
6029 # most powerpc-linux boxes support dynamic linking these days and
6030 # people can always --disable-shared, the test was removed, and we
6031 # assume the GNU/Linux dynamic linker is in use.
6032 dynamic_linker='GNU/Linux ld.so'
6039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6040 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6042 dynamic_linker='NetBSD (a.out) ld.so'
6044 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6045 soname_spec='${libname}${release}.so$major'
6046 dynamic_linker='NetBSD ld.elf_so'
6048 shlibpath_var=LD_LIBRARY_PATH
6049 shlibpath_overrides_runpath=yes
6050 hardcode_into_libs=yes
6055 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6056 shlibpath_var=LD_LIBRARY_PATH
6057 shlibpath_overrides_runpath=yes
6064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6066 openbsd2.[89] | openbsd2.[89].*)
6067 shlibpath_overrides_runpath=no
6070 shlibpath_overrides_runpath=yes
6074 shlibpath_overrides_runpath=yes
6076 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6078 shlibpath_var=LD_LIBRARY_PATH
6082 libname_spec='$name'
6084 library_names_spec='$libname.dll $libname.a'
6085 dynamic_linker='OS/2 ld.exe'
6086 shlibpath_var=LIBPATH
6089 osf3* | osf4* | osf5*)
6092 soname_spec='${libname}${release}.so'
6093 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6094 shlibpath_var=LD_LIBRARY_PATH
6095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6101 soname_spec='${libname}${release}.so$major'
6102 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6103 shlibpath_var=LD_LIBRARY_PATH
6110 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6111 soname_spec='${libname}${release}.so$major'
6112 shlibpath_var=LD_LIBRARY_PATH
6113 shlibpath_overrides_runpath=yes
6114 hardcode_into_libs=yes
6115 # ldd complains unless libraries are executable
6116 postinstall_cmds='chmod +x $lib'
6121 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6123 shlibpath_var=LD_LIBRARY_PATH
6124 shlibpath_overrides_runpath=yes
6125 if test "$with_gnu_ld" = yes; then
6131 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6133 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6134 soname_spec='${libname}${release}.so$major'
6135 shlibpath_var=LD_LIBRARY_PATH
6136 case $host_vendor in
6138 shlibpath_overrides_runpath=no
6143 shlibpath_overrides_runpath=no
6144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6151 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6152 soname_spec='${libname}${release}.so$major'
6153 shlibpath_var=LD_LIBRARY_PATH
6160 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6161 soname_spec='${libname}${release}.so$major'
6162 shlibpath_var=LD_LIBRARY_PATH
6166 if test -d /usr/nec ;then
6168 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6169 soname_spec='$libname.so.$major'
6170 shlibpath_var=LD_LIBRARY_PATH
6178 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6179 echo "${ECHO_T}$dynamic_linker" >&6
6180 test "$dynamic_linker" = no && can_build_shared=no
6184 ## FIXME: this should be a separate macro
6186 # Report the final consequences.
6187 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6188 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6189 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6190 echo "${ECHO_T}$can_build_shared" >&6
6194 ## FIXME: this should be a separate macro
6196 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6197 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6198 test "$can_build_shared" = "no" && enable_shared=no
6200 # On AIX, shared libraries and static libraries use the same namespace, and
6201 # are all built from PIC.
6204 test "$enable_shared" = yes && enable_static=no
6205 if test -n "$RANLIB"; then
6206 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6207 postinstall_cmds='$RANLIB $lib'
6212 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6213 test "$enable_shared" = yes && enable_static=no
6217 echo "$as_me:$LINENO: result: $enable_shared" >&5
6218 echo "${ECHO_T}$enable_shared" >&6
6222 ## FIXME: this should be a separate macro
6224 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6225 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6226 # Make sure either enable_shared or enable_static is yes.
6227 test "$enable_shared" = yes || enable_static=yes
6228 echo "$as_me:$LINENO: result: $enable_static" >&5
6229 echo "${ECHO_T}$enable_static" >&6
6233 if test "$hardcode_action" = relink; then
6234 # Fast installation is not supported
6235 enable_fast_install=no
6236 elif test "$shlibpath_overrides_runpath" = yes ||
6237 test "$enable_shared" = no; then
6238 # Fast installation is not necessary
6239 enable_fast_install=needless
6242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6243 if test "$GCC" = yes; then
6244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6247 if test "x$enable_dlopen" != xyes; then
6248 enable_dlopen=unknown
6249 enable_dlopen_self=unknown
6250 enable_dlopen_self_static=unknown
6257 lt_cv_dlopen="load_add_on"
6259 lt_cv_dlopen_self=yes
6262 cygwin* | mingw* | pw32*)
6263 lt_cv_dlopen="LoadLibrary"
6268 echo "$as_me:$LINENO: checking for shl_load" >&5
6269 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6270 if test "${ac_cv_func_shl_load+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6275 #include "confdefs.h"
6276 /* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char shl_load (); below. */
6279 /* Override any gcc2 internal prototype to avoid an error. */
6283 /* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6288 #ifdef F77_DUMMY_MAIN
6292 int F77_DUMMY_MAIN() { return 1; }
6297 /* The GNU C library defines this for functions which it implements
6298 to always fail with ENOSYS. Some functions are actually named
6299 something starting with __ and the normal name is an alias. */
6300 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312 (eval $ac_link) 2>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_func_shl_load=yes
6324 echo "$as_me: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6326 ac_cv_func_shl_load=no
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6330 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6331 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6332 if test $ac_cv_func_shl_load = yes; then
6333 lt_cv_dlopen="shl_load"
6335 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6336 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6337 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 ac_check_lib_save_LIBS=$LIBS
6342 cat >conftest.$ac_ext <<_ACEOF
6343 #line $LINENO "configure"
6344 #include "confdefs.h"
6346 /* Override any gcc2 internal prototype to avoid an error. */
6350 /* We use char because int might match the return type of a gcc2
6351 builtin and then its argument prototype would still apply. */
6353 #ifdef F77_DUMMY_MAIN
6357 int F77_DUMMY_MAIN() { return 1; }
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 ac_cv_lib_dld_shl_load=yes
6381 echo "$as_me: failed program was:" >&5
6382 cat conftest.$ac_ext >&5
6383 ac_cv_lib_dld_shl_load=no
6385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6386 LIBS=$ac_check_lib_save_LIBS
6388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6389 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6390 if test $ac_cv_lib_dld_shl_load = yes; then
6391 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6393 echo "$as_me:$LINENO: checking for dlopen" >&5
6394 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6395 if test "${ac_cv_func_dlopen+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 #include "confdefs.h"
6401 /* System header to define __stub macros and hopefully few prototypes,
6402 which can conflict with char dlopen (); below. */
6404 /* Override any gcc2 internal prototype to avoid an error. */
6408 /* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6413 #ifdef F77_DUMMY_MAIN
6417 int F77_DUMMY_MAIN() { return 1; }
6422 /* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6435 rm -f conftest.$ac_objext conftest$ac_exeext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437 (eval $ac_link) 2>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -s conftest$ac_exeext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_cv_func_dlopen=yes
6449 echo "$as_me: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 ac_cv_func_dlopen=no
6453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6456 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6457 if test $ac_cv_func_dlopen = yes; then
6458 lt_cv_dlopen="dlopen"
6460 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 ac_check_lib_save_LIBS=$LIBS
6467 cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
6469 #include "confdefs.h"
6471 /* Override any gcc2 internal prototype to avoid an error. */
6475 /* We use char because int might match the return type of a gcc2
6476 builtin and then its argument prototype would still apply. */
6478 #ifdef F77_DUMMY_MAIN
6482 int F77_DUMMY_MAIN() { return 1; }
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494 (eval $ac_link) 2>&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -s conftest$ac_exeext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_lib_dl_dlopen=yes
6506 echo "$as_me: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 ac_cv_lib_dl_dlopen=no
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 LIBS=$ac_check_lib_save_LIBS
6513 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6515 if test $ac_cv_lib_dl_dlopen = yes; then
6516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6518 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6519 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6520 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 ac_check_lib_save_LIBS=$LIBS
6525 cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 #include "confdefs.h"
6529 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6536 #ifdef F77_DUMMY_MAIN
6540 int F77_DUMMY_MAIN() { return 1; }
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_lib_svld_dlopen=yes
6564 echo "$as_me: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6566 ac_cv_lib_svld_dlopen=no
6568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6569 LIBS=$ac_check_lib_save_LIBS
6571 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6572 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6573 if test $ac_cv_lib_svld_dlopen = yes; then
6574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6576 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6577 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6578 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_check_lib_save_LIBS=$LIBS
6583 cat >conftest.$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6585 #include "confdefs.h"
6587 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6594 #ifdef F77_DUMMY_MAIN
6598 int F77_DUMMY_MAIN() { return 1; }
6608 rm -f conftest.$ac_objext conftest$ac_exeext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_lib_dld_dld_link=yes
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 ac_cv_lib_dld_dld_link=no
6626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6630 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6631 if test $ac_cv_lib_dld_dld_link = yes; then
6632 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6653 if test "x$lt_cv_dlopen" != xno; then
6659 case $lt_cv_dlopen in
6661 save_CPPFLAGS="$CPPFLAGS"
6662 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6664 save_LDFLAGS="$LDFLAGS"
6665 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6668 LIBS="$lt_cv_dlopen_libs $LIBS"
6670 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6671 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6672 if test "${lt_cv_dlopen_self+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 if test "$cross_compiling" = yes; then :
6676 lt_cv_dlopen_self=cross
6678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6679 lt_status=$lt_dlunknown
6680 cat > conftest.$ac_ext <<EOF
6681 #line 6681 "configure"
6682 #include "confdefs.h"
6691 # define LT_DLGLOBAL RTLD_GLOBAL
6694 # define LT_DLGLOBAL DL_GLOBAL
6696 # define LT_DLGLOBAL 0
6700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6701 find out it does not work in some platform. */
6702 #ifndef LT_DLLAZY_OR_NOW
6704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6707 # define LT_DLLAZY_OR_NOW DL_LAZY
6710 # define LT_DLLAZY_OR_NOW RTLD_NOW
6713 # define LT_DLLAZY_OR_NOW DL_NOW
6715 # define LT_DLLAZY_OR_NOW 0
6723 extern "C" void exit (int);
6726 void fnord() { int i=42;}
6729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6730 int status = $lt_dlunknown;
6734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6736 /* dlclose (self); */
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6747 (./conftest; exit; ) 2>/dev/null
6750 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6751 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6752 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6755 # compilation failed
6756 lt_cv_dlopen_self=no
6763 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6764 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6766 if test "x$lt_cv_dlopen_self" = xyes; then
6767 LDFLAGS="$LDFLAGS $link_static_flag"
6768 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6769 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6770 if test "${lt_cv_dlopen_self_static+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 if test "$cross_compiling" = yes; then :
6774 lt_cv_dlopen_self_static=cross
6776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6777 lt_status=$lt_dlunknown
6778 cat > conftest.$ac_ext <<EOF
6779 #line 6779 "configure"
6780 #include "confdefs.h"
6789 # define LT_DLGLOBAL RTLD_GLOBAL
6792 # define LT_DLGLOBAL DL_GLOBAL
6794 # define LT_DLGLOBAL 0
6798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6799 find out it does not work in some platform. */
6800 #ifndef LT_DLLAZY_OR_NOW
6802 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6805 # define LT_DLLAZY_OR_NOW DL_LAZY
6808 # define LT_DLLAZY_OR_NOW RTLD_NOW
6811 # define LT_DLLAZY_OR_NOW DL_NOW
6813 # define LT_DLLAZY_OR_NOW 0
6821 extern "C" void exit (int);
6824 void fnord() { int i=42;}
6827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6828 int status = $lt_dlunknown;
6832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6834 /* dlclose (self); */
6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841 (eval $ac_link) 2>&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6845 (./conftest; exit; ) 2>/dev/null
6848 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6849 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6850 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6853 # compilation failed
6854 lt_cv_dlopen_self_static=no
6861 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6862 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6865 CPPFLAGS="$save_CPPFLAGS"
6866 LDFLAGS="$save_LDFLAGS"
6871 case $lt_cv_dlopen_self in
6872 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6873 *) enable_dlopen_self=unknown ;;
6876 case $lt_cv_dlopen_self_static in
6877 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6878 *) enable_dlopen_self_static=unknown ;;
6883 ## FIXME: this should be a separate macro
6885 if test "$enable_shared" = yes && test "$GCC" = yes; then
6886 case $archive_cmds in
6888 # FIXME: we may have to deal with multi-command sequences.
6891 # Test whether the compiler implicitly links with -lc since on some
6892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6893 # to ld, don't add -lc before -lgcc.
6894 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6895 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6896 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 echo 'static int dummy;' > conftest.$ac_ext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; then
6909 libobjs=conftest.$ac_objext
6911 wl=$lt_cv_prog_cc_wl
6917 save_allow_undefined_flag=$allow_undefined_flag
6918 allow_undefined_flag=
6919 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6920 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }
6925 lt_cv_archive_cmds_need_lc=no
6927 lt_cv_archive_cmds_need_lc=yes
6929 allow_undefined_flag=$save_allow_undefined_flag
6931 cat conftest.err 1>&5
6935 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6936 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6940 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6944 ## FIXME: this should be a separate macro
6946 # The second clause should only fire when bootstrapping the
6947 # libtool distribution, otherwise you forgot to ship ltmain.sh
6948 # with your package, and you will get complaints that there are
6949 # no rules to generate ltmain.sh.
6950 if test -f "$ltmain"; then
6953 # If there is no Makefile yet, we rely on a make rule to execute
6954 # `config.status --recheck' to rerun these tests and create the
6955 # libtool script then.
6956 test -f Makefile && make "$ltmain"
6959 if test -f "$ltmain"; then
6960 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6963 echo creating $ofile
6965 # Now quote all the things that may contain metacharacters while being
6966 # careful not to overquote the AC_SUBSTed values. We take copies of the
6967 # variables and quote the copies for generation of the libtool script.
6968 for var in echo old_CC old_CFLAGS \
6969 AR AR_FLAGS CC LD LN_S NM SHELL \
6970 reload_flag reload_cmds wl \
6971 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6972 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6973 library_names_spec soname_spec \
6974 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6975 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6976 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6977 old_striplib striplib file_magic_cmd export_symbols_cmds \
6978 deplibs_check_method allow_undefined_flag no_undefined_flag \
6979 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6980 global_symbol_to_c_name_address \
6981 hardcode_libdir_flag_spec hardcode_libdir_separator \
6982 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6983 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6986 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6987 old_postinstall_cmds | old_postuninstall_cmds | \
6988 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6989 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6990 postinstall_cmds | postuninstall_cmds | \
6991 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6992 # Double-quote double-evaled strings.
6993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7001 cat <<__EOF__ > "${ofile}T"
7004 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7005 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7008 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7009 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7011 # This program is free software; you can redistribute it and/or modify
7012 # it under the terms of the GNU General Public License as published by
7013 # the Free Software Foundation; either version 2 of the License, or
7014 # (at your option) any later version.
7016 # This program is distributed in the hope that it will be useful, but
7017 # WITHOUT ANY WARRANTY; without even the implied warranty of
7018 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7019 # General Public License for more details.
7021 # You should have received a copy of the GNU General Public License
7022 # along with this program; if not, write to the Free Software
7023 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7025 # As a special exception to the GNU General Public License, if you
7026 # distribute this file as part of a program that contains a
7027 # configuration script generated by Autoconf, you may include it under
7028 # the same distribution terms that you use for the rest of that program.
7030 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7031 Xsed="sed -e s/^X//"
7033 # The HP-UX ksh and POSIX shell print the target directory to stdout
7035 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7037 # ### BEGIN LIBTOOL CONFIG
7039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7041 # Shell to use when invoking shell scripts.
7044 # Whether or not to build shared libraries.
7045 build_libtool_libs=$enable_shared
7047 # Whether or not to build static libraries.
7048 build_old_libs=$enable_static
7050 # Whether or not to add -lc for building shared libraries.
7051 build_libtool_need_lc=$need_lc
7053 # Whether or not to optimize for fast installation.
7054 fast_install=$enable_fast_install
7057 host_alias=$host_alias
7060 # An echo program that does not interpret backslashes.
7065 AR_FLAGS=$lt_AR_FLAGS
7067 # The default C compiler.
7070 # Is the compiler the GNU C compiler?
7073 # The linker used to build libraries.
7076 # Whether we need hard or soft links.
7079 # A BSD-compatible nm program.
7082 # A symbol stripping program
7085 # Used to examine libraries when file_magic_cmd begins "file"
7086 MAGIC_CMD=$MAGIC_CMD
7088 # Used on cygwin: DLL creation program.
7091 # Used on cygwin: object dumper.
7094 # Used on cygwin: assembler.
7097 # The name of the directory that contains temporary libtool files.
7100 # How to create reloadable object files.
7101 reload_flag=$lt_reload_flag
7102 reload_cmds=$lt_reload_cmds
7104 # How to pass a linker flag through the compiler.
7107 # Object file suffix (normally "o").
7110 # Old archive suffix (normally "a").
7113 # Executable file suffix (normally "").
7116 # Additional compiler flags for building library objects.
7117 pic_flag=$lt_pic_flag
7120 # Does compiler simultaneously support -c and -o options?
7121 compiler_c_o=$lt_compiler_c_o
7123 # Can we write directly to a .lo ?
7124 compiler_o_lo=$lt_compiler_o_lo
7126 # Must we lock files when doing compilation ?
7127 need_locks=$lt_need_locks
7129 # Do we need the lib prefix for modules?
7130 need_lib_prefix=$need_lib_prefix
7132 # Do we need a version for libraries?
7133 need_version=$need_version
7135 # Whether dlopen is supported.
7136 dlopen_support=$enable_dlopen
7138 # Whether dlopen of programs is supported.
7139 dlopen_self=$enable_dlopen_self
7141 # Whether dlopen of statically linked programs is supported.
7142 dlopen_self_static=$enable_dlopen_self_static
7144 # Compiler flag to prevent dynamic linking.
7145 link_static_flag=$lt_link_static_flag
7147 # Compiler flag to turn off builtin functions.
7148 no_builtin_flag=$lt_no_builtin_flag
7150 # Compiler flag to allow reflexive dlopens.
7151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7153 # Compiler flag to generate shared objects directly from archives.
7154 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7156 # Compiler flag to generate thread-safe objects.
7157 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7159 # Library versioning type.
7160 version_type=$version_type
7162 # Format of library name prefix.
7163 libname_spec=$lt_libname_spec
7165 # List of archive names. First name is the real one, the rest are links.
7166 # The last name is the one that the linker finds with -lNAME.
7167 library_names_spec=$lt_library_names_spec
7169 # The coded name of the library, if different from the real name.
7170 soname_spec=$lt_soname_spec
7172 # Commands used to build and install an old-style archive.
7174 old_archive_cmds=$lt_old_archive_cmds
7175 old_postinstall_cmds=$lt_old_postinstall_cmds
7176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7178 # Create an old-style archive from a shared archive.
7179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7181 # Create a temporary old-style archive to link instead of a shared archive.
7182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7184 # Commands used to build and install a shared archive.
7185 archive_cmds=$lt_archive_cmds
7186 archive_expsym_cmds=$lt_archive_expsym_cmds
7187 postinstall_cmds=$lt_postinstall_cmds
7188 postuninstall_cmds=$lt_postuninstall_cmds
7190 # Commands to strip libraries.
7191 old_striplib=$lt_old_striplib
7192 striplib=$lt_striplib
7194 # Method to check whether dependent libraries are shared objects.
7195 deplibs_check_method=$lt_deplibs_check_method
7197 # Command to use when deplibs_check_method == file_magic.
7198 file_magic_cmd=$lt_file_magic_cmd
7200 # Flag that allows shared libraries with undefined symbols to be built.
7201 allow_undefined_flag=$lt_allow_undefined_flag
7203 # Flag that forces no undefined symbols.
7204 no_undefined_flag=$lt_no_undefined_flag
7206 # Commands used to finish a libtool library installation in a directory.
7207 finish_cmds=$lt_finish_cmds
7209 # Same as above, but a single script fragment to be evaled but not shown.
7210 finish_eval=$lt_finish_eval
7212 # Take the output of nm and produce a listing of raw symbols and C names.
7213 global_symbol_pipe=$lt_global_symbol_pipe
7215 # Transform the output of nm in a proper C declaration
7216 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7218 # Transform the output of nm in a C name address pair
7219 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7221 # This is the shared library runtime path variable.
7222 runpath_var=$runpath_var
7224 # This is the shared library path variable.
7225 shlibpath_var=$shlibpath_var
7227 # Is shlibpath searched before the hard-coded library search path?
7228 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7230 # How to hardcode a shared library path into an executable.
7231 hardcode_action=$hardcode_action
7233 # Whether we should hardcode library paths into libraries.
7234 hardcode_into_libs=$hardcode_into_libs
7236 # Flag to hardcode \$libdir into a binary during linking.
7237 # This must work even if \$libdir does not exist.
7238 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7240 # Whether we need a single -rpath flag with a separated argument.
7241 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7243 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7245 hardcode_direct=$hardcode_direct
7247 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7249 hardcode_minus_L=$hardcode_minus_L
7251 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7252 # the resulting binary.
7253 hardcode_shlibpath_var=$hardcode_shlibpath_var
7255 # Variables whose values should be saved in libtool wrapper scripts and
7256 # restored at relink time.
7257 variables_saved_for_relink="$variables_saved_for_relink"
7259 # Whether libtool must link a program against all its dependency libraries.
7260 link_all_deplibs=$link_all_deplibs
7262 # Compile-time system search path for libraries
7263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7265 # Run-time system search path for libraries
7266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7268 # Fix the shell variable \$srcfile for the compiler.
7269 fix_srcfile_path="$fix_srcfile_path"
7271 # Set to yes if exported symbols are required.
7272 always_export_symbols=$always_export_symbols
7274 # The commands to list exported symbols.
7275 export_symbols_cmds=$lt_export_symbols_cmds
7277 # The commands to extract the exported symbol list from a shared archive.
7278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7280 # Symbols that should not be listed in the preloaded symbols.
7281 exclude_expsyms=$lt_exclude_expsyms
7283 # Symbols that must always be exported.
7284 include_expsyms=$lt_include_expsyms
7286 # ### END LIBTOOL CONFIG
7292 cat <<\EOF >> "${ofile}T"
7294 # AIX sometimes has problems with the GCC collect2 program. For some
7295 # reason, if we set the COLLECT_NAMES environment variable, the problems
7296 # vanish in a puff of smoke.
7297 if test "X${COLLECT_NAMES+set}" != Xset; then
7299 export COLLECT_NAMES
7306 cygwin* | mingw* | pw32* | os2*)
7307 cat <<'EOF' >> "${ofile}T"
7308 # This is a source program that is used to create dlls on Windows
7309 # Don't remove nor modify the starting and closing comments
7310 # /* ltdll.c starts here */
7311 # #define WIN32_LEAN_AND_MEAN
7312 # #include <windows.h>
7313 # #undef WIN32_LEAN_AND_MEAN
7314 # #include <stdio.h>
7316 # #ifndef __CYGWIN__
7317 # # ifdef __CYGWIN32__
7318 # # define __CYGWIN__ __CYGWIN32__
7322 # #ifdef __cplusplus
7325 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7326 # #ifdef __cplusplus
7331 # #include <cygwin/cygwin_dll.h>
7332 # DECLARE_CYGWIN_DLL( DllMain );
7334 # HINSTANCE __hDllInstance_base;
7337 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7339 # __hDllInstance_base = hInst;
7342 # /* ltdll.c ends here */
7343 # This is a source program that is used to create import libraries
7344 # on Windows for dlls which lack them. Don't remove nor modify the
7345 # starting and closing comments
7346 # /* impgen.c starts here */
7347 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7349 # This file is part of GNU libtool.
7351 # This program is free software; you can redistribute it and/or modify
7352 # it under the terms of the GNU General Public License as published by
7353 # the Free Software Foundation; either version 2 of the License, or
7354 # (at your option) any later version.
7356 # This program is distributed in the hope that it will be useful,
7357 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7358 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7359 # GNU General Public License for more details.
7361 # You should have received a copy of the GNU General Public License
7362 # along with this program; if not, write to the Free Software
7363 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7366 # #include <stdio.h> /* for printf() */
7367 # #include <unistd.h> /* for open(), lseek(), read() */
7368 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7369 # #include <string.h> /* for strdup() */
7371 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7373 # #define O_BINARY 0
7376 # static unsigned int
7377 # pe_get16 (fd, offset)
7381 # unsigned char b[2];
7382 # lseek (fd, offset, SEEK_SET);
7384 # return b[0] + (b[1]<<8);
7387 # static unsigned int
7388 # pe_get32 (fd, offset)
7392 # unsigned char b[4];
7393 # lseek (fd, offset, SEEK_SET);
7395 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7398 # static unsigned int
7402 # unsigned char *b = ptr;
7403 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7412 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7413 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7414 # unsigned long name_rvas, nexp;
7415 # unsigned char *expdata, *erva;
7416 # char *filename, *dll_name;
7418 # filename = argv[1];
7420 # dll = open(filename, O_RDONLY|O_BINARY);
7424 # dll_name = filename;
7426 # for (i=0; filename[i]; i++)
7427 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7428 # dll_name = filename + i +1;
7430 # pe_header_offset = pe_get32 (dll, 0x3c);
7431 # opthdr_ofs = pe_header_offset + 4 + 20;
7432 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7434 # if (num_entries < 1) /* no exports */
7437 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7438 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7439 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7440 # secptr = (pe_header_offset + 4 + 20 +
7441 # pe_get16 (dll, pe_header_offset + 4 + 16));
7444 # for (i = 0; i < nsections; i++)
7447 # unsigned long secptr1 = secptr + 40 * i;
7448 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7449 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7450 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7451 # lseek(dll, secptr1, SEEK_SET);
7452 # read(dll, sname, 8);
7453 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7455 # expptr = fptr + (export_rva - vaddr);
7456 # if (export_rva + export_size > vaddr + vsize)
7457 # export_size = vsize - (export_rva - vaddr);
7462 # expdata = (unsigned char*)malloc(export_size);
7463 # lseek (dll, expptr, SEEK_SET);
7464 # read (dll, expdata, export_size);
7465 # erva = expdata - export_rva;
7467 # nexp = pe_as32 (expdata+24);
7468 # name_rvas = pe_as32 (expdata+32);
7470 # printf ("EXPORTS\n");
7471 # for (i = 0; i<nexp; i++)
7473 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7474 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7479 # /* impgen.c ends here */
7485 # We use sed instead of cat because bash on DJGPP gets confused if
7486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7487 # text mode, it properly converts lines to CR/LF. This bash problem
7488 # is reportedly fixed, but why not run on old versions too?
7489 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7491 mv -f "${ofile}T" "$ofile" || \
7492 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7502 # This can be used to rebuild libtool when needed
7503 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7505 # Always use our own libtool.
7506 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7508 # Prevent multiple expansion
7512 # Extract the first word of "ar", so it can be a program name with args.
7513 set dummy ar; ac_word=$2
7514 echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516 if test "${ac_cv_path_AR+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_AR="$AR" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 if test -n "$AR"; then
7544 echo "$as_me:$LINENO: result: $AR" >&5
7545 echo "${ECHO_T}$AR" >&6
7547 echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7551 # Extract the first word of "sed", so it can be a program name with args.
7552 set dummy sed; ac_word=$2
7553 echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7555 if test "${ac_cv_path_SED+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 if test -n "$SED"; then
7583 echo "$as_me:$LINENO: result: $SED" >&5
7584 echo "${ECHO_T}$SED" >&6
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7590 # Extract the first word of "rm", so it can be a program name with args.
7591 set dummy rm; ac_word=$2
7592 echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594 if test "${ac_cv_path_RM+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 if test -n "$RM"; then
7622 echo "$as_me:$LINENO: result: $RM" >&5
7623 echo "${ECHO_T}$RM" >&6
7625 echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6
7629 # Extract the first word of "echo", so it can be a program name with args.
7630 set dummy echo; ac_word=$2
7631 echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7633 if test "${ac_cv_path_ECHO+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 ECHO=$ac_cv_path_ECHO
7660 if test -n "$ECHO"; then
7661 echo "$as_me:$LINENO: result: $ECHO" >&5
7662 echo "${ECHO_T}$ECHO" >&6
7664 echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6
7668 # Extract the first word of "mkdir", so it can be a program name with args.
7669 set dummy mkdir; ac_word=$2
7670 echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7672 if test "${ac_cv_path_MKDIR+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 MKDIR=$ac_cv_path_MKDIR
7699 if test -n "$MKDIR"; then
7700 echo "$as_me:$LINENO: result: $MKDIR" >&5
7701 echo "${ECHO_T}$MKDIR" >&6
7703 echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7707 # Extract the first word of "date", so it can be a program name with args.
7708 set dummy date; ac_word=$2
7709 echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7711 if test "${ac_cv_path_DATE+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 DATE=$ac_cv_path_DATE
7738 if test -n "$DATE"; then
7739 echo "$as_me:$LINENO: result: $DATE" >&5
7740 echo "${ECHO_T}$DATE" >&6
7742 echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6
7746 # Extract the first word of "mv", so it can be a program name with args.
7747 set dummy mv; ac_word=$2
7748 echo "$as_me:$LINENO: checking for $ac_word" >&5
7749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7750 if test "${ac_cv_path_MV+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 if test -n "$MV"; then
7778 echo "$as_me:$LINENO: result: $MV" >&5
7779 echo "${ECHO_T}$MV" >&6
7781 echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6
7785 # Extract the first word of "dot", so it can be a program name with args.
7786 set dummy dot; ac_word=$2
7787 echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789 if test "${ac_cv_path_DOT+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 if test -n "$DOT"; then
7817 echo "$as_me:$LINENO: result: $DOT" >&5
7818 echo "${ECHO_T}$DOT" >&6
7820 echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6
7824 # Extract the first word of "etags", so it can be a program name with args.
7825 set dummy etags; ac_word=$2
7826 echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7828 if test "${ac_cv_path_ETAGS+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 ETAGS=$ac_cv_path_ETAGS
7855 if test -n "$ETAGS"; then
7856 echo "$as_me:$LINENO: result: $ETAGS" >&5
7857 echo "${ECHO_T}$ETAGS" >&6
7859 echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6
7863 # Extract the first word of "purify", so it can be a program name with args.
7864 set dummy purify; ac_word=$2
7865 echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7867 if test "${ac_cv_path_PURIFY+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
7883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 PURIFY=$ac_cv_path_PURIFY
7894 if test -n "$PURIFY"; then
7895 echo "$as_me:$LINENO: result: $PURIFY" >&5
7896 echo "${ECHO_T}$PURIFY" >&6
7898 echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6
7907 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
7908 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7909 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 ac_check_lib_save_LIBS=$LIBS
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7916 #include "confdefs.h"
7918 /* Override any gcc2 internal prototype to avoid an error. */
7922 /* We use char because int might match the return type of a gcc2
7923 builtin and then its argument prototype would still apply. */
7925 #ifdef F77_DUMMY_MAIN
7929 int F77_DUMMY_MAIN() { return 1; }
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 ac_cv_lib_elf_elf_begin=yes
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 ac_cv_lib_elf_elf_begin=no
7957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7958 LIBS=$ac_check_lib_save_LIBS
7960 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
7961 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7962 if test $ac_cv_lib_elf_elf_begin = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964 #define HAVE_LIBELF 1
7972 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7973 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
7974 if test "${ac_cv_search_dlopen+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 ac_func_search_save_LIBS=$LIBS
7978 ac_cv_search_dlopen=no
7979 cat >conftest.$ac_ext <<_ACEOF
7980 #line $LINENO "configure"
7981 #include "confdefs.h"
7983 /* Override any gcc2 internal prototype to avoid an error. */
7987 /* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7990 #ifdef F77_DUMMY_MAIN
7994 int F77_DUMMY_MAIN() { return 1; }
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_cv_search_dlopen="none required"
8018 echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8022 if test "$ac_cv_search_dlopen" = no; then
8023 for ac_lib in dl; do
8024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8025 cat >conftest.$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8027 #include "confdefs.h"
8029 /* Override any gcc2 internal prototype to avoid an error. */
8033 /* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8036 #ifdef F77_DUMMY_MAIN
8040 int F77_DUMMY_MAIN() { return 1; }
8050 rm -f conftest.$ac_objext conftest$ac_exeext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052 (eval $ac_link) 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_search_dlopen="-l$ac_lib"
8065 echo "$as_me: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8071 LIBS=$ac_func_search_save_LIBS
8073 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8074 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8075 if test "$ac_cv_search_dlopen" != no; then
8076 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8079 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
8080 echo "$as_me: error: dlopen() required but not found" >&2;}
8081 { (exit 1); exit 1; }; }
8085 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
8086 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
8087 if test "${ac_cv_search_mallinfo+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 ac_func_search_save_LIBS=$LIBS
8091 ac_cv_search_mallinfo=no
8092 cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 #include "confdefs.h"
8096 /* Override any gcc2 internal prototype to avoid an error. */
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8103 #ifdef F77_DUMMY_MAIN
8107 int F77_DUMMY_MAIN() { return 1; }
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119 (eval $ac_link) 2>&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try='test -s conftest$ac_exeext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 ac_cv_search_mallinfo="none required"
8131 echo "$as_me: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8135 if test "$ac_cv_search_mallinfo" = no; then
8136 for ac_lib in malloc; do
8137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8138 cat >conftest.$ac_ext <<_ACEOF
8139 #line $LINENO "configure"
8140 #include "confdefs.h"
8142 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8149 #ifdef F77_DUMMY_MAIN
8153 int F77_DUMMY_MAIN() { return 1; }
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165 (eval $ac_link) 2>&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -s conftest$ac_exeext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_cv_search_mallinfo="-l$ac_lib"
8178 echo "$as_me: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8184 LIBS=$ac_func_search_save_LIBS
8186 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
8187 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
8188 if test "$ac_cv_search_mallinfo" != no; then
8189 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
8190 cat >>confdefs.h <<\_ACEOF
8191 #define HAVE_MALLINFO 1
8198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8200 if test "${ac_cv_header_stdc+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8204 #line $LINENO "configure"
8205 #include "confdefs.h"
8212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8215 egrep -v '^ *\+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } >/dev/null; then
8220 if test -s conftest.err; then
8221 ac_cpp_err=$ac_c_preproc_warn_flag
8228 if test -z "$ac_cpp_err"; then
8229 ac_cv_header_stdc=yes
8231 echo "$as_me: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 ac_cv_header_stdc=no
8235 rm -f conftest.err conftest.$ac_ext
8237 if test $ac_cv_header_stdc = yes; then
8238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8239 cat >conftest.$ac_ext <<_ACEOF
8240 #line $LINENO "configure"
8241 #include "confdefs.h"
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246 egrep "memchr" >/dev/null 2>&1; then
8249 ac_cv_header_stdc=no
8255 if test $ac_cv_header_stdc = yes; then
8256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8257 cat >conftest.$ac_ext <<_ACEOF
8258 #line $LINENO "configure"
8259 #include "confdefs.h"
8263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264 egrep "free" >/dev/null 2>&1; then
8267 ac_cv_header_stdc=no
8273 if test $ac_cv_header_stdc = yes; then
8274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8275 if test "$cross_compiling" = yes; then
8278 cat >conftest.$ac_ext <<_ACEOF
8279 #line $LINENO "configure"
8280 #include "confdefs.h"
8282 #if ((' ' & 0x0FF) == 0x020)
8283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8286 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8287 || ('j' <= (c) && (c) <= 'r') \
8288 || ('s' <= (c) && (c) <= 'z'))
8289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8297 for (i = 0; i < 256; i++)
8298 if (XOR (islower (i), ISLOWER (i))
8299 || toupper (i) != TOUPPER (i))
8304 rm -f conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8317 echo "$as_me: program exited with status $ac_status" >&5
8318 echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8321 ac_cv_header_stdc=no
8323 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8328 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8329 if test $ac_cv_header_stdc = yes; then
8331 cat >>confdefs.h <<\_ACEOF
8332 #define STDC_HEADERS 1
8337 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8338 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8339 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8344 #include "confdefs.h"
8345 #include <sys/types.h>
8346 #include <sys/wait.h>
8348 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8351 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8354 #ifdef F77_DUMMY_MAIN
8358 int F77_DUMMY_MAIN() { return 1; }
8365 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8370 rm -f conftest.$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372 (eval $ac_compile) 2>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_header_sys_wait_h=yes
8384 echo "$as_me: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8386 ac_cv_header_sys_wait_h=no
8388 rm -f conftest.$ac_objext conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8391 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8392 if test $ac_cv_header_sys_wait_h = yes; then
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_SYS_WAIT_H 1
8409 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
8411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8413 echo "$as_me:$LINENO: checking for $ac_header" >&5
8414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8421 # Is the header compilable?
8422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8426 #include "confdefs.h"
8427 $ac_includes_default
8428 #include <$ac_header>
8430 rm -f conftest.$ac_objext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -s conftest.$ac_objext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_header_compiler=yes
8444 echo "$as_me: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8446 ac_header_compiler=no
8448 rm -f conftest.$ac_objext conftest.$ac_ext
8449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8450 echo "${ECHO_T}$ac_header_compiler" >&6
8452 # Is the header present?
8453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8457 #include "confdefs.h"
8458 #include <$ac_header>
8460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8463 egrep -v '^ *\+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } >/dev/null; then
8468 if test -s conftest.err; then
8469 ac_cpp_err=$ac_c_preproc_warn_flag
8476 if test -z "$ac_cpp_err"; then
8477 ac_header_preproc=yes
8479 echo "$as_me: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8481 ac_header_preproc=no
8483 rm -f conftest.err conftest.$ac_ext
8484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485 echo "${ECHO_T}$ac_header_preproc" >&6
8487 # So? What about this header?
8488 case $ac_header_compiler:$ac_header_preproc in
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 eval "$as_ac_Header=$ac_header_preproc"
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514 cat >>confdefs.h <<_ACEOF
8515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
8529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8531 echo "$as_me:$LINENO: checking for $ac_header" >&5
8532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8539 # Is the header compilable?
8540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8543 #line $LINENO "configure"
8544 #include "confdefs.h"
8545 $ac_includes_default
8546 #include <$ac_header>
8548 rm -f conftest.$ac_objext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_header_compiler=yes
8562 echo "$as_me: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8564 ac_header_compiler=no
8566 rm -f conftest.$ac_objext conftest.$ac_ext
8567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8568 echo "${ECHO_T}$ac_header_compiler" >&6
8570 # Is the header present?
8571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8573 cat >conftest.$ac_ext <<_ACEOF
8574 #line $LINENO "configure"
8575 #include "confdefs.h"
8576 #include <$ac_header>
8578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8581 egrep -v '^ *\+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } >/dev/null; then
8586 if test -s conftest.err; then
8587 ac_cpp_err=$ac_c_preproc_warn_flag
8594 if test -z "$ac_cpp_err"; then
8595 ac_header_preproc=yes
8597 echo "$as_me: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 ac_header_preproc=no
8601 rm -f conftest.err conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8603 echo "${ECHO_T}$ac_header_preproc" >&6
8605 # So? What about this header?
8606 case $ac_header_compiler:$ac_header_preproc in
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8620 echo "$as_me:$LINENO: checking for $ac_header" >&5
8621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 eval "$as_ac_Header=$ac_header_preproc"
8627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632 cat >>confdefs.h <<_ACEOF
8633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8643 for ac_header in dlfcn.h link.h
8645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8647 echo "$as_me:$LINENO: checking for $ac_header" >&5
8648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8655 # Is the header compilable?
8656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8659 #line $LINENO "configure"
8660 #include "confdefs.h"
8661 $ac_includes_default
8662 #include <$ac_header>
8664 rm -f conftest.$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -s conftest.$ac_objext'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 ac_header_compiler=yes
8678 echo "$as_me: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8680 ac_header_compiler=no
8682 rm -f conftest.$ac_objext conftest.$ac_ext
8683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8684 echo "${ECHO_T}$ac_header_compiler" >&6
8686 # Is the header present?
8687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8689 cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 #include "confdefs.h"
8692 #include <$ac_header>
8694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8697 egrep -v '^ *\+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } >/dev/null; then
8702 if test -s conftest.err; then
8703 ac_cpp_err=$ac_c_preproc_warn_flag
8710 if test -z "$ac_cpp_err"; then
8711 ac_header_preproc=yes
8713 echo "$as_me: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 ac_header_preproc=no
8717 rm -f conftest.err conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8719 echo "${ECHO_T}$ac_header_preproc" >&6
8721 # So? What about this header?
8722 case $ac_header_compiler:$ac_header_preproc in
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8736 echo "$as_me:$LINENO: checking for $ac_header" >&5
8737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 eval "$as_ac_Header=$ac_header_preproc"
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8748 cat >>confdefs.h <<_ACEOF
8749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8758 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8759 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8760 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 ac_cv_prog_cc_stdc=no
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line $LINENO "configure"
8767 #include "confdefs.h"
8770 #include <sys/types.h>
8771 #include <sys/stat.h>
8772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8773 struct buf { int x; };
8774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8775 static char *e (p, i)
8781 static char *f (char * (*g) (char **, int), char **p, ...)
8786 s = g (p, va_arg (v,int));
8790 int test (int i, double x);
8791 struct s1 {int (*f) (int a);};
8792 struct s2 {int (*f) (double a);};
8793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8796 #ifdef F77_DUMMY_MAIN
8800 int F77_DUMMY_MAIN() { return 1; }
8805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8810 # Don't try gcc -ansi; that turns off useful extensions and
8811 # breaks some systems' header files.
8812 # AIX -qlanglvl=ansi
8813 # Ultrix and OSF/1 -std1
8814 # HP-UX 10.20 and later -Ae
8815 # HP-UX older versions -Aa -D_HPUX_SOURCE
8816 # SVR4 -Xc -D__EXTENSIONS__
8817 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8819 CC="$ac_save_CC $ac_arg"
8820 rm -f conftest.$ac_objext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8822 (eval $ac_compile) 2>&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_prog_cc_stdc=$ac_arg
8835 echo "$as_me: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8838 rm -f conftest.$ac_objext
8840 rm -f conftest.$ac_ext conftest.$ac_objext
8845 case "x$ac_cv_prog_cc_stdc" in
8847 echo "$as_me:$LINENO: result: none needed" >&5
8848 echo "${ECHO_T}none needed" >&6 ;;
8850 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8851 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8852 CC="$CC $ac_cv_prog_cc_stdc" ;;
8855 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8856 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8857 if test "${ac_cv_c_const+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 cat >conftest.$ac_ext <<_ACEOF
8861 #line $LINENO "configure"
8862 #include "confdefs.h"
8864 #ifdef F77_DUMMY_MAIN
8868 int F77_DUMMY_MAIN() { return 1; }
8873 /* FIXME: Include the comments suggested by Paul. */
8875 /* Ultrix mips cc rejects this. */
8876 typedef int charset[2];
8878 /* SunOS 4.1.1 cc rejects this. */
8879 char const *const *ccp;
8881 /* NEC SVR4.0.2 mips cc rejects this. */
8882 struct point {int x, y;};
8883 static struct point const zero = {0,0};
8884 /* AIX XL C 1.02.0.0 rejects this.
8885 It does not let you subtract one const X* pointer from another in
8886 an arm of an if-expression whose if-part is not a constant
8888 const char *g = "string";
8889 ccp = &g + (g ? g-g : 0);
8890 /* HPUX 7.0 cc rejects these. */
8893 ccp = (char const *const *) p;
8894 { /* SCO 3.2v4 cc rejects this. */
8896 char const *s = 0 ? (char *) 0 : (char const *) 0;
8900 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8902 const int *foo = &x[0];
8905 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8906 typedef const int *iptr;
8910 { /* AIX XL C 1.02.0.0 rejects this saying
8911 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8912 struct s { int j; const int *ap[3]; };
8913 struct s *b; b->j = 5;
8915 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8924 rm -f conftest.$ac_objext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -s conftest.$ac_objext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8938 echo "$as_me: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8942 rm -f conftest.$ac_objext conftest.$ac_ext
8944 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8945 echo "${ECHO_T}$ac_cv_c_const" >&6
8946 if test $ac_cv_c_const = no; then
8948 cat >>confdefs.h <<\_ACEOF
8954 echo "$as_me:$LINENO: checking for inline" >&5
8955 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8956 if test "${ac_cv_c_inline+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 for ac_kw in inline __inline__ __inline; do
8961 cat >conftest.$ac_ext <<_ACEOF
8962 #line $LINENO "configure"
8963 #include "confdefs.h"
8965 static $ac_kw int static_foo () {return 0; }
8966 $ac_kw int foo () {return 0; }
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_c_inline=$ac_kw; break
8984 echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8987 rm -f conftest.$ac_objext conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8992 echo "${ECHO_T}$ac_cv_c_inline" >&6
8993 case $ac_cv_c_inline in
8996 cat >>confdefs.h <<\_ACEOF
9000 *) cat >>confdefs.h <<_ACEOF
9001 #define inline $ac_cv_c_inline
9007 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9008 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9009 if test "${ac_cv_c_bigendian+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 # See if sys/param.h defines the BYTE_ORDER macro.
9013 cat >conftest.$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9015 #include "confdefs.h"
9016 #include <sys/types.h>
9017 #include <sys/param.h>
9019 #ifdef F77_DUMMY_MAIN
9023 int F77_DUMMY_MAIN() { return 1; }
9028 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9036 rm -f conftest.$ac_objext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038 (eval $ac_compile) 2>&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 # It does; now see whether it defined to BIG_ENDIAN or not.
9049 cat >conftest.$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9051 #include "confdefs.h"
9052 #include <sys/types.h>
9053 #include <sys/param.h>
9055 #ifdef F77_DUMMY_MAIN
9059 int F77_DUMMY_MAIN() { return 1; }
9064 #if BYTE_ORDER != BIG_ENDIAN
9072 rm -f conftest.$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074 (eval $ac_compile) 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_c_bigendian=yes
9086 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9088 ac_cv_c_bigendian=no
9090 rm -f conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 # It does not; compile a test program.
9095 if test "$cross_compiling" = yes; then
9096 # try to guess the endianess by grep'ing values into an object file
9097 ac_cv_c_bigendian=unknown
9098 cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9100 #include "confdefs.h"
9101 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9102 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9103 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9104 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9105 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9106 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9107 #ifdef F77_DUMMY_MAIN
9111 int F77_DUMMY_MAIN() { return 1; }
9116 _ascii (); _ebcdic ();
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123 (eval $ac_compile) 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -s conftest.$ac_objext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9134 ac_cv_c_bigendian=yes
9136 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9137 if test "$ac_cv_c_bigendian" = unknown; then
9138 ac_cv_c_bigendian=no
9140 # finding both strings is unlikely to happen, but who knows?
9141 ac_cv_c_bigendian=unknown
9145 echo "$as_me: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9148 rm -f conftest.$ac_objext conftest.$ac_ext
9150 cat >conftest.$ac_ext <<_ACEOF
9151 #line $LINENO "configure"
9152 #include "confdefs.h"
9156 /* Are we little or big endian? From Harbison&Steele. */
9160 char c[sizeof (long)];
9163 exit (u.c[sizeof (long) - 1] == 1);
9166 rm -f conftest$ac_exeext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168 (eval $ac_link) 2>&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_cv_c_bigendian=no
9179 echo "$as_me: program exited with status $ac_status" >&5
9180 echo "$as_me: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9183 ac_cv_c_bigendian=yes
9185 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9188 rm -f conftest.$ac_objext conftest.$ac_ext
9190 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9191 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9192 case $ac_cv_c_bigendian in
9194 cat >>confdefs.h <<\_ACEOF
9195 #define ENDIAN_BIG 1
9199 cat >>confdefs.h <<\_ACEOF
9200 #define ENDIAN_LITTLE 1
9204 { { echo "$as_me:$LINENO: error: unknown endianess
9205 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9206 echo "$as_me: error: unknown endianess
9207 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9208 { (exit 1); exit 1; }; } ;;
9212 echo "$as_me:$LINENO: checking for pid_t" >&5
9213 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9214 if test "${ac_cv_type_pid_t+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 cat >conftest.$ac_ext <<_ACEOF
9218 #line $LINENO "configure"
9219 #include "confdefs.h"
9220 $ac_includes_default
9221 #ifdef F77_DUMMY_MAIN
9225 int F77_DUMMY_MAIN() { return 1; }
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest.$ac_objext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_type_pid_t=yes
9252 echo "$as_me: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9256 rm -f conftest.$ac_objext conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9259 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9260 if test $ac_cv_type_pid_t = yes; then
9264 cat >>confdefs.h <<_ACEOF
9270 echo "$as_me:$LINENO: checking for size_t" >&5
9271 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9272 if test "${ac_cv_type_size_t+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 cat >conftest.$ac_ext <<_ACEOF
9276 #line $LINENO "configure"
9277 #include "confdefs.h"
9278 $ac_includes_default
9279 #ifdef F77_DUMMY_MAIN
9283 int F77_DUMMY_MAIN() { return 1; }
9290 if (sizeof (size_t))
9296 rm -f conftest.$ac_objext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298 (eval $ac_compile) 2>&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -s conftest.$ac_objext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_cv_type_size_t=yes
9310 echo "$as_me: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9312 ac_cv_type_size_t=no
9314 rm -f conftest.$ac_objext conftest.$ac_ext
9316 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9317 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9318 if test $ac_cv_type_size_t = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323 #define size_t unsigned
9328 echo "$as_me:$LINENO: checking for int64_t" >&5
9329 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
9330 if test "${ac_cv_type_int64_t+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 cat >conftest.$ac_ext <<_ACEOF
9334 #line $LINENO "configure"
9335 #include "confdefs.h"
9336 $ac_includes_default
9337 #ifdef F77_DUMMY_MAIN
9341 int F77_DUMMY_MAIN() { return 1; }
9348 if (sizeof (int64_t))
9354 rm -f conftest.$ac_objext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356 (eval $ac_compile) 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -s conftest.$ac_objext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_type_int64_t=yes
9368 echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9370 ac_cv_type_int64_t=no
9372 rm -f conftest.$ac_objext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9375 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
9376 if test $ac_cv_type_int64_t = yes; then
9378 cat >>confdefs.h <<_ACEOF
9379 #define HAVE_INT64_T 1
9384 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
9385 echo "$as_me: error: Type int64_t required but not found" >&2;}
9386 { (exit 1); exit 1; }; }
9389 echo "$as_me:$LINENO: checking for uint64_t" >&5
9390 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
9391 if test "${ac_cv_type_uint64_t+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9395 #line $LINENO "configure"
9396 #include "confdefs.h"
9397 $ac_includes_default
9398 #ifdef F77_DUMMY_MAIN
9402 int F77_DUMMY_MAIN() { return 1; }
9409 if (sizeof (uint64_t))
9415 rm -f conftest.$ac_objext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417 (eval $ac_compile) 2>&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_type_uint64_t=yes
9429 echo "$as_me: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 ac_cv_type_uint64_t=no
9433 rm -f conftest.$ac_objext conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9436 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
9437 if test $ac_cv_type_uint64_t = yes; then
9439 cat >>confdefs.h <<_ACEOF
9440 #define HAVE_UINT64_T 1
9445 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
9446 echo "$as_me: error: Type uint64_t required but not found" >&2;}
9447 { (exit 1); exit 1; }; }
9450 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9451 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9452 if test "${ac_cv_header_time+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 cat >conftest.$ac_ext <<_ACEOF
9456 #line $LINENO "configure"
9457 #include "confdefs.h"
9458 #include <sys/types.h>
9459 #include <sys/time.h>
9462 #ifdef F77_DUMMY_MAIN
9466 int F77_DUMMY_MAIN() { return 1; }
9471 if ((struct tm *) 0)
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479 (eval $ac_compile) 2>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -s conftest.$ac_objext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_header_time=yes
9491 echo "$as_me: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9493 ac_cv_header_time=no
9495 rm -f conftest.$ac_objext conftest.$ac_ext
9497 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9498 echo "${ECHO_T}$ac_cv_header_time" >&6
9499 if test $ac_cv_header_time = yes; then
9501 cat >>confdefs.h <<\_ACEOF
9502 #define TIME_WITH_SYS_TIME 1
9507 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9508 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9509 if test "${ac_cv_struct_tm+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 cat >conftest.$ac_ext <<_ACEOF
9513 #line $LINENO "configure"
9514 #include "confdefs.h"
9515 #include <sys/types.h>
9518 #ifdef F77_DUMMY_MAIN
9522 int F77_DUMMY_MAIN() { return 1; }
9527 struct tm *tp; tp->tm_sec;
9532 rm -f conftest.$ac_objext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -s conftest.$ac_objext'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 ac_cv_struct_tm=time.h
9546 echo "$as_me: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9548 ac_cv_struct_tm=sys/time.h
9550 rm -f conftest.$ac_objext conftest.$ac_ext
9552 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9553 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9554 if test $ac_cv_struct_tm = sys/time.h; then
9556 cat >>confdefs.h <<\_ACEOF
9557 #define TM_IN_SYS_TIME 1
9564 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
9565 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
9566 if test "${ac_cv_cxx_namespaces+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 ac_cpp='$CXXCPP $CPPFLAGS'
9573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9577 cat >conftest.$ac_ext <<_ACEOF
9578 #line $LINENO "configure"
9579 #include "confdefs.h"
9580 namespace Outer { namespace Inner { int i = 0; }}
9581 #ifdef F77_DUMMY_MAIN
9585 int F77_DUMMY_MAIN() { return 1; }
9590 using namespace Outer::Inner; return i;
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_cxx_namespaces=yes
9609 echo "$as_me: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9611 ac_cv_cxx_namespaces=no
9613 rm -f conftest.$ac_objext conftest.$ac_ext
9615 ac_cpp='$CPP $CPPFLAGS'
9616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9622 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
9623 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
9624 if test "$ac_cv_cxx_namespaces" = yes; then
9626 cat >>confdefs.h <<\_ACEOF
9627 #define HAVE_NAMESPACES
9632 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
9633 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
9634 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 ac_cpp='$CXXCPP $CPPFLAGS'
9642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9646 cat >conftest.$ac_ext <<_ACEOF
9647 #line $LINENO "configure"
9648 #include "confdefs.h"
9649 #include <ext/hash_map>
9650 #ifdef HAVE_NAMESPACES
9651 using namespace std;
9653 #ifdef F77_DUMMY_MAIN
9657 int F77_DUMMY_MAIN() { return 1; }
9662 hash_map<int, int> t; return 0;
9667 rm -f conftest.$ac_objext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_cxx_have_ext_hash_map=std
9681 echo "$as_me: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9683 ac_cv_cxx_have_ext_hash_map=no
9685 rm -f conftest.$ac_objext conftest.$ac_ext
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9688 #include "confdefs.h"
9689 #include <ext/hash_map>
9690 #ifdef HAVE_NAMESPACES
9691 using namespace __gnu_cxx;
9693 #ifdef F77_DUMMY_MAIN
9697 int F77_DUMMY_MAIN() { return 1; }
9702 hash_map<int, int> t; return 0;
9707 rm -f conftest.$ac_objext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9709 (eval $ac_compile) 2>&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -s conftest.$ac_objext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_cxx_have_ext_hash_map=gnu
9721 echo "$as_me: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 ac_cv_cxx_have_ext_hash_map=no
9725 rm -f conftest.$ac_objext conftest.$ac_ext
9727 ac_cpp='$CPP $CPPFLAGS'
9728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9734 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
9735 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
9736 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
9738 cat >>confdefs.h <<\_ACEOF
9739 #define HAVE_STD_EXT_HASH_MAP
9743 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_GNU_EXT_HASH_MAP
9751 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
9752 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
9753 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 ac_cpp='$CXXCPP $CPPFLAGS'
9761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9765 cat >conftest.$ac_ext <<_ACEOF
9766 #line $LINENO "configure"
9767 #include "confdefs.h"
9768 #include <ext/hash_set>
9769 #ifdef HAVE_NAMESPACES
9770 using namespace std;
9772 #ifdef F77_DUMMY_MAIN
9776 int F77_DUMMY_MAIN() { return 1; }
9781 hash_set<int> t; return 0;
9786 rm -f conftest.$ac_objext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9788 (eval $ac_compile) 2>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -s conftest.$ac_objext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_cxx_have_ext_hash_set=std
9800 echo "$as_me: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9802 ac_cv_cxx_have_ext_hash_set=no
9804 rm -f conftest.$ac_objext conftest.$ac_ext
9805 cat >conftest.$ac_ext <<_ACEOF
9806 #line $LINENO "configure"
9807 #include "confdefs.h"
9808 #include <ext/hash_set>
9809 #ifdef HAVE_NAMESPACES
9810 using namespace __gnu_cxx;
9812 #ifdef F77_DUMMY_MAIN
9816 int F77_DUMMY_MAIN() { return 1; }
9821 hash_set<int> t; return 0;
9826 rm -f conftest.$ac_objext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_cv_cxx_have_ext_hash_set=gnu
9840 echo "$as_me: failed program was:" >&5
9841 cat conftest.$ac_ext >&5
9842 ac_cv_cxx_have_ext_hash_set=no
9844 rm -f conftest.$ac_objext conftest.$ac_ext
9846 ac_cpp='$CPP $CPPFLAGS'
9847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9853 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
9854 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
9855 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
9857 cat >>confdefs.h <<\_ACEOF
9858 #define HAVE_STD_EXT_HASH_SET
9862 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
9864 cat >>confdefs.h <<\_ACEOF
9865 #define HAVE_GNU_EXT_HASH_SET
9870 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
9871 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
9872 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 ac_cpp='$CXXCPP $CPPFLAGS'
9880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9884 cat >conftest.$ac_ext <<_ACEOF
9885 #line $LINENO "configure"
9886 #include "confdefs.h"
9887 #include <ext/slist>
9888 #ifdef HAVE_NAMESPACES
9889 using namespace std;
9891 #ifdef F77_DUMMY_MAIN
9895 int F77_DUMMY_MAIN() { return 1; }
9900 slist<int> s; return 0;
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -s conftest.$ac_objext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_cxx_have_ext_slist=std
9919 echo "$as_me: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9921 ac_cv_cxx_have_ext_slist=no
9923 rm -f conftest.$ac_objext conftest.$ac_ext
9924 cat >conftest.$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9926 #include "confdefs.h"
9927 #include <ext/slist>
9928 #ifdef HAVE_NAMESPACES
9929 using namespace __gnu_cxx;
9931 #ifdef F77_DUMMY_MAIN
9935 int F77_DUMMY_MAIN() { return 1; }
9940 slist<int> s; return 0;
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947 (eval $ac_compile) 2>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -s conftest.$ac_objext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_cxx_have_ext_slist=gnu
9959 echo "$as_me: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 ac_cv_cxx_have_ext_slist=no
9963 rm -f conftest.$ac_objext conftest.$ac_ext
9966 ac_cpp='$CPP $CPPFLAGS'
9967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9973 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
9974 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
9975 if test "$ac_cv_cxx_have_ext_slist" = std; then
9977 cat >>confdefs.h <<\_ACEOF
9978 #define HAVE_EXT_SLIST std
9982 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
9984 cat >>confdefs.h <<\_ACEOF
9985 #define HAVE_EXT_SLIST gnu
9990 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
9991 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
9992 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 ac_cpp='$CXXCPP $CPPFLAGS'
10000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10004 cat >conftest.$ac_ext <<_ACEOF
10005 #line $LINENO "configure"
10006 #include "confdefs.h"
10007 #include <iterator>
10008 #ifdef HAVE_NAMESPACES
10009 using namespace std;
10011 #ifdef F77_DUMMY_MAIN
10012 # ifdef __cplusplus
10015 int F77_DUMMY_MAIN() { return 1; }
10020 iterator<int,int,int> t; return 0;
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_cv_cxx_have_std_iterator=yes
10039 echo "$as_me: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 ac_cv_cxx_have_std_iterator=no
10043 rm -f conftest.$ac_objext conftest.$ac_ext
10045 ac_cpp='$CPP $CPPFLAGS'
10046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10052 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
10053 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
10054 if test "$ac_cv_cxx_have_std_iterator" = yes; then
10056 cat >>confdefs.h <<\_ACEOF
10057 #define HAVE_STD_ITERATOR
10062 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
10063 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
10064 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 ac_cpp='$CXXCPP $CPPFLAGS'
10072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10076 cat >conftest.$ac_ext <<_ACEOF
10077 #line $LINENO "configure"
10078 #include "confdefs.h"
10079 #include <iterator>
10080 #ifdef HAVE_NAMESPACES
10081 using namespace std;
10083 #ifdef F77_DUMMY_MAIN
10084 # ifdef __cplusplus
10087 int F77_DUMMY_MAIN() { return 1; }
10092 bidirectional_iterator<int,int,int> t; return 0;
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_cxx_have_bi_iterator=yes
10111 echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 ac_cv_cxx_have_bi_iterator=no
10115 rm -f conftest.$ac_objext conftest.$ac_ext
10117 ac_cpp='$CPP $CPPFLAGS'
10118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10124 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
10125 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
10126 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_BI_ITERATOR
10134 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
10135 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
10136 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 ac_cpp='$CXXCPP $CPPFLAGS'
10144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10150 #include "confdefs.h"
10151 #include <iterator>
10152 #ifdef HAVE_NAMESPACES
10153 using namespace std;
10155 #ifdef F77_DUMMY_MAIN
10156 # ifdef __cplusplus
10159 int F77_DUMMY_MAIN() { return 1; }
10164 forward_iterator<int,int,int> t; return 0;
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -s conftest.$ac_objext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_cv_cxx_have_fwd_iterator=yes
10183 echo "$as_me: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 ac_cv_cxx_have_fwd_iterator=no
10187 rm -f conftest.$ac_objext conftest.$ac_ext
10189 ac_cpp='$CPP $CPPFLAGS'
10190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10196 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
10197 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
10198 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_FWD_ITERATOR
10207 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10208 # for constant arguments. Useless!
10209 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10210 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10211 if test "${ac_cv_working_alloca_h+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10216 #include "confdefs.h"
10217 #include <alloca.h>
10218 #ifdef F77_DUMMY_MAIN
10219 # ifdef __cplusplus
10222 int F77_DUMMY_MAIN() { return 1; }
10227 char *p = (char *) alloca (2 * sizeof (int));
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_working_alloca_h=yes
10246 echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_working_alloca_h=no
10250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10252 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10253 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10254 if test $ac_cv_working_alloca_h = yes; then
10256 cat >>confdefs.h <<\_ACEOF
10257 #define HAVE_ALLOCA_H 1
10262 echo "$as_me:$LINENO: checking for alloca" >&5
10263 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10264 if test "${ac_cv_func_alloca_works+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 #include "confdefs.h"
10271 # define alloca __builtin_alloca
10274 # include <malloc.h>
10275 # define alloca _alloca
10278 # include <alloca.h>
10283 # ifndef alloca /* predefined by HP cc +Olibcalls */
10291 #ifdef F77_DUMMY_MAIN
10292 # ifdef __cplusplus
10295 int F77_DUMMY_MAIN() { return 1; }
10300 char *p = (char *) alloca (1);
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10307 (eval $ac_link) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -s conftest$ac_exeext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_cv_func_alloca_works=yes
10319 echo "$as_me: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 ac_cv_func_alloca_works=no
10323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10326 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10328 if test $ac_cv_func_alloca_works = yes; then
10330 cat >>confdefs.h <<\_ACEOF
10331 #define HAVE_ALLOCA 1
10335 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10336 # that cause trouble. Some versions do not even contain alloca or
10337 # contain a buggy version. If you still want to use their alloca,
10338 # use ar to extract alloca.o from them instead of compiling alloca.c.
10340 ALLOCA=alloca.$ac_objext
10342 cat >>confdefs.h <<\_ACEOF
10347 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10348 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10349 if test "${ac_cv_os_cray+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10354 #include "confdefs.h"
10355 #if defined(CRAY) && ! defined(CRAY2)
10362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10363 egrep "webecray" >/dev/null 2>&1; then
10371 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10372 echo "${ECHO_T}$ac_cv_os_cray" >&6
10373 if test $ac_cv_os_cray = yes; then
10374 for ac_func in _getb67 GETB67 getb67; do
10375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10376 echo "$as_me:$LINENO: checking for $ac_func" >&5
10377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10378 if eval "test \"\${$as_ac_var+set}\" = set"; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 cat >conftest.$ac_ext <<_ACEOF
10382 #line $LINENO "configure"
10383 #include "confdefs.h"
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func (); below. */
10386 #include <assert.h>
10387 /* Override any gcc2 internal prototype to avoid an error. */
10391 /* We use char because int might match the return type of a gcc2
10392 builtin and then its argument prototype would still apply. */
10396 #ifdef F77_DUMMY_MAIN
10397 # ifdef __cplusplus
10400 int F77_DUMMY_MAIN() { return 1; }
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 eval "$as_ac_var=yes"
10432 echo "$as_me: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 eval "$as_ac_var=no"
10436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10440 if test `eval echo '${'$as_ac_var'}'` = yes; then
10442 cat >>confdefs.h <<_ACEOF
10443 #define CRAY_STACKSEG_END $ac_func
10452 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10453 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10454 if test "${ac_cv_c_stack_direction+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 if test "$cross_compiling" = yes; then
10458 ac_cv_c_stack_direction=0
10460 cat >conftest.$ac_ext <<_ACEOF
10461 #line $LINENO "configure"
10462 #include "confdefs.h"
10464 find_stack_direction ()
10466 static char *addr = 0;
10471 return find_stack_direction ();
10474 return (&dummy > addr) ? 1 : -1;
10480 exit (find_stack_direction () < 0);
10483 rm -f conftest$ac_exeext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10485 (eval $ac_link) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_c_stack_direction=1
10496 echo "$as_me: program exited with status $ac_status" >&5
10497 echo "$as_me: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 ( exit $ac_status )
10500 ac_cv_c_stack_direction=-1
10502 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10505 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10506 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10508 cat >>confdefs.h <<_ACEOF
10509 #define STACK_DIRECTION $ac_cv_c_stack_direction
10515 if test $ac_cv_c_compiler_gnu = yes; then
10516 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10517 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10518 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 ac_pattern="Autoconf.*'x'"
10522 cat >conftest.$ac_ext <<_ACEOF
10523 #line $LINENO "configure"
10524 #include "confdefs.h"
10528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10529 egrep "$ac_pattern" >/dev/null 2>&1; then
10530 ac_cv_prog_gcc_traditional=yes
10532 ac_cv_prog_gcc_traditional=no
10537 if test $ac_cv_prog_gcc_traditional = no; then
10538 cat >conftest.$ac_ext <<_ACEOF
10539 #line $LINENO "configure"
10540 #include "confdefs.h"
10541 #include <termio.h>
10544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10545 egrep "$ac_pattern" >/dev/null 2>&1; then
10546 ac_cv_prog_gcc_traditional=yes
10552 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10553 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10554 if test $ac_cv_prog_gcc_traditional = yes; then
10555 CC="$CC -traditional"
10559 echo "$as_me:$LINENO: checking for working memcmp" >&5
10560 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10561 if test "${ac_cv_func_memcmp_working+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 if test "$cross_compiling" = yes; then
10565 ac_cv_func_memcmp_working=no
10567 cat >conftest.$ac_ext <<_ACEOF
10568 #line $LINENO "configure"
10569 #include "confdefs.h"
10571 #ifdef F77_DUMMY_MAIN
10572 # ifdef __cplusplus
10575 int F77_DUMMY_MAIN() { return 1; }
10581 /* Some versions of memcmp are not 8-bit clean. */
10582 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10583 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10586 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10587 or more and with at least one buffer not starting on a 4-byte boundary.
10588 William Lewis provided this test program. */
10593 for (i = 0; i < 4; i++)
10597 strcpy (a, "--------01111111");
10598 strcpy (b, "--------10000000");
10599 if (memcmp (a, b, 16) >= 0)
10609 rm -f conftest$ac_exeext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 ac_cv_func_memcmp_working=yes
10622 echo "$as_me: program exited with status $ac_status" >&5
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 ( exit $ac_status )
10626 ac_cv_func_memcmp_working=no
10628 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10631 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10632 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10633 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10637 for ac_header in stdlib.h unistd.h
10639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10641 echo "$as_me:$LINENO: checking for $ac_header" >&5
10642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10649 # Is the header compilable?
10650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10652 cat >conftest.$ac_ext <<_ACEOF
10653 #line $LINENO "configure"
10654 #include "confdefs.h"
10655 $ac_includes_default
10656 #include <$ac_header>
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest.$ac_objext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_header_compiler=yes
10672 echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 ac_header_compiler=no
10676 rm -f conftest.$ac_objext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10678 echo "${ECHO_T}$ac_header_compiler" >&6
10680 # Is the header present?
10681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 #include "confdefs.h"
10686 #include <$ac_header>
10688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10691 egrep -v '^ *\+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } >/dev/null; then
10696 if test -s conftest.err; then
10697 ac_cpp_err=$ac_c_preproc_warn_flag
10704 if test -z "$ac_cpp_err"; then
10705 ac_header_preproc=yes
10707 echo "$as_me: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 ac_header_preproc=no
10711 rm -f conftest.err conftest.$ac_ext
10712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10713 echo "${ECHO_T}$ac_header_preproc" >&6
10715 # So? What about this header?
10716 case $ac_header_compiler:$ac_header_preproc in
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10730 echo "$as_me:$LINENO: checking for $ac_header" >&5
10731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 eval "$as_ac_Header=$ac_header_preproc"
10737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10742 cat >>confdefs.h <<_ACEOF
10743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10751 for ac_func in getpagesize
10753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10754 echo "$as_me:$LINENO: checking for $ac_func" >&5
10755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10756 if eval "test \"\${$as_ac_var+set}\" = set"; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10761 #include "confdefs.h"
10762 /* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char $ac_func (); below. */
10764 #include <assert.h>
10765 /* Override any gcc2 internal prototype to avoid an error. */
10769 /* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10774 #ifdef F77_DUMMY_MAIN
10775 # ifdef __cplusplus
10778 int F77_DUMMY_MAIN() { return 1; }
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798 (eval $ac_link) 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -s conftest$ac_exeext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 eval "$as_ac_var=yes"
10810 echo "$as_me: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10812 eval "$as_ac_var=no"
10814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10818 if test `eval echo '${'$as_ac_var'}'` = yes; then
10819 cat >>confdefs.h <<_ACEOF
10820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10826 echo "$as_me:$LINENO: checking for working mmap" >&5
10827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 if test "$cross_compiling" = yes; then
10832 ac_cv_func_mmap_fixed_mapped=no
10834 cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10836 #include "confdefs.h"
10837 $ac_includes_default
10838 /* malloc might have been renamed as rpl_malloc. */
10841 /* Thanks to Mike Haertel and Jim Avera for this test.
10842 Here is a matrix of mmap possibilities:
10843 mmap private not fixed
10844 mmap private fixed at somewhere currently unmapped
10845 mmap private fixed at somewhere already mapped
10846 mmap shared not fixed
10847 mmap shared fixed at somewhere currently unmapped
10848 mmap shared fixed at somewhere already mapped
10849 For private mappings, we should verify that changes cannot be read()
10850 back from the file, nor mmap's back from the file at a different
10851 address. (There have been systems where private was not correctly
10852 implemented like the infamous i386 svr4.0, and systems where the
10853 VM page cache was not coherent with the file system buffer cache
10854 like early versions of FreeBSD and possibly contemporary NetBSD.)
10855 For shared mappings, we should conversely verify that changes get
10856 propagated back to all the places they're supposed to be.
10858 Grep wants private fixed already mapped.
10859 The main things grep needs to know about mmap are:
10860 * does it exist and is it safe to write into the mmap'd area
10861 * how to use it (BSD variants) */
10864 #include <sys/mman.h>
10866 #if !STDC_HEADERS && !HAVE_STDLIB_H
10870 /* This mess was copied from the GNU getpagesize.h. */
10871 #if !HAVE_GETPAGESIZE
10872 /* Assume that all systems that can run configure have sys/param.h. */
10873 # if !HAVE_SYS_PARAM_H
10874 # define HAVE_SYS_PARAM_H 1
10877 # ifdef _SC_PAGESIZE
10878 # define getpagesize() sysconf(_SC_PAGESIZE)
10879 # else /* no _SC_PAGESIZE */
10880 # if HAVE_SYS_PARAM_H
10881 # include <sys/param.h>
10882 # ifdef EXEC_PAGESIZE
10883 # define getpagesize() EXEC_PAGESIZE
10884 # else /* no EXEC_PAGESIZE */
10886 # define getpagesize() NBPG * CLSIZE
10889 # endif /* no CLSIZE */
10890 # else /* no NBPG */
10892 # define getpagesize() NBPC
10893 # else /* no NBPC */
10895 # define getpagesize() PAGESIZE
10896 # endif /* PAGESIZE */
10897 # endif /* no NBPC */
10898 # endif /* no NBPG */
10899 # endif /* no EXEC_PAGESIZE */
10900 # else /* no HAVE_SYS_PARAM_H */
10901 # define getpagesize() 8192 /* punt totally */
10902 # endif /* no HAVE_SYS_PARAM_H */
10903 # endif /* no _SC_PAGESIZE */
10905 #endif /* no HAVE_GETPAGESIZE */
10910 char *data, *data2, *data3;
10914 pagesize = getpagesize ();
10916 /* First, make a file with some known garbage in it. */
10917 data = (char *) malloc (pagesize);
10920 for (i = 0; i < pagesize; ++i)
10921 *(data + i) = rand ();
10923 fd = creat ("conftest.mmap", 0600);
10926 if (write (fd, data, pagesize) != pagesize)
10930 /* Next, try to mmap the file at a fixed address which already has
10931 something else allocated at it. If we can, also make sure that
10932 we see the same garbage. */
10933 fd = open ("conftest.mmap", O_RDWR);
10936 data2 = (char *) malloc (2 * pagesize);
10939 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10940 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10941 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10943 for (i = 0; i < pagesize; ++i)
10944 if (*(data + i) != *(data2 + i))
10947 /* Finally, make sure that changes to the mapped area do not
10948 percolate back to the file as seen by read(). (This is a bug on
10949 some variants of i386 svr4.0.) */
10950 for (i = 0; i < pagesize; ++i)
10951 *(data2 + i) = *(data2 + i) + 1;
10952 data3 = (char *) malloc (pagesize);
10955 if (read (fd, data3, pagesize) != pagesize)
10957 for (i = 0; i < pagesize; ++i)
10958 if (*(data + i) != *(data3 + i))
10964 rm -f conftest$ac_exeext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_cv_func_mmap_fixed_mapped=yes
10977 echo "$as_me: program exited with status $ac_status" >&5
10978 echo "$as_me: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 ( exit $ac_status )
10981 ac_cv_func_mmap_fixed_mapped=no
10983 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10986 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10987 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10988 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10990 cat >>confdefs.h <<\_ACEOF
10991 #define HAVE_MMAP 1
10995 rm -f conftest.mmap
10997 echo "$as_me:$LINENO: checking for mmap of files" >&5
10998 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
10999 if test "${ac_cv_func_mmap_file+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 ac_cpp='$CPP $CPPFLAGS'
11006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010 if test "$cross_compiling" = yes; then
11011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11012 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11013 { (exit 1); exit 1; }; }
11015 cat >conftest.$ac_ext <<_ACEOF
11016 #line $LINENO "configure"
11017 #include "confdefs.h"
11019 #ifdef HAVE_SYS_MMAN_H
11020 #include <sys/mman.h>
11023 #ifdef HAVE_SYS_TYPES_H
11024 #include <sys/types.h>
11027 #ifdef HAVE_FCNTL_H
11033 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
11035 rm -f conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_cv_func_mmap_file=yes
11048 echo "$as_me: program exited with status $ac_status" >&5
11049 echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 ( exit $ac_status )
11052 ac_cv_func_mmap_file=no
11054 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11057 ac_cpp='$CPP $CPPFLAGS'
11058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11064 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
11065 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
11066 if test "$ac_cv_func_mmap_file" = yes; then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define HAVE_MMAP_FILE 1
11075 if test ${ac_cv_func_mmap_file} = "no"
11077 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
11078 echo "$as_me: error: mmap() of files required but not found" >&2;}
11079 { (exit 1); exit 1; }; }
11081 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11082 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
11083 if test "${ac_cv_header_mmap_anon+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 ac_cpp='$CPP $CPPFLAGS'
11090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11094 cat >conftest.$ac_ext <<_ACEOF
11095 #line $LINENO "configure"
11096 #include "confdefs.h"
11097 #include <sys/mman.h>
11098 #include <unistd.h>
11100 #ifdef F77_DUMMY_MAIN
11101 # ifdef __cplusplus
11104 int F77_DUMMY_MAIN() { return 1; }
11109 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11114 rm -f conftest.$ac_objext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116 (eval $ac_compile) 2>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -s conftest.$ac_objext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 ac_cv_header_mmap_anon=yes
11128 echo "$as_me: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 ac_cv_header_mmap_anon=no
11132 rm -f conftest.$ac_objext conftest.$ac_ext
11134 ac_cpp='$CPP $CPPFLAGS'
11135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11141 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11142 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
11143 if test "$ac_cv_header_mmap_anon" = yes; then
11144 cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_MMAP_ANONYMOUS 1
11150 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11151 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11152 if test "${ac_cv_type_signal+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 cat >conftest.$ac_ext <<_ACEOF
11156 #line $LINENO "configure"
11157 #include "confdefs.h"
11158 #include <sys/types.h>
11159 #include <signal.h>
11164 extern "C" void (*signal (int, void (*)(int)))(int);
11166 void (*signal ()) ();
11169 #ifdef F77_DUMMY_MAIN
11170 # ifdef __cplusplus
11173 int F77_DUMMY_MAIN() { return 1; }
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_type_signal=void
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 ac_cv_type_signal=int
11201 rm -f conftest.$ac_objext conftest.$ac_ext
11203 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11204 echo "${ECHO_T}$ac_cv_type_signal" >&6
11206 cat >>confdefs.h <<_ACEOF
11207 #define RETSIGTYPE $ac_cv_type_signal
11220 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
11222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11223 echo "$as_me:$LINENO: checking for $ac_func" >&5
11224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11225 if eval "test \"\${$as_ac_var+set}\" = set"; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 cat >conftest.$ac_ext <<_ACEOF
11229 #line $LINENO "configure"
11230 #include "confdefs.h"
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below. */
11233 #include <assert.h>
11234 /* Override any gcc2 internal prototype to avoid an error. */
11238 /* We use char because int might match the return type of a gcc2
11239 builtin and then its argument prototype would still apply. */
11243 #ifdef F77_DUMMY_MAIN
11244 # ifdef __cplusplus
11247 int F77_DUMMY_MAIN() { return 1; }
11252 /* The GNU C library defines this for functions which it implements
11253 to always fail with ENOSYS. Some functions are actually named
11254 something starting with __ and the normal name is an alias. */
11255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267 (eval $ac_link) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -s conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 eval "$as_ac_var=yes"
11279 echo "$as_me: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 eval "$as_ac_var=no"
11283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11287 if test `eval echo '${'$as_ac_var'}'` = yes; then
11288 cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11297 echo "$as_me:$LINENO: checking for mmap" >&5
11298 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
11299 if test "${ac_cv_func_mmap+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11303 #line $LINENO "configure"
11304 #include "confdefs.h"
11305 /* System header to define __stub macros and hopefully few prototypes,
11306 which can conflict with char mmap (); below. */
11307 #include <assert.h>
11308 /* Override any gcc2 internal prototype to avoid an error. */
11312 /* We use char because int might match the return type of a gcc2
11313 builtin and then its argument prototype would still apply. */
11317 #ifdef F77_DUMMY_MAIN
11318 # ifdef __cplusplus
11321 int F77_DUMMY_MAIN() { return 1; }
11326 /* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329 #if defined (__stub_mmap) || defined (__stub___mmap)
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341 (eval $ac_link) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -s conftest$ac_exeext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_func_mmap=yes
11353 echo "$as_me: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11359 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11360 echo "${ECHO_T}$ac_cv_func_mmap" >&6
11361 if test $ac_cv_func_mmap = yes; then
11364 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
11365 echo "$as_me: error: Function mmap() required but not found" >&2;}
11366 { (exit 1); exit 1; }; }
11369 echo "$as_me:$LINENO: checking for mprotect" >&5
11370 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
11371 if test "${ac_cv_func_mprotect+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11375 #line $LINENO "configure"
11376 #include "confdefs.h"
11377 /* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char mprotect (); below. */
11379 #include <assert.h>
11380 /* Override any gcc2 internal prototype to avoid an error. */
11384 /* We use char because int might match the return type of a gcc2
11385 builtin and then its argument prototype would still apply. */
11389 #ifdef F77_DUMMY_MAIN
11390 # ifdef __cplusplus
11393 int F77_DUMMY_MAIN() { return 1; }
11398 /* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401 #if defined (__stub_mprotect) || defined (__stub___mprotect)
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11413 (eval $ac_link) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_func_mprotect=yes
11425 echo "$as_me: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 ac_cv_func_mprotect=no
11429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11431 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
11432 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
11433 if test $ac_cv_func_mprotect = yes; then
11436 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
11437 echo "$as_me: error: Function mprotect() required but not found" >&2;}
11438 { (exit 1); exit 1; }; }
11442 # Check whether --enable-purify or --disable-purify was given.
11443 if test "${enable_purify+set}" = set; then
11444 enableval="$enable_purify"
11445 ENABLE_PURIFY=ENABLE_PURIFY=1
11451 # Check whether --enable-verbose or --disable-verbose was given.
11452 if test "${enable_verbose+set}" = set; then
11453 enableval="$enable_verbose"
11454 ENABLE_VERBOSE=VERBOSE=1
11460 # Check whether --enable-profiling or --disable-profiling was given.
11461 if test "${enable_profiling+set}" = set; then
11462 enableval="$enable_profiling"
11463 ENABLE_PROFILING=ENABLE_PROFILING=1
11469 # Check whether --enable-optimized or --disable-optimized was given.
11470 if test "${enable_optimized+set}" = set; then
11471 enableval="$enable_optimized"
11472 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
11478 # Check whether --enable-spec or --disable-spec was given.
11479 if test "${enable_spec+set}" = set; then
11480 enableval="$enable_spec"
11481 USE_SPEC=USE_SPEC=1
11487 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
11488 if test "${enable_precompiled_bytecode+set}" = set; then
11489 enableval="$enable_precompiled_bytecode"
11490 UPB=USE_PRECOMPILED_BYTECODE=1
11497 *i*86*) # Check whether --enable-jit or --disable-jit was given.
11498 if test "${enable_jit+set}" = set; then
11499 enableval="$enable_jit"
11500 JIT=TARGET_HAS_JIT=1
11512 # Check whether --with-spec or --without-spec was given.
11513 if test "${with_spec+set}" = set; then
11514 withval="$with_spec"
11518 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
11522 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
11523 if test "${with_llvmgccdir+set}" = set; then
11524 withval="$with_llvmgccdir"
11525 LLVMGCCDIR=$withval
11529 # Check whether --with-bcrepos or --without-bcrepos was given.
11530 if test "${with_bcrepos+set}" = set; then
11531 withval="$with_bcrepos"
11535 BCR=/home/vadve/lattner/LLVMPrograms
11539 # Check whether --with-papi or --without-papi was given.
11540 if test "${with_papi+set}" = set; then
11541 withval="$with_papi"
11545 PAPIDIR=/home/vadve/shared/papi-2.3.4.1
11549 # Check whether --with-objroot or --without-objroot was given.
11550 if test "${with_objroot+set}" = set; then
11551 withval="$with_objroot"
11559 # Check whether --with-purify or --without-purify was given.
11560 if test "${with_purify+set}" = set; then
11561 withval="$with_purify"
11566 ac_config_files="$ac_config_files Makefile.config"
11567 cat >confcache <<\_ACEOF
11568 # This file is a shell script that caches the results of configure
11569 # tests run on this system so they can be shared between configure
11570 # scripts and configure runs, see configure's option --config-cache.
11571 # It is not useful on other systems. If it contains results you don't
11572 # want to keep, you may remove or edit it.
11574 # config.status only pays attention to the cache file if you give it
11575 # the --recheck option to rerun configure.
11577 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11579 # following values.
11583 # The following way of writing the cache mishandles newlines in values,
11584 # but we know of no workaround that is simple, portable, and efficient.
11585 # So, don't put newlines in cache variables' values.
11586 # Ultrix sh set writes to stderr and can't be redirected directly,
11587 # and sets the high bit in the cache file unless we assign to the vars.
11590 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11592 # `set' does not quote correctly, so add quotes (double-quote
11593 # substitution turns \\\\ into \\, and sed turns \\ into \).
11596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11599 # `set' quotes correctly as required by POSIX, so do not add quotes.
11601 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11610 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11612 if cmp -s $cache_file confcache; then :; else
11613 if test -w $cache_file; then
11614 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11615 cat confcache >$cache_file
11617 echo "not updating unwritable cache $cache_file"
11622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11623 # Let make expand exec_prefix.
11624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11626 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11627 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11628 # trailing colons and then remove the whole line if VPATH becomes empty
11629 # (actually we leave an empty line to preserve line numbers).
11630 if test "x$srcdir" = x.; then
11631 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11632 s/:*\$(srcdir):*/:/;
11633 s/:*\${srcdir}:*/:/;
11635 s/^\([^=]*=[ ]*\):*/\1/;
11641 DEFS=-DHAVE_CONFIG_H
11644 : ${CONFIG_STATUS=./config.status}
11645 ac_clean_files_save=$ac_clean_files
11646 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11647 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11648 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11649 cat >$CONFIG_STATUS <<_ACEOF
11651 # Generated by $as_me.
11652 # Run this file to recreate the current configuration.
11653 # Compiler output produced by configure, useful for debugging
11654 # configure, is in config.log if it exists.
11657 SHELL=\${CONFIG_SHELL-$SHELL}
11660 cat >>$CONFIG_STATUS <<\_ACEOF
11662 ## --------------------- ##
11663 ## M4sh Initialization. ##
11664 ## --------------------- ##
11666 # Be Bourne compatible
11667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11670 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11675 # Support unset when possible.
11676 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11682 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11683 { $as_unset LANG || test "${LANG+set}" != set; } ||
11684 { LANG=C; export LANG; }
11685 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11686 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11687 { LC_ALL=C; export LC_ALL; }
11688 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11689 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11690 { LC_TIME=C; export LC_TIME; }
11691 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11692 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11693 { LC_CTYPE=C; export LC_CTYPE; }
11694 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11695 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11696 { LANGUAGE=C; export LANGUAGE; }
11697 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11698 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11699 { LC_COLLATE=C; export LC_COLLATE; }
11700 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11701 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11702 { LC_NUMERIC=C; export LC_NUMERIC; }
11703 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11704 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11705 { LC_MESSAGES=C; export LC_MESSAGES; }
11708 # Name of the executable.
11709 as_me=`(basename "$0") 2>/dev/null ||
11710 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11711 X"$0" : 'X\(//\)$' \| \
11712 X"$0" : 'X\(/\)$' \| \
11713 . : '\(.\)' 2>/dev/null ||
11715 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11716 /^X\/\(\/\/\)$/{ s//\1/; q; }
11717 /^X\/\(\/\).*/{ s//\1/; q; }
11720 # PATH needs CR, and LINENO needs CR and PATH.
11721 # Avoid depending upon Character Ranges.
11722 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11723 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11724 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11725 as_cr_digits='0123456789'
11726 as_cr_alnum=$as_cr_Letters$as_cr_digits
11728 # The user is always right.
11729 if test "${PATH_SEPARATOR+set}" != set; then
11730 echo "#! /bin/sh" >conftest.sh
11731 echo "exit 0" >>conftest.sh
11732 chmod +x conftest.sh
11733 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11742 as_lineno_1=$LINENO
11743 as_lineno_2=$LINENO
11744 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11745 test "x$as_lineno_1" != "x$as_lineno_2" &&
11746 test "x$as_lineno_3" = "x$as_lineno_2" || {
11747 # Find who we are. Look in the path if we contain no path at all
11750 *[\\/]* ) as_myself=$0 ;;
11751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11755 test -z "$as_dir" && as_dir=.
11756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11761 # We did not find ourselves, most probably we were run as `sh COMMAND'
11762 # in which case we are not to be found in the path.
11763 if test "x$as_myself" = x; then
11766 if test ! -f "$as_myself"; then
11767 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11768 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11769 { (exit 1); exit 1; }; }
11771 case $CONFIG_SHELL in
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11777 test -z "$as_dir" && as_dir=.
11778 for as_base in sh bash ksh sh5; do
11781 if ("$as_dir/$as_base" -c '
11782 as_lineno_1=$LINENO
11783 as_lineno_2=$LINENO
11784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11785 test "x$as_lineno_1" != "x$as_lineno_2" &&
11786 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11787 CONFIG_SHELL=$as_dir/$as_base
11788 export CONFIG_SHELL
11789 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11797 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11798 # uniformly replaced by the line number. The first 'sed' inserts a
11799 # line-number line before each line; the second 'sed' does the real
11800 # work. The second script uses 'N' to pair each line-number line
11801 # with the numbered line, and appends trailing '-' during
11802 # substitution so that $LINENO is not a special case at line end.
11803 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11804 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11805 sed '=' <$as_myself |
11810 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11813 s,^['$as_cr_digits']*\n,,
11814 ' >$as_me.lineno &&
11815 chmod +x $as_me.lineno ||
11816 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11817 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11818 { (exit 1); exit 1; }; }
11820 # Don't try to exec as it changes $[0], causing all sort of problems
11821 # (the dirname of $[0] is not the place where we might find the
11822 # original and so on. Autoconf is especially sensible to this).
11824 # Exit status is that of the last command.
11829 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11830 *c*,-n*) ECHO_N= ECHO_C='
11832 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11833 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11836 if expr a : '\(a\)' >/dev/null 2>&1; then
11842 rm -f conf$$ conf$$.exe conf$$.file
11844 if ln -s conf$$.file conf$$ 2>/dev/null; then
11845 # We could just check for DJGPP; but this test a) works b) is more generic
11846 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11847 if test -f conf$$.exe; then
11848 # Don't use ln at all; we don't have any links
11853 elif ln conf$$.file conf$$ 2>/dev/null; then
11858 rm -f conf$$ conf$$.exe conf$$.file
11860 as_executable_p="test -f"
11862 # Sed expression to map a string onto a valid CPP name.
11863 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11865 # Sed expression to map a string onto a valid variable name.
11866 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11870 # We need space, tab and new line, in precisely that order.
11876 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11880 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11881 # report actual input values of CONFIG_FILES etc. instead of their
11882 # values after options handling. Logging --version etc. is OK.
11886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11887 ## Running $as_me. ##
11892 This file was extended by [LLVM] $as_me [1.0], which was
11893 generated by GNU Autoconf 2.53. Invocation command line was
11895 CONFIG_FILES = $CONFIG_FILES
11896 CONFIG_HEADERS = $CONFIG_HEADERS
11897 CONFIG_LINKS = $CONFIG_LINKS
11898 CONFIG_COMMANDS = $CONFIG_COMMANDS
11902 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11906 # Files that config.status was made for.
11907 if test -n "$ac_config_files"; then
11908 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11911 if test -n "$ac_config_headers"; then
11912 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11915 if test -n "$ac_config_links"; then
11916 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11919 if test -n "$ac_config_commands"; then
11920 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11923 cat >>$CONFIG_STATUS <<\_ACEOF
11926 \`$as_me' instantiates files from templates according to the
11927 current configuration.
11929 Usage: $0 [OPTIONS] [FILE]...
11931 -h, --help print this help, then exit
11932 -V, --version print version number, then exit
11933 -d, --debug don't remove temporary files
11934 --recheck update $as_me by reconfiguring in the same conditions
11935 --file=FILE[:TEMPLATE]
11936 instantiate the configuration file FILE
11937 --header=FILE[:TEMPLATE]
11938 instantiate the configuration header FILE
11940 Configuration files:
11943 Configuration headers:
11946 Report bugs to <bug-autoconf@gnu.org>."
11949 cat >>$CONFIG_STATUS <<_ACEOF
11951 [LLVM] config.status [1.0]
11952 configured by $0, generated by GNU Autoconf 2.53,
11953 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11956 Free Software Foundation, Inc.
11957 This config.status script is free software; the Free Software Foundation
11958 gives unlimited permission to copy, distribute and modify it."
11963 cat >>$CONFIG_STATUS <<\_ACEOF
11964 # If no file are specified by the user, then we need to provide default
11965 # value. By we need to know if files were specified by the user.
11971 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11972 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11974 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11978 *) # This is not an option, so the user has probably given explicit
11980 ac_need_defaults=false;;
11984 # Handling of the options.
11986 cat >>$CONFIG_STATUS <<_ACEOF
11987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11988 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11989 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11991 cat >>$CONFIG_STATUS <<\_ACEOF
11992 --version | --vers* | -V )
11993 echo "$ac_cs_version"; exit 0 ;;
11995 # Conflict between --help and --header
11996 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11997 Try \`$0 --help' for more information." >&5
11998 echo "$as_me: error: ambiguous option: $1
11999 Try \`$0 --help' for more information." >&2;}
12000 { (exit 1); exit 1; }; };;
12001 --help | --hel | -h )
12002 echo "$ac_cs_usage"; exit 0 ;;
12003 --debug | --d* | -d )
12005 --file | --fil | --fi | --f )
12007 CONFIG_FILES="$CONFIG_FILES $1"
12008 ac_need_defaults=false;;
12009 --header | --heade | --head | --hea )
12011 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12012 ac_need_defaults=false;;
12014 # This is an error.
12015 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12016 Try \`$0 --help' for more information." >&5
12017 echo "$as_me: error: unrecognized option: $1
12018 Try \`$0 --help' for more information." >&2;}
12019 { (exit 1); exit 1; }; } ;;
12021 *) ac_config_targets="$ac_config_targets $1" ;;
12033 cat >>$CONFIG_STATUS <<\_ACEOF
12034 for ac_config_target in $ac_config_targets
12036 case "$ac_config_target" in
12037 # Handling of arguments.
12038 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
12039 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
12040 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12041 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12042 { (exit 1); exit 1; }; };;
12046 # If the user did not use the arguments to specify the items to instantiate,
12047 # then the envvar interface is used. Set only those that are not.
12048 # We use the long form for the default assignment because of an extremely
12049 # bizarre bug on SunOS 4.1.3.
12050 if $ac_need_defaults; then
12051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12055 # Create a temporary directory, and hook for its removal unless debugging.
12058 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12059 trap '{ (exit 1); exit 1; }' 1 2 13 15
12062 # Create a (secure) tmp directory for tmp files.
12065 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12066 test -n "$tmp" && test -d "$tmp"
12069 tmp=$TMPDIR/cs$$-$RANDOM
12070 (umask 077 && mkdir $tmp)
12073 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12074 { (exit 1); exit 1; }
12079 cat >>$CONFIG_STATUS <<_ACEOF
12082 # CONFIG_FILES section.
12085 # No need to generate the scripts if there are no CONFIG_FILES.
12086 # This happens for instance when ./config.status config.h
12087 if test -n "\$CONFIG_FILES"; then
12088 # Protect against being on the right side of a sed subst in config.status.
12089 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12090 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12091 s,@SHELL@,$SHELL,;t t
12092 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12093 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12094 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12095 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12096 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12097 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12098 s,@exec_prefix@,$exec_prefix,;t t
12099 s,@prefix@,$prefix,;t t
12100 s,@program_transform_name@,$program_transform_name,;t t
12101 s,@bindir@,$bindir,;t t
12102 s,@sbindir@,$sbindir,;t t
12103 s,@libexecdir@,$libexecdir,;t t
12104 s,@datadir@,$datadir,;t t
12105 s,@sysconfdir@,$sysconfdir,;t t
12106 s,@sharedstatedir@,$sharedstatedir,;t t
12107 s,@localstatedir@,$localstatedir,;t t
12108 s,@libdir@,$libdir,;t t
12109 s,@includedir@,$includedir,;t t
12110 s,@oldincludedir@,$oldincludedir,;t t
12111 s,@infodir@,$infodir,;t t
12112 s,@mandir@,$mandir,;t t
12113 s,@build_alias@,$build_alias,;t t
12114 s,@host_alias@,$host_alias,;t t
12115 s,@target_alias@,$target_alias,;t t
12116 s,@DEFS@,$DEFS,;t t
12117 s,@ECHO_C@,$ECHO_C,;t t
12118 s,@ECHO_N@,$ECHO_N,;t t
12119 s,@ECHO_T@,$ECHO_T,;t t
12120 s,@LIBS@,$LIBS,;t t
12121 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12122 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12123 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12124 s,@build@,$build,;t t
12125 s,@build_cpu@,$build_cpu,;t t
12126 s,@build_vendor@,$build_vendor,;t t
12127 s,@build_os@,$build_os,;t t
12128 s,@host@,$host,;t t
12129 s,@host_cpu@,$host_cpu,;t t
12130 s,@host_vendor@,$host_vendor,;t t
12131 s,@host_os@,$host_os,;t t
12132 s,@target@,$target,;t t
12133 s,@target_cpu@,$target_cpu,;t t
12134 s,@target_vendor@,$target_vendor,;t t
12135 s,@target_os@,$target_os,;t t
12137 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
12138 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
12140 s,@CXXFLAGS@,$CXXFLAGS,;t t
12141 s,@LDFLAGS@,$LDFLAGS,;t t
12142 s,@CPPFLAGS@,$CPPFLAGS,;t t
12143 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12144 s,@EXEEXT@,$EXEEXT,;t t
12145 s,@OBJEXT@,$OBJEXT,;t t
12147 s,@CFLAGS@,$CFLAGS,;t t
12148 s,@ac_ct_CC@,$ac_ct_CC,;t t
12150 s,@ifGNUmake@,$ifGNUmake,;t t
12152 s,@LEXLIB@,$LEXLIB,;t t
12153 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
12154 s,@YACC@,$YACC,;t t
12155 s,@LN_S@,$LN_S,;t t
12156 s,@ECHO@,$ECHO,;t t
12157 s,@RANLIB@,$RANLIB,;t t
12158 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12159 s,@STRIP@,$STRIP,;t t
12160 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12161 s,@LIBTOOL@,$LIBTOOL,;t t
12165 s,@MKDIR@,$MKDIR,;t t
12166 s,@DATE@,$DATE,;t t
12169 s,@ETAGS@,$ETAGS,;t t
12170 s,@PURIFY@,$PURIFY,;t t
12171 s,@ALLOCA@,$ALLOCA,;t t
12172 s,@LIBOBJS@,$LIBOBJS,;t t
12173 s,@MMAP_FILE@,$MMAP_FILE,;t t
12174 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
12175 s,@ENABLE_VERBOSE@,$ENABLE_VERBOSE,;t t
12176 s,@ENABLE_PROFILING@,$ENABLE_PROFILING,;t t
12177 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
12178 s,@USE_SPEC@,$USE_SPEC,;t t
12181 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
12183 s,@PAPIDIR@,$PAPIDIR,;t t
12184 s,@OBJROOT@,$OBJROOT,;t t
12189 cat >>$CONFIG_STATUS <<\_ACEOF
12190 # Split the substitutions into bite-sized pieces for seds with
12191 # small command number limits, like on Digital OSF/1 and HP-UX.
12192 ac_max_sed_lines=48
12193 ac_sed_frag=1 # Number of current file.
12194 ac_beg=1 # First line for current file.
12195 ac_end=$ac_max_sed_lines # Line after last line for current file.
12198 while $ac_more_lines; do
12199 if test $ac_beg -gt 1; then
12200 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12202 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12204 if test ! -s $tmp/subs.frag; then
12205 ac_more_lines=false
12207 # The purpose of the label and of the branching condition is to
12208 # speed up the sed processing (if there are no `@' at all, there
12209 # is no need to browse any of the substitutions).
12210 # These are the two extra sed commands mentioned above.
12212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12213 if test -z "$ac_sed_cmds"; then
12214 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12216 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12218 ac_sed_frag=`expr $ac_sed_frag + 1`
12220 ac_end=`expr $ac_end + $ac_max_sed_lines`
12223 if test -z "$ac_sed_cmds"; then
12226 fi # test -n "$CONFIG_FILES"
12229 cat >>$CONFIG_STATUS <<\_ACEOF
12230 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12233 - | *:- | *:-:* ) # input from stdin
12235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12239 * ) ac_file_in=$ac_file.in ;;
12242 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12243 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245 X"$ac_file" : 'X\(//\)[^/]' \| \
12246 X"$ac_file" : 'X\(//\)$' \| \
12247 X"$ac_file" : 'X\(/\)' \| \
12248 . : '\(.\)' 2>/dev/null ||
12250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12252 /^X\(\/\/\)$/{ s//\1/; q; }
12253 /^X\(\/\).*/{ s//\1/; q; }
12255 { case "$ac_dir" in
12256 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12260 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12261 case $as_mkdir_dir in
12262 # Skip DOS drivespec
12263 ?:) as_incr_dir=$as_mkdir_dir ;;
12265 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12266 test -d "$as_incr_dir" ||
12267 mkdir "$as_incr_dir" ||
12268 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12269 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12270 { (exit 1); exit 1; }; }
12277 if test "$ac_dir" != .; then
12278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12279 # A "../" for each directory in $ac_dir_suffix.
12280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12282 ac_dir_suffix= ac_top_builddir=
12286 .) # No --srcdir option. We are building in place.
12288 if test -z "$ac_top_builddir"; then
12291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12293 [\\/]* | ?:[\\/]* ) # Absolute path.
12294 ac_srcdir=$srcdir$ac_dir_suffix;
12295 ac_top_srcdir=$srcdir ;;
12296 *) # Relative path.
12297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12300 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12302 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12303 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12304 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12305 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12310 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12313 if test x"$ac_file" != x-; then
12314 { echo "$as_me:$LINENO: creating $ac_file" >&5
12315 echo "$as_me: creating $ac_file" >&6;}
12318 # Let's still pretend it is `configure' which instantiates (i.e., don't
12319 # use $as_me), people would be surprised to read:
12320 # /* config.h. Generated by config.status. */
12321 if test x"$ac_file" = x-; then
12324 configure_input="$ac_file. "
12326 configure_input=$configure_input"Generated from `echo $ac_file_in |
12327 sed 's,.*/,,'` by configure."
12329 # First look for the input files in the build tree, otherwise in the
12331 ac_file_inputs=`IFS=:
12332 for f in $ac_file_in; do
12334 -) echo $tmp/stdin ;;
12336 # Absolute (can't be DOS-style, as IFS=:)
12337 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12338 echo "$as_me: error: cannot find input file: $f" >&2;}
12339 { (exit 1); exit 1; }; }
12342 if test -f "$f"; then
12345 elif test -f "$srcdir/$f"; then
12350 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12351 echo "$as_me: error: cannot find input file: $f" >&2;}
12352 { (exit 1); exit 1; }; }
12355 done` || { (exit 1); exit 1; }
12357 cat >>$CONFIG_STATUS <<_ACEOF
12361 cat >>$CONFIG_STATUS <<\_ACEOF
12363 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12364 s,@configure_input@,$configure_input,;t t
12365 s,@srcdir@,$ac_srcdir,;t t
12366 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12367 s,@top_srcdir@,$ac_top_srcdir,;t t
12368 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12369 s,@builddir@,$ac_builddir,;t t
12370 s,@abs_builddir@,$ac_abs_builddir,;t t
12371 s,@top_builddir@,$ac_top_builddir,;t t
12372 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12373 s,@INSTALL@,$ac_INSTALL,;t t
12374 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12376 if test x"$ac_file" != x-; then
12377 mv $tmp/out $ac_file
12385 cat >>$CONFIG_STATUS <<\_ACEOF
12388 # CONFIG_HEADER section.
12391 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12392 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12394 # ac_d sets the value in "#define NAME VALUE" lines.
12395 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12396 ac_dB='[ ].*$,\1#\2'
12399 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12400 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12401 ac_uB='$,\1#\2define\3'
12405 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12406 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12408 - | *:- | *:-:* ) # input from stdin
12410 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12411 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12412 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12413 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12414 * ) ac_file_in=$ac_file.in ;;
12417 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12418 echo "$as_me: creating $ac_file" >&6;}
12420 # First look for the input files in the build tree, otherwise in the
12422 ac_file_inputs=`IFS=:
12423 for f in $ac_file_in; do
12425 -) echo $tmp/stdin ;;
12427 # Absolute (can't be DOS-style, as IFS=:)
12428 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12429 echo "$as_me: error: cannot find input file: $f" >&2;}
12430 { (exit 1); exit 1; }; }
12433 if test -f "$f"; then
12436 elif test -f "$srcdir/$f"; then
12441 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12442 echo "$as_me: error: cannot find input file: $f" >&2;}
12443 { (exit 1); exit 1; }; }
12446 done` || { (exit 1); exit 1; }
12447 # Remove the trailing spaces.
12448 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12452 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12453 # `conftest.undefs', that substitutes the proper values into
12454 # config.h.in to produce config.h. The first handles `#define'
12455 # templates, and the second `#undef' templates.
12456 # And first: Protect against being on the right side of a sed subst in
12457 # config.status. Protect against being in an unquoted here document
12458 # in config.status.
12459 rm -f conftest.defines conftest.undefs
12460 # Using a here document instead of a string reduces the quoting nightmare.
12461 # Putting comments in sed scripts is not portable.
12463 # `end' is used to avoid that the second main sed command (meant for
12464 # 0-ary CPP macros) applies to n-ary macro definitions.
12465 # See the Autoconf documentation for `clear'.
12466 cat >confdef2sed.sed <<\_ACEOF
12471 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12473 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12476 # If some macros were called several times there might be several times
12477 # the same #defines, which is useless. Nevertheless, we may not want to
12478 # sort them, since we want the *last* AC-DEFINE to be honored.
12479 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12480 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12481 rm -f confdef2sed.sed
12483 # This sed command replaces #undef with comments. This is necessary, for
12484 # example, in the case of _POSIX_SOURCE, which is predefined and required
12485 # on some systems where configure will not decide to define it.
12486 cat >>conftest.undefs <<\_ACEOF
12487 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12490 # Break up conftest.defines because some shells have a limit on the size
12491 # of here documents, and old seds have small limits too (100 cmds).
12492 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12493 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12494 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12495 echo ' :' >>$CONFIG_STATUS
12496 rm -f conftest.tail
12497 while grep . conftest.defines >/dev/null
12499 # Write a limited-size here document to $tmp/defines.sed.
12500 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12501 # Speed up: don't consider the non `#define' lines.
12502 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12503 # Work around the forget-to-reset-the-flag bug.
12504 echo 't clr' >>$CONFIG_STATUS
12505 echo ': clr' >>$CONFIG_STATUS
12506 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12508 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12510 mv $tmp/out $tmp/in
12512 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12513 rm -f conftest.defines
12514 mv conftest.tail conftest.defines
12516 rm -f conftest.defines
12517 echo ' fi # egrep' >>$CONFIG_STATUS
12518 echo >>$CONFIG_STATUS
12520 # Break up conftest.undefs because some shells have a limit on the size
12521 # of here documents, and old seds have small limits too (100 cmds).
12522 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12523 rm -f conftest.tail
12524 while grep . conftest.undefs >/dev/null
12526 # Write a limited-size here document to $tmp/undefs.sed.
12527 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12528 # Speed up: don't consider the non `#undef'
12529 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12530 # Work around the forget-to-reset-the-flag bug.
12531 echo 't clr' >>$CONFIG_STATUS
12532 echo ': clr' >>$CONFIG_STATUS
12533 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12535 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12537 mv $tmp/out $tmp/in
12539 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12540 rm -f conftest.undefs
12541 mv conftest.tail conftest.undefs
12543 rm -f conftest.undefs
12545 cat >>$CONFIG_STATUS <<\_ACEOF
12546 # Let's still pretend it is `configure' which instantiates (i.e., don't
12547 # use $as_me), people would be surprised to read:
12548 # /* config.h. Generated by config.status. */
12549 if test x"$ac_file" = x-; then
12550 echo "/* Generated by configure. */" >$tmp/config.h
12552 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12554 cat $tmp/in >>$tmp/config.h
12556 if test x"$ac_file" != x-; then
12557 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12558 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12559 echo "$as_me: $ac_file is unchanged" >&6;}
12561 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12563 X"$ac_file" : 'X\(//\)[^/]' \| \
12564 X"$ac_file" : 'X\(//\)$' \| \
12565 X"$ac_file" : 'X\(/\)' \| \
12566 . : '\(.\)' 2>/dev/null ||
12568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12570 /^X\(\/\/\)$/{ s//\1/; q; }
12571 /^X\(\/\).*/{ s//\1/; q; }
12573 { case "$ac_dir" in
12574 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12578 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12579 case $as_mkdir_dir in
12580 # Skip DOS drivespec
12581 ?:) as_incr_dir=$as_mkdir_dir ;;
12583 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12584 test -d "$as_incr_dir" ||
12585 mkdir "$as_incr_dir" ||
12586 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12587 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12588 { (exit 1); exit 1; }; }
12594 mv $tmp/config.h $ac_file
12598 rm -f $tmp/config.h
12603 cat >>$CONFIG_STATUS <<\_ACEOF
12605 { (exit 0); exit 0; }
12607 chmod +x $CONFIG_STATUS
12608 ac_clean_files=$ac_clean_files_save
12611 # configure is writing to config.log, and then calls config.status.
12612 # config.status does its own redirection, appending to config.log.
12613 # Unfortunately, on DOS this fails, as config.log is still kept open
12614 # by configure, so config.status won't be able to write to it; its
12615 # output is simply discarded. So we exec the FD to /dev/null,
12616 # effectively closing config.log, so it can be properly (re)opened and
12617 # appended to by config.status. When coming back to configure, we
12618 # need to make the FD available again.
12619 if test "$no_create" != yes; then
12622 $SHELL $CONFIG_STATUS || ac_cs_success=false
12624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12625 # would make configure fail if this is the last instruction.
12626 $ac_cs_success || { (exit 1); exit 1; }