2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for cparse 0.0.20040813.
5 # Report bugs to <richard+cparse@sfere.greenend.org.uk>.
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='cparse'
417 PACKAGE_TARNAME='cparse'
418 PACKAGE_VERSION='0.0.20040813'
419 PACKAGE_STRING='cparse 0.0.20040813'
420 PACKAGE_BUGREPORT='richard+cparse@sfere.greenend.org.uk'
422 ac_unique_file="cparse.h"
423 # Factoring default headers for most tests.
424 ac_includes_default="\
427 # include <sys/types.h>
430 # include <sys/stat.h>
441 # if !STDC_HEADERS && HAVE_MEMORY_H
447 # include <strings.h>
450 # include <inttypes.h>
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_CC_set=${CC+set}
898 ac_cv_env_CC_set=${CC+set}
899 ac_cv_env_CC_value=$CC
900 ac_env_CFLAGS_set=${CFLAGS+set}
901 ac_env_CFLAGS_value=$CFLAGS
902 ac_cv_env_CFLAGS_set=${CFLAGS+set}
903 ac_cv_env_CFLAGS_value=$CFLAGS
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_CPP_set=${CPP+set}
913 ac_env_CPP_value=$CPP
914 ac_cv_env_CPP_set=${CPP+set}
915 ac_cv_env_CPP_value=$CPP
918 # Report the --help message.
920 if test "$ac_init_help" = "long"; then
921 # Omit some internal or obsolete options to make the list less imposing.
922 # This message is too long to be a string in the A/UX 3.1 sh.
924 \`configure' configures cparse 0.0.20040813 to adapt to many kinds of systems.
926 Usage: $0 [OPTION]... [VAR=VALUE]...
928 To assign environment variables (e.g., CC, CFLAGS...), specify them as
929 VAR=VALUE. See below for descriptions of some of the useful variables.
931 Defaults for the options are specified in brackets.
934 -h, --help display this help and exit
935 --help=short display options specific to this package
936 --help=recursive display the short help of all the included packages
937 -V, --version display version information and exit
938 -q, --quiet, --silent do not print \`checking...' messages
939 --cache-file=FILE cache test results in FILE [disabled]
940 -C, --config-cache alias for \`--cache-file=config.cache'
941 -n, --no-create do not create output files
942 --srcdir=DIR find the sources in DIR [configure dir or \`..']
947 Installation directories:
948 --prefix=PREFIX install architecture-independent files in PREFIX
950 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
953 By default, \`make install' will install all the files in
954 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
955 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
956 for instance \`--prefix=\$HOME'.
958 For better control, use the options below.
960 Fine tuning of the installation directories:
961 --bindir=DIR user executables [EPREFIX/bin]
962 --sbindir=DIR system admin executables [EPREFIX/sbin]
963 --libexecdir=DIR program executables [EPREFIX/libexec]
964 --datadir=DIR read-only architecture-independent data [PREFIX/share]
965 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
966 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
967 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
968 --libdir=DIR object code libraries [EPREFIX/lib]
969 --includedir=DIR C header files [PREFIX/include]
970 --oldincludedir=DIR C header files for non-gcc [/usr/include]
971 --infodir=DIR info documentation [PREFIX/info]
972 --mandir=DIR man documentation [PREFIX/man]
978 --program-prefix=PREFIX prepend PREFIX to installed program names
979 --program-suffix=SUFFIX append SUFFIX to installed program names
980 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
983 --build=BUILD configure for building on BUILD [guessed]
984 --host=HOST cross-compile to build programs to run on HOST [BUILD]
988 if test -n "$ac_init_help"; then
989 case $ac_init_help in
990 short | recursive ) echo "Configuration of cparse 0.0.20040813:";;
995 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
996 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
997 --disable-dependency-tracking Speeds up one-time builds
998 --enable-dependency-tracking Do not reject slow dependency extractors
999 --enable-static=PKGS build static libraries default=no
1000 --enable-shared=PKGS build shared libraries default=yes
1001 --enable-fast-install=PKGS optimize for fast installation default=yes
1002 --disable-libtool-lock avoid locking (might break parallel builds)
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1007 --with-gnu-ld assume the C compiler uses GNU ld default=no
1008 --with-pic try to use only PIC/non-PIC objects default=use both
1009 use the garbage collector
1011 Some influential environment variables:
1012 CC C compiler command
1013 CFLAGS C compiler flags
1014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1015 nonstandard directory <lib dir>
1016 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1017 headers in a nonstandard directory <include dir>
1020 Use these variables to override the choices made by `configure' or to help
1021 it to find libraries and programs with nonstandard names/locations.
1023 Report bugs to <richard+cparse@sfere.greenend.org.uk>.
1027 if test "$ac_init_help" = "recursive"; then
1028 # If there are subdirs, report their specific --help.
1030 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1031 test -d $ac_dir || continue
1034 if test "$ac_dir" != .; then
1035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1036 # A "../" for each directory in $ac_dir_suffix.
1037 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1039 ac_dir_suffix= ac_top_builddir=
1043 .) # No --srcdir option. We are building in place.
1045 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1050 [\\/]* | ?:[\\/]* ) # Absolute path.
1051 ac_srcdir=$srcdir$ac_dir_suffix;
1052 ac_top_srcdir=$srcdir ;;
1054 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1055 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1057 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1059 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1060 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1061 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1062 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1065 # Check for guested configure; otherwise get Cygnus style configure.
1066 if test -f $ac_srcdir/configure.gnu; then
1068 $SHELL $ac_srcdir/configure.gnu --help=recursive
1069 elif test -f $ac_srcdir/configure; then
1071 $SHELL $ac_srcdir/configure --help=recursive
1072 elif test -f $ac_srcdir/configure.ac ||
1073 test -f $ac_srcdir/configure.in; then
1075 $ac_configure --help
1077 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1083 test -n "$ac_init_help" && exit 0
1084 if $ac_init_version; then
1086 cparse configure 0.0.20040813
1087 generated by GNU Autoconf 2.53
1089 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1090 Free Software Foundation, Inc.
1091 This configure script is free software; the Free Software Foundation
1092 gives unlimited permission to copy, distribute and modify it.
1098 This file contains any messages produced by compilers while
1099 running configure, to aid debugging if configure makes a mistake.
1101 It was created by cparse $as_me 0.0.20040813, which was
1102 generated by GNU Autoconf 2.53. Invocation command line was
1113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1120 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1122 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1123 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1125 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1126 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1127 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1128 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1136 test -z "$as_dir" && as_dir=.
1137 echo "PATH: $as_dir"
1152 # Keep a trace of the command line.
1153 # Strip out --no-create and --no-recursion so they do not pile up.
1154 # Also quote any args containing shell meta-characters.
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n ) continue ;;
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1168 case " $ac_configure_args " in
1169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1170 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1173 # Get rid of the leading space.
1176 # When interrupted or exit'd, cleanup temporary files, and complete
1177 # config.log. We remove comments because anyway the quotes in there
1178 # would cause problems or look ugly.
1179 # WARNING: Be sure not to use single quotes in there, as some shells,
1180 # such as our DU 5.0 friend, will then `close' the trap.
1181 trap 'exit_status=$?
1182 # Save into config.log some information that might help in debugging.
1186 ## ---------------- ##
1187 ## Cache variables. ##
1188 ## ---------------- ##
1191 # The following way of writing the cache mishandles newlines in values,
1194 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1197 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1207 if test -s confdefs.h; then
1214 sed "/^$/d" confdefs.h
1217 test "$ac_signal" != 0 &&
1218 echo "$as_me: caught signal $ac_signal"
1219 echo "$as_me: exit $exit_status"
1221 rm -f core core.* *.core &&
1222 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1225 for ac_signal in 1 2 13 15; do
1226 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1231 rm -rf conftest* confdefs.h
1232 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1235 # Predefined preprocessor variables.
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_NAME "$PACKAGE_NAME"
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_STRING "$PACKAGE_STRING"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1262 # Let the site file select an alternate cache file if it wants to.
1263 # Prefer explicitly selected file to automatically selected ones.
1264 if test -z "$CONFIG_SITE"; then
1265 if test "x$prefix" != xNONE; then
1266 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1268 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1271 for ac_site_file in $CONFIG_SITE; do
1272 if test -r "$ac_site_file"; then
1273 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1274 echo "$as_me: loading site script $ac_site_file" >&6;}
1275 sed 's/^/| /' "$ac_site_file" >&5
1280 if test -r "$cache_file"; then
1281 # Some versions of bash will fail to source /dev/null (special
1282 # files actually), so we avoid doing that.
1283 if test -f "$cache_file"; then
1284 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1285 echo "$as_me: loading cache $cache_file" >&6;}
1287 [\\/]* | ?:[\\/]* ) . $cache_file;;
1288 *) . ./$cache_file;;
1292 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1293 echo "$as_me: creating cache $cache_file" >&6;}
1297 # Check that the precious variables saved in the cache have kept the same
1299 ac_cache_corrupted=false
1300 for ac_var in `(set) 2>&1 |
1301 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1303 eval ac_new_set=\$ac_env_${ac_var}_set
1304 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1305 eval ac_new_val="\$ac_env_${ac_var}_value"
1306 case $ac_old_set,$ac_new_set in
1308 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1310 ac_cache_corrupted=: ;;
1312 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1314 ac_cache_corrupted=: ;;
1317 if test "x$ac_old_val" != "x$ac_new_val"; then
1318 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1319 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1320 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1321 echo "$as_me: former value: $ac_old_val" >&2;}
1322 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1323 echo "$as_me: current value: $ac_new_val" >&2;}
1324 ac_cache_corrupted=:
1327 # Pass precious variables to config.status.
1328 if test "$ac_new_set" = set; then
1330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1332 *) ac_arg=$ac_var=$ac_new_val ;;
1334 case " $ac_configure_args " in
1335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1336 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1340 if $ac_cache_corrupted; then
1341 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1342 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1343 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1344 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1345 { (exit 1); exit 1; }; }
1349 ac_cpp='$CPP $CPPFLAGS'
1350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1381 if test -f $ac_dir/install-sh; then
1383 ac_install_sh="$ac_aux_dir/install-sh -c"
1385 elif test -f $ac_dir/install.sh; then
1387 ac_install_sh="$ac_aux_dir/install.sh -c"
1389 elif test -f $ac_dir/shtool; then
1391 ac_install_sh="$ac_aux_dir/shtool install -c"
1395 if test -z "$ac_aux_dir"; then
1396 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1397 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1398 { (exit 1); exit 1; }; }
1400 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1401 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1402 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1404 # Find a good install program. We prefer a C program (faster),
1405 # so one script is as good as another. But avoid the broken or
1406 # incompatible versions:
1407 # SysV /etc/install, /usr/sbin/install
1408 # SunOS /usr/etc/install
1409 # IRIX /sbin/install
1411 # AmigaOS /C/install, which installs bootblocks on floppy discs
1412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1415 # ./install, which can be erroneously created by make from ./install.sh.
1416 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1417 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1418 if test -z "$INSTALL"; then
1419 if test "${ac_cv_path_install+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 test -z "$as_dir" && as_dir=.
1427 # Account for people who put trailing slashes in PATH elements.
1429 ./ | .// | /cC/* | \
1430 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1433 # OSF1 and SCO ODT 3.0 have their own names for install.
1434 # Don't use installbsd from OSF since it installs stuff as root
1436 for ac_prog in ginstall scoinst install; do
1437 for ac_exec_ext in '' $ac_executable_extensions; do
1438 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1439 if test $ac_prog = install &&
1440 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1441 # AIX install. It has an incompatible calling convention.
1443 elif test $ac_prog = install &&
1444 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1445 # program-specific install script used by HP pwplus--don't use.
1448 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1460 if test "${ac_cv_path_install+set}" = set; then
1461 INSTALL=$ac_cv_path_install
1463 # As a last resort, use the slow shell script. We don't cache a
1464 # path for INSTALL within a source directory, because that will
1465 # break other packages using the cache if that directory is
1466 # removed, or if the path is relative.
1467 INSTALL=$ac_install_sh
1470 echo "$as_me:$LINENO: result: $INSTALL" >&5
1471 echo "${ECHO_T}$INSTALL" >&6
1473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1474 # It thinks the first close brace ends the variable substitution.
1475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1481 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1482 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1485 echo timestamp > conftest.file
1486 # Do `set' in a subshell so we don't clobber the current shell's
1487 # arguments. Must try -L first in case configure is actually a
1488 # symlink; some systems play weird games with the mod time of symlinks
1489 # (eg FreeBSD returns the mod time of the symlink's containing
1492 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1493 if test "$*" = "X"; then
1495 set X `ls -t $srcdir/configure conftest.file`
1498 if test "$*" != "X $srcdir/configure conftest.file" \
1499 && test "$*" != "X conftest.file $srcdir/configure"; then
1501 # If neither matched, then we have a broken ls. This can happen
1502 # if, for instance, CONFIG_SHELL is bash and it inherits a
1503 # broken ls alias from the environment. This has actually
1504 # happened. Such a system could not be considered "sane".
1505 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1506 alias in your environment" >&5
1507 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1508 alias in your environment" >&2;}
1509 { (exit 1); exit 1; }; }
1512 test "$2" = conftest.file
1518 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1519 Check your system clock" >&5
1520 echo "$as_me: error: newly created file is older than distributed files!
1521 Check your system clock" >&2;}
1522 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: result: yes" >&5
1525 echo "${ECHO_T}yes" >&6
1526 test "$program_prefix" != NONE &&
1527 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1528 # Use a double $ so make ignores it.
1529 test "$program_suffix" != NONE &&
1530 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1531 # Double any \ or $. echo might interpret backslashes.
1532 # By default was `s,x,x', remove it if useless.
1533 cat <<\_ACEOF >conftest.sed
1534 s/[\\$]/&&/g;s/;s,x,x,$//
1536 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1540 # expand $ac_aux_dir to an absolute path
1541 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1543 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1544 # Use eval to expand $SHELL
1545 if eval "$MISSING --run true"; then
1546 am_missing_run="$MISSING --run "
1550 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1551 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1554 for ac_prog in gawk mawk nawk awk
1556 # Extract the first word of "$ac_prog", so it can be a program name with args.
1557 set dummy $ac_prog; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_AWK+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$AWK"; then
1564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_AWK="$ac_prog"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 if test -n "$AWK"; then
1584 echo "$as_me:$LINENO: result: $AWK" >&5
1585 echo "${ECHO_T}$AWK" >&6
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1591 test -n "$AWK" && break
1594 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1595 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1596 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1597 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 cat >conftest.make <<\_ACEOF
1602 @echo 'ac_maketemp="${MAKE}"'
1604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1605 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1606 if test -n "$ac_maketemp"; then
1607 eval ac_cv_prog_make_${ac_make}_set=yes
1609 eval ac_cv_prog_make_${ac_make}_set=no
1613 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1620 SET_MAKE="MAKE=${MAKE-make}"
1623 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1624 if test "${enable_dependency_tracking+set}" = set; then
1625 enableval="$enable_dependency_tracking"
1628 if test "x$enable_dependency_tracking" != xno; then
1629 am_depcomp="$ac_aux_dir/depcomp"
1634 if test "x$enable_dependency_tracking" != xno; then
1645 rm -f .deps 2>/dev/null
1646 mkdir .deps 2>/dev/null
1647 if test -d .deps; then
1650 # MS-DOS does not allow filenames that begin with a dot.
1653 rmdir .deps 2>/dev/null
1656 # test to see if srcdir already configured
1657 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1658 test -f $srcdir/config.status; then
1659 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1660 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1661 { (exit 1); exit 1; }; }
1664 # Define the identity of the package.
1666 VERSION=0.0.20040813
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE "$PACKAGE"
1673 cat >>confdefs.h <<_ACEOF
1674 #define VERSION "$VERSION"
1678 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1679 # the ones we care about.
1681 # Autoconf 2.50 always computes EXEEXT. However we need to be
1682 # compatible with 2.13, for now. So we always define EXEEXT, but we
1685 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1686 # requests that it be used. This is a bit dumb.
1690 # Some tools Automake needs.
1692 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1695 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1698 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1701 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1704 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1707 AMTAR=${AMTAR-"${am_missing_run}tar"}
1709 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1711 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1713 # We need awk for the "check" target. The system "awk" is bad on
1720 ac_config_headers="$ac_config_headers config.h"
1723 # Checks for programs.
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1729 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1766 if test -z "$ac_cv_prog_CC"; then
1768 # Extract the first word of "gcc", so it can be a program name with args.
1769 set dummy gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$ac_ct_CC"; then
1776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_ac_ct_CC="gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1808 if test -z "$CC"; then
1809 if test -n "$ac_tool_prefix"; then
1810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_CC="${ac_tool_prefix}cc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$ac_cv_prog_CC"; then
1848 # Extract the first word of "cc", so it can be a program name with args.
1849 set dummy cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1889 if test -z "$CC"; then
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1909 ac_prog_rejected=yes
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 if test $ac_prog_rejected = yes; then
1920 # We found a bogon in the path, so make sure we never use it.
1921 set dummy $ac_cv_prog_CC
1923 if test $# != 0; then
1924 # We chose a different compiler from the bogus one.
1925 # However, it has the same basename, so the bogon will be chosen
1926 # first if we set CC to just the basename; use the full file name.
1928 set dummy "$as_dir/$ac_word" ${1+"$@"}
1936 if test -n "$CC"; then
1937 echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1945 if test -z "$CC"; then
1946 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1984 test -n "$CC" && break
1987 if test -z "$CC"; then
1991 # Extract the first word of "$ac_prog", so it can be a program name with args.
1992 set dummy $ac_prog; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_CC="$ac_prog"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018 if test -n "$ac_ct_CC"; then
2019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020 echo "${ECHO_T}$ac_ct_CC" >&6
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2026 test -n "$ac_ct_CC" && break
2035 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2036 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2037 { (exit 1); exit 1; }; }
2039 # Provide some information about the compiler.
2040 echo "$as_me:$LINENO:" \
2041 "checking for C compiler version" >&5
2042 ac_compiler=`set X $ac_compile; echo $2`
2043 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044 (eval $ac_compiler --version </dev/null >&5) 2>&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049 (eval $ac_compiler -v </dev/null >&5) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054 (eval $ac_compiler -V </dev/null >&5) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line $LINENO "configure"
2061 #include "confdefs.h"
2063 #ifdef F77_DUMMY_MAIN
2067 int F77_DUMMY_MAIN() { return 1; }
2077 ac_clean_files_save=$ac_clean_files
2078 ac_clean_files="$ac_clean_files a.out a.exe"
2079 # Try to create an executable without -o first, disregard a.out.
2080 # It will help us diagnose broken compilers, and finding out an intuition
2082 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2083 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2084 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2085 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2086 (eval $ac_link_default) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; then
2090 # Find the output, starting from the most likely. This scheme is
2091 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2094 # Be careful to initialize this variable, since it used to be cached.
2095 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2097 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2098 ls a.out conftest 2>/dev/null;
2099 ls a.* conftest.* 2>/dev/null`; do
2101 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2102 a.out ) # We found the default executable, but exeext='' is most
2105 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2113 echo "$as_me: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2115 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2116 echo "$as_me: error: C compiler cannot create executables" >&2;}
2117 { (exit 77); exit 77; }; }
2120 ac_exeext=$ac_cv_exeext
2121 echo "$as_me:$LINENO: result: $ac_file" >&5
2122 echo "${ECHO_T}$ac_file" >&6
2124 # Check the compiler produces executables we can run. If not, either
2125 # the compiler is broken, or we cross compile.
2126 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2129 # If not cross compiling, check that we can run a simple program.
2130 if test "$cross_compiling" != yes; then
2131 if { ac_try='./$ac_file'
2132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; }; then
2139 if test "$cross_compiling" = maybe; then
2142 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2143 If you meant to cross compile, use \`--host'." >&5
2144 echo "$as_me: error: cannot run C compiled programs.
2145 If you meant to cross compile, use \`--host'." >&2;}
2146 { (exit 1); exit 1; }; }
2150 echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6
2153 rm -f a.out a.exe conftest$ac_cv_exeext
2154 ac_clean_files=$ac_clean_files_save
2155 # Check the compiler produces executables we can run. If not, either
2156 # the compiler is broken, or we cross compile.
2157 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2158 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2159 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2160 echo "${ECHO_T}$cross_compiling" >&6
2162 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2163 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2165 (eval $ac_link) 2>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2170 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2171 # work properly (i.e., refer to `conftest.exe'), while it won't with
2173 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2175 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2176 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2184 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2185 { (exit 1); exit 1; }; }
2188 rm -f conftest$ac_cv_exeext
2189 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2190 echo "${ECHO_T}$ac_cv_exeext" >&6
2192 rm -f conftest.$ac_ext
2193 EXEEXT=$ac_cv_exeext
2195 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2196 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2197 if test "${ac_cv_objext+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 cat >conftest.$ac_ext <<_ACEOF
2201 #line $LINENO "configure"
2202 #include "confdefs.h"
2204 #ifdef F77_DUMMY_MAIN
2208 int F77_DUMMY_MAIN() { return 1; }
2218 rm -f conftest.o conftest.obj
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; then
2224 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2232 echo "$as_me: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2236 { (exit 1); exit 1; }; }
2239 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2242 echo "${ECHO_T}$ac_cv_objext" >&6
2243 OBJEXT=$ac_cv_objext
2245 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2246 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2247 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line $LINENO "configure"
2252 #include "confdefs.h"
2254 #ifdef F77_DUMMY_MAIN
2258 int F77_DUMMY_MAIN() { return 1; }
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2285 echo "$as_me: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2289 rm -f conftest.$ac_objext conftest.$ac_ext
2290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2293 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2294 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2295 GCC=`test $ac_compiler_gnu = yes && echo yes`
2296 ac_test_CFLAGS=${CFLAGS+set}
2297 ac_save_CFLAGS=$CFLAGS
2299 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2301 if test "${ac_cv_prog_cc_g+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #line $LINENO "configure"
2306 #include "confdefs.h"
2308 #ifdef F77_DUMMY_MAIN
2312 int F77_DUMMY_MAIN() { return 1; }
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
2328 { ac_try='test -s conftest.$ac_objext'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2336 echo "$as_me: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2340 rm -f conftest.$ac_objext conftest.$ac_ext
2342 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2343 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2344 if test "$ac_test_CFLAGS" = set; then
2345 CFLAGS=$ac_save_CFLAGS
2346 elif test $ac_cv_prog_cc_g = yes; then
2347 if test "$GCC" = yes; then
2353 if test "$GCC" = yes; then
2359 # Some people use a C++ compiler to compile C. Since we use `exit',
2360 # in C++ we need to declare it. In case someone uses the same compiler
2361 # for both compiling C and C++ we need to have the C++ compiler decide
2362 # the declaration of exit, since it's the most demanding environment.
2363 cat >conftest.$ac_ext <<_ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 { ac_try='test -s conftest.$ac_objext'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2380 for ac_declaration in \
2382 '#include <stdlib.h>' \
2383 'extern "C" void std::exit (int) throw (); using std::exit;' \
2384 'extern "C" void std::exit (int); using std::exit;' \
2385 'extern "C" void exit (int) throw ();' \
2386 'extern "C" void exit (int);' \
2389 cat >conftest.$ac_ext <<_ACEOF
2390 #line $LINENO "configure"
2391 #include "confdefs.h"
2394 #ifdef F77_DUMMY_MAIN
2398 int F77_DUMMY_MAIN() { return 1; }
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2426 rm -f conftest.$ac_objext conftest.$ac_ext
2427 cat >conftest.$ac_ext <<_ACEOF
2428 #line $LINENO "configure"
2429 #include "confdefs.h"
2431 #ifdef F77_DUMMY_MAIN
2435 int F77_DUMMY_MAIN() { return 1; }
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2459 echo "$as_me: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2462 rm -f conftest.$ac_objext conftest.$ac_ext
2465 if test -n "$ac_declaration"; then
2466 echo '#ifdef __cplusplus' >>confdefs.h
2467 echo $ac_declaration >>confdefs.h
2468 echo '#endif' >>confdefs.h
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 rm -f conftest.$ac_objext conftest.$ac_ext
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482 ac_config_commands="$ac_config_commands default-1"
2484 am_make=${MAKE-make}
2485 cat > confinc << 'END'
2489 # If we don't find an include directive, just comment out the code.
2490 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2491 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2495 # First try GNU make style include.
2496 echo "include confinc" > confmf
2497 # We grep out `Entering directory' and `Leaving directory'
2498 # messages which can occur if `w' ends up in MAKEFLAGS.
2499 # In particular we don't look at `^make:' because GNU make might
2500 # be invoked under some other name (usually "gmake"), in which
2501 # case it prints its new name instead of `make'.
2502 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2507 # Now try BSD make style include.
2508 if test "$am__include" = "#"; then
2509 echo '.include "confinc"' > confmf
2510 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2511 am__include=.include
2518 echo "$as_me:$LINENO: result: $_am_result" >&5
2519 echo "${ECHO_T}$_am_result" >&6
2520 rm -f confinc confmf
2523 depcc="$CC" am_compiler_list=
2525 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2526 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2531 # We make a subdir and do the tests there. Otherwise we can end up
2532 # making bogus files that we don't know about and never remove. For
2533 # instance it was reported that on HP-UX the gcc test will end up
2534 # making a dummy file named `D' -- because `-MD' means `put the output
2537 # Copy depcomp to subdir because otherwise we won't find it if we're
2538 # using a relative directory.
2539 cp "$am_depcomp" conftest.dir
2542 am_cv_CC_dependencies_compiler_type=none
2543 if test "$am_compiler_list" = ""; then
2544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2546 for depmode in $am_compiler_list; do
2547 # We need to recreate these files for each test, as the compiler may
2548 # overwrite some of them when testing with obscure command lines.
2549 # This happens at least with the AIX C compiler.
2550 echo '#include "conftest.h"' > conftest.c
2551 echo 'int i;' > conftest.h
2552 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2556 # after this tag, mechanisms are not by side-effect, so they'll
2557 # only be used when explicitly requested
2558 if test "x$enable_dependency_tracking" = xyes; then
2566 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2567 # mode. It turns out that the SunPro C++ compiler does not properly
2568 # handle `-M -o', and we need to detect this.
2569 if depmode=$depmode \
2570 source=conftest.c object=conftest.o \
2571 depfile=conftest.Po tmpdepfile=conftest.TPo \
2572 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2573 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2575 am_cv_CC_dependencies_compiler_type=$depmode
2583 am_cv_CC_dependencies_compiler_type=none
2587 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2588 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2589 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2592 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2593 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2594 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2595 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.make <<\_ACEOF
2600 @echo 'ac_maketemp="${MAKE}"'
2602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2603 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2604 if test -n "$ac_maketemp"; then
2605 eval ac_cv_prog_make_${ac_make}_set=yes
2607 eval ac_cv_prog_make_${ac_make}_set=no
2611 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2618 SET_MAKE="MAKE=${MAKE-make}"
2622 for ac_prog in 'bison -y' byacc
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_YACC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$YACC"; then
2632 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_YACC="$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 YACC=$ac_cv_prog_YACC
2651 if test -n "$YACC"; then
2652 echo "$as_me:$LINENO: result: $YACC" >&5
2653 echo "${ECHO_T}$YACC" >&6
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 test -n "$YACC" && break
2661 test -n "$YACC" || YACC="yacc"
2665 for ac_prog in flex lex
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_prog_LEX+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test -n "$LEX"; then
2675 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_LEX="$ac_prog"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 if test -n "$LEX"; then
2695 echo "$as_me:$LINENO: result: $LEX" >&5
2696 echo "${ECHO_T}$LEX" >&6
2698 echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2702 test -n "$LEX" && break
2704 test -n "$LEX" || LEX="${am_missing_run}flex"
2706 for ac_prog in flex lex
2708 # Extract the first word of "$ac_prog", so it can be a program name with args.
2709 set dummy $ac_prog; ac_word=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_prog_LEX+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if test -n "$LEX"; then
2716 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_LEX="$ac_prog"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$LEX"; then
2736 echo "$as_me:$LINENO: result: $LEX" >&5
2737 echo "${ECHO_T}$LEX" >&6
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2743 test -n "$LEX" && break
2745 test -n "$LEX" || LEX=":"
2747 if test -z "$LEXLIB"
2749 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2750 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2751 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 ac_check_lib_save_LIBS=$LIBS
2756 cat >conftest.$ac_ext <<_ACEOF
2757 #line $LINENO "configure"
2758 #include "confdefs.h"
2760 /* Override any gcc2 internal prototype to avoid an error. */
2764 /* We use char because int might match the return type of a gcc2
2765 builtin and then its argument prototype would still apply. */
2767 #ifdef F77_DUMMY_MAIN
2771 int F77_DUMMY_MAIN() { return 1; }
2781 rm -f conftest.$ac_objext conftest$ac_exeext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2783 (eval $ac_link) 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -s conftest$ac_exeext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_cv_lib_fl_yywrap=yes
2795 echo "$as_me: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 ac_cv_lib_fl_yywrap=no
2799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2800 LIBS=$ac_check_lib_save_LIBS
2802 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2803 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2804 if test $ac_cv_lib_fl_yywrap = yes; then
2807 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2808 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2809 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 ac_check_lib_save_LIBS=$LIBS
2814 cat >conftest.$ac_ext <<_ACEOF
2815 #line $LINENO "configure"
2816 #include "confdefs.h"
2818 /* Override any gcc2 internal prototype to avoid an error. */
2822 /* We use char because int might match the return type of a gcc2
2823 builtin and then its argument prototype would still apply. */
2825 #ifdef F77_DUMMY_MAIN
2829 int F77_DUMMY_MAIN() { return 1; }
2839 rm -f conftest.$ac_objext conftest$ac_exeext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2841 (eval $ac_link) 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -s conftest$ac_exeext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_cv_lib_l_yywrap=yes
2853 echo "$as_me: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2855 ac_cv_lib_l_yywrap=no
2857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2858 LIBS=$ac_check_lib_save_LIBS
2860 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2861 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2862 if test $ac_cv_lib_l_yywrap = yes; then
2870 if test "x$LEX" != "x:"; then
2871 echo "$as_me:$LINENO: checking lex output file root" >&5
2872 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2873 if test "${ac_cv_prog_lex_root+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 # The minimal lex program is just a single line: %%. But some broken lexes
2877 # (Solaris, I think it was) want two %% lines, so accommodate them.
2878 cat >conftest.l <<_ACEOF
2882 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2883 (eval $LEX conftest.l) 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887 if test -f lex.yy.c; then
2888 ac_cv_prog_lex_root=lex.yy
2889 elif test -f lexyy.c; then
2890 ac_cv_prog_lex_root=lexyy
2892 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2893 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2894 { (exit 1); exit 1; }; }
2897 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2898 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2900 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2902 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2903 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2904 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 # POSIX says lex can declare yytext either as a pointer or an array; the
2908 # default is implementation-dependent. Figure out which it is, since
2909 # not all implementations provide the %pointer and %array declarations.
2910 ac_cv_prog_lex_yytext_pointer=no
2911 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2913 LIBS="$LIBS $LEXLIB"
2914 cat >conftest.$ac_ext <<_ACEOF
2915 `cat $LEX_OUTPUT_ROOT.c`
2917 rm -f conftest.$ac_objext conftest$ac_exeext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -s conftest$ac_exeext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2929 ac_cv_prog_lex_yytext_pointer=yes
2931 echo "$as_me: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2936 rm -f "${LEX_OUTPUT_ROOT}.c"
2939 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2940 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2941 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2943 cat >>confdefs.h <<\_ACEOF
2944 #define YYTEXT_POINTER 1
2953 # Check whether --enable-static or --disable-static was given.
2954 if test "${enable_static+set}" = set; then
2955 enableval="$enable_static"
2956 p=${PACKAGE-default}
2958 yes) enable_static=yes ;;
2959 no) enable_static=no ;;
2962 # Look at the argument we got. We use all the common list separators.
2963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2964 for pkg in $enableval; do
2965 if test "X$pkg" = "X$p"; then
2976 # Check whether --enable-shared or --disable-shared was given.
2977 if test "${enable_shared+set}" = set; then
2978 enableval="$enable_shared"
2979 p=${PACKAGE-default}
2981 yes) enable_shared=yes ;;
2982 no) enable_shared=no ;;
2985 # Look at the argument we got. We use all the common list separators.
2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2987 for pkg in $enableval; do
2988 if test "X$pkg" = "X$p"; then
2998 # Check whether --enable-fast-install or --disable-fast-install was given.
2999 if test "${enable_fast_install+set}" = set; then
3000 enableval="$enable_fast_install"
3001 p=${PACKAGE-default}
3003 yes) enable_fast_install=yes ;;
3004 no) enable_fast_install=no ;;
3006 enable_fast_install=no
3007 # Look at the argument we got. We use all the common list separators.
3008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3009 for pkg in $enableval; do
3010 if test "X$pkg" = "X$p"; then
3011 enable_fast_install=yes
3018 enable_fast_install=yes
3020 # Make sure we can run config.sub.
3021 $ac_config_sub sun4 >/dev/null 2>&1 ||
3022 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3023 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3024 { (exit 1); exit 1; }; }
3026 echo "$as_me:$LINENO: checking build system type" >&5
3027 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3028 if test "${ac_cv_build+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_cv_build_alias=$build_alias
3032 test -z "$ac_cv_build_alias" &&
3033 ac_cv_build_alias=`$ac_config_guess`
3034 test -z "$ac_cv_build_alias" &&
3035 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3036 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3037 { (exit 1); exit 1; }; }
3038 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3039 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3040 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3041 { (exit 1); exit 1; }; }
3044 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3045 echo "${ECHO_T}$ac_cv_build" >&6
3047 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3048 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3049 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3052 echo "$as_me:$LINENO: checking host system type" >&5
3053 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3054 if test "${ac_cv_host+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 ac_cv_host_alias=$host_alias
3058 test -z "$ac_cv_host_alias" &&
3059 ac_cv_host_alias=$ac_cv_build_alias
3060 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3061 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3062 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3063 { (exit 1); exit 1; }; }
3066 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3067 echo "${ECHO_T}$ac_cv_host" >&6
3069 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3070 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3071 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3074 # Find the correct PATH separator. Usually this is `:', but
3075 # DJGPP uses `;' like DOS.
3076 if test "X${PATH_SEPARATOR+set}" != Xset; then
3077 UNAME=${UNAME-`uname 2>/dev/null`}
3079 *-DOS) lt_cv_sys_path_separator=';' ;;
3080 *) lt_cv_sys_path_separator=':' ;;
3082 PATH_SEPARATOR=$lt_cv_sys_path_separator
3086 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3087 if test "${with_gnu_ld+set}" = set; then
3088 withval="$with_gnu_ld"
3089 test "$withval" = no || with_gnu_ld=yes
3094 if test "$GCC" = yes; then
3095 # Check if gcc -print-prog-name=ld gives a path.
3096 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3097 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3100 # gcc leaves a trailing carriage return which upsets mingw
3101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3106 # Accept absolute paths.
3107 [\\/]* | [A-Za-z]:[\\/]*)
3108 re_direlt='/[^/][^/]*/\.\./'
3109 # Canonicalize the path of ld
3110 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3111 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3112 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3114 test -z "$LD" && LD="$ac_prog"
3117 # If it fails, then pretend we aren't using GCC.
3121 # If it is relative, then search for the first ld in PATH.
3125 elif test "$with_gnu_ld" = yes; then
3126 echo "$as_me:$LINENO: checking for GNU ld" >&5
3127 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3129 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3130 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3132 if test "${lt_cv_path_LD+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 if test -z "$LD"; then
3136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3137 for ac_dir in $PATH; do
3138 test -z "$ac_dir" && ac_dir=.
3139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3140 lt_cv_path_LD="$ac_dir/$ac_prog"
3141 # Check to see if the program is GNU ld. I'd rather use --version,
3142 # but apparently some GNU ld's only accept -v.
3143 # Break only if it was the GNU/non-GNU ld that we prefer.
3144 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3145 test "$with_gnu_ld" != no && break
3147 test "$with_gnu_ld" != yes && break
3153 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3158 if test -n "$LD"; then
3159 echo "$as_me:$LINENO: result: $LD" >&5
3160 echo "${ECHO_T}$LD" >&6
3162 echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6
3165 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3166 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3167 { (exit 1); exit 1; }; }
3168 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3169 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3170 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3174 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3175 lt_cv_prog_gnu_ld=yes
3177 lt_cv_prog_gnu_ld=no
3180 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3181 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3182 with_gnu_ld=$lt_cv_prog_gnu_ld
3185 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3186 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3187 if test "${lt_cv_ld_reload_flag+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 lt_cv_ld_reload_flag='-r'
3192 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3193 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3194 reload_flag=$lt_cv_ld_reload_flag
3195 test -n "$reload_flag" && reload_flag=" $reload_flag"
3197 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3198 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3199 if test "${lt_cv_path_NM+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 if test -n "$NM"; then
3203 # Let the user override the test.
3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3207 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3208 test -z "$ac_dir" && ac_dir=.
3209 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3210 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3211 # Check to see if the nm accepts a BSD-compat flag.
3212 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3213 # nm: unknown option "B" ignored
3214 # Tru64's nm complains that /dev/null is an invalid object file
3215 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3216 lt_cv_path_NM="$tmp_nm -B"
3218 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3219 lt_cv_path_NM="$tmp_nm -p"
3222 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3223 continue # so that we can try to find one that supports BSD flags
3228 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3233 echo "$as_me:$LINENO: result: $NM" >&5
3234 echo "${ECHO_T}$NM" >&6
3236 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3237 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3239 if test "$LN_S" = "ln -s"; then
3240 echo "$as_me:$LINENO: result: yes" >&5
3241 echo "${ECHO_T}yes" >&6
3243 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3244 echo "${ECHO_T}no, using $LN_S" >&6
3247 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3248 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3249 if test "${lt_cv_deplibs_check_method+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 lt_cv_file_magic_cmd='$MAGIC_CMD'
3253 lt_cv_file_magic_test_file=
3254 lt_cv_deplibs_check_method='unknown'
3255 # Need to set the preceding variable on all platforms that support
3256 # interlibrary dependencies.
3257 # 'none' -- dependencies not supported.
3258 # `unknown' -- same as none, but documents that we really don't know.
3259 # 'pass_all' -- all dependencies passed with no checks.
3260 # 'test_compile' -- check by making test program.
3261 # 'file_magic [[regex]]' -- check by looking for files in library path
3262 # which responds to the $file_magic_cmd with a given egrep regex.
3263 # If you have `file' or equivalent on your system and you're not sure
3264 # whether `pass_all' will *always* work, you probably want this one.
3268 lt_cv_deplibs_check_method=pass_all
3272 lt_cv_deplibs_check_method=pass_all
3276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3277 lt_cv_file_magic_cmd='/usr/bin/file -L'
3278 lt_cv_file_magic_test_file=/shlib/libc.so
3281 cygwin* | mingw* | pw32*)
3282 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3283 lt_cv_file_magic_cmd='$OBJDUMP -f'
3286 darwin* | rhapsody*)
3287 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3288 lt_cv_file_magic_cmd='/usr/bin/file -L'
3290 rhapsody* | darwin1.[012])
3291 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3294 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3300 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3303 # Not sure whether the presence of OpenBSD here was a mistake.
3304 # Let's accept both of them until this is cleared up.
3305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3306 lt_cv_file_magic_cmd=/usr/bin/file
3307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3311 lt_cv_deplibs_check_method=pass_all
3316 lt_cv_deplibs_check_method=pass_all
3320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3321 lt_cv_file_magic_cmd=/usr/bin/file
3322 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3325 irix5* | irix6* | nonstopux*)
3327 irix5* | nonstopux*)
3328 # this will be overridden with pass_all, but let us keep it just in case
3329 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3333 *-32|*"-32 ") libmagic=32-bit;;
3334 *-n32|*"-n32 ") libmagic=N32;;
3335 *-64|*"-64 ") libmagic=64-bit;;
3336 *) libmagic=never-match;;
3338 # this will be overridden with pass_all, but let us keep it just in case
3339 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3342 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3343 lt_cv_deplibs_check_method=pass_all
3346 # This must be Linux ELF.
3348 lt_cv_deplibs_check_method=pass_all
3349 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3353 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3354 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3356 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3362 lt_cv_file_magic_cmd=/usr/bin/file
3363 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3367 lt_cv_file_magic_cmd=/usr/bin/file
3368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3372 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3376 osf3* | osf4* | osf5*)
3377 # this will be overridden with pass_all, but let us keep it just in case
3378 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3379 lt_cv_file_magic_test_file=/shlib/libc.so
3380 lt_cv_deplibs_check_method=pass_all
3384 lt_cv_deplibs_check_method=pass_all
3388 lt_cv_deplibs_check_method=pass_all
3389 lt_cv_file_magic_test_file=/lib/libc.so
3392 sysv5uw[78]* | sysv4*uw2*)
3393 lt_cv_deplibs_check_method=pass_all
3396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3397 case $host_vendor in
3399 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]'
3400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3403 lt_cv_deplibs_check_method=pass_all
3406 lt_cv_file_magic_cmd='/bin/file'
3407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3410 lt_cv_file_magic_cmd='/bin/file'
3411 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3412 lt_cv_file_magic_test_file=/lib/libc.so
3419 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3420 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3421 file_magic_cmd=$lt_cv_file_magic_cmd
3422 deplibs_check_method=$lt_cv_deplibs_check_method
3430 # Check for command to grab the raw symbol name followed by C symbol from nm.
3431 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3432 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3433 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 # These are sane defaults that work on at least a few old systems.
3438 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3440 # Character class describing NM global symbol codes.
3441 symcode='[BCDEGRST]'
3443 # Regexp to match symbols that can be accessed directly from C.
3444 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3446 # Transform the above into a raw symbol and a C symbol.
3447 symxfrm='\1 \2\3 \3'
3449 # Transform an extracted symbol line into a proper C declaration
3450 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3452 # Transform an extracted symbol line into symbol name and symbol address
3453 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'"
3455 # Define system-specific variables.
3460 cygwin* | mingw* | pw32*)
3461 symcode='[ABCDGISTW]'
3463 hpux*) # Its linker distinguishes data from code symbols
3464 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3465 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'"
3468 symcode='[BCDEGRST]'
3478 # Handle CRLF in mingw tool chain
3482 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3486 # If we're using GNU nm, then use its standard symbol codes.
3487 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3488 symcode='[ABCDGISTW]'
3491 # Try without a prefix undercore, then with it.
3492 for ac_symprfx in "" "_"; do
3494 # Write the raw and C identifiers.
3495 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3497 # Check to see that the pipe works correctly.
3500 cat > conftest.$ac_ext <<EOF
3505 void nm_test_func(){}
3509 int main(){nm_test_var='a';nm_test_func();return(0);}
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; then
3517 # Now try to grab the symbols.
3519 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3520 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } && test -s "$nlist"; then
3524 # Try sorting and uniquifying the output.
3525 if sort "$nlist" | uniq > "$nlist"T; then
3526 mv -f "$nlist"T "$nlist"
3531 # Make sure that we snagged all the symbols we need.
3532 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3533 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3534 cat <<EOF > conftest.$ac_ext
3540 # Now generate the symbol file.
3541 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3543 cat <<EOF >> conftest.$ac_ext
3544 #if defined (__STDC__) && __STDC__
3545 # define lt_ptr void *
3547 # define lt_ptr char *
3551 /* The mapping between symbol names and symbols. */
3556 lt_preloaded_symbols[] =
3559 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3560 cat <<\EOF >> conftest.$ac_ext
3568 # Now try linking the two files.
3569 mv conftest.$ac_objext conftstm.$ac_objext
3571 save_CFLAGS="$CFLAGS"
3572 LIBS="conftstm.$ac_objext"
3573 CFLAGS="$CFLAGS$no_builtin_flag"
3574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3575 (eval $ac_link) 2>&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } && test -s conftest; then
3582 CFLAGS="$save_CFLAGS"
3584 echo "cannot find nm_test_func in $nlist" >&5
3587 echo "cannot find nm_test_var in $nlist" >&5
3590 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3593 echo "$progname: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 rm -f conftest* conftst*
3598 # Do not use the global_symbol_pipe unless it works.
3599 if test "$pipe_works" = yes; then
3602 lt_cv_sys_global_symbol_pipe=
3608 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3609 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3610 global_symbol_to_cdecl=
3611 global_symbol_to_c_name_address=
3613 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3614 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3616 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3618 echo "$as_me:$LINENO: result: failed" >&5
3619 echo "${ECHO_T}failed" >&6
3621 echo "$as_me:$LINENO: result: ok" >&5
3622 echo "${ECHO_T}ok" >&6
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3632 # On Suns, sometimes $CPP names a directory.
3633 if test -n "$CPP" && test -d "$CPP"; then
3636 if test -z "$CPP"; then
3637 if test "${ac_cv_prog_CPP+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 # Double quotes because CPP needs to be expanded
3641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3644 for ac_c_preproc_warn_flag in '' yes
3646 # Use a header file that comes with gcc, so configuring glibc
3647 # with a fresh cross-compiler works.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 #include "confdefs.h"
3656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659 egrep -v '^ *\+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null; then
3664 if test -s conftest.err; then
3665 ac_cpp_err=$ac_c_preproc_warn_flag
3672 if test -z "$ac_cpp_err"; then
3675 echo "$as_me: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 # Broken: fails on valid input.
3680 rm -f conftest.err conftest.$ac_ext
3682 # OK, works on sane cases. Now check whether non-existent headers
3683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3687 #include <ac_nonexistent.h>
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3692 egrep -v '^ *\+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_c_preproc_warn_flag
3705 if test -z "$ac_cpp_err"; then
3706 # Broken: success on invalid input.
3709 echo "$as_me: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 # Passes both tests.
3715 rm -f conftest.err conftest.$ac_ext
3718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3719 rm -f conftest.err conftest.$ac_ext
3720 if $ac_preproc_ok; then
3732 echo "$as_me:$LINENO: result: $CPP" >&5
3733 echo "${ECHO_T}$CPP" >&6
3735 for ac_c_preproc_warn_flag in '' yes
3737 # Use a header file that comes with gcc, so configuring glibc
3738 # with a fresh cross-compiler works.
3739 # On the NeXT, cc -E runs the code through the compiler's parser,
3740 # not just through cpp. "Syntax error" is here to catch this case.
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line $LINENO "configure"
3743 #include "confdefs.h"
3747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 egrep -v '^ *\+' conftest.er1 >conftest.err
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } >/dev/null; then
3755 if test -s conftest.err; then
3756 ac_cpp_err=$ac_c_preproc_warn_flag
3763 if test -z "$ac_cpp_err"; then
3766 echo "$as_me: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3768 # Broken: fails on valid input.
3771 rm -f conftest.err conftest.$ac_ext
3773 # OK, works on sane cases. Now check whether non-existent headers
3774 # can be detected and how.
3775 cat >conftest.$ac_ext <<_ACEOF
3776 #line $LINENO "configure"
3777 #include "confdefs.h"
3778 #include <ac_nonexistent.h>
3780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3783 egrep -v '^ *\+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } >/dev/null; then
3788 if test -s conftest.err; then
3789 ac_cpp_err=$ac_c_preproc_warn_flag
3796 if test -z "$ac_cpp_err"; then
3797 # Broken: success on invalid input.
3800 echo "$as_me: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 # Passes both tests.
3806 rm -f conftest.err conftest.$ac_ext
3809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3810 rm -f conftest.err conftest.$ac_ext
3811 if $ac_preproc_ok; then
3814 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3815 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3816 { (exit 1); exit 1; }; }
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3828 if test "${ac_cv_header_stdc+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 cat >conftest.$ac_ext <<_ACEOF
3832 #line $LINENO "configure"
3833 #include "confdefs.h"
3840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3843 egrep -v '^ *\+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } >/dev/null; then
3848 if test -s conftest.err; then
3849 ac_cpp_err=$ac_c_preproc_warn_flag
3856 if test -z "$ac_cpp_err"; then
3857 ac_cv_header_stdc=yes
3859 echo "$as_me: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3861 ac_cv_header_stdc=no
3863 rm -f conftest.err conftest.$ac_ext
3865 if test $ac_cv_header_stdc = yes; then
3866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3867 cat >conftest.$ac_ext <<_ACEOF
3868 #line $LINENO "configure"
3869 #include "confdefs.h"
3873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 egrep "memchr" >/dev/null 2>&1; then
3877 ac_cv_header_stdc=no
3883 if test $ac_cv_header_stdc = yes; then
3884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3885 cat >conftest.$ac_ext <<_ACEOF
3886 #line $LINENO "configure"
3887 #include "confdefs.h"
3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892 egrep "free" >/dev/null 2>&1; then
3895 ac_cv_header_stdc=no
3901 if test $ac_cv_header_stdc = yes; then
3902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3903 if test "$cross_compiling" = yes; then
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3908 #include "confdefs.h"
3910 #if ((' ' & 0x0FF) == 0x020)
3911 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3912 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3914 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3915 || ('j' <= (c) && (c) <= 'r') \
3916 || ('s' <= (c) && (c) <= 'z'))
3917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925 for (i = 0; i < 256; i++)
3926 if (XOR (islower (i), ISLOWER (i))
3927 || toupper (i) != TOUPPER (i))
3932 rm -f conftest$ac_exeext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3945 echo "$as_me: program exited with status $ac_status" >&5
3946 echo "$as_me: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3949 ac_cv_header_stdc=no
3951 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3955 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3956 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3957 if test $ac_cv_header_stdc = yes; then
3959 cat >>confdefs.h <<\_ACEOF
3960 #define STDC_HEADERS 1
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3976 inttypes.h stdint.h unistd.h
3978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3979 echo "$as_me:$LINENO: checking for $ac_header" >&5
3980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 cat >conftest.$ac_ext <<_ACEOF
3985 #line $LINENO "configure"
3986 #include "confdefs.h"
3987 $ac_includes_default
3989 #include <$ac_header>
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 eval "$as_ac_Header=yes"
4005 echo "$as_me: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 eval "$as_ac_Header=no"
4009 rm -f conftest.$ac_objext conftest.$ac_ext
4011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4014 cat >>confdefs.h <<_ACEOF
4015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4024 for ac_header in dlfcn.h
4026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4028 echo "$as_me:$LINENO: checking for $ac_header" >&5
4029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4036 # Is the header compilable?
4037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4041 #include "confdefs.h"
4042 $ac_includes_default
4043 #include <$ac_header>
4045 rm -f conftest.$ac_objext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_header_compiler=yes
4059 echo "$as_me: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 ac_header_compiler=no
4063 rm -f conftest.$ac_objext conftest.$ac_ext
4064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4065 echo "${ECHO_T}$ac_header_compiler" >&6
4067 # Is the header present?
4068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4070 cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4072 #include "confdefs.h"
4073 #include <$ac_header>
4075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4078 egrep -v '^ *\+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } >/dev/null; then
4083 if test -s conftest.err; then
4084 ac_cpp_err=$ac_c_preproc_warn_flag
4091 if test -z "$ac_cpp_err"; then
4092 ac_header_preproc=yes
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 ac_header_preproc=no
4098 rm -f conftest.err conftest.$ac_ext
4099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4100 echo "${ECHO_T}$ac_header_preproc" >&6
4102 # So? What about this header?
4103 case $ac_header_compiler:$ac_header_preproc in
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4117 echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 eval "$as_ac_Header=$ac_header_preproc"
4124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4129 cat >>confdefs.h <<_ACEOF
4130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 # Only perform the check for file, if the check method requires it
4142 case $deplibs_check_method in
4144 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4145 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4146 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4147 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4158 ac_save_MAGIC_CMD="$MAGIC_CMD"
4159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4160 ac_dummy="/usr/bin:$PATH"
4161 for ac_dir in $ac_dummy; do
4162 test -z "$ac_dir" && ac_dir=.
4163 if test -f $ac_dir/${ac_tool_prefix}file; then
4164 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4165 if test -n "$file_magic_test_file"; then
4166 case $deplibs_check_method in
4168 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4170 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4171 egrep "$file_magic_regex" > /dev/null; then
4176 *** Warning: the command libtool uses to detect shared libraries,
4177 *** $file_magic_cmd, produces output that libtool cannot recognize.
4178 *** The result is that libtool may fail to recognize shared libraries
4179 *** as such. This will affect the creation of libtool libraries that
4180 *** depend on shared libraries, but programs linked with such libtool
4181 *** libraries will work regardless of this problem. Nevertheless, you
4182 *** may want to report the problem to your system manager and/or to
4183 *** bug-libtool@gnu.org
4193 MAGIC_CMD="$ac_save_MAGIC_CMD"
4198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4199 if test -n "$MAGIC_CMD"; then
4200 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4201 echo "${ECHO_T}$MAGIC_CMD" >&6
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4207 if test -z "$lt_cv_path_MAGIC_CMD"; then
4208 if test -n "$ac_tool_prefix"; then
4209 echo "$as_me:$LINENO: checking for file" >&5
4210 echo $ECHO_N "checking for file... $ECHO_C" >&6
4211 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4222 ac_save_MAGIC_CMD="$MAGIC_CMD"
4223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4224 ac_dummy="/usr/bin:$PATH"
4225 for ac_dir in $ac_dummy; do
4226 test -z "$ac_dir" && ac_dir=.
4227 if test -f $ac_dir/file; then
4228 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4229 if test -n "$file_magic_test_file"; then
4230 case $deplibs_check_method in
4232 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4235 egrep "$file_magic_regex" > /dev/null; then
4240 *** Warning: the command libtool uses to detect shared libraries,
4241 *** $file_magic_cmd, produces output that libtool cannot recognize.
4242 *** The result is that libtool may fail to recognize shared libraries
4243 *** as such. This will affect the creation of libtool libraries that
4244 *** depend on shared libraries, but programs linked with such libtool
4245 *** libraries will work regardless of this problem. Nevertheless, you
4246 *** may want to report the problem to your system manager and/or to
4247 *** bug-libtool@gnu.org
4257 MAGIC_CMD="$ac_save_MAGIC_CMD"
4262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4263 if test -n "$MAGIC_CMD"; then
4264 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4265 echo "${ECHO_T}$MAGIC_CMD" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4280 if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_prog_RANLIB+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 if test -n "$RANLIB"; then
4289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 RANLIB=$ac_cv_prog_RANLIB
4308 if test -n "$RANLIB"; then
4309 echo "$as_me:$LINENO: result: $RANLIB" >&5
4310 echo "${ECHO_T}$RANLIB" >&6
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4317 if test -z "$ac_cv_prog_RANLIB"; then
4318 ac_ct_RANLIB=$RANLIB
4319 # Extract the first word of "ranlib", so it can be a program name with args.
4320 set dummy ranlib; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$ac_ct_RANLIB"; then
4327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_ac_ct_RANLIB="ranlib"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4347 if test -n "$ac_ct_RANLIB"; then
4348 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4349 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4355 RANLIB=$ac_ct_RANLIB
4357 RANLIB="$ac_cv_prog_RANLIB"
4360 if test -n "$ac_tool_prefix"; then
4361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4362 set dummy ${ac_tool_prefix}strip; ac_word=$2
4363 echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_prog_STRIP+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test -n "$STRIP"; then
4369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 STRIP=$ac_cv_prog_STRIP
4388 if test -n "$STRIP"; then
4389 echo "$as_me:$LINENO: result: $STRIP" >&5
4390 echo "${ECHO_T}$STRIP" >&6
4392 echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6
4397 if test -z "$ac_cv_prog_STRIP"; then
4399 # Extract the first word of "strip", so it can be a program name with args.
4400 set dummy strip; ac_word=$2
4401 echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4403 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 if test -n "$ac_ct_STRIP"; then
4407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_ac_ct_STRIP="strip"
4417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4427 if test -n "$ac_ct_STRIP"; then
4428 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4429 echo "${ECHO_T}$ac_ct_STRIP" >&6
4431 echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6
4437 STRIP="$ac_cv_prog_STRIP"
4444 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4445 if test "${enable_libtool_lock+set}" = set; then
4446 enableval="$enable_libtool_lock"
4449 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4451 # Some flags need to be propagated to the compiler or linker for good
4455 # Find out which ABI we are using.
4456 echo '#line 4456 "configure"' > conftest.$ac_ext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; then
4462 case `/usr/bin/file conftest.$ac_objext` in
4478 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4479 SAVE_CFLAGS="$CFLAGS"
4480 CFLAGS="$CFLAGS -belf"
4481 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4482 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4483 if test "${lt_cv_cc_needs_belf+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494 cat >conftest.$ac_ext <<_ACEOF
4495 #line $LINENO "configure"
4496 #include "confdefs.h"
4498 #ifdef F77_DUMMY_MAIN
4502 int F77_DUMMY_MAIN() { return 1; }
4512 rm -f conftest.$ac_objext conftest$ac_exeext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4514 (eval $ac_link) 2>&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try='test -s conftest$ac_exeext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 lt_cv_cc_needs_belf=yes
4526 echo "$as_me: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4528 lt_cv_cc_needs_belf=no
4530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4539 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4540 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4541 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4542 CFLAGS="$SAVE_CFLAGS"
4549 # Sed substitution that helps us do robust quoting. It backslashifies
4550 # metacharacters that are still active within double-quoted strings.
4551 Xsed='sed -e s/^X//'
4552 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4554 # Same as above, but do not quote variable references.
4555 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4557 # Sed substitution to delay expansion of an escaped shell variable in a
4558 # double_quote_subst'ed string.
4559 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4565 default_ofile=libtool
4566 can_build_shared=yes
4568 # All known linkers require a `.a' archive for static linking (except M$VC,
4569 # which needs '.lib').
4571 ltmain="$ac_aux_dir/ltmain.sh"
4572 ofile="$default_ofile"
4573 with_gnu_ld="$lt_cv_prog_gnu_ld"
4574 need_locks="$enable_libtool_lock"
4577 old_CFLAGS="$CFLAGS"
4579 # Set sane defaults for various variables
4580 test -z "$AR" && AR=ar
4581 test -z "$AR_FLAGS" && AR_FLAGS=cru
4582 test -z "$AS" && AS=as
4583 test -z "$CC" && CC=cc
4584 test -z "$DLLTOOL" && DLLTOOL=dlltool
4585 test -z "$LD" && LD=ld
4586 test -z "$LN_S" && LN_S="ln -s"
4587 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4588 test -z "$NM" && NM=nm
4589 test -z "$OBJDUMP" && OBJDUMP=objdump
4590 test -z "$RANLIB" && RANLIB=:
4591 test -z "$STRIP" && STRIP=:
4592 test -z "$ac_objext" && ac_objext=o
4594 if test x"$host" != x"$build"; then
4595 ac_tool_prefix=${host_alias}-
4600 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4603 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4608 # AIX sometimes has problems with the GCC collect2 program. For some
4609 # reason, if we set the COLLECT_NAMES environment variable, the problems
4610 # vanish in a puff of smoke.
4611 if test "X${COLLECT_NAMES+set}" != Xset; then
4613 export COLLECT_NAMES
4618 # Determine commands to create old-style static archives.
4619 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4620 old_postinstall_cmds='chmod 644 $oldlib'
4621 old_postuninstall_cmds=
4623 if test -n "$RANLIB"; then
4626 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4629 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4632 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4635 # Allow CC to be a program name with arguments.
4639 echo "$as_me:$LINENO: checking for objdir" >&5
4640 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4641 rm -f .libs 2>/dev/null
4642 mkdir .libs 2>/dev/null
4643 if test -d .libs; then
4646 # MS-DOS does not allow filenames that begin with a dot.
4649 rmdir .libs 2>/dev/null
4650 echo "$as_me:$LINENO: result: $objdir" >&5
4651 echo "${ECHO_T}$objdir" >&6
4655 # Check whether --with-pic or --without-pic was given.
4656 if test "${with_pic+set}" = set; then
4662 test -z "$pic_mode" && pic_mode=default
4664 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4665 # in isolation, and that seeing it set (from the cache) indicates that
4666 # the associated values are set (in the cache) correctly too.
4667 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4668 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4669 if test "${lt_cv_prog_cc_pic+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 lt_cv_prog_cc_shlib=
4675 lt_cv_prog_cc_static=
4676 lt_cv_prog_cc_no_builtin=
4677 lt_cv_prog_cc_can_build_shared=$can_build_shared
4679 if test "$GCC" = yes; then
4680 lt_cv_prog_cc_wl='-Wl,'
4681 lt_cv_prog_cc_static='-static'
4685 # Below there is a dirty hack to force normal static linking with -ldl
4686 # The problem is because libdl dynamically linked with both libc and
4687 # libC (AIX C++ library), which obviously doesn't included in libraries
4688 # list by gcc. This cause undefined symbols with -static flags.
4689 # This hack allows C programs to be linked with "-static -ldl", but
4690 # not sure about C++ programs.
4691 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4694 # FIXME: we need at least 68020 code to build shared libraries, but
4695 # adding the `-m68020' flag to GCC prevents building anything better,
4697 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4699 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4700 # PIC is the default for these OSes.
4702 darwin* | rhapsody*)
4703 # PIC is the default on this platform
4704 # Common symbols not allowed in MH_DYLIB files
4705 lt_cv_prog_cc_pic='-fno-common'
4707 cygwin* | mingw* | pw32* | os2*)
4708 # This hack is so that the source file can tell whether it is being
4709 # built for inclusion in a dll (and should export symbols for example).
4710 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4713 if test -d /usr/nec; then
4714 lt_cv_prog_cc_pic=-Kconform_pic
4718 lt_cv_prog_cc_pic='-fPIC'
4722 # PORTME Check for PIC flags for the system compiler.
4724 aix3* | aix4* | aix5*)
4725 lt_cv_prog_cc_wl='-Wl,'
4726 # All AIX code is PIC.
4727 if test "$host_cpu" = ia64; then
4728 # AIX 5 now supports IA64 processor
4729 lt_cv_prog_cc_static='-Bstatic'
4731 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4735 hpux9* | hpux10* | hpux11*)
4736 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4737 lt_cv_prog_cc_wl='-Wl,'
4738 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4739 lt_cv_prog_cc_pic='+Z'
4742 irix5* | irix6* | nonstopux*)
4743 lt_cv_prog_cc_wl='-Wl,'
4744 lt_cv_prog_cc_static='-non_shared'
4745 # PIC (with -KPIC) is the default.
4748 cygwin* | mingw* | pw32* | os2*)
4749 # This hack is so that the source file can tell whether it is being
4750 # built for inclusion in a dll (and should export symbols for example).
4751 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4755 lt_cv_prog_cc_pic='-KPIC'
4756 lt_cv_prog_cc_static='-Bstatic'
4759 osf3* | osf4* | osf5*)
4760 # All OSF/1 code is PIC.
4761 lt_cv_prog_cc_wl='-Wl,'
4762 lt_cv_prog_cc_static='-non_shared'
4766 lt_cv_prog_cc_pic='-Kpic'
4767 lt_cv_prog_cc_static='-dn'
4768 lt_cv_prog_cc_shlib='-belf'
4772 lt_cv_prog_cc_pic='-KPIC'
4773 lt_cv_prog_cc_static='-Bstatic'
4774 lt_cv_prog_cc_wl='-Wl,'
4778 lt_cv_prog_cc_pic='-PIC'
4779 lt_cv_prog_cc_static='-Bstatic'
4780 lt_cv_prog_cc_wl='-Qoption ld '
4783 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4784 lt_cv_prog_cc_pic='-KPIC'
4785 lt_cv_prog_cc_static='-Bstatic'
4786 if test "x$host_vendor" = xsni; then
4787 lt_cv_prog_cc_wl='-LD'
4789 lt_cv_prog_cc_wl='-Wl,'
4794 lt_cv_prog_cc_pic='-pic'
4795 lt_cv_prog_cc_static='-Bstatic'
4799 if test -d /usr/nec ;then
4800 lt_cv_prog_cc_pic='-Kconform_pic'
4801 lt_cv_prog_cc_static='-Bstatic'
4806 lt_cv_prog_cc_can_build_shared=no
4813 if test -z "$lt_cv_prog_cc_pic"; then
4814 echo "$as_me:$LINENO: result: none" >&5
4815 echo "${ECHO_T}none" >&6
4817 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4818 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4820 # Check to make sure the pic_flag actually works.
4821 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4822 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4823 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 save_CFLAGS="$CFLAGS"
4827 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4828 cat >conftest.$ac_ext <<_ACEOF
4829 #line $LINENO "configure"
4830 #include "confdefs.h"
4832 #ifdef F77_DUMMY_MAIN
4836 int F77_DUMMY_MAIN() { return 1; }
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848 (eval $ac_compile) 2>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4859 hpux9* | hpux10* | hpux11*)
4860 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4861 # they create non-PIC objects. So, if there were any warnings, we
4862 # assume that PIC is not supported.
4863 if test -s conftest.err; then
4864 lt_cv_prog_cc_pic_works=no
4866 lt_cv_prog_cc_pic_works=yes
4870 lt_cv_prog_cc_pic_works=yes
4875 echo "$as_me: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4877 lt_cv_prog_cc_pic_works=no
4880 rm -f conftest.$ac_objext conftest.$ac_ext
4881 CFLAGS="$save_CFLAGS"
4886 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4888 lt_cv_prog_cc_can_build_shared=no
4890 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4893 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4894 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4897 # Check for any special shared library compilation flags.
4898 if test -n "$lt_cv_prog_cc_shlib"; then
4899 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4900 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4901 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4903 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4904 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4905 lt_cv_prog_cc_can_build_shared=no
4909 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4910 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4911 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 lt_cv_prog_cc_static_works=no
4915 save_LDFLAGS="$LDFLAGS"
4916 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 #include "confdefs.h"
4921 #ifdef F77_DUMMY_MAIN
4925 int F77_DUMMY_MAIN() { return 1; }
4935 rm -f conftest.$ac_objext conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -s conftest$ac_exeext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 lt_cv_prog_cc_static_works=yes
4949 echo "$as_me: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4953 LDFLAGS="$save_LDFLAGS"
4958 # Belt *and* braces to stop my trousers falling down:
4959 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4960 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4961 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4963 pic_flag="$lt_cv_prog_cc_pic"
4964 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4965 wl="$lt_cv_prog_cc_wl"
4966 link_static_flag="$lt_cv_prog_cc_static"
4967 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4968 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4971 # Check to see if options -o and -c are simultaneously supported by compiler
4972 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4974 if test "${lt_cv_compiler_c_o+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 $rm -r conftest 2>/dev/null
4981 echo "int some_variable = 0;" > conftest.$ac_ext
4983 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4984 # that will create temporary files in the current directory regardless of
4985 # the output directory. Thus, making CWD read-only will cause this test
4986 # to fail, enabling locking or at least warning the user not to do parallel
4989 save_CFLAGS="$CFLAGS"
4990 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4992 if { (eval echo configure:4992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4993 # The compiler can only warn and ignore the option if not recognized
4994 # So say no if there are warnings
4995 if test -s out/conftest.err; then
4996 lt_cv_compiler_c_o=no
4998 lt_cv_compiler_c_o=yes
5001 # Append any errors to the config.log.
5002 cat out/conftest.err 1>&5
5003 lt_cv_compiler_c_o=no
5005 CFLAGS="$save_CFLAGS"
5011 $rm -r conftest 2>/dev/null
5015 compiler_c_o=$lt_cv_compiler_c_o
5016 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5017 echo "${ECHO_T}$compiler_c_o" >&6
5019 if test x"$compiler_c_o" = x"yes"; then
5020 # Check to see if we can write to a .lo
5021 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5022 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5023 if test "${lt_cv_compiler_o_lo+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 lt_cv_compiler_o_lo=no
5028 save_CFLAGS="$CFLAGS"
5029 CFLAGS="$CFLAGS -c -o conftest.lo"
5030 save_objext="$ac_objext"
5032 cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 #include "confdefs.h"
5036 #ifdef F77_DUMMY_MAIN
5040 int F77_DUMMY_MAIN() { return 1; }
5045 int some_variable = 0;
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 # The compiler can only warn and ignore the option if not recognized
5063 # So say no if there are warnings
5064 if test -s conftest.err; then
5065 lt_cv_compiler_o_lo=no
5067 lt_cv_compiler_o_lo=yes
5071 echo "$as_me: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 rm -f conftest.$ac_objext conftest.$ac_ext
5075 ac_objext="$save_objext"
5076 CFLAGS="$save_CFLAGS"
5080 compiler_o_lo=$lt_cv_compiler_o_lo
5081 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5082 echo "${ECHO_T}$compiler_o_lo" >&6
5087 # Check to see if we can do hard links to lock some files if needed
5088 hard_links="nottested"
5089 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5090 # do not overwrite the value of need_locks provided by the user
5091 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5092 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5097 ln conftest.a conftest.b 2>&5 || hard_links=no
5098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5099 echo "$as_me:$LINENO: result: $hard_links" >&5
5100 echo "${ECHO_T}$hard_links" >&6
5101 if test "$hard_links" = no; then
5102 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5103 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5110 if test "$GCC" = yes; then
5111 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5112 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5113 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5114 echo "int some_variable = 0;" > conftest.$ac_ext
5115 save_CFLAGS="$CFLAGS"
5116 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5117 compiler_rtti_exceptions=no
5118 cat >conftest.$ac_ext <<_ACEOF
5119 #line $LINENO "configure"
5120 #include "confdefs.h"
5122 #ifdef F77_DUMMY_MAIN
5126 int F77_DUMMY_MAIN() { return 1; }
5131 int some_variable = 0;
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138 (eval $ac_compile) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -s conftest.$ac_objext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 # The compiler can only warn and ignore the option if not recognized
5149 # So say no if there are warnings
5150 if test -s conftest.err; then
5151 compiler_rtti_exceptions=no
5153 compiler_rtti_exceptions=yes
5157 echo "$as_me: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 rm -f conftest.$ac_objext conftest.$ac_ext
5161 CFLAGS="$save_CFLAGS"
5162 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5163 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5165 if test "$compiler_rtti_exceptions" = "yes"; then
5166 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5168 no_builtin_flag=' -fno-builtin'
5172 # See if the linker supports building shared libraries.
5173 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5174 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5176 allow_undefined_flag=
5178 need_lib_prefix=unknown
5179 need_version=unknown
5180 # when you set need_version to no, make sure it does not cause -set_version
5181 # flags to be left without arguments
5183 archive_expsym_cmds=
5184 old_archive_from_new_cmds=
5185 old_archive_from_expsyms_cmds=
5186 export_dynamic_flag_spec=
5187 whole_archive_flag_spec=
5188 thread_safe_flag_spec=
5189 hardcode_into_libs=no
5190 hardcode_libdir_flag_spec=
5191 hardcode_libdir_separator=
5194 hardcode_shlibpath_var=unsupported
5196 link_all_deplibs=unknown
5197 always_export_symbols=no
5198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5199 # include_expsyms should be a list of space-separated symbols to be *always*
5200 # included in the symbol list
5202 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5203 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5204 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5205 # as well as any symbol that contains `d'.
5206 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5207 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5208 # platforms (ab)use it in PIC code, but their linkers get confused if
5209 # the symbol is explicitly referenced. Since portable code cannot
5210 # rely on this symbol name, it's probably fine to never include it in
5211 # preloaded symbol tables.
5212 extract_expsyms_cmds=
5215 cygwin* | mingw* | pw32*)
5216 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5217 # When not using gcc, we currently assume that we are using
5218 # Microsoft Visual C++.
5219 if test "$GCC" != yes; then
5229 if test "$with_gnu_ld" = yes; then
5230 # If archive_cmds runs LD, not CC, wlarc should be empty
5233 # See if GNU ld supports shared libraries.
5235 aix3* | aix4* | aix5*)
5236 # On AIX, the GNU linker is very broken
5237 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5241 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5242 *** to be unable to reliably create shared libraries on AIX.
5243 *** Therefore, libtool is disabling shared libraries support. If you
5244 *** really care for shared libraries, you may want to modify your PATH
5245 *** so that a non-GNU linker is found, and then restart.
5251 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)'
5252 hardcode_libdir_flag_spec='-L$libdir'
5253 hardcode_minus_L=yes
5255 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5256 # that the semantics of dynamic libraries on AmigaOS, at least up
5257 # to version 4, is to share data among multiple programs linked
5258 # with the same dynamic library. Since this doesn't match the
5259 # behavior of shared libraries on other platforms, we can use
5265 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5266 allow_undefined_flag=unsupported
5267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5268 # support --undefined. This deserves some investigation. FIXME
5269 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5275 cygwin* | mingw* | pw32*)
5276 # hardcode_libdir_flag_spec is actually meaningless, as there is
5277 # no search path for DLLs.
5278 hardcode_libdir_flag_spec='-L$libdir'
5279 allow_undefined_flag=unsupported
5280 always_export_symbols=yes
5282 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5283 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5284 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5285 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5286 else $CC -o impgen impgen.c ; fi)~
5287 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5289 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5291 # cygwin and mingw dlls have different entry points and sets of symbols
5293 # FIXME: what about values for MSVC?
5294 dll_entry=__cygwin_dll_entry@12
5295 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5299 dll_entry=_DllMainCRTStartup@12
5300 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5304 # mingw and cygwin differ, and it's simplest to just exclude the union
5305 # of the two symbol sets.
5306 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5308 # recent cygwin and mingw systems supply a stub DllMain which the user
5309 # can override, but on older systems we have to supply one (in ltdll.c)
5310 if test "x$lt_cv_need_dllmain" = "xyes"; then
5311 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5312 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~
5313 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5319 # Extract the symbol export list from an `--export-all' def file,
5320 # then regenerate the def file from the symbol export list, so that
5321 # the compiled dll only exports the symbol export list.
5322 # Be careful not to strip the DATA tag left be newer dlltools.
5323 export_symbols_cmds="$ltdll_cmds"'
5324 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5325 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5327 # If the export-symbols file already is a .def file (1st line
5328 # is EXPORTS), use it as is.
5329 # If DATA tags from a recent dlltool are present, honour them!
5330 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5331 cp $export_symbols $output_objdir/$soname-def;
5333 echo EXPORTS > $output_objdir/$soname-def;
5335 cat $export_symbols | while read symbol; do
5338 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5339 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5341 _lt_hint=`expr 1 + \$_lt_hint`;
5345 $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~
5346 $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~
5347 $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~
5348 $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~
5349 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5357 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5358 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5363 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5367 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5368 *** create shared libraries on Solaris systems. Therefore, libtool
5369 *** is disabling shared libraries support. We urge you to upgrade GNU
5370 *** binutils to release 2.9.1 or newer. Another option is to modify
5371 *** your PATH or compiler configuration so that the native linker is
5372 *** used, and then restart.
5375 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5387 hardcode_shlibpath_var=no
5391 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5400 if test "$ld_shlibs" = yes; then
5401 runpath_var=LD_RUN_PATH
5402 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5403 export_dynamic_flag_spec='${wl}--export-dynamic'
5405 cygwin* | mingw* | pw32*)
5406 # dlltool doesn't understand --whole-archive et. al.
5407 whole_archive_flag_spec=
5410 # ancient GNU ld didn't support --whole-archive et. al.
5411 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5412 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5414 whole_archive_flag_spec=
5420 # PORTME fill in a description of your system's linker (not GNU ld)
5423 allow_undefined_flag=unsupported
5424 always_export_symbols=yes
5425 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'
5426 # Note: this linker hardcodes the directories in LIBPATH if there
5427 # are no directories specified by -L.
5428 hardcode_minus_L=yes
5429 if test "$GCC" = yes && test -z "$link_static_flag"; then
5430 # Neither direct hardcoding nor static linking is supported with a
5432 hardcode_direct=unsupported
5437 if test "$host_cpu" = ia64; then
5438 # On IA64, the linker does run time linking by default, so we don't
5439 # have to do anything special.
5440 aix_use_runtimelinking=no
5441 exp_sym_flag='-Bexport'
5444 aix_use_runtimelinking=no
5446 # Test if we are trying to use run time linking or normal
5447 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5448 # need to do runtime linking.
5449 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5450 for ld_flag in $LDFLAGS; do
5451 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5452 aix_use_runtimelinking=yes
5458 exp_sym_flag='-bexport'
5459 no_entry_flag='-bnoentry'
5462 # When large executables or shared objects are built, AIX ld can
5463 # have problems creating the table of contents. If linking a library
5464 # or program results in "error TOC overflow" add -mminimal-toc to
5465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5470 hardcode_libdir_separator=':'
5471 if test "$GCC" = yes; then
5472 case $host_os in aix4.[012]|aix4.[012].*)
5473 collect2name=`${CC} -print-prog-name=collect2`
5474 if test -f "$collect2name" && \
5475 strings "$collect2name" | grep resolve_lib_name >/dev/null
5477 # We have reworked collect2
5480 # We have old collect2
5481 hardcode_direct=unsupported
5482 # It fails to find uninstalled libraries when the uninstalled
5483 # path is not listed in the libpath. Setting hardcode_minus_L
5484 # to unsupported forces relinking
5485 hardcode_minus_L=yes
5486 hardcode_libdir_flag_spec='-L$libdir'
5487 hardcode_libdir_separator=
5491 shared_flag='-shared'
5494 if test "$host_cpu" = ia64; then
5495 shared_flag='${wl}-G'
5497 if test "$aix_use_runtimelinking" = yes; then
5498 shared_flag='${wl}-G'
5500 shared_flag='${wl}-bM:SRE'
5505 # It seems that -bexpall can do strange things, so it is better to
5506 # generate a list of symbols to export.
5507 always_export_symbols=yes
5508 if test "$aix_use_runtimelinking" = yes; then
5509 # Warning - without using the other runtime loading flags (-brtl),
5510 # -berok will link without error, but may produce a broken library.
5511 allow_undefined_flag='-berok'
5512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5513 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"
5515 if test "$host_cpu" = ia64; then
5516 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5517 allow_undefined_flag="-z nodefs"
5518 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"
5520 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5521 # Warning - without using the other run time loading flags,
5522 # -berok will link without error, but may produce a broken library.
5523 allow_undefined_flag='${wl}-berok'
5524 # This is a bit strange, but is similar to how AIX traditionally builds
5525 # it's shared libraries.
5526 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'
5532 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)'
5533 hardcode_libdir_flag_spec='-L$libdir'
5534 hardcode_minus_L=yes
5535 # see comment about different semantics on the GNU ld section
5539 cygwin* | mingw* | pw32*)
5540 # When not using gcc, we currently assume that we are using
5541 # Microsoft Visual C++.
5542 # hardcode_libdir_flag_spec is actually meaningless, as there is
5543 # no search path for DLLs.
5544 hardcode_libdir_flag_spec=' '
5545 allow_undefined_flag=unsupported
5546 # Tell ltmain to make .lib files, not .a files.
5548 # FIXME: Setting linknames here is a bad hack.
5549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5550 # The linker will automatically build a .lib file if we build a DLL.
5551 old_archive_from_new_cmds='true'
5552 # FIXME: Should let the user specify the lib program.
5553 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5554 fix_srcfile_path='`cygpath -w "$srcfile"`'
5557 darwin* | rhapsody*)
5559 rhapsody* | darwin1.[012])
5560 allow_undefined_flag='-undefined suppress'
5563 allow_undefined_flag='-flat_namespace -undefined suppress'
5566 # FIXME: Relying on posixy $() will cause problems for
5567 # cross-compilation, but unfortunately the echo tests do not
5568 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5569 # `"' quotes if we put them in here... so don't!
5570 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5571 # We need to add '_' to the symbols in $export_symbols first
5572 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5574 hardcode_shlibpath_var=no
5575 whole_archive_flag_spec='-all_load $convenience'
5582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5583 # support. Future versions do this automatically, but an explicit c++rt0.o
5584 # does not break anything, and helps significantly (at the cost of a little
5587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5588 hardcode_libdir_flag_spec='-R$libdir'
5590 hardcode_shlibpath_var=no
5593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5597 hardcode_minus_L=yes
5598 hardcode_shlibpath_var=no
5601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5603 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5604 hardcode_libdir_flag_spec='-R$libdir'
5606 hardcode_shlibpath_var=no
5609 hpux9* | hpux10* | hpux11*)
5611 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' ;;
5612 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5615 hardcode_libdir_separator=:
5617 hardcode_minus_L=yes # Not in the search PATH, but as the default
5618 # location of the library.
5619 export_dynamic_flag_spec='${wl}-E'
5622 irix5* | irix6* | nonstopux*)
5623 if test "$GCC" = yes; then
5624 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'
5626 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'
5628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5629 hardcode_libdir_separator=:
5630 link_all_deplibs=yes
5634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5637 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5639 hardcode_libdir_flag_spec='-R$libdir'
5641 hardcode_shlibpath_var=no
5645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5648 hardcode_libdir_separator=:
5649 hardcode_shlibpath_var=no
5654 hardcode_shlibpath_var=no
5655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5657 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5658 export_dynamic_flag_spec='${wl}-E'
5661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5663 hardcode_libdir_flag_spec='-R$libdir'
5666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5674 hardcode_libdir_flag_spec='-L$libdir'
5675 hardcode_minus_L=yes
5676 allow_undefined_flag=unsupported
5677 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'
5678 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5682 if test "$GCC" = yes; then
5683 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5684 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'
5686 allow_undefined_flag=' -expect_unresolved \*'
5687 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'
5689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5690 hardcode_libdir_separator=:
5693 osf4* | osf5*) # as osf3* with the addition of -msym flag
5694 if test "$GCC" = yes; then
5695 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5696 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'
5697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5699 allow_undefined_flag=' -expect_unresolved \*'
5700 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'
5701 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5702 $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'
5704 #Both c and cxx compiler support -rpath directly
5705 hardcode_libdir_flag_spec='-rpath $libdir'
5707 hardcode_libdir_separator=:
5711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5712 hardcode_shlibpath_var=no
5713 runpath_var=LD_RUN_PATH
5714 hardcode_runpath_var=yes
5715 export_dynamic_flag_spec='${wl}-Bexport'
5719 # gcc --version < 3.0 without binutils cannot create self contained
5720 # shared libraries reliably, requiring libgcc.a to resolve some of
5721 # the object symbols generated in some cases. Libraries that use
5722 # assert need libgcc.a to resolve __eprintf, for example. Linking
5723 # a copy of libgcc.a into every shared library to guarantee resolving
5724 # such symbols causes other problems: According to Tim Van Holder
5725 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5726 # (to the application) exception stack for one thing.
5727 no_undefined_flag=' -z defs'
5728 if test "$GCC" = yes; then
5729 case `$CC --version 2>/dev/null` in
5733 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5734 *** create self contained shared libraries on Solaris systems, without
5735 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5736 *** -no-undefined support, which will at least allow you to build shared
5737 *** libraries. However, you may find that when you link such libraries
5738 *** into an application without using GCC, you have to manually add
5739 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5740 *** upgrade to a newer version of GCC. Another option is to rebuild your
5741 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5748 # $CC -shared without GNU ld will not create a library from C++
5749 # object files and a static libstdc++, better avoid it by now
5750 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5751 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5752 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5753 hardcode_libdir_flag_spec='-R$libdir'
5754 hardcode_shlibpath_var=no
5756 solaris2.[0-5] | solaris2.[0-5].*) ;;
5757 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5758 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5760 link_all_deplibs=yes
5764 if test "x$host_vendor" = xsequent; then
5765 # Use $CC to link under sequent, because it throws in some extra .o
5766 # files that make .init and .fini sections work.
5767 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5769 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5771 hardcode_libdir_flag_spec='-L$libdir'
5773 hardcode_minus_L=yes
5774 hardcode_shlibpath_var=no
5778 if test "x$host_vendor" = xsno; then
5779 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5780 hardcode_direct=yes # is this really true???
5782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5783 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5785 runpath_var='LD_RUN_PATH'
5786 hardcode_shlibpath_var=no
5790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5791 hardcode_shlibpath_var=no
5792 export_dynamic_flag_spec='-Bexport'
5796 no_undefined_flag=' -z text'
5797 # $CC -shared without GNU ld will not create a library from C++
5798 # object files and a static libstdc++, better avoid it by now
5799 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5800 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5802 hardcode_libdir_flag_spec=
5803 hardcode_shlibpath_var=no
5804 runpath_var='LD_RUN_PATH'
5808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5809 hardcode_libdir_flag_spec='-L$libdir'
5810 hardcode_shlibpath_var=no
5814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5815 hardcode_libdir_flag_spec='-L$libdir'
5816 hardcode_shlibpath_var=no
5820 if test -d /usr/nec; then
5821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5822 hardcode_shlibpath_var=no
5823 runpath_var=LD_RUN_PATH
5824 hardcode_runpath_var=yes
5830 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5833 hardcode_shlibpath_var=no
5834 hardcode_runpath_var=yes
5835 runpath_var=LD_RUN_PATH
5838 sysv5uw7* | unixware7*)
5839 no_undefined_flag='${wl}-z ${wl}text'
5840 if test "$GCC" = yes; then
5841 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5843 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5845 runpath_var='LD_RUN_PATH'
5846 hardcode_shlibpath_var=no
5854 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5855 echo "${ECHO_T}$ld_shlibs" >&6
5856 test "$ld_shlibs" = no && can_build_shared=no
5858 # Check hardcoding attributes.
5859 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5860 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5862 if test -n "$hardcode_libdir_flag_spec" || \
5863 test -n "$runpath_var"; then
5865 # We can hardcode non-existant directories.
5866 if test "$hardcode_direct" != no &&
5867 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5868 # have to relink, otherwise we might link with an installed library
5869 # when we should be linking with a yet-to-be-installed one
5870 ## test "$hardcode_shlibpath_var" != no &&
5871 test "$hardcode_minus_L" != no; then
5872 # Linking always hardcodes the temporary library directory.
5873 hardcode_action=relink
5875 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5876 hardcode_action=immediate
5879 # We cannot hardcode anything, or else we can only hardcode existing
5881 hardcode_action=unsupported
5883 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5884 echo "${ECHO_T}$hardcode_action" >&6
5888 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5889 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5890 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5891 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5892 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5893 echo "$as_me:$LINENO: result: yes" >&5
5894 echo "${ECHO_T}yes" >&6
5896 echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6
5900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5901 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5903 # PORTME Fill in your ld.so characteristics
5904 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5905 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5907 libname_spec='lib$name'
5914 shlibpath_overrides_runpath=unknown
5916 dynamic_linker="$host_os ld.so"
5917 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5923 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5924 shlibpath_var=LIBPATH
5926 # AIX has no versioning support, so we append a major version to the name.
5927 soname_spec='${libname}${release}.so$major'
5932 if test "$host_cpu" = ia64; then
5933 # AIX 5 supports IA64
5934 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5935 shlibpath_var=LD_LIBRARY_PATH
5937 # With GCC up to 2.95.x, collect2 would create an import file
5938 # for dependence libraries. The import file would start with
5939 # the line `#! .'. This would cause the generated library to
5940 # depend on `.', always an invalid library. This was fixed in
5941 # development snapshots of GCC prior to 3.0.
5943 aix4 | aix4.[01] | aix4.[01].*)
5944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5946 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5953 # AIX (on Power*) has no versioning support, so currently we can
5954 # not hardcode correct soname into executable. Probably we can
5955 # add versioning support to collect2, so additional links can
5956 # be useful in future.
5957 if test "$aix_use_runtimelinking" = yes; then
5958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5959 # instead of lib<name>.a to let people know that these are not
5960 # typical AIX shared libraries.
5961 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5963 # We preserve .a as extension for shared libraries through AIX4.2
5964 # and later when we are not doing run time linking.
5965 library_names_spec='${libname}${release}.a $libname.a'
5966 soname_spec='${libname}${release}.so$major'
5968 shlibpath_var=LIBPATH
5973 library_names_spec='$libname.ixlibrary $libname.a'
5974 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5975 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'
5979 library_names_spec='${libname}.so'
5980 dynamic_linker="$host_os ld.so"
5981 shlibpath_var=LIBRARY_PATH
5987 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5988 soname_spec='${libname}${release}.so$major'
5989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5990 shlibpath_var=LD_LIBRARY_PATH
5991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5993 export_dynamic_flag_spec=-rdynamic
5994 # the default ld.so.conf also contains /usr/contrib/lib and
5995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5996 # libtool to hard-code these into programs
5999 cygwin* | mingw* | pw32*)
6000 version_type=windows
6003 case $GCC,$host_os in
6005 library_names_spec='$libname.dll.a'
6006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6007 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6008 dldir=$destdir/`dirname \$dlpath`~
6009 test -d \$dldir || mkdir -p \$dldir~
6010 $install_prog .libs/$dlname \$dldir/$dlname'
6011 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6012 dlpath=$dir/\$dldll~
6016 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6017 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6023 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6026 dynamic_linker='Win32 ld.exe'
6027 # FIXME: first we should search . and the directory the executable is in
6031 darwin* | rhapsody*)
6032 dynamic_linker="$host_os dyld"
6036 # FIXME: Relying on posixy $() will cause problems for
6037 # cross-compilation, but unfortunately the echo tests do not
6038 # yet detect zsh echo's removal of \ escapes.
6039 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)'
6040 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6041 shlibpath_overrides_runpath=yes
6042 shlibpath_var=DYLD_LIBRARY_PATH
6050 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6051 version_type=freebsd-$objformat
6052 case $version_type in
6054 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6059 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6063 shlibpath_var=LD_LIBRARY_PATH
6066 shlibpath_overrides_runpath=yes
6069 shlibpath_overrides_runpath=no
6070 hardcode_into_libs=yes
6079 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6080 soname_spec='${libname}${release}.so$major'
6081 shlibpath_var=LD_LIBRARY_PATH
6082 hardcode_into_libs=yes
6085 hpux9* | hpux10* | hpux11*)
6086 # Give a soname corresponding to the major version so that dld.sl refuses to
6087 # link against other versions.
6088 dynamic_linker="$host_os dld.sl"
6092 shlibpath_var=SHLIB_PATH
6093 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6094 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6095 soname_spec='${libname}${release}.sl$major'
6096 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6097 postinstall_cmds='chmod 555 $lib'
6100 irix5* | irix6* | nonstopux*)
6102 nonstopux*) version_type=nonstopux ;;
6103 *) version_type=irix ;;
6107 soname_spec='${libname}${release}.so$major'
6108 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6110 irix5* | nonstopux*)
6114 case $LD in # libtool.m4 will add one of these switches to LD
6115 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6116 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6117 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6118 *) libsuff= shlibsuff= libmagic=never-match;;
6122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6123 shlibpath_overrides_runpath=no
6124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6128 # No shared lib support for Linux oldld, aout, or coff.
6129 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6133 # This must be Linux ELF.
6138 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6139 soname_spec='${libname}${release}.so$major'
6140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6141 shlibpath_var=LD_LIBRARY_PATH
6142 shlibpath_overrides_runpath=no
6143 # This implies no fast_install, which is unacceptable.
6144 # Some rework will be needed to allow for fast_install
6145 # before this can be enabled.
6146 hardcode_into_libs=yes
6148 # We used to test for /lib/ld.so.1 and disable shared libraries on
6149 # powerpc, because MkLinux only supported shared libraries with the
6150 # GNU dynamic linker. Since this was broken with cross compilers,
6151 # most powerpc-linux boxes support dynamic linking these days and
6152 # people can always --disable-shared, the test was removed, and we
6153 # assume the GNU/Linux dynamic linker is in use.
6154 dynamic_linker='GNU/Linux ld.so'
6161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6162 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6164 dynamic_linker='NetBSD (a.out) ld.so'
6166 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6167 soname_spec='${libname}${release}.so$major'
6168 dynamic_linker='NetBSD ld.elf_so'
6170 shlibpath_var=LD_LIBRARY_PATH
6171 shlibpath_overrides_runpath=yes
6172 hardcode_into_libs=yes
6177 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6178 shlibpath_var=LD_LIBRARY_PATH
6179 shlibpath_overrides_runpath=yes
6186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6188 openbsd2.[89] | openbsd2.[89].*)
6189 shlibpath_overrides_runpath=no
6192 shlibpath_overrides_runpath=yes
6196 shlibpath_overrides_runpath=yes
6198 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6200 shlibpath_var=LD_LIBRARY_PATH
6204 libname_spec='$name'
6206 library_names_spec='$libname.dll $libname.a'
6207 dynamic_linker='OS/2 ld.exe'
6208 shlibpath_var=LIBPATH
6211 osf3* | osf4* | osf5*)
6215 soname_spec='${libname}${release}.so'
6216 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6217 shlibpath_var=LD_LIBRARY_PATH
6218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6224 soname_spec='${libname}${release}.so$major'
6225 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6226 shlibpath_var=LD_LIBRARY_PATH
6233 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6234 soname_spec='${libname}${release}.so$major'
6235 shlibpath_var=LD_LIBRARY_PATH
6236 shlibpath_overrides_runpath=yes
6237 hardcode_into_libs=yes
6238 # ldd complains unless libraries are executable
6239 postinstall_cmds='chmod +x $lib'
6244 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6246 shlibpath_var=LD_LIBRARY_PATH
6247 shlibpath_overrides_runpath=yes
6248 if test "$with_gnu_ld" = yes; then
6254 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6256 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6257 soname_spec='${libname}${release}.so$major'
6258 shlibpath_var=LD_LIBRARY_PATH
6259 case $host_vendor in
6261 shlibpath_overrides_runpath=no
6266 shlibpath_overrides_runpath=no
6267 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6274 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6275 soname_spec='${libname}${release}.so$major'
6276 shlibpath_var=LD_LIBRARY_PATH
6283 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6284 soname_spec='${libname}${release}.so$major'
6285 shlibpath_var=LD_LIBRARY_PATH
6289 if test -d /usr/nec ;then
6291 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6292 soname_spec='$libname.so.$major'
6293 shlibpath_var=LD_LIBRARY_PATH
6301 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6302 echo "${ECHO_T}$dynamic_linker" >&6
6303 test "$dynamic_linker" = no && can_build_shared=no
6305 # Report the final consequences.
6306 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6307 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6308 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6309 echo "${ECHO_T}$can_build_shared" >&6
6311 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6312 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6313 test "$can_build_shared" = "no" && enable_shared=no
6315 # On AIX, shared libraries and static libraries use the same namespace, and
6316 # are all built from PIC.
6319 test "$enable_shared" = yes && enable_static=no
6320 if test -n "$RANLIB"; then
6321 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6322 postinstall_cmds='$RANLIB $lib'
6327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6328 test "$enable_shared" = yes && enable_static=no
6332 echo "$as_me:$LINENO: result: $enable_shared" >&5
6333 echo "${ECHO_T}$enable_shared" >&6
6335 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6336 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6337 # Make sure either enable_shared or enable_static is yes.
6338 test "$enable_shared" = yes || enable_static=yes
6339 echo "$as_me:$LINENO: result: $enable_static" >&5
6340 echo "${ECHO_T}$enable_static" >&6
6342 if test "$hardcode_action" = relink; then
6343 # Fast installation is not supported
6344 enable_fast_install=no
6345 elif test "$shlibpath_overrides_runpath" = yes ||
6346 test "$enable_shared" = no; then
6347 # Fast installation is not necessary
6348 enable_fast_install=needless
6351 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6352 if test "$GCC" = yes; then
6353 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6356 if test "x$enable_dlopen" != xyes; then
6357 enable_dlopen=unknown
6358 enable_dlopen_self=unknown
6359 enable_dlopen_self_static=unknown
6366 lt_cv_dlopen="load_add_on"
6368 lt_cv_dlopen_self=yes
6371 cygwin* | mingw* | pw32*)
6372 lt_cv_dlopen="LoadLibrary"
6377 echo "$as_me:$LINENO: checking for shl_load" >&5
6378 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6379 if test "${ac_cv_func_shl_load+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 cat >conftest.$ac_ext <<_ACEOF
6383 #line $LINENO "configure"
6384 #include "confdefs.h"
6385 /* System header to define __stub macros and hopefully few prototypes,
6386 which can conflict with char shl_load (); below. */
6388 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6397 #ifdef F77_DUMMY_MAIN
6401 int F77_DUMMY_MAIN() { return 1; }
6406 /* The GNU C library defines this for functions which it implements
6407 to always fail with ENOSYS. Some functions are actually named
6408 something starting with __ and the normal name is an alias. */
6409 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6421 (eval $ac_link) 2>&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -s conftest$ac_exeext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_func_shl_load=yes
6433 echo "$as_me: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6435 ac_cv_func_shl_load=no
6437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6440 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6441 if test $ac_cv_func_shl_load = yes; then
6442 lt_cv_dlopen="shl_load"
6444 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6445 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6446 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 ac_check_lib_save_LIBS=$LIBS
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 #include "confdefs.h"
6455 /* Override any gcc2 internal prototype to avoid an error. */
6459 /* We use char because int might match the return type of a gcc2
6460 builtin and then its argument prototype would still apply. */
6462 #ifdef F77_DUMMY_MAIN
6466 int F77_DUMMY_MAIN() { return 1; }
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -s conftest$ac_exeext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_cv_lib_dld_shl_load=yes
6490 echo "$as_me: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6492 ac_cv_lib_dld_shl_load=no
6494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6495 LIBS=$ac_check_lib_save_LIBS
6497 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6498 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6499 if test $ac_cv_lib_dld_shl_load = yes; then
6500 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6502 echo "$as_me:$LINENO: checking for dlopen" >&5
6503 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6504 if test "${ac_cv_func_dlopen+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cat >conftest.$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6509 #include "confdefs.h"
6510 /* System header to define __stub macros and hopefully few prototypes,
6511 which can conflict with char dlopen (); below. */
6513 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6522 #ifdef F77_DUMMY_MAIN
6526 int F77_DUMMY_MAIN() { return 1; }
6531 /* The GNU C library defines this for functions which it implements
6532 to always fail with ENOSYS. Some functions are actually named
6533 something starting with __ and the normal name is an alias. */
6534 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
6550 { ac_try='test -s conftest$ac_exeext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_cv_func_dlopen=yes
6558 echo "$as_me: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6560 ac_cv_func_dlopen=no
6562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6564 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6565 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6566 if test $ac_cv_func_dlopen = yes; then
6567 lt_cv_dlopen="dlopen"
6569 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6570 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 ac_check_lib_save_LIBS=$LIBS
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 #include "confdefs.h"
6580 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6587 #ifdef F77_DUMMY_MAIN
6591 int F77_DUMMY_MAIN() { return 1; }
6601 rm -f conftest.$ac_objext conftest$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_lib_dl_dlopen=yes
6615 echo "$as_me: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6617 ac_cv_lib_dl_dlopen=no
6619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6620 LIBS=$ac_check_lib_save_LIBS
6622 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6623 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6624 if test $ac_cv_lib_dl_dlopen = yes; then
6625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6627 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6628 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6629 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_check_lib_save_LIBS=$LIBS
6634 cat >conftest.$ac_ext <<_ACEOF
6635 #line $LINENO "configure"
6636 #include "confdefs.h"
6638 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6645 #ifdef F77_DUMMY_MAIN
6649 int F77_DUMMY_MAIN() { return 1; }
6659 rm -f conftest.$ac_objext conftest$ac_exeext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6661 (eval $ac_link) 2>&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } &&
6665 { ac_try='test -s conftest$ac_exeext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_lib_svld_dlopen=yes
6673 echo "$as_me: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 ac_cv_lib_svld_dlopen=no
6677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6678 LIBS=$ac_check_lib_save_LIBS
6680 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6681 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6682 if test $ac_cv_lib_svld_dlopen = yes; then
6683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6685 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6686 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6687 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 ac_check_lib_save_LIBS=$LIBS
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6696 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6703 #ifdef F77_DUMMY_MAIN
6707 int F77_DUMMY_MAIN() { return 1; }
6717 rm -f conftest.$ac_objext conftest$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_lib_dld_dld_link=yes
6731 echo "$as_me: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 ac_cv_lib_dld_dld_link=no
6735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6736 LIBS=$ac_check_lib_save_LIBS
6738 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6739 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6740 if test $ac_cv_lib_dld_dld_link = yes; then
6741 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6762 if test "x$lt_cv_dlopen" != xno; then
6768 case $lt_cv_dlopen in
6770 save_CPPFLAGS="$CPPFLAGS"
6771 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6773 save_LDFLAGS="$LDFLAGS"
6774 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6777 LIBS="$lt_cv_dlopen_libs $LIBS"
6779 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6780 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6781 if test "${lt_cv_dlopen_self+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 if test "$cross_compiling" = yes; then :
6785 lt_cv_dlopen_self=cross
6787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6788 lt_status=$lt_dlunknown
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6790 "configure"
6791 #include "confdefs.h"
6800 # define LT_DLGLOBAL RTLD_GLOBAL
6803 # define LT_DLGLOBAL DL_GLOBAL
6805 # define LT_DLGLOBAL 0
6809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6810 find out it does not work in some platform. */
6811 #ifndef LT_DLLAZY_OR_NOW
6813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6816 # define LT_DLLAZY_OR_NOW DL_LAZY
6819 # define LT_DLLAZY_OR_NOW RTLD_NOW
6822 # define LT_DLLAZY_OR_NOW DL_NOW
6824 # define LT_DLLAZY_OR_NOW 0
6832 extern "C" void exit (int);
6835 void fnord() { int i=42;}
6838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6839 int status = $lt_dlunknown;
6843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6844 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6845 /* dlclose (self); */
6851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6852 (eval $ac_link) 2>&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6856 (./conftest; exit; ) 2>/dev/null
6859 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6860 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6861 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6864 # compilation failed
6865 lt_cv_dlopen_self=no
6872 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6873 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6875 if test "x$lt_cv_dlopen_self" = xyes; then
6876 LDFLAGS="$LDFLAGS $link_static_flag"
6877 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6878 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6879 if test "${lt_cv_dlopen_self_static+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 if test "$cross_compiling" = yes; then :
6883 lt_cv_dlopen_self_static=cross
6885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6886 lt_status=$lt_dlunknown
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6888 "configure"
6889 #include "confdefs.h"
6898 # define LT_DLGLOBAL RTLD_GLOBAL
6901 # define LT_DLGLOBAL DL_GLOBAL
6903 # define LT_DLGLOBAL 0
6907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6908 find out it does not work in some platform. */
6909 #ifndef LT_DLLAZY_OR_NOW
6911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6914 # define LT_DLLAZY_OR_NOW DL_LAZY
6917 # define LT_DLLAZY_OR_NOW RTLD_NOW
6920 # define LT_DLLAZY_OR_NOW DL_NOW
6922 # define LT_DLLAZY_OR_NOW 0
6930 extern "C" void exit (int);
6933 void fnord() { int i=42;}
6936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6937 int status = $lt_dlunknown;
6941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6942 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6943 /* dlclose (self); */
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950 (eval $ac_link) 2>&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6954 (./conftest; exit; ) 2>/dev/null
6957 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6958 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6959 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6962 # compilation failed
6963 lt_cv_dlopen_self_static=no
6970 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6971 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6974 CPPFLAGS="$save_CPPFLAGS"
6975 LDFLAGS="$save_LDFLAGS"
6980 case $lt_cv_dlopen_self in
6981 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6982 *) enable_dlopen_self=unknown ;;
6985 case $lt_cv_dlopen_self_static in
6986 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6987 *) enable_dlopen_self_static=unknown ;;
6992 if test "$enable_shared" = yes && test "$GCC" = yes; then
6993 case $archive_cmds in
6995 # FIXME: we may have to deal with multi-command sequences.
6998 # Test whether the compiler implicitly links with -lc since on some
6999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7000 # to ld, don't add -lc before -lgcc.
7001 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7002 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7003 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 echo 'static int dummy;' > conftest.$ac_ext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; then
7016 libobjs=conftest.$ac_objext
7018 wl=$lt_cv_prog_cc_wl
7024 save_allow_undefined_flag=$allow_undefined_flag
7025 allow_undefined_flag=
7026 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7027 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }
7032 lt_cv_archive_cmds_need_lc=no
7034 lt_cv_archive_cmds_need_lc=yes
7036 allow_undefined_flag=$save_allow_undefined_flag
7038 cat conftest.err 1>&5
7042 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7043 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7047 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7049 # The second clause should only fire when bootstrapping the
7050 # libtool distribution, otherwise you forgot to ship ltmain.sh
7051 # with your package, and you will get complaints that there are
7052 # no rules to generate ltmain.sh.
7053 if test -f "$ltmain"; then
7056 # If there is no Makefile yet, we rely on a make rule to execute
7057 # `config.status --recheck' to rerun these tests and create the
7058 # libtool script then.
7059 test -f Makefile && make "$ltmain"
7062 if test -f "$ltmain"; then
7063 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7066 echo creating $ofile
7068 # Now quote all the things that may contain metacharacters while being
7069 # careful not to overquote the AC_SUBSTed values. We take copies of the
7070 # variables and quote the copies for generation of the libtool script.
7071 for var in echo old_CC old_CFLAGS \
7072 AR AR_FLAGS CC LD LN_S NM SHELL \
7073 reload_flag reload_cmds wl \
7074 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7075 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7076 library_names_spec soname_spec \
7077 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7078 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7079 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7080 old_striplib striplib file_magic_cmd export_symbols_cmds \
7081 deplibs_check_method allow_undefined_flag no_undefined_flag \
7082 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7083 global_symbol_to_c_name_address \
7084 hardcode_libdir_flag_spec hardcode_libdir_separator \
7085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7086 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7089 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7090 old_postinstall_cmds | old_postuninstall_cmds | \
7091 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7092 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7093 postinstall_cmds | postuninstall_cmds | \
7094 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7095 # Double-quote double-evaled strings.
7096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7104 cat <<__EOF__ > "${ofile}T"
7107 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7108 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7109 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7111 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7112 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7114 # This program is free software; you can redistribute it and/or modify
7115 # it under the terms of the GNU General Public License as published by
7116 # the Free Software Foundation; either version 2 of the License, or
7117 # (at your option) any later version.
7119 # This program is distributed in the hope that it will be useful, but
7120 # WITHOUT ANY WARRANTY; without even the implied warranty of
7121 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7122 # General Public License for more details.
7124 # You should have received a copy of the GNU General Public License
7125 # along with this program; if not, write to the Free Software
7126 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7128 # As a special exception to the GNU General Public License, if you
7129 # distribute this file as part of a program that contains a
7130 # configuration script generated by Autoconf, you may include it under
7131 # the same distribution terms that you use for the rest of that program.
7133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7134 Xsed="sed -e s/^X//"
7136 # The HP-UX ksh and POSIX shell print the target directory to stdout
7138 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7140 # ### BEGIN LIBTOOL CONFIG
7142 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7144 # Shell to use when invoking shell scripts.
7147 # Whether or not to build shared libraries.
7148 build_libtool_libs=$enable_shared
7150 # Whether or not to build static libraries.
7151 build_old_libs=$enable_static
7153 # Whether or not to add -lc for building shared libraries.
7154 build_libtool_need_lc=$need_lc
7156 # Whether or not to optimize for fast installation.
7157 fast_install=$enable_fast_install
7160 host_alias=$host_alias
7163 # An echo program that does not interpret backslashes.
7168 AR_FLAGS=$lt_AR_FLAGS
7170 # The default C compiler.
7173 # Is the compiler the GNU C compiler?
7176 # The linker used to build libraries.
7179 # Whether we need hard or soft links.
7182 # A BSD-compatible nm program.
7185 # A symbol stripping program
7188 # Used to examine libraries when file_magic_cmd begins "file"
7189 MAGIC_CMD=$MAGIC_CMD
7191 # Used on cygwin: DLL creation program.
7194 # Used on cygwin: object dumper.
7197 # Used on cygwin: assembler.
7200 # The name of the directory that contains temporary libtool files.
7203 # How to create reloadable object files.
7204 reload_flag=$lt_reload_flag
7205 reload_cmds=$lt_reload_cmds
7207 # How to pass a linker flag through the compiler.
7210 # Object file suffix (normally "o").
7213 # Old archive suffix (normally "a").
7216 # Executable file suffix (normally "").
7219 # Additional compiler flags for building library objects.
7220 pic_flag=$lt_pic_flag
7223 # Does compiler simultaneously support -c and -o options?
7224 compiler_c_o=$lt_compiler_c_o
7226 # Can we write directly to a .lo ?
7227 compiler_o_lo=$lt_compiler_o_lo
7229 # Must we lock files when doing compilation ?
7230 need_locks=$lt_need_locks
7232 # Do we need the lib prefix for modules?
7233 need_lib_prefix=$need_lib_prefix
7235 # Do we need a version for libraries?
7236 need_version=$need_version
7238 # Whether dlopen is supported.
7239 dlopen_support=$enable_dlopen
7241 # Whether dlopen of programs is supported.
7242 dlopen_self=$enable_dlopen_self
7244 # Whether dlopen of statically linked programs is supported.
7245 dlopen_self_static=$enable_dlopen_self_static
7247 # Compiler flag to prevent dynamic linking.
7248 link_static_flag=$lt_link_static_flag
7250 # Compiler flag to turn off builtin functions.
7251 no_builtin_flag=$lt_no_builtin_flag
7253 # Compiler flag to allow reflexive dlopens.
7254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7256 # Compiler flag to generate shared objects directly from archives.
7257 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7259 # Compiler flag to generate thread-safe objects.
7260 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7262 # Library versioning type.
7263 version_type=$version_type
7265 # Format of library name prefix.
7266 libname_spec=$lt_libname_spec
7268 # List of archive names. First name is the real one, the rest are links.
7269 # The last name is the one that the linker finds with -lNAME.
7270 library_names_spec=$lt_library_names_spec
7272 # The coded name of the library, if different from the real name.
7273 soname_spec=$lt_soname_spec
7275 # Commands used to build and install an old-style archive.
7277 old_archive_cmds=$lt_old_archive_cmds
7278 old_postinstall_cmds=$lt_old_postinstall_cmds
7279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7281 # Create an old-style archive from a shared archive.
7282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7284 # Create a temporary old-style archive to link instead of a shared archive.
7285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7287 # Commands used to build and install a shared archive.
7288 archive_cmds=$lt_archive_cmds
7289 archive_expsym_cmds=$lt_archive_expsym_cmds
7290 postinstall_cmds=$lt_postinstall_cmds
7291 postuninstall_cmds=$lt_postuninstall_cmds
7293 # Commands to strip libraries.
7294 old_striplib=$lt_old_striplib
7295 striplib=$lt_striplib
7297 # Method to check whether dependent libraries are shared objects.
7298 deplibs_check_method=$lt_deplibs_check_method
7300 # Command to use when deplibs_check_method == file_magic.
7301 file_magic_cmd=$lt_file_magic_cmd
7303 # Flag that allows shared libraries with undefined symbols to be built.
7304 allow_undefined_flag=$lt_allow_undefined_flag
7306 # Flag that forces no undefined symbols.
7307 no_undefined_flag=$lt_no_undefined_flag
7309 # Commands used to finish a libtool library installation in a directory.
7310 finish_cmds=$lt_finish_cmds
7312 # Same as above, but a single script fragment to be evaled but not shown.
7313 finish_eval=$lt_finish_eval
7315 # Take the output of nm and produce a listing of raw symbols and C names.
7316 global_symbol_pipe=$lt_global_symbol_pipe
7318 # Transform the output of nm in a proper C declaration
7319 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7321 # Transform the output of nm in a C name address pair
7322 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7324 # This is the shared library runtime path variable.
7325 runpath_var=$runpath_var
7327 # This is the shared library path variable.
7328 shlibpath_var=$shlibpath_var
7330 # Is shlibpath searched before the hard-coded library search path?
7331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7333 # How to hardcode a shared library path into an executable.
7334 hardcode_action=$hardcode_action
7336 # Whether we should hardcode library paths into libraries.
7337 hardcode_into_libs=$hardcode_into_libs
7339 # Flag to hardcode \$libdir into a binary during linking.
7340 # This must work even if \$libdir does not exist.
7341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7343 # Whether we need a single -rpath flag with a separated argument.
7344 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7346 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7348 hardcode_direct=$hardcode_direct
7350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7352 hardcode_minus_L=$hardcode_minus_L
7354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7355 # the resulting binary.
7356 hardcode_shlibpath_var=$hardcode_shlibpath_var
7358 # Variables whose values should be saved in libtool wrapper scripts and
7359 # restored at relink time.
7360 variables_saved_for_relink="$variables_saved_for_relink"
7362 # Whether libtool must link a program against all its dependency libraries.
7363 link_all_deplibs=$link_all_deplibs
7365 # Compile-time system search path for libraries
7366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7368 # Run-time system search path for libraries
7369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7371 # Fix the shell variable \$srcfile for the compiler.
7372 fix_srcfile_path="$fix_srcfile_path"
7374 # Set to yes if exported symbols are required.
7375 always_export_symbols=$always_export_symbols
7377 # The commands to list exported symbols.
7378 export_symbols_cmds=$lt_export_symbols_cmds
7380 # The commands to extract the exported symbol list from a shared archive.
7381 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7383 # Symbols that should not be listed in the preloaded symbols.
7384 exclude_expsyms=$lt_exclude_expsyms
7386 # Symbols that must always be exported.
7387 include_expsyms=$lt_include_expsyms
7389 # ### END LIBTOOL CONFIG
7395 cat <<\EOF >> "${ofile}T"
7397 # AIX sometimes has problems with the GCC collect2 program. For some
7398 # reason, if we set the COLLECT_NAMES environment variable, the problems
7399 # vanish in a puff of smoke.
7400 if test "X${COLLECT_NAMES+set}" != Xset; then
7402 export COLLECT_NAMES
7409 cygwin* | mingw* | pw32* | os2*)
7410 cat <<'EOF' >> "${ofile}T"
7411 # This is a source program that is used to create dlls on Windows
7412 # Don't remove nor modify the starting and closing comments
7413 # /* ltdll.c starts here */
7414 # #define WIN32_LEAN_AND_MEAN
7415 # #include <windows.h>
7416 # #undef WIN32_LEAN_AND_MEAN
7417 # #include <stdio.h>
7419 # #ifndef __CYGWIN__
7420 # # ifdef __CYGWIN32__
7421 # # define __CYGWIN__ __CYGWIN32__
7425 # #ifdef __cplusplus
7428 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7429 # #ifdef __cplusplus
7434 # #include <cygwin/cygwin_dll.h>
7435 # DECLARE_CYGWIN_DLL( DllMain );
7437 # HINSTANCE __hDllInstance_base;
7440 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7442 # __hDllInstance_base = hInst;
7445 # /* ltdll.c ends here */
7446 # This is a source program that is used to create import libraries
7447 # on Windows for dlls which lack them. Don't remove nor modify the
7448 # starting and closing comments
7449 # /* impgen.c starts here */
7450 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7452 # This file is part of GNU libtool.
7454 # This program is free software; you can redistribute it and/or modify
7455 # it under the terms of the GNU General Public License as published by
7456 # the Free Software Foundation; either version 2 of the License, or
7457 # (at your option) any later version.
7459 # This program is distributed in the hope that it will be useful,
7460 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7461 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7462 # GNU General Public License for more details.
7464 # You should have received a copy of the GNU General Public License
7465 # along with this program; if not, write to the Free Software
7466 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7469 # #include <stdio.h> /* for printf() */
7470 # #include <unistd.h> /* for open(), lseek(), read() */
7471 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7472 # #include <string.h> /* for strdup() */
7474 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7476 # #define O_BINARY 0
7479 # static unsigned int
7480 # pe_get16 (fd, offset)
7484 # unsigned char b[2];
7485 # lseek (fd, offset, SEEK_SET);
7487 # return b[0] + (b[1]<<8);
7490 # static unsigned int
7491 # pe_get32 (fd, offset)
7495 # unsigned char b[4];
7496 # lseek (fd, offset, SEEK_SET);
7498 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7501 # static unsigned int
7505 # unsigned char *b = ptr;
7506 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7515 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7516 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7517 # unsigned long name_rvas, nexp;
7518 # unsigned char *expdata, *erva;
7519 # char *filename, *dll_name;
7521 # filename = argv[1];
7523 # dll = open(filename, O_RDONLY|O_BINARY);
7527 # dll_name = filename;
7529 # for (i=0; filename[i]; i++)
7530 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7531 # dll_name = filename + i +1;
7533 # pe_header_offset = pe_get32 (dll, 0x3c);
7534 # opthdr_ofs = pe_header_offset + 4 + 20;
7535 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7537 # if (num_entries < 1) /* no exports */
7540 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7541 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7542 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7543 # secptr = (pe_header_offset + 4 + 20 +
7544 # pe_get16 (dll, pe_header_offset + 4 + 16));
7547 # for (i = 0; i < nsections; i++)
7550 # unsigned long secptr1 = secptr + 40 * i;
7551 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7552 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7553 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7554 # lseek(dll, secptr1, SEEK_SET);
7555 # read(dll, sname, 8);
7556 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7558 # expptr = fptr + (export_rva - vaddr);
7559 # if (export_rva + export_size > vaddr + vsize)
7560 # export_size = vsize - (export_rva - vaddr);
7565 # expdata = (unsigned char*)malloc(export_size);
7566 # lseek (dll, expptr, SEEK_SET);
7567 # read (dll, expdata, export_size);
7568 # erva = expdata - export_rva;
7570 # nexp = pe_as32 (expdata+24);
7571 # name_rvas = pe_as32 (expdata+32);
7573 # printf ("EXPORTS\n");
7574 # for (i = 0; i<nexp; i++)
7576 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7577 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7582 # /* impgen.c ends here */
7588 # We use sed instead of cat because bash on DJGPP gets confused if
7589 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7590 # text mode, it properly converts lines to CR/LF. This bash problem
7591 # is reportedly fixed, but why not run on old versions too?
7592 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7594 mv -f "${ofile}T" "$ofile" || \
7595 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7603 # This can be used to rebuild libtool when needed
7604 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7606 # Always use our own libtool.
7607 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7609 # Prevent multiple expansion
7613 missing_libraries=""
7615 missing_functions=""
7617 # Turn of libgc so that you can use valgrind. (Hopefuly someone will add libgc
7618 # support to valgrind at some point.) Since nothing ever calls free() this is
7619 # rather wasteful of memory - it's not intended to allow people to use the code
7620 # in production without a garbage collector.
7622 # Check whether --with-gc or --without-gc was given.
7623 if test "${with_gc+set}" = set; then
7632 # Checks for libraries.
7633 # We save up a list of missing libraries that we can't do without
7634 # and report them all at once.
7635 if test $WANT_GC = yes; then
7636 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7637 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7638 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 ac_check_lib_save_LIBS=$LIBS
7643 cat >conftest.$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7645 #include "confdefs.h"
7647 /* Override any gcc2 internal prototype to avoid an error. */
7651 /* We use char because int might match the return type of a gcc2
7652 builtin and then its argument prototype would still apply. */
7654 #ifdef F77_DUMMY_MAIN
7658 int F77_DUMMY_MAIN() { return 1; }
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -s conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 ac_cv_lib_gc_GC_malloc=yes
7682 echo "$as_me: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 ac_cv_lib_gc_GC_malloc=no
7686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7690 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7691 if test $ac_cv_lib_gc_GC_malloc = yes; then
7695 missing_libraries="$missing_libraries libgc"
7699 cat >>confdefs.h <<\_ACEOF
7705 if test ! -z "$missing_libraries"; then
7706 { { echo "$as_me:$LINENO: error: missing libraries:$missing_libraries" >&5
7707 echo "$as_me: error: missing libraries:$missing_libraries" >&2;}
7708 { (exit 1); exit 1; }; }
7711 # Checks for header files.
7713 echo "$as_me:$LINENO: checking looking for <gc.h>" >&5
7714 echo $ECHO_N "checking looking for <gc.h>... $ECHO_C" >&6
7715 if test "${rjk_cv_gc_h+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 cat >conftest.$ac_ext <<_ACEOF
7724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7727 egrep -v '^ *\+' conftest.er1 >conftest.err
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } >/dev/null; then
7732 if test -s conftest.err; then
7733 ac_cpp_err=$ac_c_preproc_warn_flag
7740 if test -z "$ac_cpp_err"; then
7741 rjk_cv_gc_h="on default include path"
7743 echo "$as_me: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 oldCPPFLAGS="${CPPFLAGS}"
7747 for dir in /usr/include/gc /usr/local/include/gc; do
7748 if test "x$GCC" = xyes; then
7749 CPPFLAGS="${oldCPPFLAGS} -isystem $dir"
7751 CPPFLAGS="${oldCPPFLAGS} -I$dir"
7753 cat >conftest.$ac_ext <<_ACEOF
7758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7761 egrep -v '^ *\+' conftest.er1 >conftest.err
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } >/dev/null; then
7766 if test -s conftest.err; then
7767 ac_cpp_err=$ac_c_preproc_warn_flag
7774 if test -z "$ac_cpp_err"; then
7775 rjk_cv_gc_h=$dir;break
7777 echo "$as_me: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7779 rjk_cv_gc_h="not found"
7781 rm -f conftest.err conftest.$ac_ext
7783 CPPFLAGS="${oldCPPFLAGS}"
7786 rm -f conftest.err conftest.$ac_ext
7789 echo "$as_me:$LINENO: result: $rjk_cv_gc_h" >&5
7790 echo "${ECHO_T}$rjk_cv_gc_h" >&6
7791 case "$rjk_cv_gc_h" in
7793 missing_headers="$missing_headers gc.h"
7796 if test "x$GCC" = xyes; then
7797 CPPFLAGS="${CPPFLAGS} -isystem $rjk_cv_gc_h"
7799 CPPFLAGS="${CPPFLAGS} -I$rjk_cv_gc_h"
7805 for ac_header in inttypes.h
7807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7809 echo "$as_me:$LINENO: checking for $ac_header" >&5
7810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7817 # Is the header compilable?
7818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7820 cat >conftest.$ac_ext <<_ACEOF
7821 #line $LINENO "configure"
7822 #include "confdefs.h"
7823 $ac_includes_default
7824 #include <$ac_header>
7826 rm -f conftest.$ac_objext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7828 (eval $ac_compile) 2>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_header_compiler=yes
7840 echo "$as_me: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7842 ac_header_compiler=no
7844 rm -f conftest.$ac_objext conftest.$ac_ext
7845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7846 echo "${ECHO_T}$ac_header_compiler" >&6
7848 # Is the header present?
7849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7851 cat >conftest.$ac_ext <<_ACEOF
7852 #line $LINENO "configure"
7853 #include "confdefs.h"
7854 #include <$ac_header>
7856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7859 egrep -v '^ *\+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } >/dev/null; then
7864 if test -s conftest.err; then
7865 ac_cpp_err=$ac_c_preproc_warn_flag
7872 if test -z "$ac_cpp_err"; then
7873 ac_header_preproc=yes
7875 echo "$as_me: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7877 ac_header_preproc=no
7879 rm -f conftest.err conftest.$ac_ext
7880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7881 echo "${ECHO_T}$ac_header_preproc" >&6
7883 # So? What about this header?
7884 case $ac_header_compiler:$ac_header_preproc in
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7898 echo "$as_me:$LINENO: checking for $ac_header" >&5
7899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 eval "$as_ac_Header=$ac_header_preproc"
7905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7910 cat >>confdefs.h <<_ACEOF
7911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7918 # Compilation will fail if any of these headers are missing, so we
7919 # check for them here and fail early.
7920 # We don't bother checking very standard stuff
7923 for ac_header in getopt.h unistd.h
7925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7927 echo "$as_me:$LINENO: checking for $ac_header" >&5
7928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7935 # Is the header compilable?
7936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7938 cat >conftest.$ac_ext <<_ACEOF
7939 #line $LINENO "configure"
7940 #include "confdefs.h"
7941 $ac_includes_default
7942 #include <$ac_header>
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946 (eval $ac_compile) 2>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -s conftest.$ac_objext'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
7956 ac_header_compiler=yes
7958 echo "$as_me: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7960 ac_header_compiler=no
7962 rm -f conftest.$ac_objext conftest.$ac_ext
7963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7964 echo "${ECHO_T}$ac_header_compiler" >&6
7966 # Is the header present?
7967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7969 cat >conftest.$ac_ext <<_ACEOF
7970 #line $LINENO "configure"
7971 #include "confdefs.h"
7972 #include <$ac_header>
7974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7977 egrep -v '^ *\+' conftest.er1 >conftest.err
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } >/dev/null; then
7982 if test -s conftest.err; then
7983 ac_cpp_err=$ac_c_preproc_warn_flag
7990 if test -z "$ac_cpp_err"; then
7991 ac_header_preproc=yes
7993 echo "$as_me: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 ac_header_preproc=no
7997 rm -f conftest.err conftest.$ac_ext
7998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7999 echo "${ECHO_T}$ac_header_preproc" >&6
8001 # So? What about this header?
8002 case $ac_header_compiler:$ac_header_preproc in
8004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8016 echo "$as_me:$LINENO: checking for $ac_header" >&5
8017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 eval "$as_ac_Header=$ac_header_preproc"
8023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8028 cat >>confdefs.h <<_ACEOF
8029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8034 missing_headers="$missing_headers $ac_header"
8041 if test ! -z "$missing_headers"; then
8042 { { echo "$as_me:$LINENO: error: missing headers:$missing_headers" >&5
8043 echo "$as_me: error: missing headers:$missing_headers" >&2;}
8044 { (exit 1); exit 1; }; }
8047 # Checks for typedefs, structures, and compiler characteristics.
8048 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8049 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8050 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_cv_prog_cc_stdc=no
8055 cat >conftest.$ac_ext <<_ACEOF
8056 #line $LINENO "configure"
8057 #include "confdefs.h"
8060 #include <sys/types.h>
8061 #include <sys/stat.h>
8062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8063 struct buf { int x; };
8064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8065 static char *e (p, i)
8071 static char *f (char * (*g) (char **, int), char **p, ...)
8076 s = g (p, va_arg (v,int));
8080 int test (int i, double x);
8081 struct s1 {int (*f) (int a);};
8082 struct s2 {int (*f) (double a);};
8083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8086 #ifdef F77_DUMMY_MAIN
8090 int F77_DUMMY_MAIN() { return 1; }
8095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8100 # Don't try gcc -ansi; that turns off useful extensions and
8101 # breaks some systems' header files.
8102 # AIX -qlanglvl=ansi
8103 # Ultrix and OSF/1 -std1
8104 # HP-UX 10.20 and later -Ae
8105 # HP-UX older versions -Aa -D_HPUX_SOURCE
8106 # SVR4 -Xc -D__EXTENSIONS__
8107 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8109 CC="$ac_save_CC $ac_arg"
8110 rm -f conftest.$ac_objext
8111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112 (eval $ac_compile) 2>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 ac_cv_prog_cc_stdc=$ac_arg
8125 echo "$as_me: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8128 rm -f conftest.$ac_objext
8130 rm -f conftest.$ac_ext conftest.$ac_objext
8135 case "x$ac_cv_prog_cc_stdc" in
8137 echo "$as_me:$LINENO: result: none needed" >&5
8138 echo "${ECHO_T}none needed" >&6 ;;
8140 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8141 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8142 CC="$CC $ac_cv_prog_cc_stdc" ;;
8145 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8146 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8147 if test "${ac_cv_c_const+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 #include "confdefs.h"
8154 #ifdef F77_DUMMY_MAIN
8158 int F77_DUMMY_MAIN() { return 1; }
8163 /* FIXME: Include the comments suggested by Paul. */
8165 /* Ultrix mips cc rejects this. */
8166 typedef int charset[2];
8168 /* SunOS 4.1.1 cc rejects this. */
8169 char const *const *ccp;
8171 /* NEC SVR4.0.2 mips cc rejects this. */
8172 struct point {int x, y;};
8173 static struct point const zero = {0,0};
8174 /* AIX XL C 1.02.0.0 rejects this.
8175 It does not let you subtract one const X* pointer from another in
8176 an arm of an if-expression whose if-part is not a constant
8178 const char *g = "string";
8179 ccp = &g + (g ? g-g : 0);
8180 /* HPUX 7.0 cc rejects these. */
8183 ccp = (char const *const *) p;
8184 { /* SCO 3.2v4 cc rejects this. */
8186 char const *s = 0 ? (char *) 0 : (char const *) 0;
8190 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8192 const int *foo = &x[0];
8195 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8196 typedef const int *iptr;
8200 { /* AIX XL C 1.02.0.0 rejects this saying
8201 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8202 struct s { int j; const int *ap[3]; };
8203 struct s *b; b->j = 5;
8205 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8214 rm -f conftest.$ac_objext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8216 (eval $ac_compile) 2>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -s conftest.$ac_objext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8228 echo "$as_me: failed program was:" >&5
8229 cat conftest.$ac_ext >&5
8232 rm -f conftest.$ac_objext conftest.$ac_ext
8234 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8235 echo "${ECHO_T}$ac_cv_c_const" >&6
8236 if test $ac_cv_c_const = no; then
8238 cat >>confdefs.h <<\_ACEOF
8244 echo "$as_me:$LINENO: checking for size_t" >&5
8245 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8246 if test "${ac_cv_type_size_t+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 cat >conftest.$ac_ext <<_ACEOF
8250 #line $LINENO "configure"
8251 #include "confdefs.h"
8252 $ac_includes_default
8253 #ifdef F77_DUMMY_MAIN
8257 int F77_DUMMY_MAIN() { return 1; }
8264 if (sizeof (size_t))
8270 rm -f conftest.$ac_objext
8271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8272 (eval $ac_compile) 2>&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_type_size_t=yes
8284 echo "$as_me: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8286 ac_cv_type_size_t=no
8288 rm -f conftest.$ac_objext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8291 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8292 if test $ac_cv_type_size_t = yes; then
8296 cat >>confdefs.h <<_ACEOF
8297 #define size_t unsigned
8302 echo "$as_me:$LINENO: checking for inline" >&5
8303 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8304 if test "${ac_cv_c_inline+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 for ac_kw in inline __inline__ __inline; do
8309 cat >conftest.$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 #include "confdefs.h"
8313 static $ac_kw int static_foo () {return 0; }
8314 $ac_kw int foo () {return 0; }
8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest.$ac_objext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_c_inline=$ac_kw; break
8332 echo "$as_me: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 rm -f conftest.$ac_objext conftest.$ac_ext
8339 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8340 echo "${ECHO_T}$ac_cv_c_inline" >&6
8341 case $ac_cv_c_inline in
8344 cat >>confdefs.h <<\_ACEOF
8348 *) cat >>confdefs.h <<_ACEOF
8349 #define inline $ac_cv_c_inline
8354 echo "$as_me:$LINENO: checking for _Bool" >&5
8355 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8356 if test "${ac_cv_type__Bool+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 cat >conftest.$ac_ext <<_ACEOF
8360 #line $LINENO "configure"
8361 #include "confdefs.h"
8362 $ac_includes_default
8363 #ifdef F77_DUMMY_MAIN
8367 int F77_DUMMY_MAIN() { return 1; }
8380 rm -f conftest.$ac_objext
8381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8382 (eval $ac_compile) 2>&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -s conftest.$ac_objext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_type__Bool=yes
8394 echo "$as_me: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8398 rm -f conftest.$ac_objext conftest.$ac_ext
8400 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8401 echo "${ECHO_T}$ac_cv_type__Bool" >&6
8402 if test $ac_cv_type__Bool = yes; then
8404 cat >>confdefs.h <<_ACEOF
8405 #define HAVE__BOOL 1
8412 if test "x$GCC" = xyes; then
8413 # a reasonable default set of warnings
8414 CC="${CC} -Wall -W -Wpointer-arith -Wbad-function-cast \
8415 -Wwrite-strings -Wmissing-prototypes \
8417 -Wmissing-declarations -Wnested-externs -Werror"
8420 cat >>confdefs.h <<\_ACEOF
8421 #define __NO_STRING_INLINES 1
8427 # Flex includes <stdio.h> and other headers before we get a chance to
8428 # include <config.h>, so we have to hack definitions that affect the
8429 # meanings of those header files onto the command line.
8430 CC="${CC} -D_GNU_SOURCE"
8435 ac_config_files="$ac_config_files Makefile tests/Makefile"
8437 cat >confcache <<\_ACEOF
8438 # This file is a shell script that caches the results of configure
8439 # tests run on this system so they can be shared between configure
8440 # scripts and configure runs, see configure's option --config-cache.
8441 # It is not useful on other systems. If it contains results you don't
8442 # want to keep, you may remove or edit it.
8444 # config.status only pays attention to the cache file if you give it
8445 # the --recheck option to rerun configure.
8447 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8453 # The following way of writing the cache mishandles newlines in values,
8454 # but we know of no workaround that is simple, portable, and efficient.
8455 # So, don't put newlines in cache variables' values.
8456 # Ultrix sh set writes to stderr and can't be redirected directly,
8457 # and sets the high bit in the cache file unless we assign to the vars.
8460 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8462 # `set' does not quote correctly, so add quotes (double-quote
8463 # substitution turns \\\\ into \\, and sed turns \\ into \).
8466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8469 # `set' quotes correctly as required by POSIX, so do not add quotes.
8471 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8480 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8482 if cmp -s $cache_file confcache; then :; else
8483 if test -w $cache_file; then
8484 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8485 cat confcache >$cache_file
8487 echo "not updating unwritable cache $cache_file"
8492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8493 # Let make expand exec_prefix.
8494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8498 # trailing colons and then remove the whole line if VPATH becomes empty
8499 # (actually we leave an empty line to preserve line numbers).
8500 if test "x$srcdir" = x.; then
8501 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8502 s/:*\$(srcdir):*/:/;
8503 s/:*\${srcdir}:*/:/;
8505 s/^\([^=]*=[ ]*\):*/\1/;
8511 DEFS=-DHAVE_CONFIG_H
8514 : ${CONFIG_STATUS=./config.status}
8515 ac_clean_files_save=$ac_clean_files
8516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8517 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8518 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8519 cat >$CONFIG_STATUS <<_ACEOF
8521 # Generated by $as_me.
8522 # Run this file to recreate the current configuration.
8523 # Compiler output produced by configure, useful for debugging
8524 # configure, is in config.log if it exists.
8527 SHELL=\${CONFIG_SHELL-$SHELL}
8530 cat >>$CONFIG_STATUS <<\_ACEOF
8532 ## --------------------- ##
8533 ## M4sh Initialization. ##
8534 ## --------------------- ##
8536 # Be Bourne compatible
8537 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8540 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8545 # Support unset when possible.
8546 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8552 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
8553 { $as_unset LANG || test "${LANG+set}" != set; } ||
8554 { LANG=C; export LANG; }
8555 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
8556 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
8557 { LC_ALL=C; export LC_ALL; }
8558 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
8559 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
8560 { LC_TIME=C; export LC_TIME; }
8561 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
8562 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
8563 { LC_CTYPE=C; export LC_CTYPE; }
8564 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
8565 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
8566 { LANGUAGE=C; export LANGUAGE; }
8567 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
8568 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
8569 { LC_COLLATE=C; export LC_COLLATE; }
8570 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
8571 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
8572 { LC_NUMERIC=C; export LC_NUMERIC; }
8573 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
8574 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
8575 { LC_MESSAGES=C; export LC_MESSAGES; }
8578 # Name of the executable.
8579 as_me=`(basename "$0") 2>/dev/null ||
8580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8581 X"$0" : 'X\(//\)$' \| \
8582 X"$0" : 'X\(/\)$' \| \
8583 . : '\(.\)' 2>/dev/null ||
8585 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8586 /^X\/\(\/\/\)$/{ s//\1/; q; }
8587 /^X\/\(\/\).*/{ s//\1/; q; }
8590 # PATH needs CR, and LINENO needs CR and PATH.
8591 # Avoid depending upon Character Ranges.
8592 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8593 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8594 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8595 as_cr_digits='0123456789'
8596 as_cr_alnum=$as_cr_Letters$as_cr_digits
8598 # The user is always right.
8599 if test "${PATH_SEPARATOR+set}" != set; then
8600 echo "#! /bin/sh" >conftest.sh
8601 echo "exit 0" >>conftest.sh
8602 chmod +x conftest.sh
8603 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8614 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8615 test "x$as_lineno_1" != "x$as_lineno_2" &&
8616 test "x$as_lineno_3" = "x$as_lineno_2" || {
8617 # Find who we are. Look in the path if we contain no path at all
8620 *[\\/]* ) as_myself=$0 ;;
8621 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 test -z "$as_dir" && as_dir=.
8626 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8631 # We did not find ourselves, most probably we were run as `sh COMMAND'
8632 # in which case we are not to be found in the path.
8633 if test "x$as_myself" = x; then
8636 if test ! -f "$as_myself"; then
8637 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8638 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8639 { (exit 1); exit 1; }; }
8641 case $CONFIG_SHELL in
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8647 test -z "$as_dir" && as_dir=.
8648 for as_base in sh bash ksh sh5; do
8651 if ("$as_dir/$as_base" -c '
8654 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8655 test "x$as_lineno_1" != "x$as_lineno_2" &&
8656 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8657 CONFIG_SHELL=$as_dir/$as_base
8659 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8667 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8668 # uniformly replaced by the line number. The first 'sed' inserts a
8669 # line-number line before each line; the second 'sed' does the real
8670 # work. The second script uses 'N' to pair each line-number line
8671 # with the numbered line, and appends trailing '-' during
8672 # substitution so that $LINENO is not a special case at line end.
8673 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8674 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8675 sed '=' <$as_myself |
8680 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8683 s,^['$as_cr_digits']*\n,,
8685 chmod +x $as_me.lineno ||
8686 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8687 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8688 { (exit 1); exit 1; }; }
8690 # Don't try to exec as it changes $[0], causing all sort of problems
8691 # (the dirname of $[0] is not the place where we might find the
8692 # original and so on. Autoconf is especially sensible to this).
8694 # Exit status is that of the last command.
8699 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8700 *c*,-n*) ECHO_N= ECHO_C='
8702 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8703 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8706 if expr a : '\(a\)' >/dev/null 2>&1; then
8712 rm -f conf$$ conf$$.exe conf$$.file
8714 if ln -s conf$$.file conf$$ 2>/dev/null; then
8715 # We could just check for DJGPP; but this test a) works b) is more generic
8716 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8717 if test -f conf$$.exe; then
8718 # Don't use ln at all; we don't have any links
8723 elif ln conf$$.file conf$$ 2>/dev/null; then
8728 rm -f conf$$ conf$$.exe conf$$.file
8730 as_executable_p="test -f"
8732 # Sed expression to map a string onto a valid CPP name.
8733 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8735 # Sed expression to map a string onto a valid variable name.
8736 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8740 # We need space, tab and new line, in precisely that order.
8746 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8750 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8751 # report actual input values of CONFIG_FILES etc. instead of their
8752 # values after options handling. Logging --version etc. is OK.
8756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8757 ## Running $as_me. ##
8762 This file was extended by cparse $as_me 0.0.20040813, which was
8763 generated by GNU Autoconf 2.53. Invocation command line was
8765 CONFIG_FILES = $CONFIG_FILES
8766 CONFIG_HEADERS = $CONFIG_HEADERS
8767 CONFIG_LINKS = $CONFIG_LINKS
8768 CONFIG_COMMANDS = $CONFIG_COMMANDS
8772 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8776 # Files that config.status was made for.
8777 if test -n "$ac_config_files"; then
8778 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8781 if test -n "$ac_config_headers"; then
8782 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8785 if test -n "$ac_config_links"; then
8786 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8789 if test -n "$ac_config_commands"; then
8790 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8793 cat >>$CONFIG_STATUS <<\_ACEOF
8796 \`$as_me' instantiates files from templates according to the
8797 current configuration.
8799 Usage: $0 [OPTIONS] [FILE]...
8801 -h, --help print this help, then exit
8802 -V, --version print version number, then exit
8803 -d, --debug don't remove temporary files
8804 --recheck update $as_me by reconfiguring in the same conditions
8805 --file=FILE[:TEMPLATE]
8806 instantiate the configuration file FILE
8807 --header=FILE[:TEMPLATE]
8808 instantiate the configuration header FILE
8810 Configuration files:
8813 Configuration headers:
8816 Configuration commands:
8819 Report bugs to <bug-autoconf@gnu.org>."
8822 cat >>$CONFIG_STATUS <<_ACEOF
8824 cparse config.status 0.0.20040813
8825 configured by $0, generated by GNU Autoconf 2.53,
8826 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8828 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8829 Free Software Foundation, Inc.
8830 This config.status script is free software; the Free Software Foundation
8831 gives unlimited permission to copy, distribute and modify it."
8836 cat >>$CONFIG_STATUS <<\_ACEOF
8837 # If no file are specified by the user, then we need to provide default
8838 # value. By we need to know if files were specified by the user.
8844 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8845 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8847 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8851 *) # This is not an option, so the user has probably given explicit
8853 ac_need_defaults=false;;
8857 # Handling of the options.
8859 cat >>$CONFIG_STATUS <<_ACEOF
8860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8861 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8862 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8864 cat >>$CONFIG_STATUS <<\_ACEOF
8865 --version | --vers* | -V )
8866 echo "$ac_cs_version"; exit 0 ;;
8868 # Conflict between --help and --header
8869 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8870 Try \`$0 --help' for more information." >&5
8871 echo "$as_me: error: ambiguous option: $1
8872 Try \`$0 --help' for more information." >&2;}
8873 { (exit 1); exit 1; }; };;
8874 --help | --hel | -h )
8875 echo "$ac_cs_usage"; exit 0 ;;
8876 --debug | --d* | -d )
8878 --file | --fil | --fi | --f )
8880 CONFIG_FILES="$CONFIG_FILES $1"
8881 ac_need_defaults=false;;
8882 --header | --heade | --head | --hea )
8884 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8885 ac_need_defaults=false;;
8888 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8889 Try \`$0 --help' for more information." >&5
8890 echo "$as_me: error: unrecognized option: $1
8891 Try \`$0 --help' for more information." >&2;}
8892 { (exit 1); exit 1; }; } ;;
8894 *) ac_config_targets="$ac_config_targets $1" ;;
8902 cat >>$CONFIG_STATUS <<_ACEOF
8904 # INIT-COMMANDS section.
8907 AMDEP_TRUE="$AMDEP_TRUE"
8908 ac_aux_dir="$ac_aux_dir"
8914 cat >>$CONFIG_STATUS <<\_ACEOF
8915 for ac_config_target in $ac_config_targets
8917 case "$ac_config_target" in
8918 # Handling of arguments.
8919 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8920 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8921 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8922 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8923 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8924 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8925 { (exit 1); exit 1; }; };;
8929 # If the user did not use the arguments to specify the items to instantiate,
8930 # then the envvar interface is used. Set only those that are not.
8931 # We use the long form for the default assignment because of an extremely
8932 # bizarre bug on SunOS 4.1.3.
8933 if $ac_need_defaults; then
8934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8936 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8939 # Create a temporary directory, and hook for its removal unless debugging.
8942 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8943 trap '{ (exit 1); exit 1; }' 1 2 13 15
8946 # Create a (secure) tmp directory for tmp files.
8949 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8950 test -n "$tmp" && test -d "$tmp"
8953 tmp=$TMPDIR/cs$$-$RANDOM
8954 (umask 077 && mkdir $tmp)
8957 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8958 { (exit 1); exit 1; }
8963 cat >>$CONFIG_STATUS <<_ACEOF
8966 # CONFIG_FILES section.
8969 # No need to generate the scripts if there are no CONFIG_FILES.
8970 # This happens for instance when ./config.status config.h
8971 if test -n "\$CONFIG_FILES"; then
8972 # Protect against being on the right side of a sed subst in config.status.
8973 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8974 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8975 s,@SHELL@,$SHELL,;t t
8976 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8977 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8978 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8979 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8980 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8981 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8982 s,@exec_prefix@,$exec_prefix,;t t
8983 s,@prefix@,$prefix,;t t
8984 s,@program_transform_name@,$program_transform_name,;t t
8985 s,@bindir@,$bindir,;t t
8986 s,@sbindir@,$sbindir,;t t
8987 s,@libexecdir@,$libexecdir,;t t
8988 s,@datadir@,$datadir,;t t
8989 s,@sysconfdir@,$sysconfdir,;t t
8990 s,@sharedstatedir@,$sharedstatedir,;t t
8991 s,@localstatedir@,$localstatedir,;t t
8992 s,@libdir@,$libdir,;t t
8993 s,@includedir@,$includedir,;t t
8994 s,@oldincludedir@,$oldincludedir,;t t
8995 s,@infodir@,$infodir,;t t
8996 s,@mandir@,$mandir,;t t
8997 s,@build_alias@,$build_alias,;t t
8998 s,@host_alias@,$host_alias,;t t
8999 s,@target_alias@,$target_alias,;t t
9001 s,@ECHO_C@,$ECHO_C,;t t
9002 s,@ECHO_N@,$ECHO_N,;t t
9003 s,@ECHO_T@,$ECHO_T,;t t
9005 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9006 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9007 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9008 s,@PACKAGE@,$PACKAGE,;t t
9009 s,@VERSION@,$VERSION,;t t
9010 s,@EXEEXT@,$EXEEXT,;t t
9011 s,@OBJEXT@,$OBJEXT,;t t
9012 s,@ACLOCAL@,$ACLOCAL,;t t
9013 s,@AUTOCONF@,$AUTOCONF,;t t
9014 s,@AUTOMAKE@,$AUTOMAKE,;t t
9015 s,@AUTOHEADER@,$AUTOHEADER,;t t
9016 s,@MAKEINFO@,$MAKEINFO,;t t
9017 s,@AMTAR@,$AMTAR,;t t
9018 s,@install_sh@,$install_sh,;t t
9019 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9021 s,@SET_MAKE@,$SET_MAKE,;t t
9022 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9023 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9024 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9025 s,@DEPDIR@,$DEPDIR,;t t
9027 s,@CFLAGS@,$CFLAGS,;t t
9028 s,@LDFLAGS@,$LDFLAGS,;t t
9029 s,@CPPFLAGS@,$CPPFLAGS,;t t
9030 s,@ac_ct_CC@,$ac_ct_CC,;t t
9031 s,@am__include@,$am__include,;t t
9032 s,@am__quote@,$am__quote,;t t
9033 s,@CCDEPMODE@,$CCDEPMODE,;t t
9036 s,@LEXLIB@,$LEXLIB,;t t
9037 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9038 s,@build@,$build,;t t
9039 s,@build_cpu@,$build_cpu,;t t
9040 s,@build_vendor@,$build_vendor,;t t
9041 s,@build_os@,$build_os,;t t
9043 s,@host_cpu@,$host_cpu,;t t
9044 s,@host_vendor@,$host_vendor,;t t
9045 s,@host_os@,$host_os,;t t
9048 s,@RANLIB@,$RANLIB,;t t
9049 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9050 s,@STRIP@,$STRIP,;t t
9051 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9053 s,@LIBTOOL@,$LIBTOOL,;t t
9054 s,@LIBGC@,$LIBGC,;t t
9059 cat >>$CONFIG_STATUS <<\_ACEOF
9060 # Split the substitutions into bite-sized pieces for seds with
9061 # small command number limits, like on Digital OSF/1 and HP-UX.
9063 ac_sed_frag=1 # Number of current file.
9064 ac_beg=1 # First line for current file.
9065 ac_end=$ac_max_sed_lines # Line after last line for current file.
9068 while $ac_more_lines; do
9069 if test $ac_beg -gt 1; then
9070 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9072 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9074 if test ! -s $tmp/subs.frag; then
9077 # The purpose of the label and of the branching condition is to
9078 # speed up the sed processing (if there are no `@' at all, there
9079 # is no need to browse any of the substitutions).
9080 # These are the two extra sed commands mentioned above.
9082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9083 if test -z "$ac_sed_cmds"; then
9084 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9086 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9088 ac_sed_frag=`expr $ac_sed_frag + 1`
9090 ac_end=`expr $ac_end + $ac_max_sed_lines`
9093 if test -z "$ac_sed_cmds"; then
9096 fi # test -n "$CONFIG_FILES"
9099 cat >>$CONFIG_STATUS <<\_ACEOF
9100 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9101 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9103 - | *:- | *:-:* ) # input from stdin
9105 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9107 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9108 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9109 * ) ac_file_in=$ac_file.in ;;
9112 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9113 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9114 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9115 X"$ac_file" : 'X\(//\)[^/]' \| \
9116 X"$ac_file" : 'X\(//\)$' \| \
9117 X"$ac_file" : 'X\(/\)' \| \
9118 . : '\(.\)' 2>/dev/null ||
9120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9122 /^X\(\/\/\)$/{ s//\1/; q; }
9123 /^X\(\/\).*/{ s//\1/; q; }
9126 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9130 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9131 case $as_mkdir_dir in
9132 # Skip DOS drivespec
9133 ?:) as_incr_dir=$as_mkdir_dir ;;
9135 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9136 test -d "$as_incr_dir" ||
9137 mkdir "$as_incr_dir" ||
9138 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9139 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9140 { (exit 1); exit 1; }; }
9147 if test "$ac_dir" != .; then
9148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9149 # A "../" for each directory in $ac_dir_suffix.
9150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9152 ac_dir_suffix= ac_top_builddir=
9156 .) # No --srcdir option. We are building in place.
9158 if test -z "$ac_top_builddir"; then
9161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9163 [\\/]* | ?:[\\/]* ) # Absolute path.
9164 ac_srcdir=$srcdir$ac_dir_suffix;
9165 ac_top_srcdir=$srcdir ;;
9167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9170 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9172 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9173 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9174 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9175 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9180 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9183 if test x"$ac_file" != x-; then
9184 { echo "$as_me:$LINENO: creating $ac_file" >&5
9185 echo "$as_me: creating $ac_file" >&6;}
9188 # Let's still pretend it is `configure' which instantiates (i.e., don't
9189 # use $as_me), people would be surprised to read:
9190 # /* config.h. Generated by config.status. */
9191 if test x"$ac_file" = x-; then
9194 configure_input="$ac_file. "
9196 configure_input=$configure_input"Generated from `echo $ac_file_in |
9197 sed 's,.*/,,'` by configure."
9199 # First look for the input files in the build tree, otherwise in the
9201 ac_file_inputs=`IFS=:
9202 for f in $ac_file_in; do
9204 -) echo $tmp/stdin ;;
9206 # Absolute (can't be DOS-style, as IFS=:)
9207 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9208 echo "$as_me: error: cannot find input file: $f" >&2;}
9209 { (exit 1); exit 1; }; }
9212 if test -f "$f"; then
9215 elif test -f "$srcdir/$f"; then
9220 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9221 echo "$as_me: error: cannot find input file: $f" >&2;}
9222 { (exit 1); exit 1; }; }
9225 done` || { (exit 1); exit 1; }
9227 cat >>$CONFIG_STATUS <<_ACEOF
9231 cat >>$CONFIG_STATUS <<\_ACEOF
9233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9234 s,@configure_input@,$configure_input,;t t
9235 s,@srcdir@,$ac_srcdir,;t t
9236 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9237 s,@top_srcdir@,$ac_top_srcdir,;t t
9238 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9239 s,@builddir@,$ac_builddir,;t t
9240 s,@abs_builddir@,$ac_abs_builddir,;t t
9241 s,@top_builddir@,$ac_top_builddir,;t t
9242 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9243 s,@INSTALL@,$ac_INSTALL,;t t
9244 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9246 if test x"$ac_file" != x-; then
9247 mv $tmp/out $ac_file
9255 cat >>$CONFIG_STATUS <<\_ACEOF
9258 # CONFIG_HEADER section.
9261 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9262 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9264 # ac_d sets the value in "#define NAME VALUE" lines.
9265 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9266 ac_dB='[ ].*$,\1#\2'
9269 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9270 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9271 ac_uB='$,\1#\2define\3'
9275 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9278 - | *:- | *:-:* ) # input from stdin
9280 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9282 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9284 * ) ac_file_in=$ac_file.in ;;
9287 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9288 echo "$as_me: creating $ac_file" >&6;}
9290 # First look for the input files in the build tree, otherwise in the
9292 ac_file_inputs=`IFS=:
9293 for f in $ac_file_in; do
9295 -) echo $tmp/stdin ;;
9297 # Absolute (can't be DOS-style, as IFS=:)
9298 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9299 echo "$as_me: error: cannot find input file: $f" >&2;}
9300 { (exit 1); exit 1; }; }
9303 if test -f "$f"; then
9306 elif test -f "$srcdir/$f"; then
9311 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9312 echo "$as_me: error: cannot find input file: $f" >&2;}
9313 { (exit 1); exit 1; }; }
9316 done` || { (exit 1); exit 1; }
9317 # Remove the trailing spaces.
9318 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9322 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9323 # `conftest.undefs', that substitutes the proper values into
9324 # config.h.in to produce config.h. The first handles `#define'
9325 # templates, and the second `#undef' templates.
9326 # And first: Protect against being on the right side of a sed subst in
9327 # config.status. Protect against being in an unquoted here document
9329 rm -f conftest.defines conftest.undefs
9330 # Using a here document instead of a string reduces the quoting nightmare.
9331 # Putting comments in sed scripts is not portable.
9333 # `end' is used to avoid that the second main sed command (meant for
9334 # 0-ary CPP macros) applies to n-ary macro definitions.
9335 # See the Autoconf documentation for `clear'.
9336 cat >confdef2sed.sed <<\_ACEOF
9341 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9343 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9346 # If some macros were called several times there might be several times
9347 # the same #defines, which is useless. Nevertheless, we may not want to
9348 # sort them, since we want the *last* AC-DEFINE to be honored.
9349 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9350 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9351 rm -f confdef2sed.sed
9353 # This sed command replaces #undef with comments. This is necessary, for
9354 # example, in the case of _POSIX_SOURCE, which is predefined and required
9355 # on some systems where configure will not decide to define it.
9356 cat >>conftest.undefs <<\_ACEOF
9357 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9360 # Break up conftest.defines because some shells have a limit on the size
9361 # of here documents, and old seds have small limits too (100 cmds).
9362 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9363 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9364 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9365 echo ' :' >>$CONFIG_STATUS
9367 while grep . conftest.defines >/dev/null
9369 # Write a limited-size here document to $tmp/defines.sed.
9370 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9371 # Speed up: don't consider the non `#define' lines.
9372 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9373 # Work around the forget-to-reset-the-flag bug.
9374 echo 't clr' >>$CONFIG_STATUS
9375 echo ': clr' >>$CONFIG_STATUS
9376 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9378 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9382 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9383 rm -f conftest.defines
9384 mv conftest.tail conftest.defines
9386 rm -f conftest.defines
9387 echo ' fi # egrep' >>$CONFIG_STATUS
9388 echo >>$CONFIG_STATUS
9390 # Break up conftest.undefs because some shells have a limit on the size
9391 # of here documents, and old seds have small limits too (100 cmds).
9392 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9394 while grep . conftest.undefs >/dev/null
9396 # Write a limited-size here document to $tmp/undefs.sed.
9397 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9398 # Speed up: don't consider the non `#undef'
9399 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9400 # Work around the forget-to-reset-the-flag bug.
9401 echo 't clr' >>$CONFIG_STATUS
9402 echo ': clr' >>$CONFIG_STATUS
9403 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9405 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9409 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9410 rm -f conftest.undefs
9411 mv conftest.tail conftest.undefs
9413 rm -f conftest.undefs
9415 cat >>$CONFIG_STATUS <<\_ACEOF
9416 # Let's still pretend it is `configure' which instantiates (i.e., don't
9417 # use $as_me), people would be surprised to read:
9418 # /* config.h. Generated by config.status. */
9419 if test x"$ac_file" = x-; then
9420 echo "/* Generated by configure. */" >$tmp/config.h
9422 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9424 cat $tmp/in >>$tmp/config.h
9426 if test x"$ac_file" != x-; then
9427 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9428 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9429 echo "$as_me: $ac_file is unchanged" >&6;}
9431 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9433 X"$ac_file" : 'X\(//\)[^/]' \| \
9434 X"$ac_file" : 'X\(//\)$' \| \
9435 X"$ac_file" : 'X\(/\)' \| \
9436 . : '\(.\)' 2>/dev/null ||
9438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9440 /^X\(\/\/\)$/{ s//\1/; q; }
9441 /^X\(\/\).*/{ s//\1/; q; }
9444 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9448 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9449 case $as_mkdir_dir in
9450 # Skip DOS drivespec
9451 ?:) as_incr_dir=$as_mkdir_dir ;;
9453 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9454 test -d "$as_incr_dir" ||
9455 mkdir "$as_incr_dir" ||
9456 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9457 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9458 { (exit 1); exit 1; }; }
9464 mv $tmp/config.h $ac_file
9470 # Run the commands associated with the file.
9472 config.h ) # update the timestamp
9473 echo timestamp >"./stamp-h1"
9478 cat >>$CONFIG_STATUS <<\_ACEOF
9481 # CONFIG_COMMANDS section.
9483 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9484 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9485 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9486 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9487 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9488 X"$ac_dest" : 'X\(//\)[^/]' \| \
9489 X"$ac_dest" : 'X\(//\)$' \| \
9490 X"$ac_dest" : 'X\(/\)' \| \
9491 . : '\(.\)' 2>/dev/null ||
9493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9495 /^X\(\/\/\)$/{ s//\1/; q; }
9496 /^X\(\/\).*/{ s//\1/; q; }
9500 if test "$ac_dir" != .; then
9501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9502 # A "../" for each directory in $ac_dir_suffix.
9503 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9505 ac_dir_suffix= ac_top_builddir=
9509 .) # No --srcdir option. We are building in place.
9511 if test -z "$ac_top_builddir"; then
9514 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9516 [\\/]* | ?:[\\/]* ) # Absolute path.
9517 ac_srcdir=$srcdir$ac_dir_suffix;
9518 ac_top_srcdir=$srcdir ;;
9520 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9521 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9523 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9525 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9526 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9527 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9528 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9531 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9532 echo "$as_me: executing $ac_dest commands" >&6;}
9535 test x"$AMDEP_TRUE" != x"" ||
9536 for mf in $CONFIG_FILES; do
9538 Makefile) dirpart=.;;
9539 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9542 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9543 # Extract the definition of DEP_FILES from the Makefile without
9545 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9546 test -z "$DEPDIR" && continue
9547 # When using ansi2knr, U may be empty or an underscore; expand it
9548 U=`sed -n -e '/^U = / s///p' < "$mf"`
9549 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9550 # We invoke sed twice because it is the simplest approach to
9551 # changing $(DEPDIR) to its actual value in the expansion.
9552 for file in `sed -n -e '
9553 /^DEP_FILES = .*\\\\$/ {
9562 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9563 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9564 # Make sure the directory exists.
9565 test -f "$dirpart/$file" && continue
9566 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
9567 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
9568 # echo "creating $dirpart/$file"
9569 echo '# dummy' > "$dirpart/$file"
9577 cat >>$CONFIG_STATUS <<\_ACEOF
9579 { (exit 0); exit 0; }
9581 chmod +x $CONFIG_STATUS
9582 ac_clean_files=$ac_clean_files_save
9585 # configure is writing to config.log, and then calls config.status.
9586 # config.status does its own redirection, appending to config.log.
9587 # Unfortunately, on DOS this fails, as config.log is still kept open
9588 # by configure, so config.status won't be able to write to it; its
9589 # output is simply discarded. So we exec the FD to /dev/null,
9590 # effectively closing config.log, so it can be properly (re)opened and
9591 # appended to by config.status. When coming back to configure, we
9592 # need to make the FD available again.
9593 if test "$no_create" != yes; then
9596 $SHELL $CONFIG_STATUS || ac_cs_success=false
9598 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9599 # would make configure fail if this is the last instruction.
9600 $ac_cs_success || { (exit 1); exit 1; }