2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="components.cxx"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS DYNAMIC_VAR AS_DYNAMIC_OBJS AS_DYNAMIC_INCS IOAPIC_OBJS APIC_OBJS BX_SPLIT_HD_SUPPORT NE2K_OBJS PCI_OBJ SUFFIX_LINE CPP_SUFFIX DEBUGGER_VAR DISASM_VAR READLINE_LIB BX_LOADER_OBJS INSTRUMENT_DIR INSTRUMENT_VAR VIDEO_OBJS FPU_VAR FPU_GLUE_OBJ CDROM_OBJS SB16_OBJS IODEV_LIB_VAR NONINLINE_VAR INLINE_VAR EXTERNAL_DEPENDENCY HAVE_XOS_HEADER_TRUE HAVE_XOS_HEADER_FALSE RFB_LIBS GUI_OBJS GUI_LINK_OPTS GUI_LINK_OPTS_TERM DASH SLASH CXXFP CFP OFP MAKELIB RMCOMMAND LINK EXE PRIMARY_TARGET COMMAND_SEPARATOR CD_UP_ONE CD_UP_TWO GZIP TAR sidtarget_arm SIDTARGET_ARM_TRUE SIDTARGET_ARM_FALSE sidtarget_x86 SIDTARGET_X86_TRUE SIDTARGET_X86_FALSE sidtarget_mips SIDTARGET_MIPS_TRUE SIDTARGET_MIPS_FALSE sidtarget_m32r SIDTARGET_M32R_TRUE SIDTARGET_M32R_FALSE sidtarget_m68k SIDTARGET_M68K_TRUE SIDTARGET_M68K_FALSE sidtarget_mep SIDTARGET_MEP_TRUE SIDTARGET_MEP_FALSE sidtarget_mt SIDTARGET_MT_TRUE SIDTARGET_MT_FALSE sidtarget_ppc SIDTARGET_PPC_TRUE SIDTARGET_PPC_FALSE sidtarget_sh SIDTARGET_SH_TRUE SIDTARGET_SH_FALSE sidtarget_sh64 SIDTARGET_SH64_TRUE SIDTARGET_SH64_FALSE sidtarget_xstormy16 SIDTARGET_XSTORMY16_TRUE SIDTARGET_XSTORMY16_FALSE LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --x-includes=DIR X include files are in DIR
1015 --x-libraries=DIR X library files are in DIR
1018 --build=BUILD configure for building on BUILD [guessed]
1019 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 if test -n "$ac_init_help"; then
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-processors select number of processors (1,2,4)
1042 --enable-cpu-level select cpu level (3,4,5,6)
1043 --enable-dynamic enable dynamic translation support
1044 --enable-apic enable APIC support
1045 --enable-split-hd allows split hard disk image
1046 --enable-ne2000 enable limited ne2000 support
1047 --enable-pci enable limited i440FX PCI support
1048 --enable-port-e9-hack writes to port e9 go to console
1049 --enable-cpp use .cpp as C++ suffix
1050 --enable-debugger compile in support for Bochs internal debugger
1051 --enable-disasm compile in support for disassembler
1052 --enable-readline use readline library with debugger
1053 --enable-loader support calling external loader from debugger
1054 --enable-instrumentation compile in support for instrumentation
1055 --enable-simid=0 or 1 CPU simulator ID if using more than one
1056 --enable-num-sim=1 or 2 number of CPU simulators
1057 --enable-time0=n start at n instead of using time()
1058 --enable-vga use VGA emulation
1059 --enable-fpu compile in FPU emulation
1060 --enable-x86-debugger x86 debugger support
1061 --enable-cdrom CDROM support
1062 --enable-sb16 Sound Blaster 16 Support
1063 --enable-hga-dumps=Nmicroseconds copy memory to HGA video buffer every N useconds
1064 --enable-targets=LIST support given additional targets, or all
1067 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1068 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1069 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1070 --with-pic try to use only PIC/non-PIC objects [default=use
1073 include additional configurations [automatic]
1074 --with-x use the X Window System
1075 --with-x11 use X11 GUI
1076 --with-beos use BeOS GUI
1077 --with-win32 use Win32 GUI
1078 --with-win32-vcpp use Win32 GUI/Visual C++ environment
1079 --with-macos use Macintosh/CodeWarrior environment
1080 --with-nogui no native GUI, just use blank stubs
1081 --with-term textmode terminal environment
1082 --with-rfb use RFB protocol, works with VNC viewer
1084 Some influential environment variables:
1085 CC C compiler command
1086 CFLAGS C compiler flags
1087 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1088 nonstandard directory <lib dir>
1089 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090 headers in a nonstandard directory <include dir>
1092 CXX C++ compiler command
1093 CXXFLAGS C++ compiler flags
1094 CXXCPP C++ preprocessor
1095 F77 Fortran 77 compiler command
1096 FFLAGS Fortran 77 compiler flags
1098 Use these variables to override the choices made by `configure' or to help
1099 it to find libraries and programs with nonstandard names/locations.
1104 if test "$ac_init_help" = "recursive"; then
1105 # If there are subdirs, report their specific --help.
1107 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1108 test -d $ac_dir || continue
1111 if test "$ac_dir" != .; then
1112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1113 # A "../" for each directory in $ac_dir_suffix.
1114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1116 ac_dir_suffix= ac_top_builddir=
1120 .) # No --srcdir option. We are building in place.
1122 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1127 [\\/]* | ?:[\\/]* ) # Absolute path.
1128 ac_srcdir=$srcdir$ac_dir_suffix;
1129 ac_top_srcdir=$srcdir ;;
1131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135 # Do not use `cd foo && pwd` to compute absolute paths, because
1136 # the directories may not exist.
1138 .) ac_abs_builddir="$ac_dir";;
1141 .) ac_abs_builddir=`pwd`;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1143 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1149 case ${ac_top_builddir}. in
1150 .) ac_abs_top_builddir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 case $ac_abs_builddir in
1156 .) ac_abs_srcdir=$ac_srcdir;;
1159 .) ac_abs_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1161 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1167 case $ac_top_srcdir in
1168 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175 # Check for guested configure; otherwise get Cygnus style configure.
1176 if test -f $ac_srcdir/configure.gnu; then
1178 $SHELL $ac_srcdir/configure.gnu --help=recursive
1179 elif test -f $ac_srcdir/configure; then
1181 $SHELL $ac_srcdir/configure --help=recursive
1182 elif test -f $ac_srcdir/configure.ac ||
1183 test -f $ac_srcdir/configure.in; then
1185 $ac_configure --help
1187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 test -n "$ac_init_help" && exit 0
1194 if $ac_init_version; then
1197 Copyright (C) 2003 Free Software Foundation, Inc.
1198 This configure script is free software; the Free Software Foundation
1199 gives unlimited permission to copy, distribute and modify it.
1205 This file contains any messages produced by compilers while
1206 running configure, to aid debugging if configure makes a mistake.
1208 It was created by $as_me, which was
1209 generated by GNU Autoconf 2.59. Invocation command line was
1220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1229 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1230 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1233 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1234 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1235 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1243 test -z "$as_dir" && as_dir=.
1244 echo "PATH: $as_dir"
1259 # Keep a trace of the command line.
1260 # Strip out --no-create and --no-recursion so they do not pile up.
1261 # Strip out --silent because we don't want to record it for future runs.
1262 # Also quote any args containing shell meta-characters.
1263 # Make two passes to allow for proper duplicate-argument suppression.
1268 ac_must_keep_next=false
1274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1284 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285 if test $ac_must_keep_next = true; then
1286 ac_must_keep_next=false # Got value, back to normal.
1289 *=* | --config-cache | -C | -disable-* | --disable-* \
1290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292 | -with-* | --with-* | -without-* | --without-* | --x)
1293 case "$ac_configure_args0 " in
1294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 -* ) ac_must_keep_next=true ;;
1300 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301 # Get rid of the leading space.
1307 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1310 # When interrupted or exit'd, cleanup temporary files, and complete
1311 # config.log. We remove comments because anyway the quotes in there
1312 # would cause problems or look ugly.
1313 # WARNING: Be sure not to use single quotes in there, as some shells,
1314 # such as our DU 5.0 friend, will then `close' the trap.
1315 trap 'exit_status=$?
1316 # Save into config.log some information that might help in debugging.
1321 ## ---------------- ##
1322 ## Cache variables. ##
1323 ## ---------------- ##
1326 # The following way of writing the cache mishandles newlines in values,
1329 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1344 ## ----------------- ##
1345 ## Output variables. ##
1346 ## ----------------- ##
1349 for ac_var in $ac_subst_vars
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
1356 if test -n "$ac_subst_files"; then
1363 for ac_var in $ac_subst_files
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1371 if test -s confdefs.h; then
1378 sed "/^$/d" confdefs.h | sort
1381 test "$ac_signal" != 0 &&
1382 echo "$as_me: caught signal $ac_signal"
1383 echo "$as_me: exit $exit_status"
1385 rm -f core *.core &&
1386 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 for ac_signal in 1 2 13 15; do
1390 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1395 rm -rf conftest* confdefs.h
1396 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399 # Predefined preprocessor variables.
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_NAME "$PACKAGE_NAME"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_STRING "$PACKAGE_STRING"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1426 # Let the site file select an alternate cache file if it wants to.
1427 # Prefer explicitly selected file to automatically selected ones.
1428 if test -z "$CONFIG_SITE"; then
1429 if test "x$prefix" != xNONE; then
1430 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1432 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1435 for ac_site_file in $CONFIG_SITE; do
1436 if test -r "$ac_site_file"; then
1437 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438 echo "$as_me: loading site script $ac_site_file" >&6;}
1439 sed 's/^/| /' "$ac_site_file" >&5
1444 if test -r "$cache_file"; then
1445 # Some versions of bash will fail to source /dev/null (special
1446 # files actually), so we avoid doing that.
1447 if test -f "$cache_file"; then
1448 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449 echo "$as_me: loading cache $cache_file" >&6;}
1451 [\\/]* | ?:[\\/]* ) . $cache_file;;
1452 *) . ./$cache_file;;
1456 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457 echo "$as_me: creating cache $cache_file" >&6;}
1461 # Check that the precious variables saved in the cache have kept the same
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1485 echo "$as_me: former value: $ac_old_val" >&2;}
1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1487 echo "$as_me: current value: $ac_new_val" >&2;}
1488 ac_cache_corrupted=:
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 for ac_dir in ../../config $srcdir/../../config; do
1538 if test -f $ac_dir/install-sh; then
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1542 elif test -f $ac_dir/install.sh; then
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1546 elif test -f $ac_dir/shtool; then
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 if test -z "$ac_aux_dir"; then
1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../config $srcdir/../../config" >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in ../../config $srcdir/../../config" >&2;}
1555 { (exit 1); exit 1; }; }
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561 ac_config_headers="$ac_config_headers config.h"
1564 am__api_version="1.9"
1565 # Find a good install program. We prefer a C program (faster),
1566 # so one script is as good as another. But avoid the broken or
1567 # incompatible versions:
1568 # SysV /etc/install, /usr/sbin/install
1569 # SunOS /usr/etc/install
1570 # IRIX /sbin/install
1572 # AmigaOS /C/install, which installs bootblocks on floppy discs
1573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1576 # OS/2's system install, which has a completely different semantic
1577 # ./install, which can be erroneously created by make from ./install.sh.
1578 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580 if test -z "$INSTALL"; then
1581 if test "${ac_cv_path_install+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 # Account for people who put trailing slashes in PATH elements.
1591 ./ | .// | /cC/* | \
1592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596 # OSF1 and SCO ODT 3.0 have their own names for install.
1597 # Don't use installbsd from OSF since it installs stuff as root
1599 for ac_prog in ginstall scoinst install; do
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1602 if test $ac_prog = install &&
1603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604 # AIX install. It has an incompatible calling convention.
1606 elif test $ac_prog = install &&
1607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # program-specific install script used by HP pwplus--don't use.
1611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1623 if test "${ac_cv_path_install+set}" = set; then
1624 INSTALL=$ac_cv_path_install
1626 # As a last resort, use the slow shell script. We don't cache a
1627 # path for INSTALL within a source directory, because that will
1628 # break other packages using the cache if that directory is
1629 # removed, or if the path is relative.
1630 INSTALL=$ac_install_sh
1633 echo "$as_me:$LINENO: result: $INSTALL" >&5
1634 echo "${ECHO_T}$INSTALL" >&6
1636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637 # It thinks the first close brace ends the variable substitution.
1638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1644 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1645 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1648 echo timestamp > conftest.file
1649 # Do `set' in a subshell so we don't clobber the current shell's
1650 # arguments. Must try -L first in case configure is actually a
1651 # symlink; some systems play weird games with the mod time of symlinks
1652 # (eg FreeBSD returns the mod time of the symlink's containing
1655 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1656 if test "$*" = "X"; then
1658 set X `ls -t $srcdir/configure conftest.file`
1661 if test "$*" != "X $srcdir/configure conftest.file" \
1662 && test "$*" != "X conftest.file $srcdir/configure"; then
1664 # If neither matched, then we have a broken ls. This can happen
1665 # if, for instance, CONFIG_SHELL is bash and it inherits a
1666 # broken ls alias from the environment. This has actually
1667 # happened. Such a system could not be considered "sane".
1668 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1669 alias in your environment" >&5
1670 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1671 alias in your environment" >&2;}
1672 { (exit 1); exit 1; }; }
1675 test "$2" = conftest.file
1681 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1682 Check your system clock" >&5
1683 echo "$as_me: error: newly created file is older than distributed files!
1684 Check your system clock" >&2;}
1685 { (exit 1); exit 1; }; }
1687 echo "$as_me:$LINENO: result: yes" >&5
1688 echo "${ECHO_T}yes" >&6
1689 test "$program_prefix" != NONE &&
1690 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1691 # Use a double $ so make ignores it.
1692 test "$program_suffix" != NONE &&
1693 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1694 # Double any \ or $. echo might interpret backslashes.
1695 # By default was `s,x,x', remove it if useless.
1696 cat <<\_ACEOF >conftest.sed
1697 s/[\\$]/&&/g;s/;s,x,x,$//
1699 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1702 # expand $ac_aux_dir to an absolute path
1703 am_aux_dir=`cd $ac_aux_dir && pwd`
1705 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706 # Use eval to expand $SHELL
1707 if eval "$MISSING --run true"; then
1708 am_missing_run="$MISSING --run "
1711 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1716 # We used to keeping the `.' as first argument, in order to
1717 # allow $(mkdir_p) to be used without argument. As in
1718 # $(mkdir_p) $(somedir)
1719 # where $(somedir) is conditionally defined. However this is wrong
1721 # 1. if the package is installed by a user who cannot write `.'
1722 # make install will fail,
1723 # 2. the above comment should most certainly read
1724 # $(mkdir_p) $(DESTDIR)$(somedir)
1725 # so it does not work when $(somedir) is undefined and
1726 # $(DESTDIR) is not.
1727 # To support the latter case, we have to write
1728 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1729 # so the `.' trick is pointless.
1730 mkdir_p='mkdir -p --'
1732 # On NextStep and OpenStep, the `mkdir' command does not
1733 # recognize any option. It will interpret all options as
1734 # directories to create, and then abort because `.' already
1736 for d in ./-p ./--version;
1738 test -d $d && rmdir $d
1740 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1741 if test -f "$ac_aux_dir/mkinstalldirs"; then
1742 mkdir_p='$(mkinstalldirs)'
1744 mkdir_p='$(install_sh) -d'
1748 for ac_prog in gawk mawk nawk awk
1750 # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_AWK+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 if test -n "$AWK"; then
1758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 ac_cv_prog_AWK="$ac_prog"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 if test -n "$AWK"; then
1778 echo "$as_me:$LINENO: result: $AWK" >&5
1779 echo "${ECHO_T}$AWK" >&6
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1785 test -n "$AWK" && break
1788 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1789 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1790 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1791 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 cat >conftest.make <<\_ACEOF
1796 @echo 'ac_maketemp="$(MAKE)"'
1798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1799 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1800 if test -n "$ac_maketemp"; then
1801 eval ac_cv_prog_make_${ac_make}_set=yes
1803 eval ac_cv_prog_make_${ac_make}_set=no
1807 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1808 echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 SET_MAKE="MAKE=${MAKE-make}"
1817 rm -rf .tst 2>/dev/null
1818 mkdir .tst 2>/dev/null
1819 if test -d .tst; then
1824 rmdir .tst 2>/dev/null
1826 # test to see if srcdir already configured
1827 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1828 test -f $srcdir/config.status; then
1829 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831 { (exit 1); exit 1; }; }
1834 # test whether we have cygpath
1835 if test -z "$CYGPATH_W"; then
1836 if (cygpath --version) >/dev/null 2>/dev/null; then
1837 CYGPATH_W='cygpath -w'
1844 # Define the identity of the package.
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE "$PACKAGE"
1854 cat >>confdefs.h <<_ACEOF
1855 #define VERSION "$VERSION"
1858 # Some tools Automake needs.
1860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1874 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1876 # Installed binaries are usually stripped using `strip' when the user
1877 # run `make install-strip'. However `strip' might not be the right
1878 # tool to use in cross-compilation environments, therefore Automake
1879 # will honor the `STRIP' environment variable to overrule this program.
1880 if test "$cross_compiling" != no; then
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_STRIP+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$STRIP"; then
1890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 STRIP=$ac_cv_prog_STRIP
1909 if test -n "$STRIP"; then
1910 echo "$as_me:$LINENO: result: $STRIP" >&5
1911 echo "${ECHO_T}$STRIP" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1918 if test -z "$ac_cv_prog_STRIP"; then
1920 # Extract the first word of "strip", so it can be a program name with args.
1921 set dummy strip; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$ac_ct_STRIP"; then
1928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_STRIP="strip"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1948 if test -n "$ac_ct_STRIP"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1950 echo "${ECHO_T}$ac_ct_STRIP" >&6
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1958 STRIP="$ac_cv_prog_STRIP"
1962 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1964 # We need awk for the "check" target. The system "awk" is bad on
1966 # Always define AMTAR for backward compatibility.
1968 AMTAR=${AMTAR-"${am_missing_run}tar"}
1970 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1976 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1977 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1978 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1979 if test "${enable_maintainer_mode+set}" = set; then
1980 enableval="$enable_maintainer_mode"
1981 USE_MAINTAINER_MODE=$enableval
1983 USE_MAINTAINER_MODE=no
1985 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1986 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1989 if test $USE_MAINTAINER_MODE = yes; then
1990 MAINTAINER_MODE_TRUE=
1991 MAINTAINER_MODE_FALSE='#'
1993 MAINTAINER_MODE_TRUE='#'
1994 MAINTAINER_MODE_FALSE=
1997 MAINT=$MAINTAINER_MODE_TRUE
2001 # Check whether --enable-shared or --disable-shared was given.
2002 if test "${enable_shared+set}" = set; then
2003 enableval="$enable_shared"
2004 p=${PACKAGE-default}
2006 yes) enable_shared=yes ;;
2007 no) enable_shared=no ;;
2010 # Look at the argument we got. We use all the common list separators.
2011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2012 for pkg in $enableval; do
2014 if test "X$pkg" = "X$p"; then
2025 # Check whether --enable-static or --disable-static was given.
2026 if test "${enable_static+set}" = set; then
2027 enableval="$enable_static"
2028 p=${PACKAGE-default}
2030 yes) enable_static=yes ;;
2031 no) enable_static=no ;;
2034 # Look at the argument we got. We use all the common list separators.
2035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2036 for pkg in $enableval; do
2038 if test "X$pkg" = "X$p"; then
2049 # Check whether --enable-fast-install or --disable-fast-install was given.
2050 if test "${enable_fast_install+set}" = set; then
2051 enableval="$enable_fast_install"
2052 p=${PACKAGE-default}
2054 yes) enable_fast_install=yes ;;
2055 no) enable_fast_install=no ;;
2057 enable_fast_install=no
2058 # Look at the argument we got. We use all the common list separators.
2059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060 for pkg in $enableval; do
2062 if test "X$pkg" = "X$p"; then
2063 enable_fast_install=yes
2070 enable_fast_install=yes
2073 # Make sure we can run config.sub.
2074 $ac_config_sub sun4 >/dev/null 2>&1 ||
2075 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2076 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2077 { (exit 1); exit 1; }; }
2079 echo "$as_me:$LINENO: checking build system type" >&5
2080 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2081 if test "${ac_cv_build+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 ac_cv_build_alias=$build_alias
2085 test -z "$ac_cv_build_alias" &&
2086 ac_cv_build_alias=`$ac_config_guess`
2087 test -z "$ac_cv_build_alias" &&
2088 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2089 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2090 { (exit 1); exit 1; }; }
2091 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2092 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2093 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2094 { (exit 1); exit 1; }; }
2097 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2098 echo "${ECHO_T}$ac_cv_build" >&6
2100 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2101 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2102 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2105 echo "$as_me:$LINENO: checking host system type" >&5
2106 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2107 if test "${ac_cv_host+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 ac_cv_host_alias=$host_alias
2111 test -z "$ac_cv_host_alias" &&
2112 ac_cv_host_alias=$ac_cv_build_alias
2113 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2114 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2115 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2119 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2120 echo "${ECHO_T}$ac_cv_host" >&6
2122 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2123 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2124 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2127 DEPDIR="${am__leading_dot}deps"
2129 ac_config_commands="$ac_config_commands depfiles"
2132 am_make=${MAKE-make}
2133 cat > confinc << 'END'
2138 # If we don't find an include directive, just comment out the code.
2139 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2140 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2144 # First try GNU make style include.
2145 echo "include confinc" > confmf
2146 # We grep out `Entering directory' and `Leaving directory'
2147 # messages which can occur if `w' ends up in MAKEFLAGS.
2148 # In particular we don't look at `^make:' because GNU make might
2149 # be invoked under some other name (usually "gmake"), in which
2150 # case it prints its new name instead of `make'.
2151 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2156 # Now try BSD make style include.
2157 if test "$am__include" = "#"; then
2158 echo '.include "confinc"' > confmf
2159 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2160 am__include=.include
2167 echo "$as_me:$LINENO: result: $_am_result" >&5
2168 echo "${ECHO_T}$_am_result" >&6
2169 rm -f confinc confmf
2171 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2172 if test "${enable_dependency_tracking+set}" = set; then
2173 enableval="$enable_dependency_tracking"
2176 if test "x$enable_dependency_tracking" != xno; then
2177 am_depcomp="$ac_aux_dir/depcomp"
2182 if test "x$enable_dependency_tracking" != xno; then
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 if test -n "$CC"; then
2226 echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2234 if test -z "$ac_cv_prog_CC"; then
2236 # Extract the first word of "gcc", so it can be a program name with args.
2237 set dummy gcc; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253 ac_cv_prog_ac_ct_CC="gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2267 echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2276 if test -z "$CC"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}cc; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_CC="${ac_tool_prefix}cc"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 if test -n "$CC"; then
2306 echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2314 if test -z "$ac_cv_prog_CC"; then
2316 # Extract the first word of "cc", so it can be a program name with args.
2317 set dummy cc; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$ac_ct_CC"; then
2324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333 ac_cv_prog_ac_ct_CC="cc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6
2347 echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2357 if test -z "$CC"; then
2358 # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377 ac_prog_rejected=yes
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 if test $ac_prog_rejected = yes; then
2388 # We found a bogon in the path, so make sure we never use it.
2389 set dummy $ac_cv_prog_CC
2391 if test $# != 0; then
2392 # We chose a different compiler from the bogus one.
2393 # However, it has the same basename, so the bogon will be chosen
2394 # first if we set CC to just the basename; use the full file name.
2396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2402 if test -n "$CC"; then
2403 echo "$as_me:$LINENO: result: $CC" >&5
2404 echo "${ECHO_T}$CC" >&6
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test -n "$CC"; then
2443 echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2450 test -n "$CC" && break
2453 if test -z "$CC"; then
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$ac_ct_CC"; then
2465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_ac_ct_CC="$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 test -n "$ac_ct_CC" && break
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO:" \
2509 "checking for C compiler version" >&5
2510 ac_compiler=`set X $ac_compile; echo $2`
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2512 (eval $ac_compiler --version </dev/null >&5) 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2517 (eval $ac_compiler -v </dev/null >&5) 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2522 (eval $ac_compiler -V </dev/null >&5) 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 ac_clean_files_save=$ac_clean_files
2543 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2544 # Try to create an executable without -o first, disregard a.out.
2545 # It will help us diagnose broken compilers, and finding out an intuition
2547 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2548 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2549 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2551 (eval $ac_link_default) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 # Find the output, starting from the most likely. This scheme is
2556 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2559 # Be careful to initialize this variable, since it used to be cached.
2560 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2562 # b.out is created by i960 compilers.
2563 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2565 test -f "$ac_file" || continue
2567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2570 # This is the source file.
2573 # We found the default executable, but exeext='' is most
2577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 # FIXME: I believe we export ac_cv_exeext for Libtool,
2579 # but it would be cool to find out if it's true. Does anybody
2580 # maintain Libtool? --akim.
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595 { (exit 77); exit 77; }; }
2598 ac_exeext=$ac_cv_exeext
2599 echo "$as_me:$LINENO: result: $ac_file" >&5
2600 echo "${ECHO_T}$ac_file" >&6
2602 # Check the compiler produces executables we can run. If not, either
2603 # the compiler is broken, or we cross compile.
2604 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2605 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2606 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2607 # If not cross compiling, check that we can run a simple program.
2608 if test "$cross_compiling" != yes; then
2609 if { ac_try='./$ac_file'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 if test "$cross_compiling" = maybe; then
2620 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2621 If you meant to cross compile, use \`--host'.
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2633 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2634 ac_clean_files=$ac_clean_files_save
2635 # Check the compiler produces executables we can run. If not, either
2636 # the compiler is broken, or we cross compile.
2637 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2639 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2640 echo "${ECHO_T}$cross_compiling" >&6
2642 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2643 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645 (eval $ac_link) 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2653 for ac_file in conftest.exe conftest conftest.*; do
2654 test -f "$ac_file" || continue
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2671 rm -f conftest$ac_cv_exeext
2672 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2673 echo "${ECHO_T}$ac_cv_exeext" >&6
2675 rm -f conftest.$ac_ext
2676 EXEEXT=$ac_cv_exeext
2678 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2679 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2680 if test "${ac_cv_objext+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.o conftest.obj
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2718 See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }
2722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2724 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2725 echo "${ECHO_T}$ac_cv_objext" >&6
2726 OBJEXT=$ac_cv_objext
2728 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2729 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2730 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2755 grep -v '^ *+' conftest.er1 >conftest.err
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2784 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2785 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2786 GCC=`test $ac_compiler_gnu = yes && echo yes`
2787 ac_test_CFLAGS=${CFLAGS+set}
2788 ac_save_CFLAGS=$CFLAGS
2790 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 cat >conftest.$ac_ext <<_ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2843 if test "$ac_test_CFLAGS" = set; then
2844 CFLAGS=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846 if test "$GCC" = yes; then
2852 if test "$GCC" = yes; then
2858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 ac_cv_prog_cc_stdc=no
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2889 s = g (p, va_arg (v,int));
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std1 is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std1. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2917 # Don't try gcc -ansi; that turns off useful extensions and
2918 # breaks some systems' header files.
2919 # AIX -qlanglvl=ansi
2920 # Ultrix and OSF/1 -std1
2921 # HP-UX 10.20 and later -Ae
2922 # HP-UX older versions -Aa -D_HPUX_SOURCE
2923 # SVR4 -Xc -D__EXTENSIONS__
2924 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2926 CC="$ac_save_CC $ac_arg"
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1 >conftest.err
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 ac_cv_prog_cc_stdc=$ac_arg
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2956 rm -f conftest.err conftest.$ac_objext
2958 rm -f conftest.$ac_ext conftest.$ac_objext
2963 case "x$ac_cv_prog_cc_stdc" in
2965 echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6 ;;
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2970 CC="$CC $ac_cv_prog_cc_stdc" ;;
2973 # Some people use a C++ compiler to compile C. Since we use `exit',
2974 # in C++ we need to declare it. In case someone uses the same compiler
2975 # for both compiling C and C++ we need to have the C++ compiler decide
2976 # the declaration of exit, since it's the most demanding environment.
2977 cat >conftest.$ac_ext <<_ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -z "$ac_c_werror_flag"
2992 || test ! -s conftest.err'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 for ac_declaration in \
3006 'extern "C" void std::exit (int) throw (); using std::exit;' \
3007 'extern "C" void std::exit (int); using std::exit;' \
3008 'extern "C" void exit (int) throw ();' \
3009 'extern "C" void exit (int);' \
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3104 if test -n "$ac_declaration"; then
3105 echo '#ifdef __cplusplus' >>confdefs.h
3106 echo $ac_declaration >>confdefs.h
3107 echo '#endif' >>confdefs.h
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 depcc="$CC" am_compiler_list=
3124 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3125 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3126 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3130 # We make a subdir and do the tests there. Otherwise we can end up
3131 # making bogus files that we don't know about and never remove. For
3132 # instance it was reported that on HP-UX the gcc test will end up
3133 # making a dummy file named `D' -- because `-MD' means `put the output
3136 # Copy depcomp to subdir because otherwise we won't find it if we're
3137 # using a relative directory.
3138 cp "$am_depcomp" conftest.dir
3140 # We will build objects and dependencies in a subdirectory because
3141 # it helps to detect inapplicable dependency modes. For instance
3142 # both Tru64's cc and ICC support -MD to output dependencies as a
3143 # side effect of compilation, but ICC will put the dependencies in
3144 # the current directory while Tru64 will put them in the object
3148 am_cv_CC_dependencies_compiler_type=none
3149 if test "$am_compiler_list" = ""; then
3150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152 for depmode in $am_compiler_list; do
3153 # Setup a source with many dependencies, because some compilers
3154 # like to wrap large dependency lists on column 80 (with \), and
3155 # we should not choose a depcomp mode which is confused by this.
3157 # We need to recreate these files for each test, as the compiler may
3158 # overwrite some of them when testing with obscure command lines.
3159 # This happens at least with the AIX C compiler.
3161 for i in 1 2 3 4 5 6; do
3162 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3163 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3164 # Solaris 8's {/usr,}/bin/sh.
3165 touch sub/conftst$i.h
3167 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3171 # after this tag, mechanisms are not by side-effect, so they'll
3172 # only be used when explicitly requested
3173 if test "x$enable_dependency_tracking" = xyes; then
3181 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3182 # mode. It turns out that the SunPro C++ compiler does not properly
3183 # handle `-M -o', and we need to detect this.
3184 if depmode=$depmode \
3185 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3186 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3187 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3188 >/dev/null 2>conftest.err &&
3189 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3190 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3191 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3192 # icc doesn't choke on unknown options, it will just issue warnings
3193 # or remarks (even with -Werror). So we grep stderr for any message
3194 # that says an option was ignored or not supported.
3195 # When given -MP, icc 7.0 and 7.1 complain thusly:
3196 # icc: Command line warning: ignoring option '-M'; no argument required
3197 # The diagnosis changed in icc 8.0:
3198 # icc: Command line remark: option '-MP' not supported
3199 if (grep 'ignoring option' conftest.err ||
3200 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3201 am_cv_CC_dependencies_compiler_type=$depmode
3210 am_cv_CC_dependencies_compiler_type=none
3214 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3215 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3216 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3221 test "x$enable_dependency_tracking" != xno \
3222 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224 am__fastdepCC_FALSE='#'
3226 am__fastdepCC_TRUE='#'
3227 am__fastdepCC_FALSE=
3231 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3232 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3233 if test "${lt_cv_path_SED+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 # Loop through the user's path and test for sed and gsed.
3237 # Then use that list of sed's as ones to test for truncation.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir=.
3243 for lt_ac_prog in sed gsed; do
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3246 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3253 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3254 # along with /bin/sed that truncates output.
3255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3256 test ! -f $lt_ac_sed && continue
3257 cat /dev/null > conftest.in
3259 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3260 # Check for GNU sed and select it if it is found.
3261 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3262 lt_cv_path_SED=$lt_ac_sed
3266 cat conftest.in conftest.in >conftest.tmp
3267 mv conftest.tmp conftest.in
3268 cp conftest.in conftest.nl
3270 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3271 cmp -s conftest.out conftest.nl || break
3272 # 10000 chars as input seems more than enough
3273 test $lt_ac_count -gt 10 && break
3274 lt_ac_count=`expr $lt_ac_count + 1`
3275 if test $lt_ac_count -gt $lt_ac_max; then
3276 lt_ac_max=$lt_ac_count
3277 lt_cv_path_SED=$lt_ac_sed
3285 echo "$as_me:$LINENO: result: $SED" >&5
3286 echo "${ECHO_T}$SED" >&6
3288 echo "$as_me:$LINENO: checking for egrep" >&5
3289 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3290 if test "${ac_cv_prog_egrep+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3294 then ac_cv_prog_egrep='grep -E'
3295 else ac_cv_prog_egrep='egrep'
3298 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3299 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3300 EGREP=$ac_cv_prog_egrep
3304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3305 if test "${with_gnu_ld+set}" = set; then
3306 withval="$with_gnu_ld"
3307 test "$withval" = no || with_gnu_ld=yes
3312 if test "$GCC" = yes; then
3313 # Check if gcc -print-prog-name=ld gives a path.
3314 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3315 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3318 # gcc leaves a trailing carriage return which upsets mingw
3319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324 # Accept absolute paths.
3326 re_direlt='/[^/][^/]*/\.\./'
3327 # Canonicalize the pathname of ld
3328 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3330 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3332 test -z "$LD" && LD="$ac_prog"
3335 # If it fails, then pretend we aren't using GCC.
3339 # If it is relative, then search for the first ld in PATH.
3343 elif test "$with_gnu_ld" = yes; then
3344 echo "$as_me:$LINENO: checking for GNU ld" >&5
3345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3350 if test "${lt_cv_path_LD+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 if test -z "$LD"; then
3354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3355 for ac_dir in $PATH; do
3357 test -z "$ac_dir" && ac_dir=.
3358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3359 lt_cv_path_LD="$ac_dir/$ac_prog"
3360 # Check to see if the program is GNU ld. I'd rather use --version,
3361 # but apparently some GNU ld's only accept -v.
3362 # Break only if it was the GNU/non-GNU ld that we prefer.
3363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3364 *GNU* | *'with BFD'*)
3365 test "$with_gnu_ld" != no && break
3368 test "$with_gnu_ld" != yes && break
3375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3380 if test -n "$LD"; then
3381 echo "$as_me:$LINENO: result: $LD" >&5
3382 echo "${ECHO_T}$LD" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389 { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396 case `$LD -v 2>&1 </dev/null` in
3397 *GNU* | *'with BFD'*)
3398 lt_cv_prog_gnu_ld=yes
3401 lt_cv_prog_gnu_ld=no
3405 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3406 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3407 with_gnu_ld=$lt_cv_prog_gnu_ld
3410 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3411 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3412 if test "${lt_cv_ld_reload_flag+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 lt_cv_ld_reload_flag='-r'
3417 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3418 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3419 reload_flag=$lt_cv_ld_reload_flag
3420 case $reload_flag in
3422 *) reload_flag=" $reload_flag" ;;
3424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3427 if test "$GCC" = yes; then
3428 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3435 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3436 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3437 if test "${lt_cv_path_NM+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 if test -n "$NM"; then
3441 # Let the user override the test.
3444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3445 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3447 test -z "$ac_dir" && ac_dir=.
3448 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3450 # Check to see if the nm accepts a BSD-compat flag.
3451 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3452 # nm: unknown option "B" ignored
3453 # Tru64's nm complains that /dev/null is an invalid object file
3454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3455 */dev/null* | *'Invalid file or object type'*)
3456 lt_cv_path_NM="$tmp_nm -B"
3460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3462 lt_cv_path_NM="$tmp_nm -p"
3466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3467 continue # so that we can try to find one that supports BSD flags
3474 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3477 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3478 echo "${ECHO_T}$lt_cv_path_NM" >&6
3481 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3482 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3484 if test "$LN_S" = "ln -s"; then
3485 echo "$as_me:$LINENO: result: yes" >&5
3486 echo "${ECHO_T}yes" >&6
3488 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3489 echo "${ECHO_T}no, using $LN_S" >&6
3492 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3493 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3494 if test "${lt_cv_deplibs_check_method+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 lt_cv_file_magic_cmd='$MAGIC_CMD'
3498 lt_cv_file_magic_test_file=
3499 lt_cv_deplibs_check_method='unknown'
3500 # Need to set the preceding variable on all platforms that support
3501 # interlibrary dependencies.
3502 # 'none' -- dependencies not supported.
3503 # `unknown' -- same as none, but documents that we really don't know.
3504 # 'pass_all' -- all dependencies passed with no checks.
3505 # 'test_compile' -- check by making test program.
3506 # 'file_magic [[regex]]' -- check by looking for files in library path
3507 # which responds to the $file_magic_cmd with a given extended regex.
3508 # If you have `file' or equivalent on your system and you're not sure
3509 # whether `pass_all' will *always* work, you probably want this one.
3513 lt_cv_deplibs_check_method=pass_all
3517 lt_cv_deplibs_check_method=pass_all
3521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3522 lt_cv_file_magic_cmd='/usr/bin/file -L'
3523 lt_cv_file_magic_test_file=/shlib/libc.so
3527 # func_win32_libid is a shell function defined in ltmain.sh
3528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3529 lt_cv_file_magic_cmd='func_win32_libid'
3533 # Base MSYS/MinGW do not provide the 'file' command needed by
3534 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3535 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3536 lt_cv_file_magic_cmd='$OBJDUMP -f'
3539 darwin* | rhapsody*)
3540 lt_cv_deplibs_check_method=pass_all
3543 freebsd* | kfreebsd*-gnu | dragonfly*)
3544 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3547 # Not sure whether the presence of OpenBSD here was a mistake.
3548 # Let's accept both of them until this is cleared up.
3549 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3550 lt_cv_file_magic_cmd=/usr/bin/file
3551 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3555 lt_cv_deplibs_check_method=pass_all
3560 lt_cv_deplibs_check_method=pass_all
3563 hpux10.20* | hpux11*)
3564 lt_cv_file_magic_cmd=/usr/bin/file
3567 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3568 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3571 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3572 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3576 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3581 irix5* | irix6* | nonstopux*)
3583 *-32|*"-32 ") libmagic=32-bit;;
3584 *-n32|*"-n32 ") libmagic=N32;;
3585 *-64|*"-64 ") libmagic=64-bit;;
3586 *) libmagic=never-match;;
3588 lt_cv_deplibs_check_method=pass_all
3591 # This must be Linux ELF.
3593 lt_cv_deplibs_check_method=pass_all
3597 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3606 lt_cv_file_magic_cmd=/usr/bin/file
3607 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3611 lt_cv_deplibs_check_method=unknown
3615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3622 osf3* | osf4* | osf5*)
3623 lt_cv_deplibs_check_method=pass_all
3627 lt_cv_deplibs_check_method=pass_all
3631 lt_cv_deplibs_check_method=pass_all
3634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3635 case $host_vendor in
3637 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]'
3638 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3641 lt_cv_deplibs_check_method=pass_all
3644 lt_cv_file_magic_cmd='/bin/file'
3645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3648 lt_cv_file_magic_cmd='/bin/file'
3649 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3650 lt_cv_file_magic_test_file=/lib/libc.so
3653 lt_cv_deplibs_check_method=pass_all
3658 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3659 lt_cv_deplibs_check_method=pass_all
3664 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3665 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3666 file_magic_cmd=$lt_cv_file_magic_cmd
3667 deplibs_check_method=$lt_cv_deplibs_check_method
3668 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3672 # If no C compiler was specified, use CC.
3675 # Allow CC to be a program name with arguments.
3679 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3680 if test "${enable_libtool_lock+set}" = set; then
3681 enableval="$enable_libtool_lock"
3684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3686 # Some flags need to be propagated to the compiler or linker for good
3690 # Find out which ABI we are using.
3691 echo 'int i;' > conftest.$ac_ext
3692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693 (eval $ac_compile) 2>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; then
3697 case `/usr/bin/file conftest.$ac_objext` in
3709 # Find out which ABI we are using.
3710 echo '#line 3710 "configure"' > conftest.$ac_ext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; then
3716 if test "$lt_cv_prog_gnu_ld" = yes; then
3717 case `/usr/bin/file conftest.$ac_objext` in
3719 LD="${LD-ld} -melf32bsmip"
3722 LD="${LD-ld} -melf32bmipn32"
3725 LD="${LD-ld} -melf64bmip"
3729 case `/usr/bin/file conftest.$ac_objext` in
3745 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3746 # Find out which ABI we are using.
3747 echo 'int i;' > conftest.$ac_ext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; then
3753 case "`/usr/bin/file conftest.o`" in
3757 LD="${LD-ld} -m elf_i386"
3759 ppc64-*linux*|powerpc64-*linux*)
3760 LD="${LD-ld} -m elf32ppclinux"
3763 LD="${LD-ld} -m elf_s390"
3766 LD="${LD-ld} -m elf32_sparc"
3773 LD="${LD-ld} -m elf_x86_64"
3775 ppc*-*linux*|powerpc*-*linux*)
3776 LD="${LD-ld} -m elf64ppc"
3779 LD="${LD-ld} -m elf64_s390"
3782 LD="${LD-ld} -m elf64_sparc"
3792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3793 SAVE_CFLAGS="$CFLAGS"
3794 CFLAGS="$CFLAGS -belf"
3795 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3796 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3797 if test "${lt_cv_cc_needs_belf+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3821 rm -f conftest.$ac_objext conftest$ac_exeext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3823 (eval $ac_link) 2>conftest.er1
3825 grep -v '^ *+' conftest.er1 >conftest.err
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest$ac_exeext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 lt_cv_cc_needs_belf=yes
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 lt_cv_cc_needs_belf=no
3850 rm -f conftest.err conftest.$ac_objext \
3851 conftest$ac_exeext conftest.$ac_ext
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3860 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3861 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3862 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3863 CFLAGS="$SAVE_CFLAGS"
3869 need_locks="$enable_libtool_lock"
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3879 # On Suns, sometimes $CPP names a directory.
3880 if test -n "$CPP" && test -d "$CPP"; then
3883 if test -z "$CPP"; then
3884 if test "${ac_cv_prog_CPP+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 # Double quotes because CPP needs to be expanded
3888 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3891 for ac_c_preproc_warn_flag in '' yes
3893 # Use a header file that comes with gcc, so configuring glibc
3894 # with a fresh cross-compiler works.
3895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896 # <limits.h> exists even on freestanding compilers.
3897 # On the NeXT, cc -E runs the code through the compiler's parser,
3898 # not just through cpp. "Syntax error" is here to catch this case.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3906 # include <limits.h>
3908 # include <assert.h>
3912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } >/dev/null; then
3920 if test -s conftest.err; then
3921 ac_cpp_err=$ac_c_preproc_warn_flag
3922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3929 if test -z "$ac_cpp_err"; then
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 # Broken: fails on valid input.
3938 rm -f conftest.err conftest.$ac_ext
3940 # OK, works on sane cases. Now check whether non-existent headers
3941 # can be detected and how.
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 #include <ac_nonexistent.h>
3950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null; then
3958 if test -s conftest.err; then
3959 ac_cpp_err=$ac_c_preproc_warn_flag
3960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967 if test -z "$ac_cpp_err"; then
3968 # Broken: success on invalid input.
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3974 # Passes both tests.
3978 rm -f conftest.err conftest.$ac_ext
3981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982 rm -f conftest.err conftest.$ac_ext
3983 if $ac_preproc_ok; then
3995 echo "$as_me:$LINENO: result: $CPP" >&5
3996 echo "${ECHO_T}$CPP" >&6
3998 for ac_c_preproc_warn_flag in '' yes
4000 # Use a header file that comes with gcc, so configuring glibc
4001 # with a fresh cross-compiler works.
4002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4003 # <limits.h> exists even on freestanding compilers.
4004 # On the NeXT, cc -E runs the code through the compiler's parser,
4005 # not just through cpp. "Syntax error" is here to catch this case.
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4013 # include <limits.h>
4015 # include <assert.h>
4019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4022 grep -v '^ *+' conftest.er1 >conftest.err
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } >/dev/null; then
4027 if test -s conftest.err; then
4028 ac_cpp_err=$ac_c_preproc_warn_flag
4029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4036 if test -z "$ac_cpp_err"; then
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 # Broken: fails on valid input.
4045 rm -f conftest.err conftest.$ac_ext
4047 # OK, works on sane cases. Now check whether non-existent headers
4048 # can be detected and how.
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <ac_nonexistent.h>
4057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } >/dev/null; then
4065 if test -s conftest.err; then
4066 ac_cpp_err=$ac_c_preproc_warn_flag
4067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4074 if test -z "$ac_cpp_err"; then
4075 # Broken: success on invalid input.
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 # Passes both tests.
4085 rm -f conftest.err conftest.$ac_ext
4088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089 rm -f conftest.err conftest.$ac_ext
4090 if $ac_preproc_ok; then
4093 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4094 See \`config.log' for more details." >&5
4095 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4096 See \`config.log' for more details." >&2;}
4097 { (exit 1); exit 1; }; }
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4108 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4109 if test "${ac_cv_header_stdc+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4131 rm -f conftest.$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>conftest.er1
4135 grep -v '^ *+' conftest.er1 >conftest.err
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -z "$ac_c_werror_flag"
4141 || test ! -s conftest.err'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 ac_cv_header_stdc=yes
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 ac_cv_header_stdc=no
4160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162 if test $ac_cv_header_stdc = yes; then
4163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174 $EGREP "memchr" >/dev/null 2>&1; then
4177 ac_cv_header_stdc=no
4183 if test $ac_cv_header_stdc = yes; then
4184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195 $EGREP "free" >/dev/null 2>&1; then
4198 ac_cv_header_stdc=no
4204 if test $ac_cv_header_stdc = yes; then
4205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4206 if test "$cross_compiling" = yes; then
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4216 #if ((' ' & 0x0FF) == 0x020)
4217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4220 # define ISLOWER(c) \
4221 (('a' <= (c) && (c) <= 'i') \
4222 || ('j' <= (c) && (c) <= 'r') \
4223 || ('s' <= (c) && (c) <= 'z'))
4224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4232 for (i = 0; i < 256; i++)
4233 if (XOR (islower (i), ISLOWER (i))
4234 || toupper (i) != TOUPPER (i))
4239 rm -f conftest$ac_exeext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241 (eval $ac_link) 2>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4252 echo "$as_me: program exited with status $ac_status" >&5
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4257 ac_cv_header_stdc=no
4259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4264 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4265 if test $ac_cv_header_stdc = yes; then
4267 cat >>confdefs.h <<\_ACEOF
4268 #define STDC_HEADERS 1
4273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284 inttypes.h stdint.h unistd.h
4286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 echo "$as_me:$LINENO: checking for $ac_header" >&5
4288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4300 #include <$ac_header>
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 eval "$as_ac_Header=no"
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4336 cat >>confdefs.h <<_ACEOF
4337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4346 for ac_header in dlfcn.h
4348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4350 echo "$as_me:$LINENO: checking for $ac_header" >&5
4351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4358 # Is the header compilable?
4359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 $ac_includes_default
4368 #include <$ac_header>
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_header_compiler=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 ac_header_compiler=no
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4401 echo "${ECHO_T}$ac_header_compiler" >&6
4403 # Is the header present?
4404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <$ac_header>
4414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } >/dev/null; then
4422 if test -s conftest.err; then
4423 ac_cpp_err=$ac_c_preproc_warn_flag
4424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4431 if test -z "$ac_cpp_err"; then
4432 ac_header_preproc=yes
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ac_header_preproc=no
4439 rm -f conftest.err conftest.$ac_ext
4440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4441 echo "${ECHO_T}$ac_header_preproc" >&6
4443 # So? What about this header?
4444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4450 ac_header_preproc=yes
4453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4467 ## ------------------------------------------ ##
4468 ## Report this to the AC_PACKAGE_NAME lists. ##
4469 ## ------------------------------------------ ##
4472 sed "s/^/$as_me: WARNING: /" >&2
4475 echo "$as_me:$LINENO: checking for $ac_header" >&5
4476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 eval "$as_ac_Header=\$ac_header_preproc"
4482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4487 cat >>confdefs.h <<_ACEOF
4488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4496 ac_cpp='$CXXCPP $CPPFLAGS'
4497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4500 if test -n "$ac_tool_prefix"; then
4501 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4505 echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507 if test "${ac_cv_prog_CXX+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 if test -n "$CXX"; then
4511 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 if test -n "$CXX"; then
4531 echo "$as_me:$LINENO: result: $CXX" >&5
4532 echo "${ECHO_T}$CXX" >&6
4534 echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4538 test -n "$CXX" && break
4541 if test -z "$CXX"; then
4543 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test -n "$ac_ct_CXX"; then
4553 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_ac_ct_CXX="$ac_prog"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4572 if test -n "$ac_ct_CXX"; then
4573 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4574 echo "${ECHO_T}$ac_ct_CXX" >&6
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4580 test -n "$ac_ct_CXX" && break
4582 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4588 # Provide some information about the compiler.
4589 echo "$as_me:$LINENO:" \
4590 "checking for C++ compiler version" >&5
4591 ac_compiler=`set X $ac_compile; echo $2`
4592 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4593 (eval $ac_compiler --version </dev/null >&5) 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }
4597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4598 (eval $ac_compiler -v </dev/null >&5) 2>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }
4602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4603 (eval $ac_compiler -V </dev/null >&5) 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }
4608 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4609 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4610 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 cat >conftest.$ac_ext <<_ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4635 grep -v '^ *+' conftest.er1 >conftest.err
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -z "$ac_cxx_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4664 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4665 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4666 GXX=`test $ac_compiler_gnu = yes && echo yes`
4667 ac_test_CXXFLAGS=${CXXFLAGS+set}
4668 ac_save_CXXFLAGS=$CXXFLAGS
4670 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4671 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4672 if test "${ac_cv_prog_cxx_g+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>conftest.er1
4694 grep -v '^ *+' conftest.er1 >conftest.err
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_cxx_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest.$ac_objext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_prog_cxx_g=yes
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4722 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4723 if test "$ac_test_CXXFLAGS" = set; then
4724 CXXFLAGS=$ac_save_CXXFLAGS
4725 elif test $ac_cv_prog_cxx_g = yes; then
4726 if test "$GXX" = yes; then
4732 if test "$GXX" = yes; then
4738 for ac_declaration in \
4740 'extern "C" void std::exit (int) throw (); using std::exit;' \
4741 'extern "C" void std::exit (int); using std::exit;' \
4742 'extern "C" void exit (int) throw ();' \
4743 'extern "C" void exit (int);' \
4746 cat >conftest.$ac_ext <<_ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4762 rm -f conftest.$ac_objext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764 (eval $ac_compile) 2>conftest.er1
4766 grep -v '^ *+' conftest.er1 >conftest.err
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -z "$ac_cxx_werror_flag"
4772 || test ! -s conftest.err'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_cxx_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838 if test -n "$ac_declaration"; then
4839 echo '#ifdef __cplusplus' >>confdefs.h
4840 echo $ac_declaration >>confdefs.h
4841 echo '#endif' >>confdefs.h
4845 ac_cpp='$CXXCPP $CPPFLAGS'
4846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4850 depcc="$CXX" am_compiler_list=
4852 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4853 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4854 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4858 # We make a subdir and do the tests there. Otherwise we can end up
4859 # making bogus files that we don't know about and never remove. For
4860 # instance it was reported that on HP-UX the gcc test will end up
4861 # making a dummy file named `D' -- because `-MD' means `put the output
4864 # Copy depcomp to subdir because otherwise we won't find it if we're
4865 # using a relative directory.
4866 cp "$am_depcomp" conftest.dir
4868 # We will build objects and dependencies in a subdirectory because
4869 # it helps to detect inapplicable dependency modes. For instance
4870 # both Tru64's cc and ICC support -MD to output dependencies as a
4871 # side effect of compilation, but ICC will put the dependencies in
4872 # the current directory while Tru64 will put them in the object
4876 am_cv_CXX_dependencies_compiler_type=none
4877 if test "$am_compiler_list" = ""; then
4878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4880 for depmode in $am_compiler_list; do
4881 # Setup a source with many dependencies, because some compilers
4882 # like to wrap large dependency lists on column 80 (with \), and
4883 # we should not choose a depcomp mode which is confused by this.
4885 # We need to recreate these files for each test, as the compiler may
4886 # overwrite some of them when testing with obscure command lines.
4887 # This happens at least with the AIX C compiler.
4889 for i in 1 2 3 4 5 6; do
4890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4892 # Solaris 8's {/usr,}/bin/sh.
4893 touch sub/conftst$i.h
4895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4899 # after this tag, mechanisms are not by side-effect, so they'll
4900 # only be used when explicitly requested
4901 if test "x$enable_dependency_tracking" = xyes; then
4909 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4910 # mode. It turns out that the SunPro C++ compiler does not properly
4911 # handle `-M -o', and we need to detect this.
4912 if depmode=$depmode \
4913 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4915 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4916 >/dev/null 2>conftest.err &&
4917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4918 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4920 # icc doesn't choke on unknown options, it will just issue warnings
4921 # or remarks (even with -Werror). So we grep stderr for any message
4922 # that says an option was ignored or not supported.
4923 # When given -MP, icc 7.0 and 7.1 complain thusly:
4924 # icc: Command line warning: ignoring option '-M'; no argument required
4925 # The diagnosis changed in icc 8.0:
4926 # icc: Command line remark: option '-MP' not supported
4927 if (grep 'ignoring option' conftest.err ||
4928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4929 am_cv_CXX_dependencies_compiler_type=$depmode
4938 am_cv_CXX_dependencies_compiler_type=none
4942 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4943 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4944 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4949 test "x$enable_dependency_tracking" != xno \
4950 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4951 am__fastdepCXX_TRUE=
4952 am__fastdepCXX_FALSE='#'
4954 am__fastdepCXX_TRUE='#'
4955 am__fastdepCXX_FALSE=
4961 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4962 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4963 (test "X$CXX" != "Xg++"))) ; then
4965 ac_cpp='$CXXCPP $CPPFLAGS'
4966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4969 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4970 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4971 if test -z "$CXXCPP"; then
4972 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 # Double quotes because CXXCPP needs to be expanded
4976 for CXXCPP in "$CXX -E" "/lib/cpp"
4979 for ac_cxx_preproc_warn_flag in '' yes
4981 # Use a header file that comes with gcc, so configuring glibc
4982 # with a fresh cross-compiler works.
4983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4984 # <limits.h> exists even on freestanding compilers.
4985 # On the NeXT, cc -E runs the code through the compiler's parser,
4986 # not just through cpp. "Syntax error" is here to catch this case.
4987 cat >conftest.$ac_ext <<_ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4994 # include <limits.h>
4996 # include <assert.h>
5000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5003 grep -v '^ *+' conftest.er1 >conftest.err
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } >/dev/null; then
5008 if test -s conftest.err; then
5009 ac_cpp_err=$ac_cxx_preproc_warn_flag
5010 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5017 if test -z "$ac_cpp_err"; then
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 # Broken: fails on valid input.
5026 rm -f conftest.err conftest.$ac_ext
5028 # OK, works on sane cases. Now check whether non-existent headers
5029 # can be detected and how.
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 #include <ac_nonexistent.h>
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5041 grep -v '^ *+' conftest.er1 >conftest.err
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } >/dev/null; then
5046 if test -s conftest.err; then
5047 ac_cpp_err=$ac_cxx_preproc_warn_flag
5048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5055 if test -z "$ac_cpp_err"; then
5056 # Broken: success on invalid input.
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5062 # Passes both tests.
5066 rm -f conftest.err conftest.$ac_ext
5069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5070 rm -f conftest.err conftest.$ac_ext
5071 if $ac_preproc_ok; then
5076 ac_cv_prog_CXXCPP=$CXXCPP
5079 CXXCPP=$ac_cv_prog_CXXCPP
5081 ac_cv_prog_CXXCPP=$CXXCPP
5083 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5084 echo "${ECHO_T}$CXXCPP" >&6
5086 for ac_cxx_preproc_warn_flag in '' yes
5088 # Use a header file that comes with gcc, so configuring glibc
5089 # with a fresh cross-compiler works.
5090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5091 # <limits.h> exists even on freestanding compilers.
5092 # On the NeXT, cc -E runs the code through the compiler's parser,
5093 # not just through cpp. "Syntax error" is here to catch this case.
5094 cat >conftest.$ac_ext <<_ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5101 # include <limits.h>
5103 # include <assert.h>
5107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5110 grep -v '^ *+' conftest.er1 >conftest.err
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null; then
5115 if test -s conftest.err; then
5116 ac_cpp_err=$ac_cxx_preproc_warn_flag
5117 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5124 if test -z "$ac_cpp_err"; then
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 # Broken: fails on valid input.
5133 rm -f conftest.err conftest.$ac_ext
5135 # OK, works on sane cases. Now check whether non-existent headers
5136 # can be detected and how.
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include <ac_nonexistent.h>
5145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } >/dev/null; then
5153 if test -s conftest.err; then
5154 ac_cpp_err=$ac_cxx_preproc_warn_flag
5155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5162 if test -z "$ac_cpp_err"; then
5163 # Broken: success on invalid input.
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5169 # Passes both tests.
5173 rm -f conftest.err conftest.$ac_ext
5176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5177 rm -f conftest.err conftest.$ac_ext
5178 if $ac_preproc_ok; then
5181 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5182 See \`config.log' for more details." >&5
5183 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5184 See \`config.log' for more details." >&2;}
5185 { (exit 1); exit 1; }; }
5189 ac_cpp='$CXXCPP $CPPFLAGS'
5190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5198 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5199 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5201 if test -n "$ac_tool_prefix"; then
5202 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_F77+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$F77"; then
5212 ac_cv_prog_F77="$F77" # Let the user override the test.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 if test -n "$F77"; then
5232 echo "$as_me:$LINENO: result: $F77" >&5
5233 echo "${ECHO_T}$F77" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239 test -n "$F77" && break
5242 if test -z "$F77"; then
5244 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5246 # Extract the first word of "$ac_prog", so it can be a program name with args.
5247 set dummy $ac_prog; ac_word=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 if test -n "$ac_ct_F77"; then
5254 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_F77="$ac_prog"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5273 if test -n "$ac_ct_F77"; then
5274 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5275 echo "${ECHO_T}$ac_ct_F77" >&6
5277 echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5281 test -n "$ac_ct_F77" && break
5288 # Provide some information about the compiler.
5289 echo "$as_me:5289:" \
5290 "checking for Fortran 77 compiler version" >&5
5291 ac_compiler=`set X $ac_compile; echo $2`
5292 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5293 (eval $ac_compiler --version </dev/null >&5) 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }
5297 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5298 (eval $ac_compiler -v </dev/null >&5) 2>&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }
5302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5303 (eval $ac_compiler -V </dev/null >&5) 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }
5309 # If we don't use `.F' as extension, the preprocessor is not run on the
5310 # input file. (Note that this only needs to work for GNU compilers.)
5313 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5314 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5315 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>conftest.er1
5330 grep -v '^ *+' conftest.er1 >conftest.err
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -z "$ac_f77_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5359 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5360 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5362 ac_test_FFLAGS=${FFLAGS+set}
5363 ac_save_FFLAGS=$FFLAGS
5365 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5366 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5367 if test "${ac_cv_prog_f77_g+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 cat >conftest.$ac_ext <<_ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_f77_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest.$ac_objext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_cv_prog_f77_g=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5408 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5409 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5410 if test "$ac_test_FFLAGS" = set; then
5411 FFLAGS=$ac_save_FFLAGS
5412 elif test $ac_cv_prog_f77_g = yes; then
5413 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5419 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5426 G77=`test $ac_compiler_gnu = yes && echo yes`
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5437 # find the maximum length of command line arguments
5438 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5439 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5440 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 # On DJGPP, this test can blow up pretty badly due to problems in libc
5449 # (any single argument exceeding 2000 bytes causes a buffer overrun
5450 # during glob expansion). Even if it were fixed, the result of this
5451 # check would be larger than it should be.
5452 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5456 # Under GNU Hurd, this test is not required because there is
5457 # no limit to the length of command line arguments.
5458 # Libtool will interpret -1 as no limit whatsoever
5459 lt_cv_sys_max_cmd_len=-1;
5463 # On Win9x/ME, this test blows up -- it succeeds, but takes
5464 # about 5 minutes as the teststring grows exponentially.
5465 # Worse, since 9x/ME are not pre-emptively multitasking,
5466 # you end up with a "frozen" computer, even though with patience
5467 # the test eventually succeeds (with a max line length of 256k).
5468 # Instead, let's just punt: use the minimum linelength reported by
5469 # all of the supported platforms: 8192 (on NT/2K/XP).
5470 lt_cv_sys_max_cmd_len=8192;
5474 # On AmigaOS with pdksh, this test takes hours, literally.
5475 # So we just punt and use a minimum line length of 8192.
5476 lt_cv_sys_max_cmd_len=8192;
5479 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5480 # This has been around since 386BSD, at least. Likely further.
5481 if test -x /sbin/sysctl; then
5482 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5483 elif test -x /usr/sbin/sysctl; then
5484 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5486 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5488 # And add a safety zone
5489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5493 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5494 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5495 # nice to cause kernel panics so lets avoid the loop below.
5496 # First set a reasonable default.
5497 lt_cv_sys_max_cmd_len=16384
5499 if test -x /sbin/sysconfig; then
5500 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5501 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5506 # If test is not a shell built-in, we'll probably end up computing a
5507 # maximum length that is only half of the actual maximum length, but
5509 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5510 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5511 = "XX$teststring") >/dev/null 2>&1 &&
5512 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5513 lt_cv_sys_max_cmd_len=$new_result &&
5514 test $i != 17 # 1/2 MB should be enough
5517 teststring=$teststring$teststring
5520 # Add a significant safety factor because C++ compilers can tack on massive
5521 # amounts of additional arguments before passing them to the linker.
5522 # It appears as though 1/2 is a usable value.
5523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5529 if test -n $lt_cv_sys_max_cmd_len ; then
5530 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5531 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5533 echo "$as_me:$LINENO: result: none" >&5
5534 echo "${ECHO_T}none" >&6
5540 # Check for command to grab the raw symbol name followed by C symbol from nm.
5541 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5542 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5543 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 # These are sane defaults that work on at least a few old systems.
5548 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5550 # Character class describing NM global symbol codes.
5551 symcode='[BCDEGRST]'
5553 # Regexp to match symbols that can be accessed directly from C.
5554 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5556 # Transform an extracted symbol line into a proper C declaration
5557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5559 # Transform an extracted symbol line into symbol name and symbol address
5560 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5562 # Define system-specific variables.
5567 cygwin* | mingw* | pw32*)
5568 symcode='[ABCDGISTW]'
5570 hpux*) # Its linker distinguishes data from code symbols
5571 if test "$host_cpu" = ia64; then
5572 symcode='[ABCDEGRST]'
5574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5575 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5578 if test "$host_cpu" = ia64; then
5579 symcode='[ABCDGIRSTW]'
5580 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5585 symcode='[BCDEGRST]'
5588 symcode='[BCDEGQRST]'
5598 # Handle CRLF in mingw tool chain
5602 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5606 # If we're using GNU nm, then use its standard symbol codes.
5607 case `$NM -V 2>&1` in
5608 *GNU* | *'with BFD'*)
5609 symcode='[ABCDGIRSTW]' ;;
5612 # Try without a prefix undercore, then with it.
5613 for ac_symprfx in "" "_"; do
5615 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5616 symxfrm="\\1 $ac_symprfx\\2 \\2"
5618 # Write the raw and C identifiers.
5619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5621 # Check to see that the pipe works correctly.
5625 cat > conftest.$ac_ext <<EOF
5630 void nm_test_func(){}
5634 int main(){nm_test_var='a';nm_test_func();return(0);}
5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638 (eval $ac_compile) 2>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; then
5642 # Now try to grab the symbols.
5644 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5645 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && test -s "$nlist"; then
5649 # Try sorting and uniquifying the output.
5650 if sort "$nlist" | uniq > "$nlist"T; then
5651 mv -f "$nlist"T "$nlist"
5656 # Make sure that we snagged all the symbols we need.
5657 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5658 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5659 cat <<EOF > conftest.$ac_ext
5665 # Now generate the symbol file.
5666 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5668 cat <<EOF >> conftest.$ac_ext
5669 #if defined (__STDC__) && __STDC__
5670 # define lt_ptr_t void *
5672 # define lt_ptr_t char *
5676 /* The mapping between symbol names and symbols. */
5681 lt_preloaded_symbols[] =
5684 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5685 cat <<\EOF >> conftest.$ac_ext
5693 # Now try linking the two files.
5694 mv conftest.$ac_objext conftstm.$ac_objext
5695 lt_save_LIBS="$LIBS"
5696 lt_save_CFLAGS="$CFLAGS"
5697 LIBS="conftstm.$ac_objext"
5698 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5706 LIBS="$lt_save_LIBS"
5707 CFLAGS="$lt_save_CFLAGS"
5709 echo "cannot find nm_test_func in $nlist" >&5
5712 echo "cannot find nm_test_var in $nlist" >&5
5715 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5718 echo "$progname: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5721 rm -f conftest* conftst*
5723 # Do not use the global_symbol_pipe unless it works.
5724 if test "$pipe_works" = yes; then
5727 lt_cv_sys_global_symbol_pipe=
5733 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5734 lt_cv_sys_global_symbol_to_cdecl=
5736 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5737 echo "$as_me:$LINENO: result: failed" >&5
5738 echo "${ECHO_T}failed" >&6
5740 echo "$as_me:$LINENO: result: ok" >&5
5741 echo "${ECHO_T}ok" >&6
5744 echo "$as_me:$LINENO: checking for objdir" >&5
5745 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5746 if test "${lt_cv_objdir+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 rm -f .libs 2>/dev/null
5750 mkdir .libs 2>/dev/null
5751 if test -d .libs; then
5754 # MS-DOS does not allow filenames that begin with a dot.
5757 rmdir .libs 2>/dev/null
5759 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5760 echo "${ECHO_T}$lt_cv_objdir" >&6
5761 objdir=$lt_cv_objdir
5769 # AIX sometimes has problems with the GCC collect2 program. For some
5770 # reason, if we set the COLLECT_NAMES environment variable, the problems
5771 # vanish in a puff of smoke.
5772 if test "X${COLLECT_NAMES+set}" != Xset; then
5774 export COLLECT_NAMES
5779 # Sed substitution that helps us do robust quoting. It backslashifies
5780 # metacharacters that are still active within double-quoted strings.
5781 Xsed='sed -e 1s/^X//'
5782 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5784 # Same as above, but do not quote variable references.
5785 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5787 # Sed substitution to delay expansion of an escaped shell variable in a
5788 # double_quote_subst'ed string.
5789 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5791 # Sed substitution to avoid accidental globbing in evaled expressions
5792 no_glob_subst='s/\*/\\\*/g'
5798 default_ofile=libtool
5799 can_build_shared=yes
5801 # All known linkers require a `.a' archive for static linking (except M$VC,
5802 # which needs '.lib').
5804 ltmain="$ac_aux_dir/ltmain.sh"
5805 ofile="$default_ofile"
5806 with_gnu_ld="$lt_cv_prog_gnu_ld"
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ar; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_prog_AR+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test -n "$AR"; then
5817 ac_cv_prog_AR="$AR" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_AR="${ac_tool_prefix}ar"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 if test -n "$AR"; then
5837 echo "$as_me:$LINENO: result: $AR" >&5
5838 echo "${ECHO_T}$AR" >&6
5840 echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5845 if test -z "$ac_cv_prog_AR"; then
5847 # Extract the first word of "ar", so it can be a program name with args.
5848 set dummy ar; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$ac_ct_AR"; then
5855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_ac_ct_AR="ar"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5875 if test -n "$ac_ct_AR"; then
5876 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5877 echo "${ECHO_T}$ac_ct_AR" >&6
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5888 if test -n "$ac_tool_prefix"; then
5889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5891 echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893 if test "${ac_cv_prog_RANLIB+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 if test -n "$RANLIB"; then
5897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 RANLIB=$ac_cv_prog_RANLIB
5916 if test -n "$RANLIB"; then
5917 echo "$as_me:$LINENO: result: $RANLIB" >&5
5918 echo "${ECHO_T}$RANLIB" >&6
5920 echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6
5925 if test -z "$ac_cv_prog_RANLIB"; then
5926 ac_ct_RANLIB=$RANLIB
5927 # Extract the first word of "ranlib", so it can be a program name with args.
5928 set dummy ranlib; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 if test -n "$ac_ct_RANLIB"; then
5935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_ac_ct_RANLIB="ranlib"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5954 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5955 if test -n "$ac_ct_RANLIB"; then
5956 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5957 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5959 echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5963 RANLIB=$ac_ct_RANLIB
5965 RANLIB="$ac_cv_prog_RANLIB"
5968 if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}strip; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_prog_STRIP+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 if test -n "$STRIP"; then
5977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 STRIP=$ac_cv_prog_STRIP
5996 if test -n "$STRIP"; then
5997 echo "$as_me:$LINENO: result: $STRIP" >&5
5998 echo "${ECHO_T}$STRIP" >&6
6000 echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6
6005 if test -z "$ac_cv_prog_STRIP"; then
6007 # Extract the first word of "strip", so it can be a program name with args.
6008 set dummy strip; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 if test -n "$ac_ct_STRIP"; then
6015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_ac_ct_STRIP="strip"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6035 if test -n "$ac_ct_STRIP"; then
6036 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6037 echo "${ECHO_T}$ac_ct_STRIP" >&6
6039 echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6045 STRIP="$ac_cv_prog_STRIP"
6050 old_CFLAGS="$CFLAGS"
6052 # Set sane defaults for various variables
6053 test -z "$AR" && AR=ar
6054 test -z "$AR_FLAGS" && AR_FLAGS=cru
6055 test -z "$AS" && AS=as
6056 test -z "$CC" && CC=cc
6057 test -z "$LTCC" && LTCC=$CC
6058 test -z "$DLLTOOL" && DLLTOOL=dlltool
6059 test -z "$LD" && LD=ld
6060 test -z "$LN_S" && LN_S="ln -s"
6061 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6062 test -z "$NM" && NM=nm
6063 test -z "$SED" && SED=sed
6064 test -z "$OBJDUMP" && OBJDUMP=objdump
6065 test -z "$RANLIB" && RANLIB=:
6066 test -z "$STRIP" && STRIP=:
6067 test -z "$ac_objext" && ac_objext=o
6069 # Determine commands to create old-style static archives.
6070 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6071 old_postinstall_cmds='chmod 644 $oldlib'
6072 old_postuninstall_cmds=
6074 if test -n "$RANLIB"; then
6077 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6080 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6083 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6086 for cc_temp in $compiler""; do
6088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6097 # Only perform the check for file, if the check method requires it
6098 case $deplibs_check_method in
6100 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6101 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6102 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6103 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6111 lt_save_MAGIC_CMD="$MAGIC_CMD"
6112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6114 for ac_dir in $ac_dummy; do
6116 test -z "$ac_dir" && ac_dir=.
6117 if test -f $ac_dir/${ac_tool_prefix}file; then
6118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6119 if test -n "$file_magic_test_file"; then
6120 case $deplibs_check_method in
6122 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6125 $EGREP "$file_magic_regex" > /dev/null; then
6130 *** Warning: the command libtool uses to detect shared libraries,
6131 *** $file_magic_cmd, produces output that libtool cannot recognize.
6132 *** The result is that libtool may fail to recognize shared libraries
6133 *** as such. This will affect the creation of libtool libraries that
6134 *** depend on shared libraries, but programs linked with such libtool
6135 *** libraries will work regardless of this problem. Nevertheless, you
6136 *** may want to report the problem to your system manager and/or to
6137 *** bug-libtool@gnu.org
6147 MAGIC_CMD="$lt_save_MAGIC_CMD"
6152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6153 if test -n "$MAGIC_CMD"; then
6154 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6155 echo "${ECHO_T}$MAGIC_CMD" >&6
6157 echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6
6161 if test -z "$lt_cv_path_MAGIC_CMD"; then
6162 if test -n "$ac_tool_prefix"; then
6163 echo "$as_me:$LINENO: checking for file" >&5
6164 echo $ECHO_N "checking for file... $ECHO_C" >&6
6165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6173 lt_save_MAGIC_CMD="$MAGIC_CMD"
6174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176 for ac_dir in $ac_dummy; do
6178 test -z "$ac_dir" && ac_dir=.
6179 if test -f $ac_dir/file; then
6180 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6181 if test -n "$file_magic_test_file"; then
6182 case $deplibs_check_method in
6184 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187 $EGREP "$file_magic_regex" > /dev/null; then
6192 *** Warning: the command libtool uses to detect shared libraries,
6193 *** $file_magic_cmd, produces output that libtool cannot recognize.
6194 *** The result is that libtool may fail to recognize shared libraries
6195 *** as such. This will affect the creation of libtool libraries that
6196 *** depend on shared libraries, but programs linked with such libtool
6197 *** libraries will work regardless of this problem. Nevertheless, you
6198 *** may want to report the problem to your system manager and/or to
6199 *** bug-libtool@gnu.org
6209 MAGIC_CMD="$lt_save_MAGIC_CMD"
6214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215 if test -n "$MAGIC_CMD"; then
6216 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217 echo "${ECHO_T}$MAGIC_CMD" >&6
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6235 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6236 if test "${enable_libtool_lock+set}" = set; then
6237 enableval="$enable_libtool_lock"
6240 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6243 # Check whether --with-pic or --without-pic was given.
6244 if test "${with_pic+set}" = set; then
6250 test -z "$pic_mode" && pic_mode=default
6252 # Use C for the default configuration in the libtool script
6256 ac_cpp='$CPP $CPPFLAGS'
6257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262 # Source file extension for C test sources.
6265 # Object file extension for compiled C test sources.
6269 # Code to be used in simple compile tests
6270 lt_simple_compile_test_code="int some_variable = 0;\n"
6272 # Code to be used in simple link tests
6273 lt_simple_link_test_code='int main(){return(0);}\n'
6276 # If no C compiler was specified, use CC.
6279 # Allow CC to be a program name with arguments.
6283 # save warnings/boilerplate of simple test code
6284 ac_outfile=conftest.$ac_objext
6285 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6286 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6287 _lt_compiler_boilerplate=`cat conftest.err`
6290 ac_outfile=conftest.$ac_objext
6291 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6293 _lt_linker_boilerplate=`cat conftest.err`
6298 # Check for any special shared library compilation flags.
6301 if test "$GCC" = no; then
6304 lt_prog_cc_shlib='-belf'
6308 if test -n "$lt_prog_cc_shlib"; then
6309 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6310 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6311 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6313 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6314 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6315 lt_cv_prog_cc_can_build_shared=no
6321 # Check to make sure the static flag actually works.
6323 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6324 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6325 if test "${lt_prog_compiler_static_works+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 lt_prog_compiler_static_works=no
6329 save_LDFLAGS="$LDFLAGS"
6330 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6331 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6333 # The compiler can only warn and ignore the option if not recognized
6334 # So say no if there are warnings
6335 if test -s conftest.err; then
6336 # Append any errors to the config.log.
6337 cat conftest.err 1>&5
6338 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6339 $SED '/^$/d' conftest.err >conftest.er2
6340 if diff conftest.exp conftest.er2 >/dev/null; then
6341 lt_prog_compiler_static_works=yes
6344 lt_prog_compiler_static_works=yes
6348 LDFLAGS="$save_LDFLAGS"
6351 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6352 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6354 if test x"$lt_prog_compiler_static_works" = xyes; then
6357 lt_prog_compiler_static=
6363 lt_prog_compiler_no_builtin_flag=
6365 if test "$GCC" = yes; then
6366 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6369 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6370 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6371 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 lt_cv_prog_compiler_rtti_exceptions=no
6375 ac_outfile=conftest.$ac_objext
6376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6377 lt_compiler_flag="-fno-rtti -fno-exceptions"
6378 # Insert the option either (1) after the last *FLAGS variable, or
6379 # (2) before a word containing "conftest.", or (3) at the end.
6380 # Note that $ac_compile itself does not contain backslashes and begins
6381 # with a dollar sign (not a hyphen), so the echo should work correctly.
6382 # The option is referenced via a variable to avoid confusing sed.
6383 lt_compile=`echo "$ac_compile" | $SED \
6384 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6386 -e 's:$: $lt_compiler_flag:'`
6387 (eval echo "\"\$as_me:6387: $lt_compile\"" >&5)
6388 (eval "$lt_compile" 2>conftest.err)
6390 cat conftest.err >&5
6391 echo "$as_me:6391: \$? = $ac_status" >&5
6392 if (exit $ac_status) && test -s "$ac_outfile"; then
6393 # The compiler can only warn and ignore the option if not recognized
6394 # So say no if there are warnings other than the usual output.
6395 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6396 $SED '/^$/d' conftest.err >conftest.er2
6397 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6398 lt_cv_prog_compiler_rtti_exceptions=yes
6404 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6405 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6407 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6408 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6415 lt_prog_compiler_wl=
6416 lt_prog_compiler_pic=
6417 lt_prog_compiler_static=
6419 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6420 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6422 if test "$GCC" = yes; then
6423 lt_prog_compiler_wl='-Wl,'
6424 lt_prog_compiler_static='-static'
6428 # All AIX code is PIC.
6429 if test "$host_cpu" = ia64; then
6430 # AIX 5 now supports IA64 processor
6431 lt_prog_compiler_static='-Bstatic'
6436 # FIXME: we need at least 68020 code to build shared libraries, but
6437 # adding the `-m68020' flag to GCC prevents building anything better,
6439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6442 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6443 # PIC is the default for these OSes.
6446 mingw* | pw32* | os2*)
6447 # This hack is so that the source file can tell whether it is being
6448 # built for inclusion in a dll (and should export symbols for example).
6449 lt_prog_compiler_pic='-DDLL_EXPORT'
6452 darwin* | rhapsody*)
6453 # PIC is the default on this platform
6454 # Common symbols not allowed in MH_DYLIB files
6455 lt_prog_compiler_pic='-fno-common'
6459 # Just because we use GCC doesn't mean we suddenly get shared libraries
6460 # on systems that don't support them.
6461 lt_prog_compiler_can_build_shared=no
6466 if test -d /usr/nec; then
6467 lt_prog_compiler_pic=-Kconform_pic
6472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6479 lt_prog_compiler_pic='-fPIC'
6485 lt_prog_compiler_pic='-fPIC'
6489 # PORTME Check for flag to pass linker flags through the system compiler.
6492 lt_prog_compiler_wl='-Wl,'
6493 if test "$host_cpu" = ia64; then
6494 # AIX 5 now supports IA64 processor
6495 lt_prog_compiler_static='-Bstatic'
6497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6501 # PIC is the default on this platform
6502 # Common symbols not allowed in MH_DYLIB files
6503 case $cc_basename in
6505 lt_prog_compiler_pic='-qnocommon'
6506 lt_prog_compiler_wl='-Wl,'
6511 mingw* | pw32* | os2*)
6512 # This hack is so that the source file can tell whether it is being
6513 # built for inclusion in a dll (and should export symbols for example).
6514 lt_prog_compiler_pic='-DDLL_EXPORT'
6517 hpux9* | hpux10* | hpux11*)
6518 lt_prog_compiler_wl='-Wl,'
6519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6526 lt_prog_compiler_pic='+Z'
6529 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6530 lt_prog_compiler_static='${wl}-a ${wl}archive'
6533 irix5* | irix6* | nonstopux*)
6534 lt_prog_compiler_wl='-Wl,'
6535 # PIC (with -KPIC) is the default.
6536 lt_prog_compiler_static='-non_shared'
6540 lt_prog_compiler_pic='-KPIC'
6541 lt_prog_compiler_static='-Bstatic'
6545 case $cc_basename in
6547 lt_prog_compiler_wl='-Wl,'
6548 lt_prog_compiler_pic='-KPIC'
6549 lt_prog_compiler_static='-static'
6551 pgcc* | pgf77* | pgf90*)
6552 # Portland Group compilers (*not* the Pentium gcc compiler,
6553 # which looks to be a dead project)
6554 lt_prog_compiler_wl='-Wl,'
6555 lt_prog_compiler_pic='-fpic'
6556 lt_prog_compiler_static='-static'
6559 lt_prog_compiler_wl='-Wl,'
6560 # All Alpha code is PIC.
6561 lt_prog_compiler_static='-non_shared'
6566 osf3* | osf4* | osf5*)
6567 lt_prog_compiler_wl='-Wl,'
6568 # All OSF/1 code is PIC.
6569 lt_prog_compiler_static='-non_shared'
6573 lt_prog_compiler_pic='-Kpic'
6574 lt_prog_compiler_static='-dn'
6578 lt_prog_compiler_pic='-KPIC'
6579 lt_prog_compiler_static='-Bstatic'
6580 case $cc_basename in
6582 lt_prog_compiler_wl='-Qoption ld ';;
6584 lt_prog_compiler_wl='-Wl,';;
6589 lt_prog_compiler_wl='-Qoption ld '
6590 lt_prog_compiler_pic='-PIC'
6591 lt_prog_compiler_static='-Bstatic'
6594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6595 lt_prog_compiler_wl='-Wl,'
6596 lt_prog_compiler_pic='-KPIC'
6597 lt_prog_compiler_static='-Bstatic'
6601 if test -d /usr/nec ;then
6602 lt_prog_compiler_pic='-Kconform_pic'
6603 lt_prog_compiler_static='-Bstatic'
6608 lt_prog_compiler_wl='-Wl,'
6609 lt_prog_compiler_can_build_shared=no
6613 lt_prog_compiler_pic='-pic'
6614 lt_prog_compiler_static='-Bstatic'
6618 lt_prog_compiler_can_build_shared=no
6623 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6624 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6627 # Check to make sure the PIC flag actually works.
6629 if test -n "$lt_prog_compiler_pic"; then
6631 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6632 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6633 if test "${lt_prog_compiler_pic_works+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 lt_prog_compiler_pic_works=no
6637 ac_outfile=conftest.$ac_objext
6638 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6639 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6640 # Insert the option either (1) after the last *FLAGS variable, or
6641 # (2) before a word containing "conftest.", or (3) at the end.
6642 # Note that $ac_compile itself does not contain backslashes and begins
6643 # with a dollar sign (not a hyphen), so the echo should work correctly.
6644 # The option is referenced via a variable to avoid confusing sed.
6645 lt_compile=`echo "$ac_compile" | $SED \
6646 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6648 -e 's:$: $lt_compiler_flag:'`
6649 (eval echo "\"\$as_me:6649: $lt_compile\"" >&5)
6650 (eval "$lt_compile" 2>conftest.err)
6652 cat conftest.err >&5
6653 echo "$as_me:6653: \$? = $ac_status" >&5
6654 if (exit $ac_status) && test -s "$ac_outfile"; then
6655 # The compiler can only warn and ignore the option if not recognized
6656 # So say no if there are warnings other than the usual output.
6657 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6658 $SED '/^$/d' conftest.err >conftest.er2
6659 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6660 lt_prog_compiler_pic_works=yes
6666 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6667 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6669 if test x"$lt_prog_compiler_pic_works" = xyes; then
6670 case $lt_prog_compiler_pic in
6672 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6675 lt_prog_compiler_pic=
6676 lt_prog_compiler_can_build_shared=no
6681 # For platforms which do not support PIC, -DPIC is meaningless:
6683 lt_prog_compiler_pic=
6686 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6690 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6692 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 lt_cv_prog_compiler_c_o=no
6696 $rm -r conftest 2>/dev/null
6700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6702 lt_compiler_flag="-o out/conftest2.$ac_objext"
6703 # Insert the option either (1) after the last *FLAGS variable, or
6704 # (2) before a word containing "conftest.", or (3) at the end.
6705 # Note that $ac_compile itself does not contain backslashes and begins
6706 # with a dollar sign (not a hyphen), so the echo should work correctly.
6707 lt_compile=`echo "$ac_compile" | $SED \
6708 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6710 -e 's:$: $lt_compiler_flag:'`
6711 (eval echo "\"\$as_me:6711: $lt_compile\"" >&5)
6712 (eval "$lt_compile" 2>out/conftest.err)
6714 cat out/conftest.err >&5
6715 echo "$as_me:6715: \$? = $ac_status" >&5
6716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6718 # The compiler can only warn and ignore the option if not recognized
6719 # So say no if there are warnings
6720 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6721 $SED '/^$/d' out/conftest.err >out/conftest.er2
6722 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6723 lt_cv_prog_compiler_c_o=yes
6728 # SGI C++ compiler will create directory out/ii_files/ for
6729 # template instantiation
6730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6731 $rm out/* && rmdir out
6737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6741 hard_links="nottested"
6742 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6743 # do not overwrite the value of need_locks provided by the user
6744 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6750 ln conftest.a conftest.b 2>&5 || hard_links=no
6751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6752 echo "$as_me:$LINENO: result: $hard_links" >&5
6753 echo "${ECHO_T}$hard_links" >&6
6754 if test "$hard_links" = no; then
6755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6763 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6767 allow_undefined_flag=
6768 enable_shared_with_static_runtimes=no
6770 archive_expsym_cmds=
6771 old_archive_From_new_cmds=
6772 old_archive_from_expsyms_cmds=
6773 export_dynamic_flag_spec=
6774 whole_archive_flag_spec=
6775 thread_safe_flag_spec=
6776 hardcode_libdir_flag_spec=
6777 hardcode_libdir_flag_spec_ld=
6778 hardcode_libdir_separator=
6781 hardcode_shlibpath_var=unsupported
6782 link_all_deplibs=unknown
6783 hardcode_automatic=no
6786 always_export_symbols=no
6787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6788 # include_expsyms should be a list of space-separated symbols to be *always*
6789 # included in the symbol list
6791 # exclude_expsyms can be an extended regexp of symbols to exclude
6792 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6794 # as well as any symbol that contains `d'.
6795 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6797 # platforms (ab)use it in PIC code, but their linkers get confused if
6798 # the symbol is explicitly referenced. Since portable code cannot
6799 # rely on this symbol name, it's probably fine to never include it in
6800 # preloaded symbol tables.
6801 extract_expsyms_cmds=
6802 # Just being paranoid about ensuring that cc_basename is set.
6803 for cc_temp in $compiler""; do
6805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6814 cygwin* | mingw* | pw32*)
6815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6816 # When not using gcc, we currently assume that we are using
6817 # Microsoft Visual C++.
6818 if test "$GCC" != yes; then
6828 if test "$with_gnu_ld" = yes; then
6829 # If archive_cmds runs LD, not CC, wlarc should be empty
6832 # Set some defaults for GNU ld with shared library support. These
6833 # are reset later if shared libraries are not supported. Putting them
6834 # here allows them to be overridden if necessary.
6835 runpath_var=LD_RUN_PATH
6836 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6837 export_dynamic_flag_spec='${wl}--export-dynamic'
6838 # ancient GNU ld didn't support --whole-archive et. al.
6839 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6840 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6842 whole_archive_flag_spec=
6844 supports_anon_versioning=no
6845 case `$LD -v 2>/dev/null` in
6846 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6847 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6848 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6849 *\ 2.11.*) ;; # other 2.11 versions
6850 *) supports_anon_versioning=yes ;;
6853 # See if GNU ld supports shared libraries.
6855 aix3* | aix4* | aix5*)
6856 # On AIX/PPC, the GNU linker is very broken
6857 if test "$host_cpu" != ia64; then
6861 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6862 *** to be unable to reliably create shared libraries on AIX.
6863 *** Therefore, libtool is disabling shared libraries support. If you
6864 *** really care for shared libraries, you may want to modify your PATH
6865 *** so that a non-GNU linker is found, and then restart.
6872 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)'
6873 hardcode_libdir_flag_spec='-L$libdir'
6874 hardcode_minus_L=yes
6876 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6877 # that the semantics of dynamic libraries on AmigaOS, at least up
6878 # to version 4, is to share data among multiple programs linked
6879 # with the same dynamic library. Since this doesn't match the
6880 # behavior of shared libraries on other platforms, we can't use
6886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6887 allow_undefined_flag=unsupported
6888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6889 # support --undefined. This deserves some investigation. FIXME
6890 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6896 cygwin* | mingw* | pw32*)
6897 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6898 # as there is no search path for DLLs.
6899 hardcode_libdir_flag_spec='-L$libdir'
6900 allow_undefined_flag=unsupported
6901 always_export_symbols=no
6902 enable_shared_with_static_runtimes=yes
6903 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6905 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6907 # If the export-symbols file already is a .def file (1st line
6908 # is EXPORTS), use it as is; otherwise, prepend...
6909 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6910 cp $export_symbols $output_objdir/$soname.def;
6912 echo EXPORTS > $output_objdir/$soname.def;
6913 cat $export_symbols >> $output_objdir/$soname.def;
6915 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6924 case $cc_basename,$host_cpu in
6925 pgcc*) # Portland Group C compiler
6926 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6927 tmp_addflag=' $pic_flag'
6929 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6930 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6931 tmp_addflag=' $pic_flag -Mnomain' ;;
6932 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6933 tmp_addflag=' -i_dynamic' ;;
6934 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6935 tmp_addflag=' -i_dynamic -nofor_main' ;;
6936 ifc* | ifort*) # Intel Fortran compiler
6937 tmp_addflag=' -nofor_main' ;;
6939 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6941 if test $supports_anon_versioning = yes; then
6942 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6944 $echo "local: *; };" >> $output_objdir/$libname.ver~
6945 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6954 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6963 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6967 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6968 *** create shared libraries on Solaris systems. Therefore, libtool
6969 *** is disabling shared libraries support. We urge you to upgrade GNU
6970 *** binutils to release 2.9.1 or newer. Another option is to modify
6971 *** your PATH or compiler configuration so that the native linker is
6972 *** used, and then restart.
6975 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6984 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6987 hardcode_shlibpath_var=no
6991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7000 if test "$ld_shlibs" = no; then
7002 hardcode_libdir_flag_spec=
7003 export_dynamic_flag_spec=
7004 whole_archive_flag_spec=
7007 # PORTME fill in a description of your system's linker (not GNU ld)
7010 allow_undefined_flag=unsupported
7011 always_export_symbols=yes
7012 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'
7013 # Note: this linker hardcodes the directories in LIBPATH if there
7014 # are no directories specified by -L.
7015 hardcode_minus_L=yes
7016 if test "$GCC" = yes && test -z "$link_static_flag"; then
7017 # Neither direct hardcoding nor static linking is supported with a
7019 hardcode_direct=unsupported
7024 if test "$host_cpu" = ia64; then
7025 # On IA64, the linker does run time linking by default, so we don't
7026 # have to do anything special.
7027 aix_use_runtimelinking=no
7028 exp_sym_flag='-Bexport'
7031 # If we're using GNU nm, then we don't want the "-C" option.
7032 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7033 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7034 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7036 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7038 aix_use_runtimelinking=no
7040 # Test if we are trying to use run time linking or normal
7041 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7042 # need to do runtime linking.
7043 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7044 for ld_flag in $LDFLAGS; do
7045 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7046 aix_use_runtimelinking=yes
7052 exp_sym_flag='-bexport'
7053 no_entry_flag='-bnoentry'
7056 # When large executables or shared objects are built, AIX ld can
7057 # have problems creating the table of contents. If linking a library
7058 # or program results in "error TOC overflow" add -mminimal-toc to
7059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7064 hardcode_libdir_separator=':'
7065 link_all_deplibs=yes
7067 if test "$GCC" = yes; then
7068 case $host_os in aix4.[012]|aix4.[012].*)
7069 # We only want to do this on AIX 4.2 and lower, the check
7070 # below for broken collect2 doesn't work under 4.3+
7071 collect2name=`${CC} -print-prog-name=collect2`
7072 if test -f "$collect2name" && \
7073 strings "$collect2name" | grep resolve_lib_name >/dev/null
7075 # We have reworked collect2
7078 # We have old collect2
7079 hardcode_direct=unsupported
7080 # It fails to find uninstalled libraries when the uninstalled
7081 # path is not listed in the libpath. Setting hardcode_minus_L
7082 # to unsupported forces relinking
7083 hardcode_minus_L=yes
7084 hardcode_libdir_flag_spec='-L$libdir'
7085 hardcode_libdir_separator=
7088 shared_flag='-shared'
7089 if test "$aix_use_runtimelinking" = yes; then
7090 shared_flag="$shared_flag "'${wl}-G'
7094 if test "$host_cpu" = ia64; then
7095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7096 # chokes on -Wl,-G. The following line is correct:
7099 if test "$aix_use_runtimelinking" = yes; then
7100 shared_flag='${wl}-G'
7102 shared_flag='${wl}-bM:SRE'
7107 # It seems that -bexpall does not export symbols beginning with
7108 # underscore (_), so it is better to generate a list of symbols to export.
7109 always_export_symbols=yes
7110 if test "$aix_use_runtimelinking" = yes; then
7111 # Warning - without using the other runtime loading flags (-brtl),
7112 # -berok will link without error, but may produce a broken library.
7113 allow_undefined_flag='-berok'
7114 # Determine the default libpath from the value encoded in an empty executable.
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7130 rm -f conftest.$ac_objext conftest$ac_exeext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7132 (eval $ac_link) 2>conftest.er1
7134 grep -v '^ *+' conftest.er1 >conftest.err
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try='test -z "$ac_c_werror_flag"
7140 || test ! -s conftest.err'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; } &&
7146 { ac_try='test -s conftest$ac_exeext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7155 # Check for a 64-bit object if we didn't find anything.
7156 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7163 rm -f conftest.err conftest.$ac_objext \
7164 conftest$ac_exeext conftest.$ac_ext
7165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7167 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7168 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"
7170 if test "$host_cpu" = ia64; then
7171 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7172 allow_undefined_flag="-z nodefs"
7173 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7175 # Determine the default libpath from the value encoded in an empty executable.
7176 cat >conftest.$ac_ext <<_ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7191 rm -f conftest.$ac_objext conftest$ac_exeext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try='test -s conftest$ac_exeext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7216 # Check for a 64-bit object if we didn't find anything.
7217 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7224 rm -f conftest.err conftest.$ac_objext \
7225 conftest$ac_exeext conftest.$ac_ext
7226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7228 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7229 # Warning - without using the other run time loading flags,
7230 # -berok will link without error, but may produce a broken library.
7231 no_undefined_flag=' ${wl}-bernotok'
7232 allow_undefined_flag=' ${wl}-berok'
7233 # -bexpall does not export symbols beginning with underscore (_)
7234 always_export_symbols=yes
7235 # Exported symbols can be pulled into shared objects from archives
7236 whole_archive_flag_spec=' '
7237 archive_cmds_need_lc=yes
7238 # This is similar to how AIX traditionally builds it's shared libraries.
7239 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7245 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)'
7246 hardcode_libdir_flag_spec='-L$libdir'
7247 hardcode_minus_L=yes
7248 # see comment about different semantics on the GNU ld section
7253 export_dynamic_flag_spec=-rdynamic
7256 cygwin* | mingw* | pw32*)
7257 # When not using gcc, we currently assume that we are using
7258 # Microsoft Visual C++.
7259 # hardcode_libdir_flag_spec is actually meaningless, as there is
7260 # no search path for DLLs.
7261 hardcode_libdir_flag_spec=' '
7262 allow_undefined_flag=unsupported
7263 # Tell ltmain to make .lib files, not .a files.
7265 # Tell ltmain to make .dll files, not .so files.
7267 # FIXME: Setting linknames here is a bad hack.
7268 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7269 # The linker will automatically build a .lib file if we build a DLL.
7270 old_archive_From_new_cmds='true'
7271 # FIXME: Should let the user specify the lib program.
7272 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7273 fix_srcfile_path='`cygpath -w "$srcfile"`'
7274 enable_shared_with_static_runtimes=yes
7277 darwin* | rhapsody*)
7279 rhapsody* | darwin1.[012])
7280 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7284 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7286 case ${MACOSX_DEPLOYMENT_TARGET} in
7288 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7291 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7297 archive_cmds_need_lc=no
7299 hardcode_automatic=yes
7300 hardcode_shlibpath_var=unsupported
7301 whole_archive_flag_spec=''
7302 link_all_deplibs=yes
7303 if test "$GCC" = yes ; then
7304 output_verbose_link_cmd='echo'
7305 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7306 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7307 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7308 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7309 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7311 case $cc_basename in
7313 output_verbose_link_cmd='echo'
7314 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7315 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7316 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7317 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7318 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329 hardcode_libdir_flag_spec='-L$libdir'
7330 hardcode_shlibpath_var=no
7337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7338 # support. Future versions do this automatically, but an explicit c++rt0.o
7339 # does not break anything, and helps significantly (at the cost of a little
7342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7343 hardcode_libdir_flag_spec='-R$libdir'
7345 hardcode_shlibpath_var=no
7348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7352 hardcode_minus_L=yes
7353 hardcode_shlibpath_var=no
7356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7357 freebsd* | kfreebsd*-gnu | dragonfly*)
7358 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7359 hardcode_libdir_flag_spec='-R$libdir'
7361 hardcode_shlibpath_var=no
7365 if test "$GCC" = yes; then
7366 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7368 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'
7370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7371 hardcode_libdir_separator=:
7374 # hardcode_minus_L: Not really in the search PATH,
7375 # but as the default location of the library.
7376 hardcode_minus_L=yes
7377 export_dynamic_flag_spec='${wl}-E'
7381 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7384 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7387 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7393 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7400 if test "$with_gnu_ld" = no; then
7403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7404 hardcode_libdir_flag_spec_ld='+b $libdir'
7405 hardcode_libdir_separator=:
7407 hardcode_shlibpath_var=no
7410 hardcode_libdir_flag_spec='-L$libdir'
7412 hardcode_shlibpath_var=no
7414 # hardcode_minus_L: Not really in the search PATH,
7415 # but as the default location of the library.
7416 hardcode_minus_L=yes
7419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7420 hardcode_libdir_separator=:
7422 export_dynamic_flag_spec='${wl}-E'
7424 # hardcode_minus_L: Not really in the search PATH,
7425 # but as the default location of the library.
7426 hardcode_minus_L=yes
7432 irix5* | irix6* | nonstopux*)
7433 if test "$GCC" = yes; then
7434 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'
7436 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'
7437 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7440 hardcode_libdir_separator=:
7441 link_all_deplibs=yes
7445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7448 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7450 hardcode_libdir_flag_spec='-R$libdir'
7452 hardcode_shlibpath_var=no
7456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7459 hardcode_libdir_separator=:
7460 hardcode_shlibpath_var=no
7465 hardcode_shlibpath_var=no
7466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7468 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7469 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7470 export_dynamic_flag_spec='${wl}-E'
7473 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_libdir_flag_spec='-R$libdir'
7478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7479 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7486 hardcode_libdir_flag_spec='-L$libdir'
7487 hardcode_minus_L=yes
7488 allow_undefined_flag=unsupported
7489 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'
7490 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7494 if test "$GCC" = yes; then
7495 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7496 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'
7498 allow_undefined_flag=' -expect_unresolved \*'
7499 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'
7501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7502 hardcode_libdir_separator=:
7505 osf4* | osf5*) # as osf3* with the addition of -msym flag
7506 if test "$GCC" = yes; then
7507 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7508 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'
7509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7511 allow_undefined_flag=' -expect_unresolved \*'
7512 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'
7513 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7514 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7516 # Both c and cxx compiler support -rpath directly
7517 hardcode_libdir_flag_spec='-rpath $libdir'
7519 hardcode_libdir_separator=:
7523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7524 hardcode_shlibpath_var=no
7525 export_dynamic_flag_spec='${wl}-Bexport'
7526 runpath_var=LD_RUN_PATH
7527 hardcode_runpath_var=yes
7531 no_undefined_flag=' -z text'
7532 if test "$GCC" = yes; then
7534 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7535 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7536 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7539 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7540 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7543 hardcode_libdir_flag_spec='-R$libdir'
7544 hardcode_shlibpath_var=no
7546 solaris2.[0-5] | solaris2.[0-5].*) ;;
7548 # The compiler driver will combine linker options so we
7549 # cannot just pass the convience library names through
7550 # without $wl, iff we do not link with $LD.
7551 # Luckily, gcc supports the same syntax we need for Sun Studio.
7552 # Supported since Solaris 2.6 (maybe 2.5.1?)
7555 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7557 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7560 link_all_deplibs=yes
7564 if test "x$host_vendor" = xsequent; then
7565 # Use $CC to link under sequent, because it throws in some extra .o
7566 # files that make .init and .fini sections work.
7567 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7569 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7571 hardcode_libdir_flag_spec='-L$libdir'
7573 hardcode_minus_L=yes
7574 hardcode_shlibpath_var=no
7578 case $host_vendor in
7580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7581 hardcode_direct=yes # is this really true???
7584 ## LD is ld it makes a PLAMLIB
7585 ## CC just makes a GrossModule.
7586 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7587 reload_cmds='$CC -r -o $output$reload_objs'
7591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7592 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7595 runpath_var='LD_RUN_PATH'
7596 hardcode_shlibpath_var=no
7600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601 hardcode_shlibpath_var=no
7602 export_dynamic_flag_spec='-Bexport'
7606 if test -d /usr/nec; then
7607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7608 hardcode_shlibpath_var=no
7609 runpath_var=LD_RUN_PATH
7610 hardcode_runpath_var=yes
7616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7619 hardcode_shlibpath_var=no
7620 hardcode_runpath_var=yes
7621 runpath_var=LD_RUN_PATH
7624 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7625 no_undefined_flag='${wl}-z ${wl}text'
7626 if test "$GCC" = yes; then
7627 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7629 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7631 runpath_var='LD_RUN_PATH'
7632 hardcode_shlibpath_var=no
7636 no_undefined_flag=' -z text'
7637 # $CC -shared without GNU ld will not create a library from C++
7638 # object files and a static libstdc++, better avoid it by now
7639 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7640 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7642 hardcode_libdir_flag_spec=
7643 hardcode_shlibpath_var=no
7644 runpath_var='LD_RUN_PATH'
7648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7649 hardcode_libdir_flag_spec='-L$libdir'
7650 hardcode_shlibpath_var=no
7659 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7660 echo "${ECHO_T}$ld_shlibs" >&6
7661 test "$ld_shlibs" = no && can_build_shared=no
7663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7664 if test "$GCC" = yes; then
7665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7669 # Do we need to explicitly link libc?
7671 case "x$archive_cmds_need_lc" in
7673 # Assume -lc should be added
7674 archive_cmds_need_lc=yes
7676 if test "$enable_shared" = yes && test "$GCC" = yes; then
7677 case $archive_cmds in
7679 # FIXME: we may have to deal with multi-command sequences.
7682 # Test whether the compiler implicitly links with -lc since on some
7683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7684 # to ld, don't add -lc before -lgcc.
7685 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7686 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } 2>conftest.err; then
7697 libobjs=conftest.$ac_objext
7699 wl=$lt_prog_compiler_wl
7705 lt_save_allow_undefined_flag=$allow_undefined_flag
7706 allow_undefined_flag=
7707 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7708 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }
7713 archive_cmds_need_lc=no
7715 archive_cmds_need_lc=yes
7717 allow_undefined_flag=$lt_save_allow_undefined_flag
7719 cat conftest.err 1>&5
7722 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7723 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7730 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7731 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7733 libname_spec='lib$name'
7741 shlibpath_overrides_runpath=unknown
7743 dynamic_linker="$host_os ld.so"
7744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7745 if test "$GCC" = yes; then
7746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7747 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7748 # if the path contains ";" then we assume it to be the separator
7749 # otherwise default to the standard path separator (i.e. ":") - it is
7750 # assumed that no part of a normal pathname contains ";" but that should
7751 # okay in the real world where ";" in dirpaths is itself problematic.
7752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7759 need_lib_prefix=unknown
7760 hardcode_into_libs=no
7762 # when you set need_version to no, make sure it does not cause -set_version
7763 # flags to be left without arguments
7764 need_version=unknown
7769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7770 shlibpath_var=LIBPATH
7772 # AIX 3 has no versioning support, so we append a major version to the name.
7773 soname_spec='${libname}${release}${shared_ext}$major'
7780 hardcode_into_libs=yes
7781 if test "$host_cpu" = ia64; then
7782 # AIX 5 supports IA64
7783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7784 shlibpath_var=LD_LIBRARY_PATH
7786 # With GCC up to 2.95.x, collect2 would create an import file
7787 # for dependence libraries. The import file would start with
7788 # the line `#! .'. This would cause the generated library to
7789 # depend on `.', always an invalid library. This was fixed in
7790 # development snapshots of GCC prior to 3.0.
7792 aix4 | aix4.[01] | aix4.[01].*)
7793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7803 # soname into executable. Probably we can add versioning support to
7804 # collect2, so additional links can be useful in future.
7805 if test "$aix_use_runtimelinking" = yes; then
7806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7807 # instead of lib<name>.a to let people know that these are not
7808 # typical AIX shared libraries.
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7811 # We preserve .a as extension for shared libraries through AIX4.2
7812 # and later when we are not doing run time linking.
7813 library_names_spec='${libname}${release}.a $libname.a'
7814 soname_spec='${libname}${release}${shared_ext}$major'
7816 shlibpath_var=LIBPATH
7821 library_names_spec='$libname.ixlibrary $libname.a'
7822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7823 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'
7827 library_names_spec='${libname}${shared_ext}'
7828 dynamic_linker="$host_os ld.so"
7829 shlibpath_var=LIBRARY_PATH
7835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836 soname_spec='${libname}${release}${shared_ext}$major'
7837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7838 shlibpath_var=LD_LIBRARY_PATH
7839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7841 # the default ld.so.conf also contains /usr/contrib/lib and
7842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7843 # libtool to hard-code these into programs
7846 cygwin* | mingw* | pw32*)
7847 version_type=windows
7852 case $GCC,$host_os in
7853 yes,cygwin* | yes,mingw* | yes,pw32*)
7854 library_names_spec='$libname.dll.a'
7855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7856 postinstall_cmds='base_file=`basename \${file}`~
7857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7858 dldir=$destdir/`dirname \$dlpath`~
7859 test -d \$dldir || mkdir -p \$dldir~
7860 $install_prog $dir/$dlname \$dldir/$dlname'
7861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7862 dlpath=$dir/\$dldll~
7864 shlibpath_overrides_runpath=yes
7868 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7869 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7870 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7873 # MinGW DLLs use traditional 'lib' prefix
7874 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7876 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7877 # It is most probably a Windows format PATH printed by
7878 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7879 # path with ; separators, and with drive letters. We can handle the
7880 # drive letters (cygwin fileutils understands them), so leave them,
7881 # especially as we might pass files found there to a mingw objdump,
7882 # which wouldn't understand a cygwinified path. Ahh.
7883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7889 # pw32 DLLs use 'pw' prefix rather than 'lib'
7890 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7896 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7899 dynamic_linker='Win32 ld.exe'
7900 # FIXME: first we should search . and the directory the executable is in
7904 darwin* | rhapsody*)
7905 dynamic_linker="$host_os dyld"
7909 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7910 soname_spec='${libname}${release}${major}$shared_ext'
7911 shlibpath_overrides_runpath=yes
7912 shlibpath_var=DYLD_LIBRARY_PATH
7913 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7914 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7915 if test "$GCC" = yes; then
7916 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7918 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7920 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7928 soname_spec='${libname}${release}${shared_ext}$major'
7929 shlibpath_var=LD_LIBRARY_PATH
7940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7941 soname_spec='${libname}${release}${shared_ext}$major'
7942 shlibpath_var=LD_LIBRARY_PATH
7943 shlibpath_overrides_runpath=no
7944 hardcode_into_libs=yes
7945 dynamic_linker='GNU ld.so'
7948 freebsd* | dragonfly*)
7949 # DragonFly does not have aout. When/if they implement a new
7950 # versioning mechanism, adjust this.
7951 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7952 version_type=freebsd-$objformat
7953 case $version_type in
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7964 shlibpath_var=LD_LIBRARY_PATH
7967 shlibpath_overrides_runpath=yes
7969 freebsd3.[01]* | freebsdelf3.[01]*)
7970 shlibpath_overrides_runpath=yes
7971 hardcode_into_libs=yes
7974 shlibpath_overrides_runpath=no
7975 hardcode_into_libs=yes
7984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7985 soname_spec='${libname}${release}${shared_ext}$major'
7986 shlibpath_var=LD_LIBRARY_PATH
7987 hardcode_into_libs=yes
7990 hpux9* | hpux10* | hpux11*)
7991 # Give a soname corresponding to the major version so that dld.sl refuses to
7992 # link against other versions.
7999 hardcode_into_libs=yes
8000 dynamic_linker="$host_os dld.so"
8001 shlibpath_var=LD_LIBRARY_PATH
8002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 soname_spec='${libname}${release}${shared_ext}$major'
8005 if test "X$HPUX_IA64_MODE" = X32; then
8006 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8014 hardcode_into_libs=yes
8015 dynamic_linker="$host_os dld.sl"
8016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019 soname_spec='${libname}${release}${shared_ext}$major'
8020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8025 dynamic_linker="$host_os dld.sl"
8026 shlibpath_var=SHLIB_PATH
8027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029 soname_spec='${libname}${release}${shared_ext}$major'
8032 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8033 postinstall_cmds='chmod 555 $lib'
8036 irix5* | irix6* | nonstopux*)
8038 nonstopux*) version_type=nonstopux ;;
8040 if test "$lt_cv_prog_gnu_ld" = yes; then
8048 soname_spec='${libname}${release}${shared_ext}$major'
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8051 irix5* | nonstopux*)
8055 case $LD in # libtool.m4 will add one of these switches to LD
8056 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8057 libsuff= shlibsuff= libmagic=32-bit;;
8058 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8059 libsuff=32 shlibsuff=N32 libmagic=N32;;
8060 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8061 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8062 *) libsuff= shlibsuff= libmagic=never-match;;
8066 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8067 shlibpath_overrides_runpath=no
8068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8070 hardcode_into_libs=yes
8073 # No shared lib support for Linux oldld, aout, or coff.
8074 linux*oldld* | linux*aout* | linux*coff*)
8078 # This must be Linux ELF.
8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084 soname_spec='${libname}${release}${shared_ext}$major'
8085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8086 shlibpath_var=LD_LIBRARY_PATH
8087 shlibpath_overrides_runpath=no
8088 # This implies no fast_install, which is unacceptable.
8089 # Some rework will be needed to allow for fast_install
8090 # before this can be enabled.
8091 hardcode_into_libs=yes
8093 # Append ld.so.conf contents to the search path
8094 if test -f /etc/ld.so.conf; then
8095 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; shopt -s nullglob; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8099 # We used to test for /lib/ld.so.1 and disable shared libraries on
8100 # powerpc, because MkLinux only supported shared libraries with the
8101 # GNU dynamic linker. Since this was broken with cross compilers,
8102 # most powerpc-linux boxes support dynamic linking these days and
8103 # people can always --disable-shared, the test was removed, and we
8104 # assume the GNU/Linux dynamic linker is in use.
8105 dynamic_linker='GNU/Linux ld.so'
8112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8113 soname_spec='${libname}${release}${shared_ext}$major'
8114 shlibpath_var=LD_LIBRARY_PATH
8115 shlibpath_overrides_runpath=no
8116 hardcode_into_libs=yes
8117 dynamic_linker='GNU ld.so'
8124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8127 dynamic_linker='NetBSD (a.out) ld.so'
8129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8130 soname_spec='${libname}${release}${shared_ext}$major'
8131 dynamic_linker='NetBSD ld.elf_so'
8133 shlibpath_var=LD_LIBRARY_PATH
8134 shlibpath_overrides_runpath=yes
8135 hardcode_into_libs=yes
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141 shlibpath_var=LD_LIBRARY_PATH
8142 shlibpath_overrides_runpath=yes
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8150 soname_spec='${libname}${release}${shared_ext}$major'
8151 shlibpath_var=LD_LIBRARY_PATH
8152 shlibpath_overrides_runpath=yes
8158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8160 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8161 *) need_version=no ;;
8163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8165 shlibpath_var=LD_LIBRARY_PATH
8166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8168 openbsd2.[89] | openbsd2.[89].*)
8169 shlibpath_overrides_runpath=no
8172 shlibpath_overrides_runpath=yes
8176 shlibpath_overrides_runpath=yes
8181 libname_spec='$name'
8184 library_names_spec='$libname${shared_ext} $libname.a'
8185 dynamic_linker='OS/2 ld.exe'
8186 shlibpath_var=LIBPATH
8189 osf3* | osf4* | osf5*)
8193 soname_spec='${libname}${release}${shared_ext}$major'
8194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195 shlibpath_var=LD_LIBRARY_PATH
8196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8202 soname_spec='${libname}${release}${shared_ext}$major'
8203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8204 shlibpath_var=LD_LIBRARY_PATH
8211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8212 soname_spec='${libname}${release}${shared_ext}$major'
8213 shlibpath_var=LD_LIBRARY_PATH
8214 shlibpath_overrides_runpath=yes
8215 hardcode_into_libs=yes
8216 # ldd complains unless libraries are executable
8217 postinstall_cmds='chmod +x $lib'
8222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8223 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8224 shlibpath_var=LD_LIBRARY_PATH
8225 shlibpath_overrides_runpath=yes
8226 if test "$with_gnu_ld" = yes; then
8232 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8235 soname_spec='${libname}${release}${shared_ext}$major'
8236 shlibpath_var=LD_LIBRARY_PATH
8237 case $host_vendor in
8239 shlibpath_overrides_runpath=no
8241 export_dynamic_flag_spec='${wl}-Blargedynsym'
8242 runpath_var=LD_RUN_PATH
8250 shlibpath_overrides_runpath=no
8251 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8257 if test -d /usr/nec ;then
8259 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8260 soname_spec='$libname${shared_ext}.$major'
8261 shlibpath_var=LD_LIBRARY_PATH
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 shlibpath_var=LD_LIBRARY_PATH
8276 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8277 echo "${ECHO_T}$dynamic_linker" >&6
8278 test "$dynamic_linker" = no && can_build_shared=no
8280 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8281 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8283 if test -n "$hardcode_libdir_flag_spec" || \
8284 test -n "$runpath_var" || \
8285 test "X$hardcode_automatic" = "Xyes" ; then
8287 # We can hardcode non-existant directories.
8288 if test "$hardcode_direct" != no &&
8289 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8290 # have to relink, otherwise we might link with an installed library
8291 # when we should be linking with a yet-to-be-installed one
8292 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8293 test "$hardcode_minus_L" != no; then
8294 # Linking always hardcodes the temporary library directory.
8295 hardcode_action=relink
8297 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8298 hardcode_action=immediate
8301 # We cannot hardcode anything, or else we can only hardcode existing
8303 hardcode_action=unsupported
8305 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8306 echo "${ECHO_T}$hardcode_action" >&6
8308 if test "$hardcode_action" = relink; then
8309 # Fast installation is not supported
8310 enable_fast_install=no
8311 elif test "$shlibpath_overrides_runpath" = yes ||
8312 test "$enable_shared" = no; then
8313 # Fast installation is not necessary
8314 enable_fast_install=needless
8319 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8320 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8321 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8322 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8323 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8324 echo "$as_me:$LINENO: result: yes" >&5
8325 echo "${ECHO_T}yes" >&6
8327 # FIXME - insert some real tests, host_os isn't really good enough
8330 if test -n "$STRIP" ; then
8331 striplib="$STRIP -x"
8332 echo "$as_me:$LINENO: result: yes" >&5
8333 echo "${ECHO_T}yes" >&6
8335 echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6
8340 echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6
8346 if test "x$enable_dlopen" != xyes; then
8347 enable_dlopen=unknown
8348 enable_dlopen_self=unknown
8349 enable_dlopen_self_static=unknown
8356 lt_cv_dlopen="load_add_on"
8358 lt_cv_dlopen_self=yes
8362 lt_cv_dlopen="LoadLibrary"
8367 lt_cv_dlopen="dlopen"
8372 # if libdl is installed we need to link against it
8373 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8374 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8375 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 ac_check_lib_save_LIBS=$LIBS
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8387 /* Override any gcc2 internal prototype to avoid an error. */
8391 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404 (eval $ac_link) 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag"
8412 || test ! -s conftest.err'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; } &&
8418 { ac_try='test -s conftest$ac_exeext'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; }; then
8424 ac_cv_lib_dl_dlopen=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_cv_lib_dl_dlopen=no
8431 rm -f conftest.err conftest.$ac_objext \
8432 conftest$ac_exeext conftest.$ac_ext
8433 LIBS=$ac_check_lib_save_LIBS
8435 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8436 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8437 if test $ac_cv_lib_dl_dlopen = yes; then
8438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8443 lt_cv_dlopen_self=yes
8450 echo "$as_me:$LINENO: checking for shl_load" >&5
8451 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8452 if test "${ac_cv_func_shl_load+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8463 #define shl_load innocuous_shl_load
8465 /* System header to define __stub macros and hopefully few prototypes,
8466 which can conflict with char shl_load (); below.
8467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8468 <limits.h> exists even on freestanding compilers. */
8471 # include <limits.h>
8473 # include <assert.h>
8478 /* Override any gcc2 internal prototype to avoid an error. */
8483 /* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8486 /* The GNU C library defines this for functions which it implements
8487 to always fail with ENOSYS. Some functions are actually named
8488 something starting with __ and the normal name is an alias. */
8489 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8492 char (*f) () = shl_load;
8501 return f != shl_load;
8506 rm -f conftest.$ac_objext conftest$ac_exeext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508 (eval $ac_link) 2>conftest.er1
8510 grep -v '^ *+' conftest.er1 >conftest.err
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest$ac_exeext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_cv_func_shl_load=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_cv_func_shl_load=no
8535 rm -f conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8539 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8540 if test $ac_cv_func_shl_load = yes; then
8541 lt_cv_dlopen="shl_load"
8543 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8544 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8545 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_check_lib_save_LIBS=$LIBS
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8557 /* Override any gcc2 internal prototype to avoid an error. */
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_lib_dld_shl_load=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 ac_cv_lib_dld_shl_load=no
8601 rm -f conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
8603 LIBS=$ac_check_lib_save_LIBS
8605 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8606 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8607 if test $ac_cv_lib_dld_shl_load = yes; then
8608 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8610 echo "$as_me:$LINENO: checking for dlopen" >&5
8611 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8612 if test "${ac_cv_func_dlopen+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8623 #define dlopen innocuous_dlopen
8625 /* System header to define __stub macros and hopefully few prototypes,
8626 which can conflict with char dlopen (); below.
8627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628 <limits.h> exists even on freestanding compilers. */
8631 # include <limits.h>
8633 # include <assert.h>
8638 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8646 /* The GNU C library defines this for functions which it implements
8647 to always fail with ENOSYS. Some functions are actually named
8648 something starting with __ and the normal name is an alias. */
8649 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8652 char (*f) () = dlopen;
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -z "$ac_c_werror_flag"
8676 || test ! -s conftest.err'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; } &&
8682 { ac_try='test -s conftest$ac_exeext'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 ac_cv_func_dlopen=yes
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 ac_cv_func_dlopen=no
8695 rm -f conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8698 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8699 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8700 if test $ac_cv_func_dlopen = yes; then
8701 lt_cv_dlopen="dlopen"
8703 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 ac_check_lib_save_LIBS=$LIBS
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8717 /* Override any gcc2 internal prototype to avoid an error. */
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>conftest.er1
8736 grep -v '^ *+' conftest.er1 >conftest.err
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try='test -z "$ac_c_werror_flag"
8742 || test ! -s conftest.err'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; } &&
8748 { ac_try='test -s conftest$ac_exeext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 ac_cv_lib_dl_dlopen=yes
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 ac_cv_lib_dl_dlopen=no
8761 rm -f conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS
8765 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8766 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8767 if test $ac_cv_lib_dl_dlopen = yes; then
8768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8770 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8771 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8772 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 ac_check_lib_save_LIBS=$LIBS
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 /* Override any gcc2 internal prototype to avoid an error. */
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_lib_svld_dlopen=yes
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ac_cv_lib_svld_dlopen=no
8828 rm -f conftest.err conftest.$ac_objext \
8829 conftest$ac_exeext conftest.$ac_ext
8830 LIBS=$ac_check_lib_save_LIBS
8832 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8833 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8834 if test $ac_cv_lib_svld_dlopen = yes; then
8835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8837 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8838 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8839 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 ac_check_lib_save_LIBS=$LIBS
8844 cat >conftest.$ac_ext <<_ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8851 /* Override any gcc2 internal prototype to avoid an error. */
8855 /* We use char because int might match the return type of a gcc2
8856 builtin and then its argument prototype would still apply. */
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_lib_dld_dld_link=yes
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 ac_cv_lib_dld_dld_link=no
8895 rm -f conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8897 LIBS=$ac_check_lib_save_LIBS
8899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8900 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8901 if test $ac_cv_lib_dld_dld_link = yes; then
8902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8923 if test "x$lt_cv_dlopen" != xno; then
8929 case $lt_cv_dlopen in
8931 save_CPPFLAGS="$CPPFLAGS"
8932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8934 save_LDFLAGS="$LDFLAGS"
8935 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8938 LIBS="$lt_cv_dlopen_libs $LIBS"
8940 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8941 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8942 if test "${lt_cv_dlopen_self+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 if test "$cross_compiling" = yes; then :
8946 lt_cv_dlopen_self=cross
8948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8949 lt_status=$lt_dlunknown
8950 cat > conftest.$ac_ext <<EOF
8951 #line 8951 "configure"
8952 #include "confdefs.h"
8961 # define LT_DLGLOBAL RTLD_GLOBAL
8964 # define LT_DLGLOBAL DL_GLOBAL
8966 # define LT_DLGLOBAL 0
8970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8971 find out it does not work in some platform. */
8972 #ifndef LT_DLLAZY_OR_NOW
8974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8977 # define LT_DLLAZY_OR_NOW DL_LAZY
8980 # define LT_DLLAZY_OR_NOW RTLD_NOW
8983 # define LT_DLLAZY_OR_NOW DL_NOW
8985 # define LT_DLLAZY_OR_NOW 0
8993 extern "C" void exit (int);
8996 void fnord() { int i=42;}
8999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9000 int status = $lt_dlunknown;
9004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9006 /* dlclose (self); */
9012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013 (eval $ac_link) 2>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9017 (./conftest; exit; ) 2>/dev/null
9020 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9021 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9022 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9025 # compilation failed
9026 lt_cv_dlopen_self=no
9033 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9034 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9036 if test "x$lt_cv_dlopen_self" = xyes; then
9037 LDFLAGS="$LDFLAGS $link_static_flag"
9038 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9039 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9040 if test "${lt_cv_dlopen_self_static+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 if test "$cross_compiling" = yes; then :
9044 lt_cv_dlopen_self_static=cross
9046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9047 lt_status=$lt_dlunknown
9048 cat > conftest.$ac_ext <<EOF
9049 #line 9049 "configure"
9050 #include "confdefs.h"
9059 # define LT_DLGLOBAL RTLD_GLOBAL
9062 # define LT_DLGLOBAL DL_GLOBAL
9064 # define LT_DLGLOBAL 0
9068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9069 find out it does not work in some platform. */
9070 #ifndef LT_DLLAZY_OR_NOW
9072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9075 # define LT_DLLAZY_OR_NOW DL_LAZY
9078 # define LT_DLLAZY_OR_NOW RTLD_NOW
9081 # define LT_DLLAZY_OR_NOW DL_NOW
9083 # define LT_DLLAZY_OR_NOW 0
9091 extern "C" void exit (int);
9094 void fnord() { int i=42;}
9097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9098 int status = $lt_dlunknown;
9102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9104 /* dlclose (self); */
9110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9115 (./conftest; exit; ) 2>/dev/null
9118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9120 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9123 # compilation failed
9124 lt_cv_dlopen_self_static=no
9131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9132 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9135 CPPFLAGS="$save_CPPFLAGS"
9136 LDFLAGS="$save_LDFLAGS"
9141 case $lt_cv_dlopen_self in
9142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9143 *) enable_dlopen_self=unknown ;;
9146 case $lt_cv_dlopen_self_static in
9147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9148 *) enable_dlopen_self_static=unknown ;;
9153 # Report which librarie types wil actually be built
9154 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9155 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9156 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9157 echo "${ECHO_T}$can_build_shared" >&6
9159 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9160 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9161 test "$can_build_shared" = "no" && enable_shared=no
9163 # On AIX, shared libraries and static libraries use the same namespace, and
9164 # are all built from PIC.
9167 test "$enable_shared" = yes && enable_static=no
9168 if test -n "$RANLIB"; then
9169 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9170 postinstall_cmds='$RANLIB $lib'
9175 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9176 test "$enable_shared" = yes && enable_static=no
9180 echo "$as_me:$LINENO: result: $enable_shared" >&5
9181 echo "${ECHO_T}$enable_shared" >&6
9183 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9184 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9185 # Make sure either enable_shared or enable_static is yes.
9186 test "$enable_shared" = yes || enable_static=yes
9187 echo "$as_me:$LINENO: result: $enable_static" >&5
9188 echo "${ECHO_T}$enable_static" >&6
9190 # The else clause should only fire when bootstrapping the
9191 # libtool distribution, otherwise you forgot to ship ltmain.sh
9192 # with your package, and you will get complaints that there are
9193 # no rules to generate ltmain.sh.
9194 if test -f "$ltmain"; then
9195 # See if we are running on zsh, and set the options which allow our commands through
9196 # without removal of \ escapes.
9197 if test -n "${ZSH_VERSION+set}" ; then
9198 setopt NO_GLOB_SUBST
9200 # Now quote all the things that may contain metacharacters while being
9201 # careful not to overquote the AC_SUBSTed values. We take copies of the
9202 # variables and quote the copies for generation of the libtool script.
9203 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9205 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9206 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9207 deplibs_check_method reload_flag reload_cmds need_locks \
9208 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9209 lt_cv_sys_global_symbol_to_c_name_address \
9210 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9211 old_postinstall_cmds old_postuninstall_cmds \
9215 lt_prog_compiler_wl \
9216 lt_prog_compiler_pic \
9217 lt_prog_compiler_static \
9218 lt_prog_compiler_no_builtin_flag \
9219 export_dynamic_flag_spec \
9220 thread_safe_flag_spec \
9221 whole_archive_flag_spec \
9222 enable_shared_with_static_runtimes \
9224 old_archive_from_new_cmds \
9229 compiler_lib_search_path \
9231 archive_expsym_cmds \
9233 postuninstall_cmds \
9234 old_archive_from_expsyms_cmds \
9235 allow_undefined_flag \
9237 export_symbols_cmds \
9238 hardcode_libdir_flag_spec \
9239 hardcode_libdir_flag_spec_ld \
9240 hardcode_libdir_separator \
9241 hardcode_automatic \
9243 module_expsym_cmds \
9244 lt_cv_prog_compiler_c_o \
9249 old_archive_cmds | \
9250 old_archive_from_new_cmds | \
9252 archive_expsym_cmds | \
9254 module_expsym_cmds | \
9255 old_archive_from_expsyms_cmds | \
9256 export_symbols_cmds | \
9257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9258 postinstall_cmds | postuninstall_cmds | \
9259 old_postinstall_cmds | old_postuninstall_cmds | \
9260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9261 # Double-quote double-evaled strings.
9262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9271 *'\$0 --fallback-echo"')
9272 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9277 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9279 { echo "$as_me:$LINENO: creating $ofile" >&5
9280 echo "$as_me: creating $ofile" >&6;}
9282 cat <<__EOF__ >> "$cfgfile"
9285 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9286 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9287 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9289 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9290 # Free Software Foundation, Inc.
9292 # This file is part of GNU Libtool:
9293 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9295 # This program is free software; you can redistribute it and/or modify
9296 # it under the terms of the GNU General Public License as published by
9297 # the Free Software Foundation; either version 2 of the License, or
9298 # (at your option) any later version.
9300 # This program is distributed in the hope that it will be useful, but
9301 # WITHOUT ANY WARRANTY; without even the implied warranty of
9302 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9303 # General Public License for more details.
9305 # You should have received a copy of the GNU General Public License
9306 # along with this program; if not, write to the Free Software
9307 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9309 # As a special exception to the GNU General Public License, if you
9310 # distribute this file as part of a program that contains a
9311 # configuration script generated by Autoconf, you may include it under
9312 # the same distribution terms that you use for the rest of that program.
9314 # A sed program that does not truncate output.
9317 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9318 Xsed="$SED -e 1s/^X//"
9320 # The HP-UX ksh and POSIX shell print the target directory to stdout
9322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9324 # The names of the tagged configurations supported by this script.
9327 # ### BEGIN LIBTOOL CONFIG
9329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9331 # Shell to use when invoking shell scripts.
9334 # Whether or not to build shared libraries.
9335 build_libtool_libs=$enable_shared
9337 # Whether or not to build static libraries.
9338 build_old_libs=$enable_static
9340 # Whether or not to add -lc for building shared libraries.
9341 build_libtool_need_lc=$archive_cmds_need_lc
9343 # Whether or not to disallow shared libs when runtime libs are static
9344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9346 # Whether or not to optimize for fast installation.
9347 fast_install=$enable_fast_install
9350 host_alias=$host_alias
9355 build_alias=$build_alias
9359 # An echo program that does not interpret backslashes.
9364 AR_FLAGS=$lt_AR_FLAGS
9369 # A language-specific compiler.
9372 # Is the compiler the GNU C compiler?
9378 # The linker used to build libraries.
9381 # Whether we need hard or soft links.
9384 # A BSD-compatible nm program.
9387 # A symbol stripping program
9390 # Used to examine libraries when file_magic_cmd begins "file"
9391 MAGIC_CMD=$MAGIC_CMD
9393 # Used on cygwin: DLL creation program.
9396 # Used on cygwin: object dumper.
9399 # Used on cygwin: assembler.
9402 # The name of the directory that contains temporary libtool files.
9405 # How to create reloadable object files.
9406 reload_flag=$lt_reload_flag
9407 reload_cmds=$lt_reload_cmds
9409 # How to pass a linker flag through the compiler.
9410 wl=$lt_lt_prog_compiler_wl
9412 # Object file suffix (normally "o").
9415 # Old archive suffix (normally "a").
9418 # Shared library suffix (normally ".so").
9419 shrext_cmds='$shrext_cmds'
9421 # Executable file suffix (normally "").
9424 # Additional compiler flags for building library objects.
9425 pic_flag=$lt_lt_prog_compiler_pic
9428 # What is the maximum length of a command?
9429 max_cmd_len=$lt_cv_sys_max_cmd_len
9431 # Does compiler simultaneously support -c and -o options?
9432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9434 # Must we lock files when doing compilation?
9435 need_locks=$lt_need_locks
9437 # Do we need the lib prefix for modules?
9438 need_lib_prefix=$need_lib_prefix
9440 # Do we need a version for libraries?
9441 need_version=$need_version
9443 # Whether dlopen is supported.
9444 dlopen_support=$enable_dlopen
9446 # Whether dlopen of programs is supported.
9447 dlopen_self=$enable_dlopen_self
9449 # Whether dlopen of statically linked programs is supported.
9450 dlopen_self_static=$enable_dlopen_self_static
9452 # Compiler flag to prevent dynamic linking.
9453 link_static_flag=$lt_lt_prog_compiler_static
9455 # Compiler flag to turn off builtin functions.
9456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9458 # Compiler flag to allow reflexive dlopens.
9459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9461 # Compiler flag to generate shared objects directly from archives.
9462 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9464 # Compiler flag to generate thread-safe objects.
9465 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9467 # Library versioning type.
9468 version_type=$version_type
9470 # Format of library name prefix.
9471 libname_spec=$lt_libname_spec
9473 # List of archive names. First name is the real one, the rest are links.
9474 # The last name is the one that the linker finds with -lNAME.
9475 library_names_spec=$lt_library_names_spec
9477 # The coded name of the library, if different from the real name.
9478 soname_spec=$lt_soname_spec
9480 # Commands used to build and install an old-style archive.
9482 old_archive_cmds=$lt_old_archive_cmds
9483 old_postinstall_cmds=$lt_old_postinstall_cmds
9484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9486 # Create an old-style archive from a shared archive.
9487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9489 # Create a temporary old-style archive to link instead of a shared archive.
9490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9492 # Commands used to build and install a shared archive.
9493 archive_cmds=$lt_archive_cmds
9494 archive_expsym_cmds=$lt_archive_expsym_cmds
9495 postinstall_cmds=$lt_postinstall_cmds
9496 postuninstall_cmds=$lt_postuninstall_cmds
9498 # Commands used to build a loadable module (assumed same as above if empty)
9499 module_cmds=$lt_module_cmds
9500 module_expsym_cmds=$lt_module_expsym_cmds
9502 # Commands to strip libraries.
9503 old_striplib=$lt_old_striplib
9504 striplib=$lt_striplib
9506 # Dependencies to place before the objects being linked to create a
9508 predep_objects=$lt_predep_objects
9510 # Dependencies to place after the objects being linked to create a
9512 postdep_objects=$lt_postdep_objects
9514 # Dependencies to place before the objects being linked to create a
9518 # Dependencies to place after the objects being linked to create a
9520 postdeps=$lt_postdeps
9522 # The library search path used internally by the compiler when linking
9524 compiler_lib_search_path=$lt_compiler_lib_search_path
9526 # Method to check whether dependent libraries are shared objects.
9527 deplibs_check_method=$lt_deplibs_check_method
9529 # Command to use when deplibs_check_method == file_magic.
9530 file_magic_cmd=$lt_file_magic_cmd
9532 # Flag that allows shared libraries with undefined symbols to be built.
9533 allow_undefined_flag=$lt_allow_undefined_flag
9535 # Flag that forces no undefined symbols.
9536 no_undefined_flag=$lt_no_undefined_flag
9538 # Commands used to finish a libtool library installation in a directory.
9539 finish_cmds=$lt_finish_cmds
9541 # Same as above, but a single script fragment to be evaled but not shown.
9542 finish_eval=$lt_finish_eval
9544 # Take the output of nm and produce a listing of raw symbols and C names.
9545 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9547 # Transform the output of nm in a proper C declaration
9548 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9550 # Transform the output of nm in a C name address pair
9551 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9553 # This is the shared library runtime path variable.
9554 runpath_var=$runpath_var
9556 # This is the shared library path variable.
9557 shlibpath_var=$shlibpath_var
9559 # Is shlibpath searched before the hard-coded library search path?
9560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9562 # How to hardcode a shared library path into an executable.
9563 hardcode_action=$hardcode_action
9565 # Whether we should hardcode library paths into libraries.
9566 hardcode_into_libs=$hardcode_into_libs
9568 # Flag to hardcode \$libdir into a binary during linking.
9569 # This must work even if \$libdir does not exist.
9570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9572 # If ld is used when linking, flag to hardcode \$libdir into
9573 # a binary during linking. This must work even if \$libdir does
9575 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9577 # Whether we need a single -rpath flag with a separated argument.
9578 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9580 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9582 hardcode_direct=$hardcode_direct
9584 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9586 hardcode_minus_L=$hardcode_minus_L
9588 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9589 # the resulting binary.
9590 hardcode_shlibpath_var=$hardcode_shlibpath_var
9592 # Set to yes if building a shared library automatically hardcodes DIR into the library
9593 # and all subsequent libraries and executables linked against it.
9594 hardcode_automatic=$hardcode_automatic
9596 # Variables whose values should be saved in libtool wrapper scripts and
9597 # restored at relink time.
9598 variables_saved_for_relink="$variables_saved_for_relink"
9600 # Whether libtool must link a program against all its dependency libraries.
9601 link_all_deplibs=$link_all_deplibs
9603 # Compile-time system search path for libraries
9604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9606 # Run-time system search path for libraries
9607 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9609 # Fix the shell variable \$srcfile for the compiler.
9610 fix_srcfile_path="$fix_srcfile_path"
9612 # Set to yes if exported symbols are required.
9613 always_export_symbols=$always_export_symbols
9615 # The commands to list exported symbols.
9616 export_symbols_cmds=$lt_export_symbols_cmds
9618 # The commands to extract the exported symbol list from a shared archive.
9619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9621 # Symbols that should not be listed in the preloaded symbols.
9622 exclude_expsyms=$lt_exclude_expsyms
9624 # Symbols that must always be exported.
9625 include_expsyms=$lt_include_expsyms
9627 # ### END LIBTOOL CONFIG
9634 cat <<\EOF >> "$cfgfile"
9636 # AIX sometimes has problems with the GCC collect2 program. For some
9637 # reason, if we set the COLLECT_NAMES environment variable, the problems
9638 # vanish in a puff of smoke.
9639 if test "X${COLLECT_NAMES+set}" != Xset; then
9641 export COLLECT_NAMES
9647 # We use sed instead of cat because bash on DJGPP gets confused if
9648 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9649 # text mode, it properly converts lines to CR/LF. This bash problem
9650 # is reportedly fixed, but why not run on old versions too?
9651 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9653 mv -f "$cfgfile" "$ofile" || \
9654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9658 # If there is no Makefile yet, we rely on a make rule to execute
9659 # `config.status --recheck' to rerun these tests and create the
9660 # libtool script then.
9661 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9662 if test -f "$ltmain_in"; then
9663 test -f Makefile && make "$ltmain"
9669 ac_cpp='$CPP $CPPFLAGS'
9670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9677 # Check whether --with-tags or --without-tags was given.
9678 if test "${with_tags+set}" = set; then
9679 withval="$with_tags"
9683 if test -f "$ltmain" && test -n "$tagnames"; then
9684 if test ! -f "${ofile}"; then
9685 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9686 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9689 if test -z "$LTCC"; then
9690 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9691 if test -z "$LTCC"; then
9692 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9693 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9696 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9700 # Extract list of available tagged configurations in $ofile.
9701 # Note that this assumes the entire list is on one line.
9702 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9705 for tagname in $tagnames; do
9707 # Check whether tagname contains only valid characters
9708 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9710 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9711 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9712 { (exit 1); exit 1; }; }
9716 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9718 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9719 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9720 { (exit 1); exit 1; }; }
9723 # Update the list of available tags.
9724 if test -n "$tagname"; then
9725 echo appending configuration tag \"$tagname\" to $ofile
9729 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9730 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9731 (test "X$CXX" != "Xg++"))) ; then
9733 ac_cpp='$CXXCPP $CPPFLAGS'
9734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9741 archive_cmds_need_lc_CXX=no
9742 allow_undefined_flag_CXX=
9743 always_export_symbols_CXX=no
9744 archive_expsym_cmds_CXX=
9745 export_dynamic_flag_spec_CXX=
9746 hardcode_direct_CXX=no
9747 hardcode_libdir_flag_spec_CXX=
9748 hardcode_libdir_flag_spec_ld_CXX=
9749 hardcode_libdir_separator_CXX=
9750 hardcode_minus_L_CXX=no
9751 hardcode_automatic_CXX=no
9753 module_expsym_cmds_CXX=
9754 link_all_deplibs_CXX=unknown
9755 old_archive_cmds_CXX=$old_archive_cmds
9756 no_undefined_flag_CXX=
9757 whole_archive_flag_spec_CXX=
9758 enable_shared_with_static_runtimes_CXX=no
9760 # Dependencies to place before and after the object being linked:
9762 postdep_objects_CXX=
9765 compiler_lib_search_path_CXX=
9767 # Source file extension for C++ test sources.
9770 # Object file extension for compiled C++ test sources.
9774 # Code to be used in simple compile tests
9775 lt_simple_compile_test_code="int some_variable = 0;\n"
9777 # Code to be used in simple link tests
9778 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9780 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9782 # If no C compiler was specified, use CC.
9785 # Allow CC to be a program name with arguments.
9789 # save warnings/boilerplate of simple test code
9790 ac_outfile=conftest.$ac_objext
9791 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9793 _lt_compiler_boilerplate=`cat conftest.err`
9796 ac_outfile=conftest.$ac_objext
9797 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9799 _lt_linker_boilerplate=`cat conftest.err`
9803 # Allow CC to be a program name with arguments.
9808 lt_save_with_gnu_ld=$with_gnu_ld
9809 lt_save_path_LD=$lt_cv_path_LD
9810 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9811 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9813 unset lt_cv_prog_gnu_ld
9815 if test -n "${lt_cv_path_LDCXX+set}"; then
9816 lt_cv_path_LD=$lt_cv_path_LDCXX
9820 test -z "${LDCXX+set}" || LD=$LDCXX
9824 for cc_temp in $compiler""; do
9826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9835 # We don't want -fno-exception wen compiling C++ code, so set the
9836 # no_builtin_flag separately
9837 if test "$GXX" = yes; then
9838 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9840 lt_prog_compiler_no_builtin_flag_CXX=
9843 if test "$GXX" = yes; then
9844 # Set up default GNU C++ configuration
9847 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9848 if test "${with_gnu_ld+set}" = set; then
9849 withval="$with_gnu_ld"
9850 test "$withval" = no || with_gnu_ld=yes
9855 if test "$GCC" = yes; then
9856 # Check if gcc -print-prog-name=ld gives a path.
9857 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9858 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9861 # gcc leaves a trailing carriage return which upsets mingw
9862 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9864 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9867 # Accept absolute paths.
9869 re_direlt='/[^/][^/]*/\.\./'
9870 # Canonicalize the pathname of ld
9871 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9872 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9873 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9875 test -z "$LD" && LD="$ac_prog"
9878 # If it fails, then pretend we aren't using GCC.
9882 # If it is relative, then search for the first ld in PATH.
9886 elif test "$with_gnu_ld" = yes; then
9887 echo "$as_me:$LINENO: checking for GNU ld" >&5
9888 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9890 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9891 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9893 if test "${lt_cv_path_LD+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 if test -z "$LD"; then
9897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9898 for ac_dir in $PATH; do
9900 test -z "$ac_dir" && ac_dir=.
9901 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9902 lt_cv_path_LD="$ac_dir/$ac_prog"
9903 # Check to see if the program is GNU ld. I'd rather use --version,
9904 # but apparently some GNU ld's only accept -v.
9905 # Break only if it was the GNU/non-GNU ld that we prefer.
9906 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9907 *GNU* | *'with BFD'*)
9908 test "$with_gnu_ld" != no && break
9911 test "$with_gnu_ld" != yes && break
9918 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9923 if test -n "$LD"; then
9924 echo "$as_me:$LINENO: result: $LD" >&5
9925 echo "${ECHO_T}$LD" >&6
9927 echo "$as_me:$LINENO: result: no" >&5
9928 echo "${ECHO_T}no" >&6
9930 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9931 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9932 { (exit 1); exit 1; }; }
9933 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9934 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9935 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9939 case `$LD -v 2>&1 </dev/null` in
9940 *GNU* | *'with BFD'*)
9941 lt_cv_prog_gnu_ld=yes
9944 lt_cv_prog_gnu_ld=no
9948 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9949 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9950 with_gnu_ld=$lt_cv_prog_gnu_ld
9954 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9955 # archiving commands below assume that GNU ld is being used.
9956 if test "$with_gnu_ld" = yes; then
9957 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9960 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9961 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9963 # If archive_cmds runs LD, not CC, wlarc should be empty
9964 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9965 # investigate it a little bit more. (MM)
9968 # ancient GNU ld didn't support --whole-archive et. al.
9969 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9970 grep 'no-whole-archive' > /dev/null; then
9971 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9973 whole_archive_flag_spec_CXX=
9979 # A generic and very simple default shared library creation
9980 # command for GNU C++ for the case where it uses the native
9981 # linker, instead of GNU ld. If possible, this setting should
9982 # overridden to take advantage of the native linker features on
9983 # the platform it is being used on.
9984 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9987 # Commands to make compiler produce verbose output that lists
9988 # what "hidden" libraries, object files and flags are used when
9989 # linking a shared library.
9990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9998 # PORTME: fill in a description of your system's C++ link characteristics
9999 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10004 # FIXME: insert proper C++ library support
10008 if test "$host_cpu" = ia64; then
10009 # On IA64, the linker does run time linking by default, so we don't
10010 # have to do anything special.
10011 aix_use_runtimelinking=no
10012 exp_sym_flag='-Bexport'
10015 aix_use_runtimelinking=no
10017 # Test if we are trying to use run time linking or normal
10018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10019 # need to do runtime linking.
10020 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10021 for ld_flag in $LDFLAGS; do
10024 aix_use_runtimelinking=yes
10031 exp_sym_flag='-bexport'
10032 no_entry_flag='-bnoentry'
10035 # When large executables or shared objects are built, AIX ld can
10036 # have problems creating the table of contents. If linking a library
10037 # or program results in "error TOC overflow" add -mminimal-toc to
10038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10041 archive_cmds_CXX=''
10042 hardcode_direct_CXX=yes
10043 hardcode_libdir_separator_CXX=':'
10044 link_all_deplibs_CXX=yes
10046 if test "$GXX" = yes; then
10047 case $host_os in aix4.[012]|aix4.[012].*)
10048 # We only want to do this on AIX 4.2 and lower, the check
10049 # below for broken collect2 doesn't work under 4.3+
10050 collect2name=`${CC} -print-prog-name=collect2`
10051 if test -f "$collect2name" && \
10052 strings "$collect2name" | grep resolve_lib_name >/dev/null
10054 # We have reworked collect2
10055 hardcode_direct_CXX=yes
10057 # We have old collect2
10058 hardcode_direct_CXX=unsupported
10059 # It fails to find uninstalled libraries when the uninstalled
10060 # path is not listed in the libpath. Setting hardcode_minus_L
10061 # to unsupported forces relinking
10062 hardcode_minus_L_CXX=yes
10063 hardcode_libdir_flag_spec_CXX='-L$libdir'
10064 hardcode_libdir_separator_CXX=
10067 shared_flag='-shared'
10068 if test "$aix_use_runtimelinking" = yes; then
10069 shared_flag="$shared_flag "'${wl}-G'
10073 if test "$host_cpu" = ia64; then
10074 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10075 # chokes on -Wl,-G. The following line is correct:
10078 if test "$aix_use_runtimelinking" = yes; then
10079 shared_flag='${wl}-G'
10081 shared_flag='${wl}-bM:SRE'
10086 # It seems that -bexpall does not export symbols beginning with
10087 # underscore (_), so it is better to generate a list of symbols to export.
10088 always_export_symbols_CXX=yes
10089 if test "$aix_use_runtimelinking" = yes; then
10090 # Warning - without using the other runtime loading flags (-brtl),
10091 # -berok will link without error, but may produce a broken library.
10092 allow_undefined_flag_CXX='-berok'
10093 # Determine the default libpath from the value encoded in an empty executable.
10094 cat >conftest.$ac_ext <<_ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111 (eval $ac_link) 2>conftest.er1
10113 grep -v '^ *+' conftest.er1 >conftest.err
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -z "$ac_cxx_werror_flag"
10119 || test ! -s conftest.err'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; } &&
10125 { ac_try='test -s conftest$ac_exeext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10134 # Check for a 64-bit object if we didn't find anything.
10135 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10142 rm -f conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10146 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10148 archive_expsym_cmds_CXX="\$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"
10150 if test "$host_cpu" = ia64; then
10151 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10152 allow_undefined_flag_CXX="-z nodefs"
10153 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10155 # Determine the default libpath from the value encoded in an empty executable.
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>conftest.er1
10175 grep -v '^ *+' conftest.er1 >conftest.err
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } &&
10180 { ac_try='test -z "$ac_cxx_werror_flag"
10181 || test ! -s conftest.err'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10196 # Check for a 64-bit object if we didn't find anything.
10197 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10204 rm -f conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10208 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10209 # Warning - without using the other run time loading flags,
10210 # -berok will link without error, but may produce a broken library.
10211 no_undefined_flag_CXX=' ${wl}-bernotok'
10212 allow_undefined_flag_CXX=' ${wl}-berok'
10213 # -bexpall does not export symbols beginning with underscore (_)
10214 always_export_symbols_CXX=yes
10215 # Exported symbols can be pulled into shared objects from archives
10216 whole_archive_flag_spec_CXX=' '
10217 archive_cmds_need_lc_CXX=yes
10218 # This is similar to how AIX traditionally builds it's shared libraries.
10219 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10224 case $cc_basename in
10226 # FIXME: insert proper C++ library support
10233 cygwin* | mingw* | pw32*)
10234 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10235 # as there is no search path for DLLs.
10236 hardcode_libdir_flag_spec_CXX='-L$libdir'
10237 allow_undefined_flag_CXX=unsupported
10238 always_export_symbols_CXX=no
10239 enable_shared_with_static_runtimes_CXX=yes
10241 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10242 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10243 # If the export-symbols file already is a .def file (1st line
10244 # is EXPORTS), use it as is; otherwise, prepend...
10245 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10246 cp $export_symbols $output_objdir/$soname.def;
10248 echo EXPORTS > $output_objdir/$soname.def;
10249 cat $export_symbols >> $output_objdir/$soname.def;
10251 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10256 darwin* | rhapsody*)
10258 rhapsody* | darwin1.[012])
10259 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10262 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10263 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10265 case ${MACOSX_DEPLOYMENT_TARGET} in
10267 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10270 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10276 archive_cmds_need_lc_CXX=no
10277 hardcode_direct_CXX=no
10278 hardcode_automatic_CXX=yes
10279 hardcode_shlibpath_var_CXX=unsupported
10280 whole_archive_flag_spec_CXX=''
10281 link_all_deplibs_CXX=yes
10283 if test "$GXX" = yes ; then
10284 lt_int_apple_cc_single_mod=no
10285 output_verbose_link_cmd='echo'
10286 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10287 lt_int_apple_cc_single_mod=yes
10289 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10290 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10292 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10294 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10295 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10296 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10297 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10299 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10301 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10303 case $cc_basename in
10305 output_verbose_link_cmd='echo'
10306 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10307 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10308 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10309 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10310 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10320 case $cc_basename in
10322 # FIXME: insert proper C++ library support
10326 # Green Hills C++ Compiler
10327 # FIXME: insert proper C++ library support
10331 # FIXME: insert proper C++ library support
10337 # C++ shared libraries reported to be fairly broken before switch to ELF
10341 archive_cmds_need_lc_CXX=no
10343 freebsd* | kfreebsd*-gnu | dragonfly*)
10344 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10351 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10352 hardcode_libdir_separator_CXX=:
10353 export_dynamic_flag_spec_CXX='${wl}-E'
10354 hardcode_direct_CXX=yes
10355 hardcode_minus_L_CXX=yes # Not in the search PATH,
10356 # but as the default
10357 # location of the library.
10359 case $cc_basename in
10361 # FIXME: insert proper C++ library support
10365 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10366 # Commands to make compiler produce verbose output that lists
10367 # what "hidden" libraries, object files and flags are used when
10368 # linking a shared library.
10370 # There doesn't appear to be a way to prevent this compiler from
10371 # explicitly linking system object files so we need to strip them
10372 # from the output so that they don't get included in the library
10374 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10377 if test "$GXX" = yes; then
10378 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10380 # FIXME: insert proper C++ library support
10387 if test $with_gnu_ld = no; then
10388 case "$host_cpu" in
10390 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10391 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10392 hardcode_libdir_separator_CXX=:
10395 hardcode_libdir_flag_spec_CXX='-L$libdir'
10398 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10399 hardcode_libdir_separator_CXX=:
10400 export_dynamic_flag_spec_CXX='${wl}-E'
10404 case "$host_cpu" in
10406 hardcode_direct_CXX=no
10407 hardcode_shlibpath_var_CXX=no
10410 hardcode_direct_CXX=no
10411 hardcode_shlibpath_var_CXX=no
10412 hardcode_minus_L_CXX=yes # Not in the search PATH,
10413 # but as the default
10414 # location of the library.
10417 hardcode_direct_CXX=yes
10418 hardcode_minus_L_CXX=yes # Not in the search PATH,
10419 # but as the default
10420 # location of the library.
10424 case $cc_basename in
10426 # FIXME: insert proper C++ library support
10430 case "$host_cpu" in
10432 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10438 # Commands to make compiler produce verbose output that lists
10439 # what "hidden" libraries, object files and flags are used when
10440 # linking a shared library.
10442 # There doesn't appear to be a way to prevent this compiler from
10443 # explicitly linking system object files so we need to strip them
10444 # from the output so that they don't get included in the library
10446 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10449 if test "$GXX" = yes; then
10450 if test $with_gnu_ld = no; then
10451 case "$host_cpu" in
10453 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10456 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10461 # FIXME: insert proper C++ library support
10468 case $cc_basename in
10471 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10473 # Archives containing C++ object files must be created using
10474 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10475 # necessary to make sure instantiated templates are included
10477 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10480 if test "$GXX" = yes; then
10481 if test "$with_gnu_ld" = no; then
10482 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
10484 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10487 link_all_deplibs_CXX=yes
10490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10491 hardcode_libdir_separator_CXX=:
10494 case $cc_basename in
10496 # Kuck and Associates, Inc. (KAI) C++ Compiler
10498 # KCC will only create a shared library if the output file
10499 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10500 # to its proper name (with version) after linking.
10501 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10502 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10503 # Commands to make compiler produce verbose output that lists
10504 # what "hidden" libraries, object files and flags are used when
10505 # linking a shared library.
10507 # There doesn't appear to be a way to prevent this compiler from
10508 # explicitly linking system object files so we need to strip them
10509 # from the output so that they don't get included in the library
10511 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10513 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10516 # Archives containing C++ object files must be created using
10517 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10518 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10523 # version 8.0 and above of icpc choke on multiply defined symbols
10524 # if we add $predep_objects and $postdep_objects, however 7.1 and
10525 # earlier do not add the objects themselves.
10526 case `$CC -V 2>&1` in
10528 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10529 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10531 *) # Version 8.0 or newer
10534 ia64*) tmp_idyn=' -i_dynamic';;
10536 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10537 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10540 archive_cmds_need_lc_CXX=no
10541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10543 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10546 # Portland Group C++ compiler
10547 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10548 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10550 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10552 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10556 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10559 runpath_var=LD_RUN_PATH
10560 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10561 hardcode_libdir_separator_CXX=:
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10567 # There doesn't appear to be a way to prevent this compiler from
10568 # explicitly linking system object files so we need to strip them
10569 # from the output so that they don't get included in the library
10571 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10576 # FIXME: insert proper C++ library support
10580 # FIXME: insert proper C++ library support
10584 case $cc_basename in
10586 # FIXME: insert proper C++ library support
10590 # FIXME: insert proper C++ library support
10596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10597 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10599 hardcode_libdir_flag_spec_CXX='-R$libdir'
10600 hardcode_direct_CXX=yes
10601 hardcode_shlibpath_var_CXX=no
10603 # Workaround some broken pre-1.5 toolchains
10604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10607 # C++ shared libraries are fairly broken
10611 hardcode_direct_CXX=yes
10612 hardcode_shlibpath_var_CXX=no
10613 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10617 export_dynamic_flag_spec_CXX='${wl}-E'
10618 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10620 output_verbose_link_cmd='echo'
10623 case $cc_basename in
10625 # Kuck and Associates, Inc. (KAI) C++ Compiler
10627 # KCC will only create a shared library if the output file
10628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10629 # to its proper name (with version) after linking.
10630 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10633 hardcode_libdir_separator_CXX=:
10635 # Archives containing C++ object files must be created using
10636 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10637 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10641 # Rational C++ 2.4.1
10642 # FIXME: insert proper C++ library support
10646 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10647 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10650 hardcode_libdir_separator_CXX=:
10652 # Commands to make compiler produce verbose output that lists
10653 # what "hidden" libraries, object files and flags are used when
10654 # linking a shared library.
10656 # There doesn't appear to be a way to prevent this compiler from
10657 # explicitly linking system object files so we need to strip them
10658 # from the output so that they don't get included in the library
10660 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10664 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10665 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
10667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10668 hardcode_libdir_separator_CXX=:
10670 # Commands to make compiler produce verbose output that lists
10671 # what "hidden" libraries, object files and flags are used when
10672 # linking a shared library.
10673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10676 # FIXME: insert proper C++ library support
10683 case $cc_basename in
10685 # Kuck and Associates, Inc. (KAI) C++ Compiler
10687 # KCC will only create a shared library if the output file
10688 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10689 # to its proper name (with version) after linking.
10690 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10693 hardcode_libdir_separator_CXX=:
10695 # Archives containing C++ object files must be created using
10696 # the KAI C++ compiler.
10697 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10700 # Rational C++ 2.4.1
10701 # FIXME: insert proper C++ library support
10705 allow_undefined_flag_CXX=' -expect_unresolved \*'
10706 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10707 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10708 echo "-hidden">> $lib.exp~
10709 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10712 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10713 hardcode_libdir_separator_CXX=:
10715 # Commands to make compiler produce verbose output that lists
10716 # what "hidden" libraries, object files and flags are used when
10717 # linking a shared library.
10719 # There doesn't appear to be a way to prevent this compiler from
10720 # explicitly linking system object files so we need to strip them
10721 # from the output so that they don't get included in the library
10723 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10726 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10727 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10728 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
10730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10731 hardcode_libdir_separator_CXX=:
10733 # Commands to make compiler produce verbose output that lists
10734 # what "hidden" libraries, object files and flags are used when
10735 # linking a shared library.
10736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10739 # FIXME: insert proper C++ library support
10746 # FIXME: insert proper C++ library support
10750 archive_cmds_need_lc_CXX=no
10751 case $cc_basename in
10753 # FIXME: insert proper C++ library support
10757 # FIXME: insert proper C++ library support
10763 case $cc_basename in
10766 # FIXME: insert proper C++ library support
10771 # FIXME: insert proper C++ library support
10775 # FIXME: insert proper C++ library support
10781 case $cc_basename in
10783 # Sun C++ 4.2, 5.x and Centerline C++
10784 no_undefined_flag_CXX=' -zdefs'
10785 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10786 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10787 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10789 hardcode_libdir_flag_spec_CXX='-R$libdir'
10790 hardcode_shlibpath_var_CXX=no
10792 solaris2.[0-5] | solaris2.[0-5].*) ;;
10794 # The C++ compiler is used as linker so we must use $wl
10795 # flag to pass the commands to the underlying system
10796 # linker. We must also pass each convience library through
10797 # to the system linker between allextract/defaultextract.
10798 # The C++ compiler will combine linker options so we
10799 # cannot just pass the convience library names through
10801 # Supported since Solaris 2.6 (maybe 2.5.1?)
10802 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10805 link_all_deplibs_CXX=yes
10807 # Commands to make compiler produce verbose output that lists
10808 # what "hidden" libraries, object files and flags are used when
10809 # linking a shared library.
10811 # There doesn't appear to be a way to prevent this compiler from
10812 # explicitly linking system object files so we need to strip them
10813 # from the output so that they don't get included in the library
10815 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10817 # Archives containing C++ object files must be created using
10818 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10819 # necessary to make sure instantiated templates are included
10821 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10824 # Green Hills C++ Compiler
10825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10827 # The C++ compiler must be used to create the archive.
10828 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10831 # GNU C++ compiler with Solaris linker
10832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10833 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10834 if $CC --version | grep -v '^2\.7' > /dev/null; then
10835 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10836 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10837 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10839 # Commands to make compiler produce verbose output that lists
10840 # what "hidden" libraries, object files and flags are used when
10841 # linking a shared library.
10842 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10844 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10846 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10847 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10848 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10850 # Commands to make compiler produce verbose output that lists
10851 # what "hidden" libraries, object files and flags are used when
10852 # linking a shared library.
10853 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10856 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10861 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10862 archive_cmds_need_lc_CXX=no
10865 case $cc_basename in
10867 # NonStop-UX NCC 3.20
10868 # FIXME: insert proper C++ library support
10872 # FIXME: insert proper C++ library support
10878 # FIXME: insert proper C++ library support
10882 # FIXME: insert proper C++ library support
10886 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10887 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10888 test "$ld_shlibs_CXX" = no && can_build_shared=no
10894 cat > conftest.$ac_ext <<EOF
10898 Foo (void) { a = 0; }
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; then
10909 # Parse the compiler output and extract the necessary
10910 # objects, libraries and library flags.
10912 # Sentinel used to keep track of whether or not we are before
10913 # the conftest object file.
10914 pre_test_object_deps_done=no
10916 # The `*' in the case matches for architectures that use `case' in
10917 # $output_verbose_cmd can trigger glob expansion during the loop
10918 # eval without this substitution.
10919 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10921 for p in `eval $output_verbose_link_cmd`; do
10925 # Some compilers place space between "-{L,R}" and the path.
10926 # Remove the space.
10927 if test $p = "-L" \
10928 || test $p = "-R"; then
10935 if test "$pre_test_object_deps_done" = no; then
10938 # Internal compiler library paths should come after those
10939 # provided the user. The postdeps already come after the
10940 # user supplied libs so there is no need to process them.
10941 if test -z "$compiler_lib_search_path_CXX"; then
10942 compiler_lib_search_path_CXX="${prev}${p}"
10944 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10947 # The "-l" case would never come before the object being
10948 # linked, so don't bother handling this case.
10951 if test -z "$postdeps_CXX"; then
10952 postdeps_CXX="${prev}${p}"
10954 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10960 # This assumes that the test object file only shows up
10961 # once in the compiler output.
10962 if test "$p" = "conftest.$objext"; then
10963 pre_test_object_deps_done=yes
10967 if test "$pre_test_object_deps_done" = no; then
10968 if test -z "$predep_objects_CXX"; then
10969 predep_objects_CXX="$p"
10971 predep_objects_CXX="$predep_objects_CXX $p"
10974 if test -z "$postdep_objects_CXX"; then
10975 postdep_objects_CXX="$p"
10977 postdep_objects_CXX="$postdep_objects_CXX $p"
10982 *) ;; # Ignore the rest.
10990 echo "libtool.m4: error: problem compiling CXX test program"
10993 $rm -f confest.$objext
10995 case " $postdeps_CXX " in
10996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10999 lt_prog_compiler_wl_CXX=
11000 lt_prog_compiler_pic_CXX=
11001 lt_prog_compiler_static_CXX=
11003 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11006 # C++ specific cases for pic, static, wl, etc.
11007 if test "$GXX" = yes; then
11008 lt_prog_compiler_wl_CXX='-Wl,'
11009 lt_prog_compiler_static_CXX='-static'
11013 # All AIX code is PIC.
11014 if test "$host_cpu" = ia64; then
11015 # AIX 5 now supports IA64 processor
11016 lt_prog_compiler_static_CXX='-Bstatic'
11020 # FIXME: we need at least 68020 code to build shared libraries, but
11021 # adding the `-m68020' flag to GCC prevents building anything better,
11023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11025 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11026 # PIC is the default for these OSes.
11028 mingw* | os2* | pw32*)
11029 # This hack is so that the source file can tell whether it is being
11030 # built for inclusion in a dll (and should export symbols for example).
11031 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11033 darwin* | rhapsody*)
11034 # PIC is the default on this platform
11035 # Common symbols not allowed in MH_DYLIB files
11036 lt_prog_compiler_pic_CXX='-fno-common'
11039 # DJGPP does not support shared libraries at all
11040 lt_prog_compiler_pic_CXX=
11043 if test -d /usr/nec; then
11044 lt_prog_compiler_pic_CXX=-Kconform_pic
11048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11049 # not for PA HP-UX.
11050 case "$host_cpu" in
11054 lt_prog_compiler_pic_CXX='-fPIC'
11059 lt_prog_compiler_pic_CXX='-fPIC'
11065 # All AIX code is PIC.
11066 if test "$host_cpu" = ia64; then
11067 # AIX 5 now supports IA64 processor
11068 lt_prog_compiler_static_CXX='-Bstatic'
11070 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11074 case $cc_basename in
11076 # Green Hills C++ Compiler
11077 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11082 # PIC is the default on this platform
11083 # Common symbols not allowed in MH_DYLIB files
11084 case $cc_basename in
11086 lt_prog_compiler_pic_CXX='-qnocommon'
11087 lt_prog_compiler_wl_CXX='-Wl,'
11092 case $cc_basename in
11094 lt_prog_compiler_pic_CXX='-KPIC'
11097 # Green Hills C++ Compiler
11098 lt_prog_compiler_pic_CXX='-pic'
11104 freebsd* | kfreebsd*-gnu | dragonfly*)
11105 # FreeBSD uses GNU C++
11107 hpux9* | hpux10* | hpux11*)
11108 case $cc_basename in
11110 lt_prog_compiler_wl_CXX='-Wl,'
11111 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11112 if test "$host_cpu" != ia64; then
11113 lt_prog_compiler_pic_CXX='+Z'
11117 lt_prog_compiler_wl_CXX='-Wl,'
11118 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11119 case "$host_cpu" in
11124 lt_prog_compiler_pic_CXX='+Z'
11132 irix5* | irix6* | nonstopux*)
11133 case $cc_basename in
11135 lt_prog_compiler_wl_CXX='-Wl,'
11136 lt_prog_compiler_static_CXX='-non_shared'
11137 # CC pic flag -KPIC is the default.
11144 case $cc_basename in
11147 lt_prog_compiler_wl_CXX='--backend -Wl,'
11148 lt_prog_compiler_pic_CXX='-fPIC'
11152 lt_prog_compiler_wl_CXX='-Wl,'
11153 lt_prog_compiler_pic_CXX='-KPIC'
11154 lt_prog_compiler_static_CXX='-static'
11157 # Portland Group C++ compiler.
11158 lt_prog_compiler_wl_CXX='-Wl,'
11159 lt_prog_compiler_pic_CXX='-fpic'
11160 lt_prog_compiler_static_CXX='-static'
11164 # Make sure the PIC flag is empty. It appears that all Alpha
11165 # Linux and Compaq Tru64 Unix objects are PIC.
11166 lt_prog_compiler_pic_CXX=
11167 lt_prog_compiler_static_CXX='-non_shared'
11178 case $cc_basename in
11180 lt_prog_compiler_pic_CXX='-W c,exportall'
11188 osf3* | osf4* | osf5*)
11189 case $cc_basename in
11191 lt_prog_compiler_wl_CXX='--backend -Wl,'
11194 # Rational C++ 2.4.1
11195 lt_prog_compiler_pic_CXX='-pic'
11198 # Digital/Compaq C++
11199 lt_prog_compiler_wl_CXX='-Wl,'
11200 # Make sure the PIC flag is empty. It appears that all Alpha
11201 # Linux and Compaq Tru64 Unix objects are PIC.
11202 lt_prog_compiler_pic_CXX=
11203 lt_prog_compiler_static_CXX='-non_shared'
11212 case $cc_basename in
11214 lt_prog_compiler_pic_CXX='-fPIC'
11221 case $cc_basename in
11223 # Sun C++ 4.2, 5.x and Centerline C++
11224 lt_prog_compiler_pic_CXX='-KPIC'
11225 lt_prog_compiler_static_CXX='-Bstatic'
11226 lt_prog_compiler_wl_CXX='-Qoption ld '
11229 # Green Hills C++ Compiler
11230 lt_prog_compiler_pic_CXX='-PIC'
11237 case $cc_basename in
11240 lt_prog_compiler_pic_CXX='-pic'
11241 lt_prog_compiler_static_CXX='-Bstatic'
11245 lt_prog_compiler_pic_CXX='-pic'
11252 case $cc_basename in
11254 # NonStop-UX NCC 3.20
11255 lt_prog_compiler_pic_CXX='-KPIC'
11266 lt_prog_compiler_can_build_shared_CXX=no
11271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11272 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11275 # Check to make sure the PIC flag actually works.
11277 if test -n "$lt_prog_compiler_pic_CXX"; then
11279 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11280 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11281 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 lt_prog_compiler_pic_works_CXX=no
11285 ac_outfile=conftest.$ac_objext
11286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11287 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11288 # Insert the option either (1) after the last *FLAGS variable, or
11289 # (2) before a word containing "conftest.", or (3) at the end.
11290 # Note that $ac_compile itself does not contain backslashes and begins
11291 # with a dollar sign (not a hyphen), so the echo should work correctly.
11292 # The option is referenced via a variable to avoid confusing sed.
11293 lt_compile=`echo "$ac_compile" | $SED \
11294 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11296 -e 's:$: $lt_compiler_flag:'`
11297 (eval echo "\"\$as_me:11297: $lt_compile\"" >&5)
11298 (eval "$lt_compile" 2>conftest.err)
11300 cat conftest.err >&5
11301 echo "$as_me:11301: \$? = $ac_status" >&5
11302 if (exit $ac_status) && test -s "$ac_outfile"; then
11303 # The compiler can only warn and ignore the option if not recognized
11304 # So say no if there are warnings other than the usual output.
11305 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11306 $SED '/^$/d' conftest.err >conftest.er2
11307 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11308 lt_prog_compiler_pic_works_CXX=yes
11314 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11315 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11317 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11318 case $lt_prog_compiler_pic_CXX in
11320 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11323 lt_prog_compiler_pic_CXX=
11324 lt_prog_compiler_can_build_shared_CXX=no
11329 # For platforms which do not support PIC, -DPIC is meaningless:
11331 lt_prog_compiler_pic_CXX=
11334 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11338 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11339 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11340 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 lt_cv_prog_compiler_c_o_CXX=no
11344 $rm -r conftest 2>/dev/null
11348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11350 lt_compiler_flag="-o out/conftest2.$ac_objext"
11351 # Insert the option either (1) after the last *FLAGS variable, or
11352 # (2) before a word containing "conftest.", or (3) at the end.
11353 # Note that $ac_compile itself does not contain backslashes and begins
11354 # with a dollar sign (not a hyphen), so the echo should work correctly.
11355 lt_compile=`echo "$ac_compile" | $SED \
11356 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11358 -e 's:$: $lt_compiler_flag:'`
11359 (eval echo "\"\$as_me:11359: $lt_compile\"" >&5)
11360 (eval "$lt_compile" 2>out/conftest.err)
11362 cat out/conftest.err >&5
11363 echo "$as_me:11363: \$? = $ac_status" >&5
11364 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11366 # The compiler can only warn and ignore the option if not recognized
11367 # So say no if there are warnings
11368 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11369 $SED '/^$/d' out/conftest.err >out/conftest.er2
11370 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11371 lt_cv_prog_compiler_c_o_CXX=yes
11376 # SGI C++ compiler will create directory out/ii_files/ for
11377 # template instantiation
11378 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11379 $rm out/* && rmdir out
11385 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11386 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11389 hard_links="nottested"
11390 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11391 # do not overwrite the value of need_locks provided by the user
11392 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11393 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11398 ln conftest.a conftest.b 2>&5 || hard_links=no
11399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11400 echo "$as_me:$LINENO: result: $hard_links" >&5
11401 echo "${ECHO_T}$hard_links" >&6
11402 if test "$hard_links" = no; then
11403 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11404 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11411 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11412 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11414 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11417 # If we're using GNU nm, then we don't want the "-C" option.
11418 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11419 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11420 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11422 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11426 export_symbols_cmds_CXX="$ltdll_cmds"
11429 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11432 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11436 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11437 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11438 test "$ld_shlibs_CXX" = no && can_build_shared=no
11440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11441 if test "$GCC" = yes; then
11442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11446 # Do we need to explicitly link libc?
11448 case "x$archive_cmds_need_lc_CXX" in
11450 # Assume -lc should be added
11451 archive_cmds_need_lc_CXX=yes
11453 if test "$enable_shared" = yes && test "$GCC" = yes; then
11454 case $archive_cmds_CXX in
11456 # FIXME: we may have to deal with multi-command sequences.
11459 # Test whether the compiler implicitly links with -lc since on some
11460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11461 # to ld, don't add -lc before -lgcc.
11462 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11468 (eval $ac_compile) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } 2>conftest.err; then
11474 libobjs=conftest.$ac_objext
11476 wl=$lt_prog_compiler_wl_CXX
11482 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11483 allow_undefined_flag_CXX=
11484 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11485 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }
11490 archive_cmds_need_lc_CXX=no
11492 archive_cmds_need_lc_CXX=yes
11494 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11496 cat conftest.err 1>&5
11499 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11500 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11509 library_names_spec=
11510 libname_spec='lib$name'
11514 postuninstall_cmds=
11518 shlibpath_overrides_runpath=unknown
11520 dynamic_linker="$host_os ld.so"
11521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11522 if test "$GCC" = yes; then
11523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11524 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11525 # if the path contains ";" then we assume it to be the separator
11526 # otherwise default to the standard path separator (i.e. ":") - it is
11527 # assumed that no part of a normal pathname contains ";" but that should
11528 # okay in the real world where ";" in dirpaths is itself problematic.
11529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11536 need_lib_prefix=unknown
11537 hardcode_into_libs=no
11539 # when you set need_version to no, make sure it does not cause -set_version
11540 # flags to be left without arguments
11541 need_version=unknown
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11547 shlibpath_var=LIBPATH
11549 # AIX 3 has no versioning support, so we append a major version to the name.
11550 soname_spec='${libname}${release}${shared_ext}$major'
11557 hardcode_into_libs=yes
11558 if test "$host_cpu" = ia64; then
11559 # AIX 5 supports IA64
11560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11561 shlibpath_var=LD_LIBRARY_PATH
11563 # With GCC up to 2.95.x, collect2 would create an import file
11564 # for dependence libraries. The import file would start with
11565 # the line `#! .'. This would cause the generated library to
11566 # depend on `.', always an invalid library. This was fixed in
11567 # development snapshots of GCC prior to 3.0.
11569 aix4 | aix4.[01] | aix4.[01].*)
11570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11572 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11575 can_build_shared=no
11579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11580 # soname into executable. Probably we can add versioning support to
11581 # collect2, so additional links can be useful in future.
11582 if test "$aix_use_runtimelinking" = yes; then
11583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11584 # instead of lib<name>.a to let people know that these are not
11585 # typical AIX shared libraries.
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 # We preserve .a as extension for shared libraries through AIX4.2
11589 # and later when we are not doing run time linking.
11590 library_names_spec='${libname}${release}.a $libname.a'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11593 shlibpath_var=LIBPATH
11598 library_names_spec='$libname.ixlibrary $libname.a'
11599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11600 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'
11604 library_names_spec='${libname}${shared_ext}'
11605 dynamic_linker="$host_os ld.so"
11606 shlibpath_var=LIBRARY_PATH
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11618 # the default ld.so.conf also contains /usr/contrib/lib and
11619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11620 # libtool to hard-code these into programs
11623 cygwin* | mingw* | pw32*)
11624 version_type=windows
11629 case $GCC,$host_os in
11630 yes,cygwin* | yes,mingw* | yes,pw32*)
11631 library_names_spec='$libname.dll.a'
11632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11633 postinstall_cmds='base_file=`basename \${file}`~
11634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11635 dldir=$destdir/`dirname \$dlpath`~
11636 test -d \$dldir || mkdir -p \$dldir~
11637 $install_prog $dir/$dlname \$dldir/$dlname'
11638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11639 dlpath=$dir/\$dldll~
11641 shlibpath_overrides_runpath=yes
11645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11650 # MinGW DLLs use traditional 'lib' prefix
11651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11653 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11654 # It is most probably a Windows format PATH printed by
11655 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11656 # path with ; separators, and with drive letters. We can handle the
11657 # drive letters (cygwin fileutils understands them), so leave them,
11658 # especially as we might pass files found there to a mingw objdump,
11659 # which wouldn't understand a cygwinified path. Ahh.
11660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11666 # pw32 DLLs use 'pw' prefix rather than 'lib'
11667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11676 dynamic_linker='Win32 ld.exe'
11677 # FIXME: first we should search . and the directory the executable is in
11681 darwin* | rhapsody*)
11682 dynamic_linker="$host_os dyld"
11683 version_type=darwin
11686 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11687 soname_spec='${libname}${release}${major}$shared_ext'
11688 shlibpath_overrides_runpath=yes
11689 shlibpath_var=DYLD_LIBRARY_PATH
11690 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11691 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11692 if test "$GCC" = yes; then
11693 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11695 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 shlibpath_var=LD_LIBRARY_PATH
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=no
11721 hardcode_into_libs=yes
11722 dynamic_linker='GNU ld.so'
11725 freebsd* | dragonfly*)
11726 # DragonFly does not have aout. When/if they implement a new
11727 # versioning mechanism, adjust this.
11728 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11729 version_type=freebsd-$objformat
11730 case $version_type in
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11741 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=yes
11746 freebsd3.[01]* | freebsdelf3.[01]*)
11747 shlibpath_overrides_runpath=yes
11748 hardcode_into_libs=yes
11751 shlibpath_overrides_runpath=no
11752 hardcode_into_libs=yes
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 hardcode_into_libs=yes
11767 hpux9* | hpux10* | hpux11*)
11768 # Give a soname corresponding to the major version so that dld.sl refuses to
11769 # link against other versions.
11773 case "$host_cpu" in
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.so"
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 if test "X$HPUX_IA64_MODE" = X32; then
11783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11791 hardcode_into_libs=yes
11792 dynamic_linker="$host_os dld.sl"
11793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11802 dynamic_linker="$host_os dld.sl"
11803 shlibpath_var=SHLIB_PATH
11804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 soname_spec='${libname}${release}${shared_ext}$major'
11809 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11810 postinstall_cmds='chmod 555 $lib'
11813 irix5* | irix6* | nonstopux*)
11815 nonstopux*) version_type=nonstopux ;;
11817 if test "$lt_cv_prog_gnu_ld" = yes; then
11825 soname_spec='${libname}${release}${shared_ext}$major'
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11828 irix5* | nonstopux*)
11829 libsuff= shlibsuff=
11832 case $LD in # libtool.m4 will add one of these switches to LD
11833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11834 libsuff= shlibsuff= libmagic=32-bit;;
11835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11836 libsuff=32 shlibsuff=N32 libmagic=N32;;
11837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11839 *) libsuff= shlibsuff= libmagic=never-match;;
11843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11844 shlibpath_overrides_runpath=no
11845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11847 hardcode_into_libs=yes
11850 # No shared lib support for Linux oldld, aout, or coff.
11851 linux*oldld* | linux*aout* | linux*coff*)
11855 # This must be Linux ELF.
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=no
11865 # This implies no fast_install, which is unacceptable.
11866 # Some rework will be needed to allow for fast_install
11867 # before this can be enabled.
11868 hardcode_into_libs=yes
11870 # Append ld.so.conf contents to the search path
11871 if test -f /etc/ld.so.conf; then
11872 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; shopt -s nullglob; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11873 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11876 # We used to test for /lib/ld.so.1 and disable shared libraries on
11877 # powerpc, because MkLinux only supported shared libraries with the
11878 # GNU dynamic linker. Since this was broken with cross compilers,
11879 # most powerpc-linux boxes support dynamic linking these days and
11880 # people can always --disable-shared, the test was removed, and we
11881 # assume the GNU/Linux dynamic linker is in use.
11882 dynamic_linker='GNU/Linux ld.so'
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=no
11893 hardcode_into_libs=yes
11894 dynamic_linker='GNU ld.so'
11901 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11904 dynamic_linker='NetBSD (a.out) ld.so'
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 dynamic_linker='NetBSD ld.elf_so'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 hardcode_into_libs=yes
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918 shlibpath_var=LD_LIBRARY_PATH
11919 shlibpath_overrides_runpath=yes
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=yes
11935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11938 *) need_version=no ;;
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11945 openbsd2.[89] | openbsd2.[89].*)
11946 shlibpath_overrides_runpath=no
11949 shlibpath_overrides_runpath=yes
11953 shlibpath_overrides_runpath=yes
11958 libname_spec='$name'
11961 library_names_spec='$libname${shared_ext} $libname.a'
11962 dynamic_linker='OS/2 ld.exe'
11963 shlibpath_var=LIBPATH
11966 osf3* | osf4* | osf5*)
11970 soname_spec='${libname}${release}${shared_ext}$major'
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11979 soname_spec='${libname}${release}${shared_ext}$major'
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11981 shlibpath_var=LD_LIBRARY_PATH
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989 soname_spec='${libname}${release}${shared_ext}$major'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 shlibpath_overrides_runpath=yes
11992 hardcode_into_libs=yes
11993 # ldd complains unless libraries are executable
11994 postinstall_cmds='chmod +x $lib'
11999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12001 shlibpath_var=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath=yes
12003 if test "$with_gnu_ld" = yes; then
12009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012 soname_spec='${libname}${release}${shared_ext}$major'
12013 shlibpath_var=LD_LIBRARY_PATH
12014 case $host_vendor in
12016 shlibpath_overrides_runpath=no
12018 export_dynamic_flag_spec='${wl}-Blargedynsym'
12019 runpath_var=LD_RUN_PATH
12027 shlibpath_overrides_runpath=no
12028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12034 if test -d /usr/nec ;then
12036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12037 soname_spec='$libname${shared_ext}.$major'
12038 shlibpath_var=LD_LIBRARY_PATH
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 shlibpath_var=LD_LIBRARY_PATH
12053 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12054 echo "${ECHO_T}$dynamic_linker" >&6
12055 test "$dynamic_linker" = no && can_build_shared=no
12057 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12058 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12059 hardcode_action_CXX=
12060 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12061 test -n "$runpath_var_CXX" || \
12062 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12064 # We can hardcode non-existant directories.
12065 if test "$hardcode_direct_CXX" != no &&
12066 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12067 # have to relink, otherwise we might link with an installed library
12068 # when we should be linking with a yet-to-be-installed one
12069 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12070 test "$hardcode_minus_L_CXX" != no; then
12071 # Linking always hardcodes the temporary library directory.
12072 hardcode_action_CXX=relink
12074 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12075 hardcode_action_CXX=immediate
12078 # We cannot hardcode anything, or else we can only hardcode existing
12080 hardcode_action_CXX=unsupported
12082 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12083 echo "${ECHO_T}$hardcode_action_CXX" >&6
12085 if test "$hardcode_action_CXX" = relink; then
12086 # Fast installation is not supported
12087 enable_fast_install=no
12088 elif test "$shlibpath_overrides_runpath" = yes ||
12089 test "$enable_shared" = no; then
12090 # Fast installation is not necessary
12091 enable_fast_install=needless
12096 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12097 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12098 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12099 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12100 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12101 echo "$as_me:$LINENO: result: yes" >&5
12102 echo "${ECHO_T}yes" >&6
12104 # FIXME - insert some real tests, host_os isn't really good enough
12107 if test -n "$STRIP" ; then
12108 striplib="$STRIP -x"
12109 echo "$as_me:$LINENO: result: yes" >&5
12110 echo "${ECHO_T}yes" >&6
12112 echo "$as_me:$LINENO: result: no" >&5
12113 echo "${ECHO_T}no" >&6
12117 echo "$as_me:$LINENO: result: no" >&5
12118 echo "${ECHO_T}no" >&6
12123 if test "x$enable_dlopen" != xyes; then
12124 enable_dlopen=unknown
12125 enable_dlopen_self=unknown
12126 enable_dlopen_self_static=unknown
12133 lt_cv_dlopen="load_add_on"
12135 lt_cv_dlopen_self=yes
12139 lt_cv_dlopen="LoadLibrary"
12144 lt_cv_dlopen="dlopen"
12149 # if libdl is installed we need to link against it
12150 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 ac_check_lib_save_LIBS=$LIBS
12157 cat >conftest.$ac_ext <<_ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12164 /* Override any gcc2 internal prototype to avoid an error. */
12168 /* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_cxx_werror_flag"
12189 || test ! -s conftest.err'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest$ac_exeext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_lib_dl_dlopen=yes
12203 echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12206 ac_cv_lib_dl_dlopen=no
12208 rm -f conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12212 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12214 if test $ac_cv_lib_dl_dlopen = yes; then
12215 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12218 lt_cv_dlopen="dyld"
12220 lt_cv_dlopen_self=yes
12227 echo "$as_me:$LINENO: checking for shl_load" >&5
12228 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12229 if test "${ac_cv_func_shl_load+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12240 #define shl_load innocuous_shl_load
12242 /* System header to define __stub macros and hopefully few prototypes,
12243 which can conflict with char shl_load (); below.
12244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12245 <limits.h> exists even on freestanding compilers. */
12248 # include <limits.h>
12250 # include <assert.h>
12255 /* Override any gcc2 internal prototype to avoid an error. */
12260 /* We use char because int might match the return type of a gcc2
12261 builtin and then its argument prototype would still apply. */
12263 /* The GNU C library defines this for functions which it implements
12264 to always fail with ENOSYS. Some functions are actually named
12265 something starting with __ and the normal name is an alias. */
12266 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12269 char (*f) () = shl_load;
12278 return f != shl_load;
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12285 (eval $ac_link) 2>conftest.er1
12287 grep -v '^ *+' conftest.er1 >conftest.err
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
12292 { ac_try='test -z "$ac_cxx_werror_flag"
12293 || test ! -s conftest.err'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 ac_cv_func_shl_load=yes
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 ac_cv_func_shl_load=no
12312 rm -f conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12315 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12316 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12317 if test $ac_cv_func_shl_load = yes; then
12318 lt_cv_dlopen="shl_load"
12320 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12321 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12322 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_check_lib_save_LIBS=$LIBS
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 /* Override any gcc2 internal prototype to avoid an error. */
12338 /* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_cxx_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_lib_dld_shl_load=yes
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_cv_lib_dld_shl_load=no
12378 rm -f conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12383 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12384 if test $ac_cv_lib_dld_shl_load = yes; then
12385 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12387 echo "$as_me:$LINENO: checking for dlopen" >&5
12388 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12389 if test "${ac_cv_func_dlopen+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define dlopen innocuous_dlopen
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char dlopen (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12408 # include <limits.h>
12410 # include <assert.h>
12415 /* Override any gcc2 internal prototype to avoid an error. */
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12423 /* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12429 char (*f) () = dlopen;
12438 return f != dlopen;
12443 rm -f conftest.$ac_objext conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>conftest.er1
12447 grep -v '^ *+' conftest.er1 >conftest.err
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_cxx_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_func_dlopen=yes
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_cv_func_dlopen=no
12472 rm -f conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12475 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12476 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12477 if test $ac_cv_func_dlopen = yes; then
12478 lt_cv_dlopen="dlopen"
12480 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12481 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 ac_check_lib_save_LIBS=$LIBS
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12494 /* Override any gcc2 internal prototype to avoid an error. */
12498 /* We use char because int might match the return type of a gcc2
12499 builtin and then its argument prototype would still apply. */
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511 (eval $ac_link) 2>conftest.er1
12513 grep -v '^ *+' conftest.er1 >conftest.err
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -z "$ac_cxx_werror_flag"
12519 || test ! -s conftest.err'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest$ac_exeext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_cv_lib_dl_dlopen=yes
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12536 ac_cv_lib_dl_dlopen=no
12538 rm -f conftest.err conftest.$ac_objext \
12539 conftest$ac_exeext conftest.$ac_ext
12540 LIBS=$ac_check_lib_save_LIBS
12542 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12544 if test $ac_cv_lib_dl_dlopen = yes; then
12545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12547 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12548 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12549 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 ac_check_lib_save_LIBS=$LIBS
12553 LIBS="-lsvld $LIBS"
12554 cat >conftest.$ac_ext <<_ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12561 /* Override any gcc2 internal prototype to avoid an error. */
12565 /* We use char because int might match the return type of a gcc2
12566 builtin and then its argument prototype would still apply. */
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578 (eval $ac_link) 2>conftest.er1
12580 grep -v '^ *+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -z "$ac_cxx_werror_flag"
12586 || test ! -s conftest.err'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; } &&
12592 { ac_try='test -s conftest$ac_exeext'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12598 ac_cv_lib_svld_dlopen=yes
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_cv_lib_svld_dlopen=no
12605 rm -f conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12609 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12610 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12611 if test $ac_cv_lib_svld_dlopen = yes; then
12612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12614 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12615 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12616 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 ac_check_lib_save_LIBS=$LIBS
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12628 /* Override any gcc2 internal prototype to avoid an error. */
12632 /* We use char because int might match the return type of a gcc2
12633 builtin and then its argument prototype would still apply. */
12643 rm -f conftest.$ac_objext conftest$ac_exeext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645 (eval $ac_link) 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_cxx_werror_flag"
12653 || test ! -s conftest.err'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest$ac_exeext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 ac_cv_lib_dld_dld_link=yes
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 ac_cv_lib_dld_dld_link=no
12672 rm -f conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12676 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12677 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12678 if test $ac_cv_lib_dld_dld_link = yes; then
12679 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12700 if test "x$lt_cv_dlopen" != xno; then
12706 case $lt_cv_dlopen in
12708 save_CPPFLAGS="$CPPFLAGS"
12709 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12711 save_LDFLAGS="$LDFLAGS"
12712 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12715 LIBS="$lt_cv_dlopen_libs $LIBS"
12717 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12718 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12719 if test "${lt_cv_dlopen_self+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 if test "$cross_compiling" = yes; then :
12723 lt_cv_dlopen_self=cross
12725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12726 lt_status=$lt_dlunknown
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12728 "configure"
12729 #include "confdefs.h"
12738 # define LT_DLGLOBAL RTLD_GLOBAL
12741 # define LT_DLGLOBAL DL_GLOBAL
12743 # define LT_DLGLOBAL 0
12747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12748 find out it does not work in some platform. */
12749 #ifndef LT_DLLAZY_OR_NOW
12751 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12754 # define LT_DLLAZY_OR_NOW DL_LAZY
12757 # define LT_DLLAZY_OR_NOW RTLD_NOW
12760 # define LT_DLLAZY_OR_NOW DL_NOW
12762 # define LT_DLLAZY_OR_NOW 0
12770 extern "C" void exit (int);
12773 void fnord() { int i=42;}
12776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12777 int status = $lt_dlunknown;
12781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12782 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12783 /* dlclose (self); */
12789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790 (eval $ac_link) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12794 (./conftest; exit; ) 2>/dev/null
12796 case x$lt_status in
12797 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12798 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12799 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12802 # compilation failed
12803 lt_cv_dlopen_self=no
12810 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12811 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12813 if test "x$lt_cv_dlopen_self" = xyes; then
12814 LDFLAGS="$LDFLAGS $link_static_flag"
12815 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12816 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12817 if test "${lt_cv_dlopen_self_static+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 if test "$cross_compiling" = yes; then :
12821 lt_cv_dlopen_self_static=cross
12823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12824 lt_status=$lt_dlunknown
12825 cat > conftest.$ac_ext <<EOF
12826 #line 12826 "configure"
12827 #include "confdefs.h"
12836 # define LT_DLGLOBAL RTLD_GLOBAL
12839 # define LT_DLGLOBAL DL_GLOBAL
12841 # define LT_DLGLOBAL 0
12845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12846 find out it does not work in some platform. */
12847 #ifndef LT_DLLAZY_OR_NOW
12849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12852 # define LT_DLLAZY_OR_NOW DL_LAZY
12855 # define LT_DLLAZY_OR_NOW RTLD_NOW
12858 # define LT_DLLAZY_OR_NOW DL_NOW
12860 # define LT_DLLAZY_OR_NOW 0
12868 extern "C" void exit (int);
12871 void fnord() { int i=42;}
12874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12875 int status = $lt_dlunknown;
12879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12881 /* dlclose (self); */
12887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12888 (eval $ac_link) 2>&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12892 (./conftest; exit; ) 2>/dev/null
12894 case x$lt_status in
12895 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12896 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12897 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12900 # compilation failed
12901 lt_cv_dlopen_self_static=no
12908 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12909 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12912 CPPFLAGS="$save_CPPFLAGS"
12913 LDFLAGS="$save_LDFLAGS"
12918 case $lt_cv_dlopen_self in
12919 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12920 *) enable_dlopen_self=unknown ;;
12923 case $lt_cv_dlopen_self_static in
12924 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12925 *) enable_dlopen_self_static=unknown ;;
12930 # The else clause should only fire when bootstrapping the
12931 # libtool distribution, otherwise you forgot to ship ltmain.sh
12932 # with your package, and you will get complaints that there are
12933 # no rules to generate ltmain.sh.
12934 if test -f "$ltmain"; then
12935 # See if we are running on zsh, and set the options which allow our commands through
12936 # without removal of \ escapes.
12937 if test -n "${ZSH_VERSION+set}" ; then
12938 setopt NO_GLOB_SUBST
12940 # Now quote all the things that may contain metacharacters while being
12941 # careful not to overquote the AC_SUBSTed values. We take copies of the
12942 # variables and quote the copies for generation of the libtool script.
12943 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12945 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12946 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12947 deplibs_check_method reload_flag reload_cmds need_locks \
12948 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12949 lt_cv_sys_global_symbol_to_c_name_address \
12950 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12951 old_postinstall_cmds old_postuninstall_cmds \
12955 lt_prog_compiler_wl_CXX \
12956 lt_prog_compiler_pic_CXX \
12957 lt_prog_compiler_static_CXX \
12958 lt_prog_compiler_no_builtin_flag_CXX \
12959 export_dynamic_flag_spec_CXX \
12960 thread_safe_flag_spec_CXX \
12961 whole_archive_flag_spec_CXX \
12962 enable_shared_with_static_runtimes_CXX \
12963 old_archive_cmds_CXX \
12964 old_archive_from_new_cmds_CXX \
12965 predep_objects_CXX \
12966 postdep_objects_CXX \
12969 compiler_lib_search_path_CXX \
12971 archive_expsym_cmds_CXX \
12972 postinstall_cmds_CXX \
12973 postuninstall_cmds_CXX \
12974 old_archive_from_expsyms_cmds_CXX \
12975 allow_undefined_flag_CXX \
12976 no_undefined_flag_CXX \
12977 export_symbols_cmds_CXX \
12978 hardcode_libdir_flag_spec_CXX \
12979 hardcode_libdir_flag_spec_ld_CXX \
12980 hardcode_libdir_separator_CXX \
12981 hardcode_automatic_CXX \
12983 module_expsym_cmds_CXX \
12984 lt_cv_prog_compiler_c_o_CXX \
12985 exclude_expsyms_CXX \
12986 include_expsyms_CXX; do
12989 old_archive_cmds_CXX | \
12990 old_archive_from_new_cmds_CXX | \
12991 archive_cmds_CXX | \
12992 archive_expsym_cmds_CXX | \
12993 module_cmds_CXX | \
12994 module_expsym_cmds_CXX | \
12995 old_archive_from_expsyms_cmds_CXX | \
12996 export_symbols_cmds_CXX | \
12997 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12998 postinstall_cmds | postuninstall_cmds | \
12999 old_postinstall_cmds | old_postuninstall_cmds | \
13000 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13001 # Double-quote double-evaled strings.
13002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13011 *'\$0 --fallback-echo"')
13012 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13018 cat <<__EOF__ >> "$cfgfile"
13019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13023 # Shell to use when invoking shell scripts.
13026 # Whether or not to build shared libraries.
13027 build_libtool_libs=$enable_shared
13029 # Whether or not to build static libraries.
13030 build_old_libs=$enable_static
13032 # Whether or not to add -lc for building shared libraries.
13033 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13035 # Whether or not to disallow shared libs when runtime libs are static
13036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13038 # Whether or not to optimize for fast installation.
13039 fast_install=$enable_fast_install
13042 host_alias=$host_alias
13046 # The build system.
13047 build_alias=$build_alias
13051 # An echo program that does not interpret backslashes.
13056 AR_FLAGS=$lt_AR_FLAGS
13061 # A language-specific compiler.
13062 CC=$lt_compiler_CXX
13064 # Is the compiler the GNU C compiler?
13070 # The linker used to build libraries.
13073 # Whether we need hard or soft links.
13076 # A BSD-compatible nm program.
13079 # A symbol stripping program
13082 # Used to examine libraries when file_magic_cmd begins "file"
13083 MAGIC_CMD=$MAGIC_CMD
13085 # Used on cygwin: DLL creation program.
13088 # Used on cygwin: object dumper.
13091 # Used on cygwin: assembler.
13094 # The name of the directory that contains temporary libtool files.
13097 # How to create reloadable object files.
13098 reload_flag=$lt_reload_flag
13099 reload_cmds=$lt_reload_cmds
13101 # How to pass a linker flag through the compiler.
13102 wl=$lt_lt_prog_compiler_wl_CXX
13104 # Object file suffix (normally "o").
13105 objext="$ac_objext"
13107 # Old archive suffix (normally "a").
13110 # Shared library suffix (normally ".so").
13111 shrext_cmds='$shrext_cmds'
13113 # Executable file suffix (normally "").
13116 # Additional compiler flags for building library objects.
13117 pic_flag=$lt_lt_prog_compiler_pic_CXX
13120 # What is the maximum length of a command?
13121 max_cmd_len=$lt_cv_sys_max_cmd_len
13123 # Does compiler simultaneously support -c and -o options?
13124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13126 # Must we lock files when doing compilation?
13127 need_locks=$lt_need_locks
13129 # Do we need the lib prefix for modules?
13130 need_lib_prefix=$need_lib_prefix
13132 # Do we need a version for libraries?
13133 need_version=$need_version
13135 # Whether dlopen is supported.
13136 dlopen_support=$enable_dlopen
13138 # Whether dlopen of programs is supported.
13139 dlopen_self=$enable_dlopen_self
13141 # Whether dlopen of statically linked programs is supported.
13142 dlopen_self_static=$enable_dlopen_self_static
13144 # Compiler flag to prevent dynamic linking.
13145 link_static_flag=$lt_lt_prog_compiler_static_CXX
13147 # Compiler flag to turn off builtin functions.
13148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13150 # Compiler flag to allow reflexive dlopens.
13151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13153 # Compiler flag to generate shared objects directly from archives.
13154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13156 # Compiler flag to generate thread-safe objects.
13157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13159 # Library versioning type.
13160 version_type=$version_type
13162 # Format of library name prefix.
13163 libname_spec=$lt_libname_spec
13165 # List of archive names. First name is the real one, the rest are links.
13166 # The last name is the one that the linker finds with -lNAME.
13167 library_names_spec=$lt_library_names_spec
13169 # The coded name of the library, if different from the real name.
13170 soname_spec=$lt_soname_spec
13172 # Commands used to build and install an old-style archive.
13174 old_archive_cmds=$lt_old_archive_cmds_CXX
13175 old_postinstall_cmds=$lt_old_postinstall_cmds
13176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13178 # Create an old-style archive from a shared archive.
13179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13181 # Create a temporary old-style archive to link instead of a shared archive.
13182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13184 # Commands used to build and install a shared archive.
13185 archive_cmds=$lt_archive_cmds_CXX
13186 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13187 postinstall_cmds=$lt_postinstall_cmds
13188 postuninstall_cmds=$lt_postuninstall_cmds
13190 # Commands used to build a loadable module (assumed same as above if empty)
13191 module_cmds=$lt_module_cmds_CXX
13192 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13194 # Commands to strip libraries.
13195 old_striplib=$lt_old_striplib
13196 striplib=$lt_striplib
13198 # Dependencies to place before the objects being linked to create a
13200 predep_objects=$lt_predep_objects_CXX
13202 # Dependencies to place after the objects being linked to create a
13204 postdep_objects=$lt_postdep_objects_CXX
13206 # Dependencies to place before the objects being linked to create a
13208 predeps=$lt_predeps_CXX
13210 # Dependencies to place after the objects being linked to create a
13212 postdeps=$lt_postdeps_CXX
13214 # The library search path used internally by the compiler when linking
13215 # a shared library.
13216 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13218 # Method to check whether dependent libraries are shared objects.
13219 deplibs_check_method=$lt_deplibs_check_method
13221 # Command to use when deplibs_check_method == file_magic.
13222 file_magic_cmd=$lt_file_magic_cmd
13224 # Flag that allows shared libraries with undefined symbols to be built.
13225 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13227 # Flag that forces no undefined symbols.
13228 no_undefined_flag=$lt_no_undefined_flag_CXX
13230 # Commands used to finish a libtool library installation in a directory.
13231 finish_cmds=$lt_finish_cmds
13233 # Same as above, but a single script fragment to be evaled but not shown.
13234 finish_eval=$lt_finish_eval
13236 # Take the output of nm and produce a listing of raw symbols and C names.
13237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13239 # Transform the output of nm in a proper C declaration
13240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13242 # Transform the output of nm in a C name address pair
13243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13245 # This is the shared library runtime path variable.
13246 runpath_var=$runpath_var
13248 # This is the shared library path variable.
13249 shlibpath_var=$shlibpath_var
13251 # Is shlibpath searched before the hard-coded library search path?
13252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13254 # How to hardcode a shared library path into an executable.
13255 hardcode_action=$hardcode_action_CXX
13257 # Whether we should hardcode library paths into libraries.
13258 hardcode_into_libs=$hardcode_into_libs
13260 # Flag to hardcode \$libdir into a binary during linking.
13261 # This must work even if \$libdir does not exist.
13262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13264 # If ld is used when linking, flag to hardcode \$libdir into
13265 # a binary during linking. This must work even if \$libdir does
13267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13269 # Whether we need a single -rpath flag with a separated argument.
13270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13273 # resulting binary.
13274 hardcode_direct=$hardcode_direct_CXX
13276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13277 # resulting binary.
13278 hardcode_minus_L=$hardcode_minus_L_CXX
13280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13281 # the resulting binary.
13282 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13284 # Set to yes if building a shared library automatically hardcodes DIR into the library
13285 # and all subsequent libraries and executables linked against it.
13286 hardcode_automatic=$hardcode_automatic_CXX
13288 # Variables whose values should be saved in libtool wrapper scripts and
13289 # restored at relink time.
13290 variables_saved_for_relink="$variables_saved_for_relink"
13292 # Whether libtool must link a program against all its dependency libraries.
13293 link_all_deplibs=$link_all_deplibs_CXX
13295 # Compile-time system search path for libraries
13296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13298 # Run-time system search path for libraries
13299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13301 # Fix the shell variable \$srcfile for the compiler.
13302 fix_srcfile_path="$fix_srcfile_path_CXX"
13304 # Set to yes if exported symbols are required.
13305 always_export_symbols=$always_export_symbols_CXX
13307 # The commands to list exported symbols.
13308 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13310 # The commands to extract the exported symbol list from a shared archive.
13311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13313 # Symbols that should not be listed in the preloaded symbols.
13314 exclude_expsyms=$lt_exclude_expsyms_CXX
13316 # Symbols that must always be exported.
13317 include_expsyms=$lt_include_expsyms_CXX
13319 # ### END LIBTOOL TAG CONFIG: $tagname
13325 # If there is no Makefile yet, we rely on a make rule to execute
13326 # `config.status --recheck' to rerun these tests and create the
13327 # libtool script then.
13328 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13329 if test -f "$ltmain_in"; then
13330 test -f Makefile && make "$ltmain"
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345 with_gnu_ldcxx=$with_gnu_ld
13346 with_gnu_ld=$lt_save_with_gnu_ld
13347 lt_cv_path_LDCXX=$lt_cv_path_LD
13348 lt_cv_path_LD=$lt_save_path_LD
13349 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13350 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13358 if test -n "$F77" && test "X$F77" != "Xno"; then
13361 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13362 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13366 archive_cmds_need_lc_F77=no
13367 allow_undefined_flag_F77=
13368 always_export_symbols_F77=no
13369 archive_expsym_cmds_F77=
13370 export_dynamic_flag_spec_F77=
13371 hardcode_direct_F77=no
13372 hardcode_libdir_flag_spec_F77=
13373 hardcode_libdir_flag_spec_ld_F77=
13374 hardcode_libdir_separator_F77=
13375 hardcode_minus_L_F77=no
13376 hardcode_automatic_F77=no
13378 module_expsym_cmds_F77=
13379 link_all_deplibs_F77=unknown
13380 old_archive_cmds_F77=$old_archive_cmds
13381 no_undefined_flag_F77=
13382 whole_archive_flag_spec_F77=
13383 enable_shared_with_static_runtimes_F77=no
13385 # Source file extension for f77 test sources.
13388 # Object file extension for compiled f77 test sources.
13392 # Code to be used in simple compile tests
13393 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13395 # Code to be used in simple link tests
13396 lt_simple_link_test_code=" program t\n end\n"
13398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13400 # If no C compiler was specified, use CC.
13403 # Allow CC to be a program name with arguments.
13407 # save warnings/boilerplate of simple test code
13408 ac_outfile=conftest.$ac_objext
13409 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13411 _lt_compiler_boilerplate=`cat conftest.err`
13414 ac_outfile=conftest.$ac_objext
13415 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13417 _lt_linker_boilerplate=`cat conftest.err`
13421 # Allow CC to be a program name with arguments.
13426 for cc_temp in $compiler""; do
13428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13434 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13437 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13438 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13439 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13440 echo "${ECHO_T}$can_build_shared" >&6
13442 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13443 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13444 test "$can_build_shared" = "no" && enable_shared=no
13446 # On AIX, shared libraries and static libraries use the same namespace, and
13447 # are all built from PIC.
13450 test "$enable_shared" = yes && enable_static=no
13451 if test -n "$RANLIB"; then
13452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13453 postinstall_cmds='$RANLIB $lib'
13457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13458 test "$enable_shared" = yes && enable_static=no
13462 echo "$as_me:$LINENO: result: $enable_shared" >&5
13463 echo "${ECHO_T}$enable_shared" >&6
13465 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13466 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13467 # Make sure either enable_shared or enable_static is yes.
13468 test "$enable_shared" = yes || enable_static=yes
13469 echo "$as_me:$LINENO: result: $enable_static" >&5
13470 echo "${ECHO_T}$enable_static" >&6
13472 test "$ld_shlibs_F77" = no && can_build_shared=no
13477 lt_prog_compiler_wl_F77=
13478 lt_prog_compiler_pic_F77=
13479 lt_prog_compiler_static_F77=
13481 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13482 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13484 if test "$GCC" = yes; then
13485 lt_prog_compiler_wl_F77='-Wl,'
13486 lt_prog_compiler_static_F77='-static'
13490 # All AIX code is PIC.
13491 if test "$host_cpu" = ia64; then
13492 # AIX 5 now supports IA64 processor
13493 lt_prog_compiler_static_F77='-Bstatic'
13498 # FIXME: we need at least 68020 code to build shared libraries, but
13499 # adding the `-m68020' flag to GCC prevents building anything better,
13501 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13504 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13505 # PIC is the default for these OSes.
13508 mingw* | pw32* | os2*)
13509 # This hack is so that the source file can tell whether it is being
13510 # built for inclusion in a dll (and should export symbols for example).
13511 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13514 darwin* | rhapsody*)
13515 # PIC is the default on this platform
13516 # Common symbols not allowed in MH_DYLIB files
13517 lt_prog_compiler_pic_F77='-fno-common'
13521 # Just because we use GCC doesn't mean we suddenly get shared libraries
13522 # on systems that don't support them.
13523 lt_prog_compiler_can_build_shared_F77=no
13528 if test -d /usr/nec; then
13529 lt_prog_compiler_pic_F77=-Kconform_pic
13534 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13535 # not for PA HP-UX.
13536 case "$host_cpu" in
13541 lt_prog_compiler_pic_F77='-fPIC'
13547 lt_prog_compiler_pic_F77='-fPIC'
13551 # PORTME Check for flag to pass linker flags through the system compiler.
13554 lt_prog_compiler_wl_F77='-Wl,'
13555 if test "$host_cpu" = ia64; then
13556 # AIX 5 now supports IA64 processor
13557 lt_prog_compiler_static_F77='-Bstatic'
13559 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13563 # PIC is the default on this platform
13564 # Common symbols not allowed in MH_DYLIB files
13565 case $cc_basename in
13567 lt_prog_compiler_pic_F77='-qnocommon'
13568 lt_prog_compiler_wl_F77='-Wl,'
13573 mingw* | pw32* | os2*)
13574 # This hack is so that the source file can tell whether it is being
13575 # built for inclusion in a dll (and should export symbols for example).
13576 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13579 hpux9* | hpux10* | hpux11*)
13580 lt_prog_compiler_wl_F77='-Wl,'
13581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13582 # not for PA HP-UX.
13583 case "$host_cpu" in
13588 lt_prog_compiler_pic_F77='+Z'
13591 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13592 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13595 irix5* | irix6* | nonstopux*)
13596 lt_prog_compiler_wl_F77='-Wl,'
13597 # PIC (with -KPIC) is the default.
13598 lt_prog_compiler_static_F77='-non_shared'
13602 lt_prog_compiler_pic_F77='-KPIC'
13603 lt_prog_compiler_static_F77='-Bstatic'
13607 case $cc_basename in
13609 lt_prog_compiler_wl_F77='-Wl,'
13610 lt_prog_compiler_pic_F77='-KPIC'
13611 lt_prog_compiler_static_F77='-static'
13613 pgcc* | pgf77* | pgf90*)
13614 # Portland Group compilers (*not* the Pentium gcc compiler,
13615 # which looks to be a dead project)
13616 lt_prog_compiler_wl_F77='-Wl,'
13617 lt_prog_compiler_pic_F77='-fpic'
13618 lt_prog_compiler_static_F77='-static'
13621 lt_prog_compiler_wl_F77='-Wl,'
13622 # All Alpha code is PIC.
13623 lt_prog_compiler_static_F77='-non_shared'
13628 osf3* | osf4* | osf5*)
13629 lt_prog_compiler_wl_F77='-Wl,'
13630 # All OSF/1 code is PIC.
13631 lt_prog_compiler_static_F77='-non_shared'
13635 lt_prog_compiler_pic_F77='-Kpic'
13636 lt_prog_compiler_static_F77='-dn'
13640 lt_prog_compiler_pic_F77='-KPIC'
13641 lt_prog_compiler_static_F77='-Bstatic'
13642 case $cc_basename in
13643 f77* | f90* | f95*)
13644 lt_prog_compiler_wl_F77='-Qoption ld ';;
13646 lt_prog_compiler_wl_F77='-Wl,';;
13651 lt_prog_compiler_wl_F77='-Qoption ld '
13652 lt_prog_compiler_pic_F77='-PIC'
13653 lt_prog_compiler_static_F77='-Bstatic'
13656 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13657 lt_prog_compiler_wl_F77='-Wl,'
13658 lt_prog_compiler_pic_F77='-KPIC'
13659 lt_prog_compiler_static_F77='-Bstatic'
13663 if test -d /usr/nec ;then
13664 lt_prog_compiler_pic_F77='-Kconform_pic'
13665 lt_prog_compiler_static_F77='-Bstatic'
13670 lt_prog_compiler_wl_F77='-Wl,'
13671 lt_prog_compiler_can_build_shared_F77=no
13675 lt_prog_compiler_pic_F77='-pic'
13676 lt_prog_compiler_static_F77='-Bstatic'
13680 lt_prog_compiler_can_build_shared_F77=no
13685 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13686 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13689 # Check to make sure the PIC flag actually works.
13691 if test -n "$lt_prog_compiler_pic_F77"; then
13693 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13694 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13695 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 lt_prog_compiler_pic_works_F77=no
13699 ac_outfile=conftest.$ac_objext
13700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13701 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13702 # Insert the option either (1) after the last *FLAGS variable, or
13703 # (2) before a word containing "conftest.", or (3) at the end.
13704 # Note that $ac_compile itself does not contain backslashes and begins
13705 # with a dollar sign (not a hyphen), so the echo should work correctly.
13706 # The option is referenced via a variable to avoid confusing sed.
13707 lt_compile=`echo "$ac_compile" | $SED \
13708 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13710 -e 's:$: $lt_compiler_flag:'`
13711 (eval echo "\"\$as_me:13711: $lt_compile\"" >&5)
13712 (eval "$lt_compile" 2>conftest.err)
13714 cat conftest.err >&5
13715 echo "$as_me:13715: \$? = $ac_status" >&5
13716 if (exit $ac_status) && test -s "$ac_outfile"; then
13717 # The compiler can only warn and ignore the option if not recognized
13718 # So say no if there are warnings other than the usual output.
13719 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13720 $SED '/^$/d' conftest.err >conftest.er2
13721 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13722 lt_prog_compiler_pic_works_F77=yes
13728 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13729 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13731 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13732 case $lt_prog_compiler_pic_F77 in
13734 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13737 lt_prog_compiler_pic_F77=
13738 lt_prog_compiler_can_build_shared_F77=no
13743 # For platforms which do not support PIC, -DPIC is meaningless:
13745 lt_prog_compiler_pic_F77=
13748 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13752 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13753 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13754 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 lt_cv_prog_compiler_c_o_F77=no
13758 $rm -r conftest 2>/dev/null
13762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13764 lt_compiler_flag="-o out/conftest2.$ac_objext"
13765 # Insert the option either (1) after the last *FLAGS variable, or
13766 # (2) before a word containing "conftest.", or (3) at the end.
13767 # Note that $ac_compile itself does not contain backslashes and begins
13768 # with a dollar sign (not a hyphen), so the echo should work correctly.
13769 lt_compile=`echo "$ac_compile" | $SED \
13770 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13772 -e 's:$: $lt_compiler_flag:'`
13773 (eval echo "\"\$as_me:13773: $lt_compile\"" >&5)
13774 (eval "$lt_compile" 2>out/conftest.err)
13776 cat out/conftest.err >&5
13777 echo "$as_me:13777: \$? = $ac_status" >&5
13778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13780 # The compiler can only warn and ignore the option if not recognized
13781 # So say no if there are warnings
13782 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13783 $SED '/^$/d' out/conftest.err >out/conftest.er2
13784 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13785 lt_cv_prog_compiler_c_o_F77=yes
13790 # SGI C++ compiler will create directory out/ii_files/ for
13791 # template instantiation
13792 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13793 $rm out/* && rmdir out
13799 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13803 hard_links="nottested"
13804 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13805 # do not overwrite the value of need_locks provided by the user
13806 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13812 ln conftest.a conftest.b 2>&5 || hard_links=no
13813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13814 echo "$as_me:$LINENO: result: $hard_links" >&5
13815 echo "${ECHO_T}$hard_links" >&6
13816 if test "$hard_links" = no; then
13817 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13825 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13829 allow_undefined_flag_F77=
13830 enable_shared_with_static_runtimes_F77=no
13832 archive_expsym_cmds_F77=
13833 old_archive_From_new_cmds_F77=
13834 old_archive_from_expsyms_cmds_F77=
13835 export_dynamic_flag_spec_F77=
13836 whole_archive_flag_spec_F77=
13837 thread_safe_flag_spec_F77=
13838 hardcode_libdir_flag_spec_F77=
13839 hardcode_libdir_flag_spec_ld_F77=
13840 hardcode_libdir_separator_F77=
13841 hardcode_direct_F77=no
13842 hardcode_minus_L_F77=no
13843 hardcode_shlibpath_var_F77=unsupported
13844 link_all_deplibs_F77=unknown
13845 hardcode_automatic_F77=no
13847 module_expsym_cmds_F77=
13848 always_export_symbols_F77=no
13849 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13850 # include_expsyms should be a list of space-separated symbols to be *always*
13851 # included in the symbol list
13852 include_expsyms_F77=
13853 # exclude_expsyms can be an extended regexp of symbols to exclude
13854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13856 # as well as any symbol that contains `d'.
13857 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13859 # platforms (ab)use it in PIC code, but their linkers get confused if
13860 # the symbol is explicitly referenced. Since portable code cannot
13861 # rely on this symbol name, it's probably fine to never include it in
13862 # preloaded symbol tables.
13863 extract_expsyms_cmds=
13864 # Just being paranoid about ensuring that cc_basename is set.
13865 for cc_temp in $compiler""; do
13867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13876 cygwin* | mingw* | pw32*)
13877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13878 # When not using gcc, we currently assume that we are using
13879 # Microsoft Visual C++.
13880 if test "$GCC" != yes; then
13890 if test "$with_gnu_ld" = yes; then
13891 # If archive_cmds runs LD, not CC, wlarc should be empty
13894 # Set some defaults for GNU ld with shared library support. These
13895 # are reset later if shared libraries are not supported. Putting them
13896 # here allows them to be overridden if necessary.
13897 runpath_var=LD_RUN_PATH
13898 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13899 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13900 # ancient GNU ld didn't support --whole-archive et. al.
13901 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13902 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13904 whole_archive_flag_spec_F77=
13906 supports_anon_versioning=no
13907 case `$LD -v 2>/dev/null` in
13908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13911 *\ 2.11.*) ;; # other 2.11 versions
13912 *) supports_anon_versioning=yes ;;
13915 # See if GNU ld supports shared libraries.
13917 aix3* | aix4* | aix5*)
13918 # On AIX/PPC, the GNU linker is very broken
13919 if test "$host_cpu" != ia64; then
13923 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13924 *** to be unable to reliably create shared libraries on AIX.
13925 *** Therefore, libtool is disabling shared libraries support. If you
13926 *** really care for shared libraries, you may want to modify your PATH
13927 *** so that a non-GNU linker is found, and then restart.
13934 archive_cmds_F77='$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)'
13935 hardcode_libdir_flag_spec_F77='-L$libdir'
13936 hardcode_minus_L_F77=yes
13938 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13939 # that the semantics of dynamic libraries on AmigaOS, at least up
13940 # to version 4, is to share data among multiple programs linked
13941 # with the same dynamic library. Since this doesn't match the
13942 # behavior of shared libraries on other platforms, we can't use
13948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13949 allow_undefined_flag_F77=unsupported
13950 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13951 # support --undefined. This deserves some investigation. FIXME
13952 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13958 cygwin* | mingw* | pw32*)
13959 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13960 # as there is no search path for DLLs.
13961 hardcode_libdir_flag_spec_F77='-L$libdir'
13962 allow_undefined_flag_F77=unsupported
13963 always_export_symbols_F77=no
13964 enable_shared_with_static_runtimes_F77=yes
13965 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13967 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13968 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13969 # If the export-symbols file already is a .def file (1st line
13970 # is EXPORTS), use it as is; otherwise, prepend...
13971 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13972 cp $export_symbols $output_objdir/$soname.def;
13974 echo EXPORTS > $output_objdir/$soname.def;
13975 cat $export_symbols >> $output_objdir/$soname.def;
13977 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13986 case $cc_basename,$host_cpu in
13987 pgcc*) # Portland Group C compiler
13988 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13989 tmp_addflag=' $pic_flag'
13991 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13992 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13993 tmp_addflag=' $pic_flag -Mnomain' ;;
13994 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13995 tmp_addflag=' -i_dynamic' ;;
13996 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13997 tmp_addflag=' -i_dynamic -nofor_main' ;;
13998 ifc* | ifort*) # Intel Fortran compiler
13999 tmp_addflag=' -nofor_main' ;;
14001 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14003 if test $supports_anon_versioning = yes; then
14004 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14006 $echo "local: *; };" >> $output_objdir/$libname.ver~
14007 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14016 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14019 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14020 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14025 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14030 *** create shared libraries on Solaris systems. Therefore, libtool
14031 *** is disabling shared libraries support. We urge you to upgrade GNU
14032 *** binutils to release 2.9.1 or newer. Another option is to modify
14033 *** your PATH or compiler configuration so that the native linker is
14034 *** used, and then restart.
14037 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14038 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14046 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14048 hardcode_direct_F77=yes
14049 hardcode_shlibpath_var_F77=no
14053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14054 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14055 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14062 if test "$ld_shlibs_F77" = no; then
14064 hardcode_libdir_flag_spec_F77=
14065 export_dynamic_flag_spec_F77=
14066 whole_archive_flag_spec_F77=
14069 # PORTME fill in a description of your system's linker (not GNU ld)
14072 allow_undefined_flag_F77=unsupported
14073 always_export_symbols_F77=yes
14074 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14075 # Note: this linker hardcodes the directories in LIBPATH if there
14076 # are no directories specified by -L.
14077 hardcode_minus_L_F77=yes
14078 if test "$GCC" = yes && test -z "$link_static_flag"; then
14079 # Neither direct hardcoding nor static linking is supported with a
14081 hardcode_direct_F77=unsupported
14086 if test "$host_cpu" = ia64; then
14087 # On IA64, the linker does run time linking by default, so we don't
14088 # have to do anything special.
14089 aix_use_runtimelinking=no
14090 exp_sym_flag='-Bexport'
14093 # If we're using GNU nm, then we don't want the "-C" option.
14094 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14095 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14096 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14098 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14100 aix_use_runtimelinking=no
14102 # Test if we are trying to use run time linking or normal
14103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14104 # need to do runtime linking.
14105 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14106 for ld_flag in $LDFLAGS; do
14107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14108 aix_use_runtimelinking=yes
14114 exp_sym_flag='-bexport'
14115 no_entry_flag='-bnoentry'
14118 # When large executables or shared objects are built, AIX ld can
14119 # have problems creating the table of contents. If linking a library
14120 # or program results in "error TOC overflow" add -mminimal-toc to
14121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14124 archive_cmds_F77=''
14125 hardcode_direct_F77=yes
14126 hardcode_libdir_separator_F77=':'
14127 link_all_deplibs_F77=yes
14129 if test "$GCC" = yes; then
14130 case $host_os in aix4.[012]|aix4.[012].*)
14131 # We only want to do this on AIX 4.2 and lower, the check
14132 # below for broken collect2 doesn't work under 4.3+
14133 collect2name=`${CC} -print-prog-name=collect2`
14134 if test -f "$collect2name" && \
14135 strings "$collect2name" | grep resolve_lib_name >/dev/null
14137 # We have reworked collect2
14138 hardcode_direct_F77=yes
14140 # We have old collect2
14141 hardcode_direct_F77=unsupported
14142 # It fails to find uninstalled libraries when the uninstalled
14143 # path is not listed in the libpath. Setting hardcode_minus_L
14144 # to unsupported forces relinking
14145 hardcode_minus_L_F77=yes
14146 hardcode_libdir_flag_spec_F77='-L$libdir'
14147 hardcode_libdir_separator_F77=
14150 shared_flag='-shared'
14151 if test "$aix_use_runtimelinking" = yes; then
14152 shared_flag="$shared_flag "'${wl}-G'
14156 if test "$host_cpu" = ia64; then
14157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14158 # chokes on -Wl,-G. The following line is correct:
14161 if test "$aix_use_runtimelinking" = yes; then
14162 shared_flag='${wl}-G'
14164 shared_flag='${wl}-bM:SRE'
14169 # It seems that -bexpall does not export symbols beginning with
14170 # underscore (_), so it is better to generate a list of symbols to export.
14171 always_export_symbols_F77=yes
14172 if test "$aix_use_runtimelinking" = yes; then
14173 # Warning - without using the other runtime loading flags (-brtl),
14174 # -berok will link without error, but may produce a broken library.
14175 allow_undefined_flag_F77='-berok'
14176 # Determine the default libpath from the value encoded in an empty executable.
14177 cat >conftest.$ac_ext <<_ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184 (eval $ac_link) 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_f77_werror_flag"
14192 || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest$ac_exeext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14207 # Check for a 64-bit object if we didn't find anything.
14208 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14215 rm -f conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext conftest.$ac_ext
14217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14219 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14220 archive_expsym_cmds_F77="\$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"
14222 if test "$host_cpu" = ia64; then
14223 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14224 allow_undefined_flag_F77="-z nodefs"
14225 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14227 # Determine the default libpath from the value encoded in an empty executable.
14228 cat >conftest.$ac_ext <<_ACEOF
14233 rm -f conftest.$ac_objext conftest$ac_exeext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14235 (eval $ac_link) 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_f77_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest$ac_exeext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14258 # Check for a 64-bit object if we didn't find anything.
14259 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14266 rm -f conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14270 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14271 # Warning - without using the other run time loading flags,
14272 # -berok will link without error, but may produce a broken library.
14273 no_undefined_flag_F77=' ${wl}-bernotok'
14274 allow_undefined_flag_F77=' ${wl}-berok'
14275 # -bexpall does not export symbols beginning with underscore (_)
14276 always_export_symbols_F77=yes
14277 # Exported symbols can be pulled into shared objects from archives
14278 whole_archive_flag_spec_F77=' '
14279 archive_cmds_need_lc_F77=yes
14280 # This is similar to how AIX traditionally builds it's shared libraries.
14281 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14287 archive_cmds_F77='$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)'
14288 hardcode_libdir_flag_spec_F77='-L$libdir'
14289 hardcode_minus_L_F77=yes
14290 # see comment about different semantics on the GNU ld section
14295 export_dynamic_flag_spec_F77=-rdynamic
14298 cygwin* | mingw* | pw32*)
14299 # When not using gcc, we currently assume that we are using
14300 # Microsoft Visual C++.
14301 # hardcode_libdir_flag_spec is actually meaningless, as there is
14302 # no search path for DLLs.
14303 hardcode_libdir_flag_spec_F77=' '
14304 allow_undefined_flag_F77=unsupported
14305 # Tell ltmain to make .lib files, not .a files.
14307 # Tell ltmain to make .dll files, not .so files.
14309 # FIXME: Setting linknames here is a bad hack.
14310 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14311 # The linker will automatically build a .lib file if we build a DLL.
14312 old_archive_From_new_cmds_F77='true'
14313 # FIXME: Should let the user specify the lib program.
14314 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14315 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14316 enable_shared_with_static_runtimes_F77=yes
14319 darwin* | rhapsody*)
14321 rhapsody* | darwin1.[012])
14322 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14325 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14326 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14328 case ${MACOSX_DEPLOYMENT_TARGET} in
14330 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14333 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14339 archive_cmds_need_lc_F77=no
14340 hardcode_direct_F77=no
14341 hardcode_automatic_F77=yes
14342 hardcode_shlibpath_var_F77=unsupported
14343 whole_archive_flag_spec_F77=''
14344 link_all_deplibs_F77=yes
14345 if test "$GCC" = yes ; then
14346 output_verbose_link_cmd='echo'
14347 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14348 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14350 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14351 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14353 case $cc_basename in
14355 output_verbose_link_cmd='echo'
14356 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14357 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14359 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14360 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14370 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14371 hardcode_libdir_flag_spec_F77='-L$libdir'
14372 hardcode_shlibpath_var_F77=no
14379 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14380 # support. Future versions do this automatically, but an explicit c++rt0.o
14381 # does not break anything, and helps significantly (at the cost of a little
14384 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14385 hardcode_libdir_flag_spec_F77='-R$libdir'
14386 hardcode_direct_F77=yes
14387 hardcode_shlibpath_var_F77=no
14390 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14392 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14393 hardcode_direct_F77=yes
14394 hardcode_minus_L_F77=yes
14395 hardcode_shlibpath_var_F77=no
14398 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14399 freebsd* | kfreebsd*-gnu | dragonfly*)
14400 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14401 hardcode_libdir_flag_spec_F77='-R$libdir'
14402 hardcode_direct_F77=yes
14403 hardcode_shlibpath_var_F77=no
14407 if test "$GCC" = yes; then
14408 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14410 archive_cmds_F77='$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'
14412 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14413 hardcode_libdir_separator_F77=:
14414 hardcode_direct_F77=yes
14416 # hardcode_minus_L: Not really in the search PATH,
14417 # but as the default location of the library.
14418 hardcode_minus_L_F77=yes
14419 export_dynamic_flag_spec_F77='${wl}-E'
14423 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14424 case "$host_cpu" in
14426 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14429 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14433 case "$host_cpu" in
14435 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14438 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14442 if test "$with_gnu_ld" = no; then
14443 case "$host_cpu" in
14445 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14446 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14447 hardcode_libdir_separator_F77=:
14448 hardcode_direct_F77=no
14449 hardcode_shlibpath_var_F77=no
14452 hardcode_libdir_flag_spec_F77='-L$libdir'
14453 hardcode_direct_F77=no
14454 hardcode_shlibpath_var_F77=no
14456 # hardcode_minus_L: Not really in the search PATH,
14457 # but as the default location of the library.
14458 hardcode_minus_L_F77=yes
14461 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14462 hardcode_libdir_separator_F77=:
14463 hardcode_direct_F77=yes
14464 export_dynamic_flag_spec_F77='${wl}-E'
14466 # hardcode_minus_L: Not really in the search PATH,
14467 # but as the default location of the library.
14468 hardcode_minus_L_F77=yes
14474 irix5* | irix6* | nonstopux*)
14475 if test "$GCC" = yes; then
14476 archive_cmds_F77='$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'
14478 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14479 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14481 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14482 hardcode_libdir_separator_F77=:
14483 link_all_deplibs_F77=yes
14487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14490 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14492 hardcode_libdir_flag_spec_F77='-R$libdir'
14493 hardcode_direct_F77=yes
14494 hardcode_shlibpath_var_F77=no
14498 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14499 hardcode_direct_F77=yes
14500 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14501 hardcode_libdir_separator_F77=:
14502 hardcode_shlibpath_var_F77=no
14506 hardcode_direct_F77=yes
14507 hardcode_shlibpath_var_F77=no
14508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14509 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14511 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14512 export_dynamic_flag_spec_F77='${wl}-E'
14515 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14516 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14517 hardcode_libdir_flag_spec_F77='-R$libdir'
14520 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14521 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14528 hardcode_libdir_flag_spec_F77='-L$libdir'
14529 hardcode_minus_L_F77=yes
14530 allow_undefined_flag_F77=unsupported
14531 archive_cmds_F77='$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'
14532 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14536 if test "$GCC" = yes; then
14537 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14538 archive_cmds_F77='$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'
14540 allow_undefined_flag_F77=' -expect_unresolved \*'
14541 archive_cmds_F77='$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'
14543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14544 hardcode_libdir_separator_F77=:
14547 osf4* | osf5*) # as osf3* with the addition of -msym flag
14548 if test "$GCC" = yes; then
14549 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14550 archive_cmds_F77='$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'
14551 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14553 allow_undefined_flag_F77=' -expect_unresolved \*'
14554 archive_cmds_F77='$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'
14555 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14556 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14558 # Both c and cxx compiler support -rpath directly
14559 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14561 hardcode_libdir_separator_F77=:
14565 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566 hardcode_shlibpath_var_F77=no
14567 export_dynamic_flag_spec_F77='${wl}-Bexport'
14568 runpath_var=LD_RUN_PATH
14569 hardcode_runpath_var=yes
14573 no_undefined_flag_F77=' -z text'
14574 if test "$GCC" = yes; then
14576 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14577 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14578 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14581 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14585 hardcode_libdir_flag_spec_F77='-R$libdir'
14586 hardcode_shlibpath_var_F77=no
14588 solaris2.[0-5] | solaris2.[0-5].*) ;;
14590 # The compiler driver will combine linker options so we
14591 # cannot just pass the convience library names through
14592 # without $wl, iff we do not link with $LD.
14593 # Luckily, gcc supports the same syntax we need for Sun Studio.
14594 # Supported since Solaris 2.6 (maybe 2.5.1?)
14597 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14599 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14602 link_all_deplibs_F77=yes
14606 if test "x$host_vendor" = xsequent; then
14607 # Use $CC to link under sequent, because it throws in some extra .o
14608 # files that make .init and .fini sections work.
14609 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14611 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14613 hardcode_libdir_flag_spec_F77='-L$libdir'
14614 hardcode_direct_F77=yes
14615 hardcode_minus_L_F77=yes
14616 hardcode_shlibpath_var_F77=no
14620 case $host_vendor in
14622 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14623 hardcode_direct_F77=yes # is this really true???
14626 ## LD is ld it makes a PLAMLIB
14627 ## CC just makes a GrossModule.
14628 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14629 reload_cmds_F77='$CC -r -o $output$reload_objs'
14630 hardcode_direct_F77=no
14633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14637 runpath_var='LD_RUN_PATH'
14638 hardcode_shlibpath_var_F77=no
14642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_shlibpath_var_F77=no
14644 export_dynamic_flag_spec_F77='-Bexport'
14648 if test -d /usr/nec; then
14649 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650 hardcode_shlibpath_var_F77=no
14651 runpath_var=LD_RUN_PATH
14652 hardcode_runpath_var=yes
14658 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_direct_F77=yes
14660 hardcode_minus_L_F77=no
14661 hardcode_shlibpath_var_F77=no
14662 hardcode_runpath_var=yes
14663 runpath_var=LD_RUN_PATH
14666 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14667 no_undefined_flag_F77='${wl}-z ${wl}text'
14668 if test "$GCC" = yes; then
14669 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14671 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14673 runpath_var='LD_RUN_PATH'
14674 hardcode_shlibpath_var_F77=no
14678 no_undefined_flag_F77=' -z text'
14679 # $CC -shared without GNU ld will not create a library from C++
14680 # object files and a static libstdc++, better avoid it by now
14681 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14682 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14683 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14684 hardcode_libdir_flag_spec_F77=
14685 hardcode_shlibpath_var_F77=no
14686 runpath_var='LD_RUN_PATH'
14690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14691 hardcode_libdir_flag_spec_F77='-L$libdir'
14692 hardcode_shlibpath_var_F77=no
14701 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14702 echo "${ECHO_T}$ld_shlibs_F77" >&6
14703 test "$ld_shlibs_F77" = no && can_build_shared=no
14705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14706 if test "$GCC" = yes; then
14707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14711 # Do we need to explicitly link libc?
14713 case "x$archive_cmds_need_lc_F77" in
14715 # Assume -lc should be added
14716 archive_cmds_need_lc_F77=yes
14718 if test "$enable_shared" = yes && test "$GCC" = yes; then
14719 case $archive_cmds_F77 in
14721 # FIXME: we may have to deal with multi-command sequences.
14724 # Test whether the compiler implicitly links with -lc since on some
14725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14726 # to ld, don't add -lc before -lgcc.
14727 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733 (eval $ac_compile) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } 2>conftest.err; then
14739 libobjs=conftest.$ac_objext
14741 wl=$lt_prog_compiler_wl_F77
14747 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14748 allow_undefined_flag_F77=
14749 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14750 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }
14755 archive_cmds_need_lc_F77=no
14757 archive_cmds_need_lc_F77=yes
14759 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14761 cat conftest.err 1>&5
14764 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14765 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14772 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14773 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14774 library_names_spec=
14775 libname_spec='lib$name'
14779 postuninstall_cmds=
14783 shlibpath_overrides_runpath=unknown
14785 dynamic_linker="$host_os ld.so"
14786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14787 if test "$GCC" = yes; then
14788 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14789 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14790 # if the path contains ";" then we assume it to be the separator
14791 # otherwise default to the standard path separator (i.e. ":") - it is
14792 # assumed that no part of a normal pathname contains ";" but that should
14793 # okay in the real world where ";" in dirpaths is itself problematic.
14794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14801 need_lib_prefix=unknown
14802 hardcode_into_libs=no
14804 # when you set need_version to no, make sure it does not cause -set_version
14805 # flags to be left without arguments
14806 need_version=unknown
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14812 shlibpath_var=LIBPATH
14814 # AIX 3 has no versioning support, so we append a major version to the name.
14815 soname_spec='${libname}${release}${shared_ext}$major'
14822 hardcode_into_libs=yes
14823 if test "$host_cpu" = ia64; then
14824 # AIX 5 supports IA64
14825 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14826 shlibpath_var=LD_LIBRARY_PATH
14828 # With GCC up to 2.95.x, collect2 would create an import file
14829 # for dependence libraries. The import file would start with
14830 # the line `#! .'. This would cause the generated library to
14831 # depend on `.', always an invalid library. This was fixed in
14832 # development snapshots of GCC prior to 3.0.
14834 aix4 | aix4.[01] | aix4.[01].*)
14835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14837 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14840 can_build_shared=no
14844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14845 # soname into executable. Probably we can add versioning support to
14846 # collect2, so additional links can be useful in future.
14847 if test "$aix_use_runtimelinking" = yes; then
14848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14849 # instead of lib<name>.a to let people know that these are not
14850 # typical AIX shared libraries.
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853 # We preserve .a as extension for shared libraries through AIX4.2
14854 # and later when we are not doing run time linking.
14855 library_names_spec='${libname}${release}.a $libname.a'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14858 shlibpath_var=LIBPATH
14863 library_names_spec='$libname.ixlibrary $libname.a'
14864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14865 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'
14869 library_names_spec='${libname}${shared_ext}'
14870 dynamic_linker="$host_os ld.so"
14871 shlibpath_var=LIBRARY_PATH
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14883 # the default ld.so.conf also contains /usr/contrib/lib and
14884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14885 # libtool to hard-code these into programs
14888 cygwin* | mingw* | pw32*)
14889 version_type=windows
14894 case $GCC,$host_os in
14895 yes,cygwin* | yes,mingw* | yes,pw32*)
14896 library_names_spec='$libname.dll.a'
14897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14898 postinstall_cmds='base_file=`basename \${file}`~
14899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14900 dldir=$destdir/`dirname \$dlpath`~
14901 test -d \$dldir || mkdir -p \$dldir~
14902 $install_prog $dir/$dlname \$dldir/$dlname'
14903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14904 dlpath=$dir/\$dldll~
14906 shlibpath_overrides_runpath=yes
14910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14915 # MinGW DLLs use traditional 'lib' prefix
14916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14919 # It is most probably a Windows format PATH printed by
14920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14921 # path with ; separators, and with drive letters. We can handle the
14922 # drive letters (cygwin fileutils understands them), so leave them,
14923 # especially as we might pass files found there to a mingw objdump,
14924 # which wouldn't understand a cygwinified path. Ahh.
14925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14931 # pw32 DLLs use 'pw' prefix rather than 'lib'
14932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14941 dynamic_linker='Win32 ld.exe'
14942 # FIXME: first we should search . and the directory the executable is in
14946 darwin* | rhapsody*)
14947 dynamic_linker="$host_os dyld"
14948 version_type=darwin
14951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14952 soname_spec='${libname}${release}${major}$shared_ext'
14953 shlibpath_overrides_runpath=yes
14954 shlibpath_var=DYLD_LIBRARY_PATH
14955 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14957 if test "$GCC" = yes; then
14958 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14970 soname_spec='${libname}${release}${shared_ext}$major'
14971 shlibpath_var=LD_LIBRARY_PATH
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 shlibpath_overrides_runpath=no
14986 hardcode_into_libs=yes
14987 dynamic_linker='GNU ld.so'
14990 freebsd* | dragonfly*)
14991 # DragonFly does not have aout. When/if they implement a new
14992 # versioning mechanism, adjust this.
14993 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14994 version_type=freebsd-$objformat
14995 case $version_type in
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15006 shlibpath_var=LD_LIBRARY_PATH
15009 shlibpath_overrides_runpath=yes
15011 freebsd3.[01]* | freebsdelf3.[01]*)
15012 shlibpath_overrides_runpath=yes
15013 hardcode_into_libs=yes
15016 shlibpath_overrides_runpath=no
15017 hardcode_into_libs=yes
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 hardcode_into_libs=yes
15032 hpux9* | hpux10* | hpux11*)
15033 # Give a soname corresponding to the major version so that dld.sl refuses to
15034 # link against other versions.
15038 case "$host_cpu" in
15041 hardcode_into_libs=yes
15042 dynamic_linker="$host_os dld.so"
15043 shlibpath_var=LD_LIBRARY_PATH
15044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 if test "X$HPUX_IA64_MODE" = X32; then
15048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15050 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15056 hardcode_into_libs=yes
15057 dynamic_linker="$host_os dld.sl"
15058 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061 soname_spec='${libname}${release}${shared_ext}$major'
15062 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15067 dynamic_linker="$host_os dld.sl"
15068 shlibpath_var=SHLIB_PATH
15069 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15074 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15075 postinstall_cmds='chmod 555 $lib'
15078 irix5* | irix6* | nonstopux*)
15080 nonstopux*) version_type=nonstopux ;;
15082 if test "$lt_cv_prog_gnu_ld" = yes; then
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15093 irix5* | nonstopux*)
15094 libsuff= shlibsuff=
15097 case $LD in # libtool.m4 will add one of these switches to LD
15098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15099 libsuff= shlibsuff= libmagic=32-bit;;
15100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15101 libsuff=32 shlibsuff=N32 libmagic=N32;;
15102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15104 *) libsuff= shlibsuff= libmagic=never-match;;
15108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15109 shlibpath_overrides_runpath=no
15110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15112 hardcode_into_libs=yes
15115 # No shared lib support for Linux oldld, aout, or coff.
15116 linux*oldld* | linux*aout* | linux*coff*)
15120 # This must be Linux ELF.
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15128 shlibpath_var=LD_LIBRARY_PATH
15129 shlibpath_overrides_runpath=no
15130 # This implies no fast_install, which is unacceptable.
15131 # Some rework will be needed to allow for fast_install
15132 # before this can be enabled.
15133 hardcode_into_libs=yes
15135 # Append ld.so.conf contents to the search path
15136 if test -f /etc/ld.so.conf; then
15137 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; shopt -s nullglob; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15141 # We used to test for /lib/ld.so.1 and disable shared libraries on
15142 # powerpc, because MkLinux only supported shared libraries with the
15143 # GNU dynamic linker. Since this was broken with cross compilers,
15144 # most powerpc-linux boxes support dynamic linking these days and
15145 # people can always --disable-shared, the test was removed, and we
15146 # assume the GNU/Linux dynamic linker is in use.
15147 dynamic_linker='GNU/Linux ld.so'
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=no
15158 hardcode_into_libs=yes
15159 dynamic_linker='GNU ld.so'
15166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15169 dynamic_linker='NetBSD (a.out) ld.so'
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 dynamic_linker='NetBSD ld.elf_so'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 shlibpath_overrides_runpath=yes
15177 hardcode_into_libs=yes
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 shlibpath_var=LD_LIBRARY_PATH
15184 shlibpath_overrides_runpath=yes
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 shlibpath_var=LD_LIBRARY_PATH
15194 shlibpath_overrides_runpath=yes
15200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15202 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15203 *) need_version=no ;;
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15210 openbsd2.[89] | openbsd2.[89].*)
15211 shlibpath_overrides_runpath=no
15214 shlibpath_overrides_runpath=yes
15218 shlibpath_overrides_runpath=yes
15223 libname_spec='$name'
15226 library_names_spec='$libname${shared_ext} $libname.a'
15227 dynamic_linker='OS/2 ld.exe'
15228 shlibpath_var=LIBPATH
15231 osf3* | osf4* | osf5*)
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 shlibpath_var=LD_LIBRARY_PATH
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=yes
15257 hardcode_into_libs=yes
15258 # ldd complains unless libraries are executable
15259 postinstall_cmds='chmod +x $lib'
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=yes
15268 if test "$with_gnu_ld" = yes; then
15274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 case $host_vendor in
15281 shlibpath_overrides_runpath=no
15283 export_dynamic_flag_spec='${wl}-Blargedynsym'
15284 runpath_var=LD_RUN_PATH
15292 shlibpath_overrides_runpath=no
15293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15299 if test -d /usr/nec ;then
15301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15302 soname_spec='$libname${shared_ext}.$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 shlibpath_var=LD_LIBRARY_PATH
15318 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15319 echo "${ECHO_T}$dynamic_linker" >&6
15320 test "$dynamic_linker" = no && can_build_shared=no
15322 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15323 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15324 hardcode_action_F77=
15325 if test -n "$hardcode_libdir_flag_spec_F77" || \
15326 test -n "$runpath_var_F77" || \
15327 test "X$hardcode_automatic_F77" = "Xyes" ; then
15329 # We can hardcode non-existant directories.
15330 if test "$hardcode_direct_F77" != no &&
15331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15332 # have to relink, otherwise we might link with an installed library
15333 # when we should be linking with a yet-to-be-installed one
15334 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15335 test "$hardcode_minus_L_F77" != no; then
15336 # Linking always hardcodes the temporary library directory.
15337 hardcode_action_F77=relink
15339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15340 hardcode_action_F77=immediate
15343 # We cannot hardcode anything, or else we can only hardcode existing
15345 hardcode_action_F77=unsupported
15347 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15348 echo "${ECHO_T}$hardcode_action_F77" >&6
15350 if test "$hardcode_action_F77" = relink; then
15351 # Fast installation is not supported
15352 enable_fast_install=no
15353 elif test "$shlibpath_overrides_runpath" = yes ||
15354 test "$enable_shared" = no; then
15355 # Fast installation is not necessary
15356 enable_fast_install=needless
15361 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15362 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15363 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15365 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15366 echo "$as_me:$LINENO: result: yes" >&5
15367 echo "${ECHO_T}yes" >&6
15369 # FIXME - insert some real tests, host_os isn't really good enough
15372 if test -n "$STRIP" ; then
15373 striplib="$STRIP -x"
15374 echo "$as_me:$LINENO: result: yes" >&5
15375 echo "${ECHO_T}yes" >&6
15377 echo "$as_me:$LINENO: result: no" >&5
15378 echo "${ECHO_T}no" >&6
15382 echo "$as_me:$LINENO: result: no" >&5
15383 echo "${ECHO_T}no" >&6
15390 # The else clause should only fire when bootstrapping the
15391 # libtool distribution, otherwise you forgot to ship ltmain.sh
15392 # with your package, and you will get complaints that there are
15393 # no rules to generate ltmain.sh.
15394 if test -f "$ltmain"; then
15395 # See if we are running on zsh, and set the options which allow our commands through
15396 # without removal of \ escapes.
15397 if test -n "${ZSH_VERSION+set}" ; then
15398 setopt NO_GLOB_SUBST
15400 # Now quote all the things that may contain metacharacters while being
15401 # careful not to overquote the AC_SUBSTed values. We take copies of the
15402 # variables and quote the copies for generation of the libtool script.
15403 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15405 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15406 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15407 deplibs_check_method reload_flag reload_cmds need_locks \
15408 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15409 lt_cv_sys_global_symbol_to_c_name_address \
15410 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15411 old_postinstall_cmds old_postuninstall_cmds \
15415 lt_prog_compiler_wl_F77 \
15416 lt_prog_compiler_pic_F77 \
15417 lt_prog_compiler_static_F77 \
15418 lt_prog_compiler_no_builtin_flag_F77 \
15419 export_dynamic_flag_spec_F77 \
15420 thread_safe_flag_spec_F77 \
15421 whole_archive_flag_spec_F77 \
15422 enable_shared_with_static_runtimes_F77 \
15423 old_archive_cmds_F77 \
15424 old_archive_from_new_cmds_F77 \
15425 predep_objects_F77 \
15426 postdep_objects_F77 \
15429 compiler_lib_search_path_F77 \
15431 archive_expsym_cmds_F77 \
15432 postinstall_cmds_F77 \
15433 postuninstall_cmds_F77 \
15434 old_archive_from_expsyms_cmds_F77 \
15435 allow_undefined_flag_F77 \
15436 no_undefined_flag_F77 \
15437 export_symbols_cmds_F77 \
15438 hardcode_libdir_flag_spec_F77 \
15439 hardcode_libdir_flag_spec_ld_F77 \
15440 hardcode_libdir_separator_F77 \
15441 hardcode_automatic_F77 \
15443 module_expsym_cmds_F77 \
15444 lt_cv_prog_compiler_c_o_F77 \
15445 exclude_expsyms_F77 \
15446 include_expsyms_F77; do
15449 old_archive_cmds_F77 | \
15450 old_archive_from_new_cmds_F77 | \
15451 archive_cmds_F77 | \
15452 archive_expsym_cmds_F77 | \
15453 module_cmds_F77 | \
15454 module_expsym_cmds_F77 | \
15455 old_archive_from_expsyms_cmds_F77 | \
15456 export_symbols_cmds_F77 | \
15457 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15458 postinstall_cmds | postuninstall_cmds | \
15459 old_postinstall_cmds | old_postuninstall_cmds | \
15460 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15461 # Double-quote double-evaled strings.
15462 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15465 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15471 *'\$0 --fallback-echo"')
15472 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15478 cat <<__EOF__ >> "$cfgfile"
15479 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15481 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15483 # Shell to use when invoking shell scripts.
15486 # Whether or not to build shared libraries.
15487 build_libtool_libs=$enable_shared
15489 # Whether or not to build static libraries.
15490 build_old_libs=$enable_static
15492 # Whether or not to add -lc for building shared libraries.
15493 build_libtool_need_lc=$archive_cmds_need_lc_F77
15495 # Whether or not to disallow shared libs when runtime libs are static
15496 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15498 # Whether or not to optimize for fast installation.
15499 fast_install=$enable_fast_install
15502 host_alias=$host_alias
15506 # The build system.
15507 build_alias=$build_alias
15511 # An echo program that does not interpret backslashes.
15516 AR_FLAGS=$lt_AR_FLAGS
15521 # A language-specific compiler.
15522 CC=$lt_compiler_F77
15524 # Is the compiler the GNU C compiler?
15530 # The linker used to build libraries.
15533 # Whether we need hard or soft links.
15536 # A BSD-compatible nm program.
15539 # A symbol stripping program
15542 # Used to examine libraries when file_magic_cmd begins "file"
15543 MAGIC_CMD=$MAGIC_CMD
15545 # Used on cygwin: DLL creation program.
15548 # Used on cygwin: object dumper.
15551 # Used on cygwin: assembler.
15554 # The name of the directory that contains temporary libtool files.
15557 # How to create reloadable object files.
15558 reload_flag=$lt_reload_flag
15559 reload_cmds=$lt_reload_cmds
15561 # How to pass a linker flag through the compiler.
15562 wl=$lt_lt_prog_compiler_wl_F77
15564 # Object file suffix (normally "o").
15565 objext="$ac_objext"
15567 # Old archive suffix (normally "a").
15570 # Shared library suffix (normally ".so").
15571 shrext_cmds='$shrext_cmds'
15573 # Executable file suffix (normally "").
15576 # Additional compiler flags for building library objects.
15577 pic_flag=$lt_lt_prog_compiler_pic_F77
15580 # What is the maximum length of a command?
15581 max_cmd_len=$lt_cv_sys_max_cmd_len
15583 # Does compiler simultaneously support -c and -o options?
15584 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15586 # Must we lock files when doing compilation?
15587 need_locks=$lt_need_locks
15589 # Do we need the lib prefix for modules?
15590 need_lib_prefix=$need_lib_prefix
15592 # Do we need a version for libraries?
15593 need_version=$need_version
15595 # Whether dlopen is supported.
15596 dlopen_support=$enable_dlopen
15598 # Whether dlopen of programs is supported.
15599 dlopen_self=$enable_dlopen_self
15601 # Whether dlopen of statically linked programs is supported.
15602 dlopen_self_static=$enable_dlopen_self_static
15604 # Compiler flag to prevent dynamic linking.
15605 link_static_flag=$lt_lt_prog_compiler_static_F77
15607 # Compiler flag to turn off builtin functions.
15608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15610 # Compiler flag to allow reflexive dlopens.
15611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15613 # Compiler flag to generate shared objects directly from archives.
15614 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15616 # Compiler flag to generate thread-safe objects.
15617 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15619 # Library versioning type.
15620 version_type=$version_type
15622 # Format of library name prefix.
15623 libname_spec=$lt_libname_spec
15625 # List of archive names. First name is the real one, the rest are links.
15626 # The last name is the one that the linker finds with -lNAME.
15627 library_names_spec=$lt_library_names_spec
15629 # The coded name of the library, if different from the real name.
15630 soname_spec=$lt_soname_spec
15632 # Commands used to build and install an old-style archive.
15634 old_archive_cmds=$lt_old_archive_cmds_F77
15635 old_postinstall_cmds=$lt_old_postinstall_cmds
15636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15638 # Create an old-style archive from a shared archive.
15639 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15641 # Create a temporary old-style archive to link instead of a shared archive.
15642 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15644 # Commands used to build and install a shared archive.
15645 archive_cmds=$lt_archive_cmds_F77
15646 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15647 postinstall_cmds=$lt_postinstall_cmds
15648 postuninstall_cmds=$lt_postuninstall_cmds
15650 # Commands used to build a loadable module (assumed same as above if empty)
15651 module_cmds=$lt_module_cmds_F77
15652 module_expsym_cmds=$lt_module_expsym_cmds_F77
15654 # Commands to strip libraries.
15655 old_striplib=$lt_old_striplib
15656 striplib=$lt_striplib
15658 # Dependencies to place before the objects being linked to create a
15660 predep_objects=$lt_predep_objects_F77
15662 # Dependencies to place after the objects being linked to create a
15664 postdep_objects=$lt_postdep_objects_F77
15666 # Dependencies to place before the objects being linked to create a
15668 predeps=$lt_predeps_F77
15670 # Dependencies to place after the objects being linked to create a
15672 postdeps=$lt_postdeps_F77
15674 # The library search path used internally by the compiler when linking
15675 # a shared library.
15676 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15678 # Method to check whether dependent libraries are shared objects.
15679 deplibs_check_method=$lt_deplibs_check_method
15681 # Command to use when deplibs_check_method == file_magic.
15682 file_magic_cmd=$lt_file_magic_cmd
15684 # Flag that allows shared libraries with undefined symbols to be built.
15685 allow_undefined_flag=$lt_allow_undefined_flag_F77
15687 # Flag that forces no undefined symbols.
15688 no_undefined_flag=$lt_no_undefined_flag_F77
15690 # Commands used to finish a libtool library installation in a directory.
15691 finish_cmds=$lt_finish_cmds
15693 # Same as above, but a single script fragment to be evaled but not shown.
15694 finish_eval=$lt_finish_eval
15696 # Take the output of nm and produce a listing of raw symbols and C names.
15697 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15699 # Transform the output of nm in a proper C declaration
15700 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15702 # Transform the output of nm in a C name address pair
15703 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15705 # This is the shared library runtime path variable.
15706 runpath_var=$runpath_var
15708 # This is the shared library path variable.
15709 shlibpath_var=$shlibpath_var
15711 # Is shlibpath searched before the hard-coded library search path?
15712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15714 # How to hardcode a shared library path into an executable.
15715 hardcode_action=$hardcode_action_F77
15717 # Whether we should hardcode library paths into libraries.
15718 hardcode_into_libs=$hardcode_into_libs
15720 # Flag to hardcode \$libdir into a binary during linking.
15721 # This must work even if \$libdir does not exist.
15722 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15724 # If ld is used when linking, flag to hardcode \$libdir into
15725 # a binary during linking. This must work even if \$libdir does
15727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15729 # Whether we need a single -rpath flag with a separated argument.
15730 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15732 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15733 # resulting binary.
15734 hardcode_direct=$hardcode_direct_F77
15736 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15737 # resulting binary.
15738 hardcode_minus_L=$hardcode_minus_L_F77
15740 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15741 # the resulting binary.
15742 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15744 # Set to yes if building a shared library automatically hardcodes DIR into the library
15745 # and all subsequent libraries and executables linked against it.
15746 hardcode_automatic=$hardcode_automatic_F77
15748 # Variables whose values should be saved in libtool wrapper scripts and
15749 # restored at relink time.
15750 variables_saved_for_relink="$variables_saved_for_relink"
15752 # Whether libtool must link a program against all its dependency libraries.
15753 link_all_deplibs=$link_all_deplibs_F77
15755 # Compile-time system search path for libraries
15756 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15758 # Run-time system search path for libraries
15759 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15761 # Fix the shell variable \$srcfile for the compiler.
15762 fix_srcfile_path="$fix_srcfile_path_F77"
15764 # Set to yes if exported symbols are required.
15765 always_export_symbols=$always_export_symbols_F77
15767 # The commands to list exported symbols.
15768 export_symbols_cmds=$lt_export_symbols_cmds_F77
15770 # The commands to extract the exported symbol list from a shared archive.
15771 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15773 # Symbols that should not be listed in the preloaded symbols.
15774 exclude_expsyms=$lt_exclude_expsyms_F77
15776 # Symbols that must always be exported.
15777 include_expsyms=$lt_include_expsyms_F77
15779 # ### END LIBTOOL TAG CONFIG: $tagname
15785 # If there is no Makefile yet, we rely on a make rule to execute
15786 # `config.status --recheck' to rerun these tests and create the
15787 # libtool script then.
15788 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15789 if test -f "$ltmain_in"; then
15790 test -f Makefile && make "$ltmain"
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15809 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15813 # Source file extension for Java test sources.
15816 # Object file extension for compiled Java test sources.
15820 # Code to be used in simple compile tests
15821 lt_simple_compile_test_code="class foo {}\n"
15823 # Code to be used in simple link tests
15824 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15826 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15828 # If no C compiler was specified, use CC.
15831 # Allow CC to be a program name with arguments.
15835 # save warnings/boilerplate of simple test code
15836 ac_outfile=conftest.$ac_objext
15837 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15838 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15839 _lt_compiler_boilerplate=`cat conftest.err`
15842 ac_outfile=conftest.$ac_objext
15843 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15844 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15845 _lt_linker_boilerplate=`cat conftest.err`
15849 # Allow CC to be a program name with arguments.
15854 for cc_temp in $compiler""; do
15856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15862 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15865 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15866 archive_cmds_need_lc_GCJ=no
15868 old_archive_cmds_GCJ=$old_archive_cmds
15871 lt_prog_compiler_no_builtin_flag_GCJ=
15873 if test "$GCC" = yes; then
15874 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15877 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15878 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15879 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 lt_cv_prog_compiler_rtti_exceptions=no
15883 ac_outfile=conftest.$ac_objext
15884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15885 lt_compiler_flag="-fno-rtti -fno-exceptions"
15886 # Insert the option either (1) after the last *FLAGS variable, or
15887 # (2) before a word containing "conftest.", or (3) at the end.
15888 # Note that $ac_compile itself does not contain backslashes and begins
15889 # with a dollar sign (not a hyphen), so the echo should work correctly.
15890 # The option is referenced via a variable to avoid confusing sed.
15891 lt_compile=`echo "$ac_compile" | $SED \
15892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15894 -e 's:$: $lt_compiler_flag:'`
15895 (eval echo "\"\$as_me:15895: $lt_compile\"" >&5)
15896 (eval "$lt_compile" 2>conftest.err)
15898 cat conftest.err >&5
15899 echo "$as_me:15899: \$? = $ac_status" >&5
15900 if (exit $ac_status) && test -s "$ac_outfile"; then
15901 # The compiler can only warn and ignore the option if not recognized
15902 # So say no if there are warnings other than the usual output.
15903 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15904 $SED '/^$/d' conftest.err >conftest.er2
15905 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15906 lt_cv_prog_compiler_rtti_exceptions=yes
15912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15913 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15915 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15916 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15923 lt_prog_compiler_wl_GCJ=
15924 lt_prog_compiler_pic_GCJ=
15925 lt_prog_compiler_static_GCJ=
15927 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15928 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15930 if test "$GCC" = yes; then
15931 lt_prog_compiler_wl_GCJ='-Wl,'
15932 lt_prog_compiler_static_GCJ='-static'
15936 # All AIX code is PIC.
15937 if test "$host_cpu" = ia64; then
15938 # AIX 5 now supports IA64 processor
15939 lt_prog_compiler_static_GCJ='-Bstatic'
15944 # FIXME: we need at least 68020 code to build shared libraries, but
15945 # adding the `-m68020' flag to GCC prevents building anything better,
15947 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15950 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15951 # PIC is the default for these OSes.
15954 mingw* | pw32* | os2*)
15955 # This hack is so that the source file can tell whether it is being
15956 # built for inclusion in a dll (and should export symbols for example).
15957 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15960 darwin* | rhapsody*)
15961 # PIC is the default on this platform
15962 # Common symbols not allowed in MH_DYLIB files
15963 lt_prog_compiler_pic_GCJ='-fno-common'
15967 # Just because we use GCC doesn't mean we suddenly get shared libraries
15968 # on systems that don't support them.
15969 lt_prog_compiler_can_build_shared_GCJ=no
15974 if test -d /usr/nec; then
15975 lt_prog_compiler_pic_GCJ=-Kconform_pic
15980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15981 # not for PA HP-UX.
15982 case "$host_cpu" in
15987 lt_prog_compiler_pic_GCJ='-fPIC'
15993 lt_prog_compiler_pic_GCJ='-fPIC'
15997 # PORTME Check for flag to pass linker flags through the system compiler.
16000 lt_prog_compiler_wl_GCJ='-Wl,'
16001 if test "$host_cpu" = ia64; then
16002 # AIX 5 now supports IA64 processor
16003 lt_prog_compiler_static_GCJ='-Bstatic'
16005 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16009 # PIC is the default on this platform
16010 # Common symbols not allowed in MH_DYLIB files
16011 case $cc_basename in
16013 lt_prog_compiler_pic_GCJ='-qnocommon'
16014 lt_prog_compiler_wl_GCJ='-Wl,'
16019 mingw* | pw32* | os2*)
16020 # This hack is so that the source file can tell whether it is being
16021 # built for inclusion in a dll (and should export symbols for example).
16022 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16025 hpux9* | hpux10* | hpux11*)
16026 lt_prog_compiler_wl_GCJ='-Wl,'
16027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16028 # not for PA HP-UX.
16029 case "$host_cpu" in
16034 lt_prog_compiler_pic_GCJ='+Z'
16037 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16038 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16041 irix5* | irix6* | nonstopux*)
16042 lt_prog_compiler_wl_GCJ='-Wl,'
16043 # PIC (with -KPIC) is the default.
16044 lt_prog_compiler_static_GCJ='-non_shared'
16048 lt_prog_compiler_pic_GCJ='-KPIC'
16049 lt_prog_compiler_static_GCJ='-Bstatic'
16053 case $cc_basename in
16055 lt_prog_compiler_wl_GCJ='-Wl,'
16056 lt_prog_compiler_pic_GCJ='-KPIC'
16057 lt_prog_compiler_static_GCJ='-static'
16059 pgcc* | pgf77* | pgf90*)
16060 # Portland Group compilers (*not* the Pentium gcc compiler,
16061 # which looks to be a dead project)
16062 lt_prog_compiler_wl_GCJ='-Wl,'
16063 lt_prog_compiler_pic_GCJ='-fpic'
16064 lt_prog_compiler_static_GCJ='-static'
16067 lt_prog_compiler_wl_GCJ='-Wl,'
16068 # All Alpha code is PIC.
16069 lt_prog_compiler_static_GCJ='-non_shared'
16074 osf3* | osf4* | osf5*)
16075 lt_prog_compiler_wl_GCJ='-Wl,'
16076 # All OSF/1 code is PIC.
16077 lt_prog_compiler_static_GCJ='-non_shared'
16081 lt_prog_compiler_pic_GCJ='-Kpic'
16082 lt_prog_compiler_static_GCJ='-dn'
16086 lt_prog_compiler_pic_GCJ='-KPIC'
16087 lt_prog_compiler_static_GCJ='-Bstatic'
16088 case $cc_basename in
16089 f77* | f90* | f95*)
16090 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16092 lt_prog_compiler_wl_GCJ='-Wl,';;
16097 lt_prog_compiler_wl_GCJ='-Qoption ld '
16098 lt_prog_compiler_pic_GCJ='-PIC'
16099 lt_prog_compiler_static_GCJ='-Bstatic'
16102 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16103 lt_prog_compiler_wl_GCJ='-Wl,'
16104 lt_prog_compiler_pic_GCJ='-KPIC'
16105 lt_prog_compiler_static_GCJ='-Bstatic'
16109 if test -d /usr/nec ;then
16110 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16111 lt_prog_compiler_static_GCJ='-Bstatic'
16116 lt_prog_compiler_wl_GCJ='-Wl,'
16117 lt_prog_compiler_can_build_shared_GCJ=no
16121 lt_prog_compiler_pic_GCJ='-pic'
16122 lt_prog_compiler_static_GCJ='-Bstatic'
16126 lt_prog_compiler_can_build_shared_GCJ=no
16131 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16132 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16135 # Check to make sure the PIC flag actually works.
16137 if test -n "$lt_prog_compiler_pic_GCJ"; then
16139 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16140 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16141 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 lt_prog_compiler_pic_works_GCJ=no
16145 ac_outfile=conftest.$ac_objext
16146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16147 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16148 # Insert the option either (1) after the last *FLAGS variable, or
16149 # (2) before a word containing "conftest.", or (3) at the end.
16150 # Note that $ac_compile itself does not contain backslashes and begins
16151 # with a dollar sign (not a hyphen), so the echo should work correctly.
16152 # The option is referenced via a variable to avoid confusing sed.
16153 lt_compile=`echo "$ac_compile" | $SED \
16154 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16156 -e 's:$: $lt_compiler_flag:'`
16157 (eval echo "\"\$as_me:16157: $lt_compile\"" >&5)
16158 (eval "$lt_compile" 2>conftest.err)
16160 cat conftest.err >&5
16161 echo "$as_me:16161: \$? = $ac_status" >&5
16162 if (exit $ac_status) && test -s "$ac_outfile"; then
16163 # The compiler can only warn and ignore the option if not recognized
16164 # So say no if there are warnings other than the usual output.
16165 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16166 $SED '/^$/d' conftest.err >conftest.er2
16167 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16168 lt_prog_compiler_pic_works_GCJ=yes
16174 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16175 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16177 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16178 case $lt_prog_compiler_pic_GCJ in
16180 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16183 lt_prog_compiler_pic_GCJ=
16184 lt_prog_compiler_can_build_shared_GCJ=no
16189 # For platforms which do not support PIC, -DPIC is meaningless:
16191 lt_prog_compiler_pic_GCJ=
16194 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16198 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16199 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16200 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 lt_cv_prog_compiler_c_o_GCJ=no
16204 $rm -r conftest 2>/dev/null
16208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16210 lt_compiler_flag="-o out/conftest2.$ac_objext"
16211 # Insert the option either (1) after the last *FLAGS variable, or
16212 # (2) before a word containing "conftest.", or (3) at the end.
16213 # Note that $ac_compile itself does not contain backslashes and begins
16214 # with a dollar sign (not a hyphen), so the echo should work correctly.
16215 lt_compile=`echo "$ac_compile" | $SED \
16216 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16218 -e 's:$: $lt_compiler_flag:'`
16219 (eval echo "\"\$as_me:16219: $lt_compile\"" >&5)
16220 (eval "$lt_compile" 2>out/conftest.err)
16222 cat out/conftest.err >&5
16223 echo "$as_me:16223: \$? = $ac_status" >&5
16224 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16226 # The compiler can only warn and ignore the option if not recognized
16227 # So say no if there are warnings
16228 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16229 $SED '/^$/d' out/conftest.err >out/conftest.er2
16230 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16231 lt_cv_prog_compiler_c_o_GCJ=yes
16236 # SGI C++ compiler will create directory out/ii_files/ for
16237 # template instantiation
16238 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16239 $rm out/* && rmdir out
16245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16246 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16249 hard_links="nottested"
16250 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16251 # do not overwrite the value of need_locks provided by the user
16252 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16253 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16258 ln conftest.a conftest.b 2>&5 || hard_links=no
16259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16260 echo "$as_me:$LINENO: result: $hard_links" >&5
16261 echo "${ECHO_T}$hard_links" >&6
16262 if test "$hard_links" = no; then
16263 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16264 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16271 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16272 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16275 allow_undefined_flag_GCJ=
16276 enable_shared_with_static_runtimes_GCJ=no
16278 archive_expsym_cmds_GCJ=
16279 old_archive_From_new_cmds_GCJ=
16280 old_archive_from_expsyms_cmds_GCJ=
16281 export_dynamic_flag_spec_GCJ=
16282 whole_archive_flag_spec_GCJ=
16283 thread_safe_flag_spec_GCJ=
16284 hardcode_libdir_flag_spec_GCJ=
16285 hardcode_libdir_flag_spec_ld_GCJ=
16286 hardcode_libdir_separator_GCJ=
16287 hardcode_direct_GCJ=no
16288 hardcode_minus_L_GCJ=no
16289 hardcode_shlibpath_var_GCJ=unsupported
16290 link_all_deplibs_GCJ=unknown
16291 hardcode_automatic_GCJ=no
16293 module_expsym_cmds_GCJ=
16294 always_export_symbols_GCJ=no
16295 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16296 # include_expsyms should be a list of space-separated symbols to be *always*
16297 # included in the symbol list
16298 include_expsyms_GCJ=
16299 # exclude_expsyms can be an extended regexp of symbols to exclude
16300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16302 # as well as any symbol that contains `d'.
16303 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16305 # platforms (ab)use it in PIC code, but their linkers get confused if
16306 # the symbol is explicitly referenced. Since portable code cannot
16307 # rely on this symbol name, it's probably fine to never include it in
16308 # preloaded symbol tables.
16309 extract_expsyms_cmds=
16310 # Just being paranoid about ensuring that cc_basename is set.
16311 for cc_temp in $compiler""; do
16313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16319 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16322 cygwin* | mingw* | pw32*)
16323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16324 # When not using gcc, we currently assume that we are using
16325 # Microsoft Visual C++.
16326 if test "$GCC" != yes; then
16336 if test "$with_gnu_ld" = yes; then
16337 # If archive_cmds runs LD, not CC, wlarc should be empty
16340 # Set some defaults for GNU ld with shared library support. These
16341 # are reset later if shared libraries are not supported. Putting them
16342 # here allows them to be overridden if necessary.
16343 runpath_var=LD_RUN_PATH
16344 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16345 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16346 # ancient GNU ld didn't support --whole-archive et. al.
16347 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16348 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16350 whole_archive_flag_spec_GCJ=
16352 supports_anon_versioning=no
16353 case `$LD -v 2>/dev/null` in
16354 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16355 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16356 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16357 *\ 2.11.*) ;; # other 2.11 versions
16358 *) supports_anon_versioning=yes ;;
16361 # See if GNU ld supports shared libraries.
16363 aix3* | aix4* | aix5*)
16364 # On AIX/PPC, the GNU linker is very broken
16365 if test "$host_cpu" != ia64; then
16369 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16370 *** to be unable to reliably create shared libraries on AIX.
16371 *** Therefore, libtool is disabling shared libraries support. If you
16372 *** really care for shared libraries, you may want to modify your PATH
16373 *** so that a non-GNU linker is found, and then restart.
16380 archive_cmds_GCJ='$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)'
16381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16382 hardcode_minus_L_GCJ=yes
16384 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16385 # that the semantics of dynamic libraries on AmigaOS, at least up
16386 # to version 4, is to share data among multiple programs linked
16387 # with the same dynamic library. Since this doesn't match the
16388 # behavior of shared libraries on other platforms, we can't use
16394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16395 allow_undefined_flag_GCJ=unsupported
16396 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16397 # support --undefined. This deserves some investigation. FIXME
16398 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16404 cygwin* | mingw* | pw32*)
16405 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16406 # as there is no search path for DLLs.
16407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16408 allow_undefined_flag_GCJ=unsupported
16409 always_export_symbols_GCJ=no
16410 enable_shared_with_static_runtimes_GCJ=yes
16411 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16413 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16414 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16415 # If the export-symbols file already is a .def file (1st line
16416 # is EXPORTS), use it as is; otherwise, prepend...
16417 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16418 cp $export_symbols $output_objdir/$soname.def;
16420 echo EXPORTS > $output_objdir/$soname.def;
16421 cat $export_symbols >> $output_objdir/$soname.def;
16423 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16432 case $cc_basename,$host_cpu in
16433 pgcc*) # Portland Group C compiler
16434 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16435 tmp_addflag=' $pic_flag'
16437 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16438 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16439 tmp_addflag=' $pic_flag -Mnomain' ;;
16440 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16441 tmp_addflag=' -i_dynamic' ;;
16442 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16443 tmp_addflag=' -i_dynamic -nofor_main' ;;
16444 ifc* | ifort*) # Intel Fortran compiler
16445 tmp_addflag=' -nofor_main' ;;
16447 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16449 if test $supports_anon_versioning = yes; then
16450 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16452 $echo "local: *; };" >> $output_objdir/$libname.ver~
16453 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16462 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16471 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16475 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16476 *** create shared libraries on Solaris systems. Therefore, libtool
16477 *** is disabling shared libraries support. We urge you to upgrade GNU
16478 *** binutils to release 2.9.1 or newer. Another option is to modify
16479 *** your PATH or compiler configuration so that the native linker is
16480 *** used, and then restart.
16483 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16492 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16494 hardcode_direct_GCJ=yes
16495 hardcode_shlibpath_var_GCJ=no
16499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16508 if test "$ld_shlibs_GCJ" = no; then
16510 hardcode_libdir_flag_spec_GCJ=
16511 export_dynamic_flag_spec_GCJ=
16512 whole_archive_flag_spec_GCJ=
16515 # PORTME fill in a description of your system's linker (not GNU ld)
16518 allow_undefined_flag_GCJ=unsupported
16519 always_export_symbols_GCJ=yes
16520 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16521 # Note: this linker hardcodes the directories in LIBPATH if there
16522 # are no directories specified by -L.
16523 hardcode_minus_L_GCJ=yes
16524 if test "$GCC" = yes && test -z "$link_static_flag"; then
16525 # Neither direct hardcoding nor static linking is supported with a
16527 hardcode_direct_GCJ=unsupported
16532 if test "$host_cpu" = ia64; then
16533 # On IA64, the linker does run time linking by default, so we don't
16534 # have to do anything special.
16535 aix_use_runtimelinking=no
16536 exp_sym_flag='-Bexport'
16539 # If we're using GNU nm, then we don't want the "-C" option.
16540 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16541 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16542 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16544 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16546 aix_use_runtimelinking=no
16548 # Test if we are trying to use run time linking or normal
16549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16550 # need to do runtime linking.
16551 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16552 for ld_flag in $LDFLAGS; do
16553 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16554 aix_use_runtimelinking=yes
16560 exp_sym_flag='-bexport'
16561 no_entry_flag='-bnoentry'
16564 # When large executables or shared objects are built, AIX ld can
16565 # have problems creating the table of contents. If linking a library
16566 # or program results in "error TOC overflow" add -mminimal-toc to
16567 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16568 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16570 archive_cmds_GCJ=''
16571 hardcode_direct_GCJ=yes
16572 hardcode_libdir_separator_GCJ=':'
16573 link_all_deplibs_GCJ=yes
16575 if test "$GCC" = yes; then
16576 case $host_os in aix4.[012]|aix4.[012].*)
16577 # We only want to do this on AIX 4.2 and lower, the check
16578 # below for broken collect2 doesn't work under 4.3+
16579 collect2name=`${CC} -print-prog-name=collect2`
16580 if test -f "$collect2name" && \
16581 strings "$collect2name" | grep resolve_lib_name >/dev/null
16583 # We have reworked collect2
16584 hardcode_direct_GCJ=yes
16586 # We have old collect2
16587 hardcode_direct_GCJ=unsupported
16588 # It fails to find uninstalled libraries when the uninstalled
16589 # path is not listed in the libpath. Setting hardcode_minus_L
16590 # to unsupported forces relinking
16591 hardcode_minus_L_GCJ=yes
16592 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16593 hardcode_libdir_separator_GCJ=
16596 shared_flag='-shared'
16597 if test "$aix_use_runtimelinking" = yes; then
16598 shared_flag="$shared_flag "'${wl}-G'
16602 if test "$host_cpu" = ia64; then
16603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16604 # chokes on -Wl,-G. The following line is correct:
16607 if test "$aix_use_runtimelinking" = yes; then
16608 shared_flag='${wl}-G'
16610 shared_flag='${wl}-bM:SRE'
16615 # It seems that -bexpall does not export symbols beginning with
16616 # underscore (_), so it is better to generate a list of symbols to export.
16617 always_export_symbols_GCJ=yes
16618 if test "$aix_use_runtimelinking" = yes; then
16619 # Warning - without using the other runtime loading flags (-brtl),
16620 # -berok will link without error, but may produce a broken library.
16621 allow_undefined_flag_GCJ='-berok'
16622 # Determine the default libpath from the value encoded in an empty executable.
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640 (eval $ac_link) 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag"
16648 || test ! -s conftest.err'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16663 # Check for a 64-bit object if we didn't find anything.
16664 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16671 rm -f conftest.err conftest.$ac_objext \
16672 conftest$ac_exeext conftest.$ac_ext
16673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16675 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16676 archive_expsym_cmds_GCJ="\$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"
16678 if test "$host_cpu" = ia64; then
16679 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16680 allow_undefined_flag_GCJ="-z nodefs"
16681 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16683 # Determine the default libpath from the value encoded in an empty executable.
16684 cat >conftest.$ac_ext <<_ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701 (eval $ac_link) 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag"
16709 || test ! -s conftest.err'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16724 # Check for a 64-bit object if we didn't find anything.
16725 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16732 rm -f conftest.err conftest.$ac_objext \
16733 conftest$ac_exeext conftest.$ac_ext
16734 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16736 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16737 # Warning - without using the other run time loading flags,
16738 # -berok will link without error, but may produce a broken library.
16739 no_undefined_flag_GCJ=' ${wl}-bernotok'
16740 allow_undefined_flag_GCJ=' ${wl}-berok'
16741 # -bexpall does not export symbols beginning with underscore (_)
16742 always_export_symbols_GCJ=yes
16743 # Exported symbols can be pulled into shared objects from archives
16744 whole_archive_flag_spec_GCJ=' '
16745 archive_cmds_need_lc_GCJ=yes
16746 # This is similar to how AIX traditionally builds it's shared libraries.
16747 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16753 archive_cmds_GCJ='$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)'
16754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16755 hardcode_minus_L_GCJ=yes
16756 # see comment about different semantics on the GNU ld section
16761 export_dynamic_flag_spec_GCJ=-rdynamic
16764 cygwin* | mingw* | pw32*)
16765 # When not using gcc, we currently assume that we are using
16766 # Microsoft Visual C++.
16767 # hardcode_libdir_flag_spec is actually meaningless, as there is
16768 # no search path for DLLs.
16769 hardcode_libdir_flag_spec_GCJ=' '
16770 allow_undefined_flag_GCJ=unsupported
16771 # Tell ltmain to make .lib files, not .a files.
16773 # Tell ltmain to make .dll files, not .so files.
16775 # FIXME: Setting linknames here is a bad hack.
16776 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16777 # The linker will automatically build a .lib file if we build a DLL.
16778 old_archive_From_new_cmds_GCJ='true'
16779 # FIXME: Should let the user specify the lib program.
16780 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16781 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16782 enable_shared_with_static_runtimes_GCJ=yes
16785 darwin* | rhapsody*)
16787 rhapsody* | darwin1.[012])
16788 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16791 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16792 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16794 case ${MACOSX_DEPLOYMENT_TARGET} in
16796 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16799 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16805 archive_cmds_need_lc_GCJ=no
16806 hardcode_direct_GCJ=no
16807 hardcode_automatic_GCJ=yes
16808 hardcode_shlibpath_var_GCJ=unsupported
16809 whole_archive_flag_spec_GCJ=''
16810 link_all_deplibs_GCJ=yes
16811 if test "$GCC" = yes ; then
16812 output_verbose_link_cmd='echo'
16813 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16814 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16816 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16817 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16819 case $cc_basename in
16821 output_verbose_link_cmd='echo'
16822 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16823 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16825 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16826 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16836 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16838 hardcode_shlibpath_var_GCJ=no
16845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16846 # support. Future versions do this automatically, but an explicit c++rt0.o
16847 # does not break anything, and helps significantly (at the cost of a little
16850 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16851 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16852 hardcode_direct_GCJ=yes
16853 hardcode_shlibpath_var_GCJ=no
16856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16858 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16859 hardcode_direct_GCJ=yes
16860 hardcode_minus_L_GCJ=yes
16861 hardcode_shlibpath_var_GCJ=no
16864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16865 freebsd* | kfreebsd*-gnu | dragonfly*)
16866 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16867 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16868 hardcode_direct_GCJ=yes
16869 hardcode_shlibpath_var_GCJ=no
16873 if test "$GCC" = yes; then
16874 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16876 archive_cmds_GCJ='$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'
16878 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16879 hardcode_libdir_separator_GCJ=:
16880 hardcode_direct_GCJ=yes
16882 # hardcode_minus_L: Not really in the search PATH,
16883 # but as the default location of the library.
16884 hardcode_minus_L_GCJ=yes
16885 export_dynamic_flag_spec_GCJ='${wl}-E'
16889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16890 case "$host_cpu" in
16892 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16895 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16899 case "$host_cpu" in
16901 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16904 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16908 if test "$with_gnu_ld" = no; then
16909 case "$host_cpu" in
16911 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16912 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16913 hardcode_libdir_separator_GCJ=:
16914 hardcode_direct_GCJ=no
16915 hardcode_shlibpath_var_GCJ=no
16918 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16919 hardcode_direct_GCJ=no
16920 hardcode_shlibpath_var_GCJ=no
16922 # hardcode_minus_L: Not really in the search PATH,
16923 # but as the default location of the library.
16924 hardcode_minus_L_GCJ=yes
16927 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16928 hardcode_libdir_separator_GCJ=:
16929 hardcode_direct_GCJ=yes
16930 export_dynamic_flag_spec_GCJ='${wl}-E'
16932 # hardcode_minus_L: Not really in the search PATH,
16933 # but as the default location of the library.
16934 hardcode_minus_L_GCJ=yes
16940 irix5* | irix6* | nonstopux*)
16941 if test "$GCC" = yes; then
16942 archive_cmds_GCJ='$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'
16944 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16945 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16947 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16948 hardcode_libdir_separator_GCJ=:
16949 link_all_deplibs_GCJ=yes
16953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16954 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16956 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16958 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16959 hardcode_direct_GCJ=yes
16960 hardcode_shlibpath_var_GCJ=no
16964 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 hardcode_direct_GCJ=yes
16966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16967 hardcode_libdir_separator_GCJ=:
16968 hardcode_shlibpath_var_GCJ=no
16972 hardcode_direct_GCJ=yes
16973 hardcode_shlibpath_var_GCJ=no
16974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16975 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16976 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16978 export_dynamic_flag_spec_GCJ='${wl}-E'
16981 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16982 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16983 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16986 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16994 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16995 hardcode_minus_L_GCJ=yes
16996 allow_undefined_flag_GCJ=unsupported
16997 archive_cmds_GCJ='$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'
16998 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17002 if test "$GCC" = yes; then
17003 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17004 archive_cmds_GCJ='$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'
17006 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17007 archive_cmds_GCJ='$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'
17009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17010 hardcode_libdir_separator_GCJ=:
17013 osf4* | osf5*) # as osf3* with the addition of -msym flag
17014 if test "$GCC" = yes; then
17015 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17016 archive_cmds_GCJ='$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'
17017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17019 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17020 archive_cmds_GCJ='$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'
17021 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17022 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17024 # Both c and cxx compiler support -rpath directly
17025 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17027 hardcode_libdir_separator_GCJ=:
17031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_shlibpath_var_GCJ=no
17033 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17034 runpath_var=LD_RUN_PATH
17035 hardcode_runpath_var=yes
17039 no_undefined_flag_GCJ=' -z text'
17040 if test "$GCC" = yes; then
17042 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17044 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17047 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17048 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17049 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17051 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17052 hardcode_shlibpath_var_GCJ=no
17054 solaris2.[0-5] | solaris2.[0-5].*) ;;
17056 # The compiler driver will combine linker options so we
17057 # cannot just pass the convience library names through
17058 # without $wl, iff we do not link with $LD.
17059 # Luckily, gcc supports the same syntax we need for Sun Studio.
17060 # Supported since Solaris 2.6 (maybe 2.5.1?)
17063 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17065 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17068 link_all_deplibs_GCJ=yes
17072 if test "x$host_vendor" = xsequent; then
17073 # Use $CC to link under sequent, because it throws in some extra .o
17074 # files that make .init and .fini sections work.
17075 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17079 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17080 hardcode_direct_GCJ=yes
17081 hardcode_minus_L_GCJ=yes
17082 hardcode_shlibpath_var_GCJ=no
17086 case $host_vendor in
17088 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17089 hardcode_direct_GCJ=yes # is this really true???
17092 ## LD is ld it makes a PLAMLIB
17093 ## CC just makes a GrossModule.
17094 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17095 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17096 hardcode_direct_GCJ=no
17099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17100 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17103 runpath_var='LD_RUN_PATH'
17104 hardcode_shlibpath_var_GCJ=no
17108 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 hardcode_shlibpath_var_GCJ=no
17110 export_dynamic_flag_spec_GCJ='-Bexport'
17114 if test -d /usr/nec; then
17115 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17116 hardcode_shlibpath_var_GCJ=no
17117 runpath_var=LD_RUN_PATH
17118 hardcode_runpath_var=yes
17124 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17125 hardcode_direct_GCJ=yes
17126 hardcode_minus_L_GCJ=no
17127 hardcode_shlibpath_var_GCJ=no
17128 hardcode_runpath_var=yes
17129 runpath_var=LD_RUN_PATH
17132 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17133 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17134 if test "$GCC" = yes; then
17135 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17137 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17139 runpath_var='LD_RUN_PATH'
17140 hardcode_shlibpath_var_GCJ=no
17144 no_undefined_flag_GCJ=' -z text'
17145 # $CC -shared without GNU ld will not create a library from C++
17146 # object files and a static libstdc++, better avoid it by now
17147 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17148 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17149 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17150 hardcode_libdir_flag_spec_GCJ=
17151 hardcode_shlibpath_var_GCJ=no
17152 runpath_var='LD_RUN_PATH'
17156 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17157 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17158 hardcode_shlibpath_var_GCJ=no
17167 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17168 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17169 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17172 if test "$GCC" = yes; then
17173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17177 # Do we need to explicitly link libc?
17179 case "x$archive_cmds_need_lc_GCJ" in
17181 # Assume -lc should be added
17182 archive_cmds_need_lc_GCJ=yes
17184 if test "$enable_shared" = yes && test "$GCC" = yes; then
17185 case $archive_cmds_GCJ in
17187 # FIXME: we may have to deal with multi-command sequences.
17190 # Test whether the compiler implicitly links with -lc since on some
17191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17192 # to ld, don't add -lc before -lgcc.
17193 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17194 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17196 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199 (eval $ac_compile) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } 2>conftest.err; then
17205 libobjs=conftest.$ac_objext
17207 wl=$lt_prog_compiler_wl_GCJ
17213 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17214 allow_undefined_flag_GCJ=
17215 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17216 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }
17221 archive_cmds_need_lc_GCJ=no
17223 archive_cmds_need_lc_GCJ=yes
17225 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17227 cat conftest.err 1>&5
17230 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17231 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17238 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17239 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17240 library_names_spec=
17241 libname_spec='lib$name'
17245 postuninstall_cmds=
17249 shlibpath_overrides_runpath=unknown
17251 dynamic_linker="$host_os ld.so"
17252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17253 if test "$GCC" = yes; then
17254 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17255 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17256 # if the path contains ";" then we assume it to be the separator
17257 # otherwise default to the standard path separator (i.e. ":") - it is
17258 # assumed that no part of a normal pathname contains ";" but that should
17259 # okay in the real world where ";" in dirpaths is itself problematic.
17260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17265 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17267 need_lib_prefix=unknown
17268 hardcode_into_libs=no
17270 # when you set need_version to no, make sure it does not cause -set_version
17271 # flags to be left without arguments
17272 need_version=unknown
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17278 shlibpath_var=LIBPATH
17280 # AIX 3 has no versioning support, so we append a major version to the name.
17281 soname_spec='${libname}${release}${shared_ext}$major'
17288 hardcode_into_libs=yes
17289 if test "$host_cpu" = ia64; then
17290 # AIX 5 supports IA64
17291 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17292 shlibpath_var=LD_LIBRARY_PATH
17294 # With GCC up to 2.95.x, collect2 would create an import file
17295 # for dependence libraries. The import file would start with
17296 # the line `#! .'. This would cause the generated library to
17297 # depend on `.', always an invalid library. This was fixed in
17298 # development snapshots of GCC prior to 3.0.
17300 aix4 | aix4.[01] | aix4.[01].*)
17301 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17303 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17306 can_build_shared=no
17310 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17311 # soname into executable. Probably we can add versioning support to
17312 # collect2, so additional links can be useful in future.
17313 if test "$aix_use_runtimelinking" = yes; then
17314 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17315 # instead of lib<name>.a to let people know that these are not
17316 # typical AIX shared libraries.
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319 # We preserve .a as extension for shared libraries through AIX4.2
17320 # and later when we are not doing run time linking.
17321 library_names_spec='${libname}${release}.a $libname.a'
17322 soname_spec='${libname}${release}${shared_ext}$major'
17324 shlibpath_var=LIBPATH
17329 library_names_spec='$libname.ixlibrary $libname.a'
17330 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17331 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'
17335 library_names_spec='${libname}${shared_ext}'
17336 dynamic_linker="$host_os ld.so"
17337 shlibpath_var=LIBRARY_PATH
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344 soname_spec='${libname}${release}${shared_ext}$major'
17345 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17346 shlibpath_var=LD_LIBRARY_PATH
17347 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17348 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17349 # the default ld.so.conf also contains /usr/contrib/lib and
17350 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17351 # libtool to hard-code these into programs
17354 cygwin* | mingw* | pw32*)
17355 version_type=windows
17360 case $GCC,$host_os in
17361 yes,cygwin* | yes,mingw* | yes,pw32*)
17362 library_names_spec='$libname.dll.a'
17363 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17364 postinstall_cmds='base_file=`basename \${file}`~
17365 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17366 dldir=$destdir/`dirname \$dlpath`~
17367 test -d \$dldir || mkdir -p \$dldir~
17368 $install_prog $dir/$dlname \$dldir/$dlname'
17369 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17370 dlpath=$dir/\$dldll~
17372 shlibpath_overrides_runpath=yes
17376 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17377 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17378 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17381 # MinGW DLLs use traditional 'lib' prefix
17382 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17383 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17384 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17385 # It is most probably a Windows format PATH printed by
17386 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17387 # path with ; separators, and with drive letters. We can handle the
17388 # drive letters (cygwin fileutils understands them), so leave them,
17389 # especially as we might pass files found there to a mingw objdump,
17390 # which wouldn't understand a cygwinified path. Ahh.
17391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17397 # pw32 DLLs use 'pw' prefix rather than 'lib'
17398 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17404 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17407 dynamic_linker='Win32 ld.exe'
17408 # FIXME: first we should search . and the directory the executable is in
17412 darwin* | rhapsody*)
17413 dynamic_linker="$host_os dyld"
17414 version_type=darwin
17417 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17418 soname_spec='${libname}${release}${major}$shared_ext'
17419 shlibpath_overrides_runpath=yes
17420 shlibpath_var=DYLD_LIBRARY_PATH
17421 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17422 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17423 if test "$GCC" = yes; then
17424 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17426 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17428 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 shlibpath_var=LD_LIBRARY_PATH
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17449 soname_spec='${libname}${release}${shared_ext}$major'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 shlibpath_overrides_runpath=no
17452 hardcode_into_libs=yes
17453 dynamic_linker='GNU ld.so'
17456 freebsd* | dragonfly*)
17457 # DragonFly does not have aout. When/if they implement a new
17458 # versioning mechanism, adjust this.
17459 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17460 version_type=freebsd-$objformat
17461 case $version_type in
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17472 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=yes
17477 freebsd3.[01]* | freebsdelf3.[01]*)
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17482 shlibpath_overrides_runpath=no
17483 hardcode_into_libs=yes
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 hardcode_into_libs=yes
17498 hpux9* | hpux10* | hpux11*)
17499 # Give a soname corresponding to the major version so that dld.sl refuses to
17500 # link against other versions.
17504 case "$host_cpu" in
17507 hardcode_into_libs=yes
17508 dynamic_linker="$host_os dld.so"
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 if test "X$HPUX_IA64_MODE" = X32; then
17514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17522 hardcode_into_libs=yes
17523 dynamic_linker="$host_os dld.sl"
17524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527 soname_spec='${libname}${release}${shared_ext}$major'
17528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17533 dynamic_linker="$host_os dld.sl"
17534 shlibpath_var=SHLIB_PATH
17535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17541 postinstall_cmds='chmod 555 $lib'
17544 irix5* | irix6* | nonstopux*)
17546 nonstopux*) version_type=nonstopux ;;
17548 if test "$lt_cv_prog_gnu_ld" = yes; then
17556 soname_spec='${libname}${release}${shared_ext}$major'
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17559 irix5* | nonstopux*)
17560 libsuff= shlibsuff=
17563 case $LD in # libtool.m4 will add one of these switches to LD
17564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17565 libsuff= shlibsuff= libmagic=32-bit;;
17566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17567 libsuff=32 shlibsuff=N32 libmagic=N32;;
17568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17570 *) libsuff= shlibsuff= libmagic=never-match;;
17574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17575 shlibpath_overrides_runpath=no
17576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17578 hardcode_into_libs=yes
17581 # No shared lib support for Linux oldld, aout, or coff.
17582 linux*oldld* | linux*aout* | linux*coff*)
17586 # This must be Linux ELF.
17591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592 soname_spec='${libname}${release}${shared_ext}$major'
17593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17594 shlibpath_var=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath=no
17596 # This implies no fast_install, which is unacceptable.
17597 # Some rework will be needed to allow for fast_install
17598 # before this can be enabled.
17599 hardcode_into_libs=yes
17601 # Append ld.so.conf contents to the search path
17602 if test -f /etc/ld.so.conf; then
17603 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; shopt -s nullglob; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17607 # We used to test for /lib/ld.so.1 and disable shared libraries on
17608 # powerpc, because MkLinux only supported shared libraries with the
17609 # GNU dynamic linker. Since this was broken with cross compilers,
17610 # most powerpc-linux boxes support dynamic linking these days and
17611 # people can always --disable-shared, the test was removed, and we
17612 # assume the GNU/Linux dynamic linker is in use.
17613 dynamic_linker='GNU/Linux ld.so'
17620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17621 soname_spec='${libname}${release}${shared_ext}$major'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath=no
17624 hardcode_into_libs=yes
17625 dynamic_linker='GNU ld.so'
17632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17635 dynamic_linker='NetBSD (a.out) ld.so'
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17638 soname_spec='${libname}${release}${shared_ext}$major'
17639 dynamic_linker='NetBSD ld.elf_so'
17641 shlibpath_var=LD_LIBRARY_PATH
17642 shlibpath_overrides_runpath=yes
17643 hardcode_into_libs=yes
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649 shlibpath_var=LD_LIBRARY_PATH
17650 shlibpath_overrides_runpath=yes
17657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658 soname_spec='${libname}${release}${shared_ext}$major'
17659 shlibpath_var=LD_LIBRARY_PATH
17660 shlibpath_overrides_runpath=yes
17666 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17668 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17669 *) need_version=no ;;
17671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17673 shlibpath_var=LD_LIBRARY_PATH
17674 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17676 openbsd2.[89] | openbsd2.[89].*)
17677 shlibpath_overrides_runpath=no
17680 shlibpath_overrides_runpath=yes
17684 shlibpath_overrides_runpath=yes
17689 libname_spec='$name'
17692 library_names_spec='$libname${shared_ext} $libname.a'
17693 dynamic_linker='OS/2 ld.exe'
17694 shlibpath_var=LIBPATH
17697 osf3* | osf4* | osf5*)
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17705 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17710 soname_spec='${libname}${release}${shared_ext}$major'
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17712 shlibpath_var=LD_LIBRARY_PATH
17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 shlibpath_overrides_runpath=yes
17723 hardcode_into_libs=yes
17724 # ldd complains unless libraries are executable
17725 postinstall_cmds='chmod +x $lib'
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17732 shlibpath_var=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath=yes
17734 if test "$with_gnu_ld" = yes; then
17740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 case $host_vendor in
17747 shlibpath_overrides_runpath=no
17749 export_dynamic_flag_spec='${wl}-Blargedynsym'
17750 runpath_var=LD_RUN_PATH
17758 shlibpath_overrides_runpath=no
17759 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17765 if test -d /usr/nec ;then
17767 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17768 soname_spec='$libname${shared_ext}.$major'
17769 shlibpath_var=LD_LIBRARY_PATH
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776 soname_spec='${libname}${release}${shared_ext}$major'
17777 shlibpath_var=LD_LIBRARY_PATH
17784 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17785 echo "${ECHO_T}$dynamic_linker" >&6
17786 test "$dynamic_linker" = no && can_build_shared=no
17788 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17789 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17790 hardcode_action_GCJ=
17791 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17792 test -n "$runpath_var_GCJ" || \
17793 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17795 # We can hardcode non-existant directories.
17796 if test "$hardcode_direct_GCJ" != no &&
17797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17798 # have to relink, otherwise we might link with an installed library
17799 # when we should be linking with a yet-to-be-installed one
17800 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17801 test "$hardcode_minus_L_GCJ" != no; then
17802 # Linking always hardcodes the temporary library directory.
17803 hardcode_action_GCJ=relink
17805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17806 hardcode_action_GCJ=immediate
17809 # We cannot hardcode anything, or else we can only hardcode existing
17811 hardcode_action_GCJ=unsupported
17813 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17814 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17816 if test "$hardcode_action_GCJ" = relink; then
17817 # Fast installation is not supported
17818 enable_fast_install=no
17819 elif test "$shlibpath_overrides_runpath" = yes ||
17820 test "$enable_shared" = no; then
17821 # Fast installation is not necessary
17822 enable_fast_install=needless
17827 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17828 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17829 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17830 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17831 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17832 echo "$as_me:$LINENO: result: yes" >&5
17833 echo "${ECHO_T}yes" >&6
17835 # FIXME - insert some real tests, host_os isn't really good enough
17838 if test -n "$STRIP" ; then
17839 striplib="$STRIP -x"
17840 echo "$as_me:$LINENO: result: yes" >&5
17841 echo "${ECHO_T}yes" >&6
17843 echo "$as_me:$LINENO: result: no" >&5
17844 echo "${ECHO_T}no" >&6
17848 echo "$as_me:$LINENO: result: no" >&5
17849 echo "${ECHO_T}no" >&6
17854 if test "x$enable_dlopen" != xyes; then
17855 enable_dlopen=unknown
17856 enable_dlopen_self=unknown
17857 enable_dlopen_self_static=unknown
17864 lt_cv_dlopen="load_add_on"
17866 lt_cv_dlopen_self=yes
17870 lt_cv_dlopen="LoadLibrary"
17875 lt_cv_dlopen="dlopen"
17880 # if libdl is installed we need to link against it
17881 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17882 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 ac_check_lib_save_LIBS=$LIBS
17888 cat >conftest.$ac_ext <<_ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17895 /* Override any gcc2 internal prototype to avoid an error. */
17899 /* We use char because int might match the return type of a gcc2
17900 builtin and then its argument prototype would still apply. */
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17912 (eval $ac_link) 2>conftest.er1
17914 grep -v '^ *+' conftest.er1 >conftest.err
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_cv_lib_dl_dlopen=yes
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17937 ac_cv_lib_dl_dlopen=no
17939 rm -f conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941 LIBS=$ac_check_lib_save_LIBS
17943 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17944 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17945 if test $ac_cv_lib_dl_dlopen = yes; then
17946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17949 lt_cv_dlopen="dyld"
17951 lt_cv_dlopen_self=yes
17958 echo "$as_me:$LINENO: checking for shl_load" >&5
17959 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17960 if test "${ac_cv_func_shl_load+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17971 #define shl_load innocuous_shl_load
17973 /* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char shl_load (); below.
17975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976 <limits.h> exists even on freestanding compilers. */
17979 # include <limits.h>
17981 # include <assert.h>
17986 /* Override any gcc2 internal prototype to avoid an error. */
17991 /* We use char because int might match the return type of a gcc2
17992 builtin and then its argument prototype would still apply. */
17994 /* The GNU C library defines this for functions which it implements
17995 to always fail with ENOSYS. Some functions are actually named
17996 something starting with __ and the normal name is an alias. */
17997 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18000 char (*f) () = shl_load;
18009 return f != shl_load;
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016 (eval $ac_link) 2>conftest.er1
18018 grep -v '^ *+' conftest.er1 >conftest.err
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag"
18024 || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_func_shl_load=yes
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ac_cv_func_shl_load=no
18043 rm -f conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18046 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18047 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18048 if test $ac_cv_func_shl_load = yes; then
18049 lt_cv_dlopen="shl_load"
18051 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18052 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18053 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 ac_check_lib_save_LIBS=$LIBS
18058 cat >conftest.$ac_ext <<_ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18065 /* Override any gcc2 internal prototype to avoid an error. */
18069 /* We use char because int might match the return type of a gcc2
18070 builtin and then its argument prototype would still apply. */
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>conftest.er1
18084 grep -v '^ *+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag"
18090 || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_lib_dld_shl_load=yes
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_cv_lib_dld_shl_load=no
18109 rm -f conftest.err conftest.$ac_objext \
18110 conftest$ac_exeext conftest.$ac_ext
18111 LIBS=$ac_check_lib_save_LIBS
18113 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18114 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18115 if test $ac_cv_lib_dld_shl_load = yes; then
18116 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18118 echo "$as_me:$LINENO: checking for dlopen" >&5
18119 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18120 if test "${ac_cv_func_dlopen+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18131 #define dlopen innocuous_dlopen
18133 /* System header to define __stub macros and hopefully few prototypes,
18134 which can conflict with char dlopen (); below.
18135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18136 <limits.h> exists even on freestanding compilers. */
18139 # include <limits.h>
18141 # include <assert.h>
18146 /* Override any gcc2 internal prototype to avoid an error. */
18151 /* We use char because int might match the return type of a gcc2
18152 builtin and then its argument prototype would still apply. */
18154 /* The GNU C library defines this for functions which it implements
18155 to always fail with ENOSYS. Some functions are actually named
18156 something starting with __ and the normal name is an alias. */
18157 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18160 char (*f) () = dlopen;
18169 return f != dlopen;
18174 rm -f conftest.$ac_objext conftest$ac_exeext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18176 (eval $ac_link) 2>conftest.er1
18178 grep -v '^ *+' conftest.er1 >conftest.err
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag"
18184 || test ! -s conftest.err'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest$ac_exeext'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_func_dlopen=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_cv_func_dlopen=no
18203 rm -f conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18206 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18207 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18208 if test $ac_cv_func_dlopen = yes; then
18209 lt_cv_dlopen="dlopen"
18211 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18212 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_check_lib_save_LIBS=$LIBS
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18225 /* Override any gcc2 internal prototype to avoid an error. */
18229 /* We use char because int might match the return type of a gcc2
18230 builtin and then its argument prototype would still apply. */
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242 (eval $ac_link) 2>conftest.er1
18244 grep -v '^ *+' conftest.er1 >conftest.err
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
18249 { ac_try='test -z "$ac_c_werror_flag"
18250 || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest$ac_exeext'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262 ac_cv_lib_dl_dlopen=yes
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_cv_lib_dl_dlopen=no
18269 rm -f conftest.err conftest.$ac_objext \
18270 conftest$ac_exeext conftest.$ac_ext
18271 LIBS=$ac_check_lib_save_LIBS
18273 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18274 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18275 if test $ac_cv_lib_dl_dlopen = yes; then
18276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18278 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18279 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18280 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 ac_check_lib_save_LIBS=$LIBS
18284 LIBS="-lsvld $LIBS"
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18292 /* Override any gcc2 internal prototype to avoid an error. */
18296 /* We use char because int might match the return type of a gcc2
18297 builtin and then its argument prototype would still apply. */
18307 rm -f conftest.$ac_objext conftest$ac_exeext
18308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18309 (eval $ac_link) 2>conftest.er1
18311 grep -v '^ *+' conftest.er1 >conftest.err
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -z "$ac_c_werror_flag"
18317 || test ! -s conftest.err'
18318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; } &&
18323 { ac_try='test -s conftest$ac_exeext'
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; }; then
18329 ac_cv_lib_svld_dlopen=yes
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18334 ac_cv_lib_svld_dlopen=no
18336 rm -f conftest.err conftest.$ac_objext \
18337 conftest$ac_exeext conftest.$ac_ext
18338 LIBS=$ac_check_lib_save_LIBS
18340 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18341 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18342 if test $ac_cv_lib_svld_dlopen = yes; then
18343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18345 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18346 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18347 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 ac_check_lib_save_LIBS=$LIBS
18352 cat >conftest.$ac_ext <<_ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18359 /* Override any gcc2 internal prototype to avoid an error. */
18363 /* We use char because int might match the return type of a gcc2
18364 builtin and then its argument prototype would still apply. */
18374 rm -f conftest.$ac_objext conftest$ac_exeext
18375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18376 (eval $ac_link) 2>conftest.er1
18378 grep -v '^ *+' conftest.er1 >conftest.err
18380 cat conftest.err >&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
18383 { ac_try='test -z "$ac_c_werror_flag"
18384 || test ! -s conftest.err'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest$ac_exeext'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_cv_lib_dld_dld_link=yes
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18401 ac_cv_lib_dld_dld_link=no
18403 rm -f conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18407 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18408 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18409 if test $ac_cv_lib_dld_dld_link = yes; then
18410 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18431 if test "x$lt_cv_dlopen" != xno; then
18437 case $lt_cv_dlopen in
18439 save_CPPFLAGS="$CPPFLAGS"
18440 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18442 save_LDFLAGS="$LDFLAGS"
18443 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18446 LIBS="$lt_cv_dlopen_libs $LIBS"
18448 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18449 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18450 if test "${lt_cv_dlopen_self+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 if test "$cross_compiling" = yes; then :
18454 lt_cv_dlopen_self=cross
18456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18457 lt_status=$lt_dlunknown
18458 cat > conftest.$ac_ext <<EOF
18459 #line 18459 "configure"
18460 #include "confdefs.h"
18469 # define LT_DLGLOBAL RTLD_GLOBAL
18472 # define LT_DLGLOBAL DL_GLOBAL
18474 # define LT_DLGLOBAL 0
18478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18479 find out it does not work in some platform. */
18480 #ifndef LT_DLLAZY_OR_NOW
18482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18485 # define LT_DLLAZY_OR_NOW DL_LAZY
18488 # define LT_DLLAZY_OR_NOW RTLD_NOW
18491 # define LT_DLLAZY_OR_NOW DL_NOW
18493 # define LT_DLLAZY_OR_NOW 0
18501 extern "C" void exit (int);
18504 void fnord() { int i=42;}
18507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18508 int status = $lt_dlunknown;
18512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18514 /* dlclose (self); */
18520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18521 (eval $ac_link) 2>&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18525 (./conftest; exit; ) 2>/dev/null
18527 case x$lt_status in
18528 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18529 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18530 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18533 # compilation failed
18534 lt_cv_dlopen_self=no
18541 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18542 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18544 if test "x$lt_cv_dlopen_self" = xyes; then
18545 LDFLAGS="$LDFLAGS $link_static_flag"
18546 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18547 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18548 if test "${lt_cv_dlopen_self_static+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 if test "$cross_compiling" = yes; then :
18552 lt_cv_dlopen_self_static=cross
18554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18555 lt_status=$lt_dlunknown
18556 cat > conftest.$ac_ext <<EOF
18557 #line 18557 "configure"
18558 #include "confdefs.h"
18567 # define LT_DLGLOBAL RTLD_GLOBAL
18570 # define LT_DLGLOBAL DL_GLOBAL
18572 # define LT_DLGLOBAL 0
18576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18577 find out it does not work in some platform. */
18578 #ifndef LT_DLLAZY_OR_NOW
18580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18583 # define LT_DLLAZY_OR_NOW DL_LAZY
18586 # define LT_DLLAZY_OR_NOW RTLD_NOW
18589 # define LT_DLLAZY_OR_NOW DL_NOW
18591 # define LT_DLLAZY_OR_NOW 0
18599 extern "C" void exit (int);
18602 void fnord() { int i=42;}
18605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18606 int status = $lt_dlunknown;
18610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18611 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18612 /* dlclose (self); */
18618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18619 (eval $ac_link) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18623 (./conftest; exit; ) 2>/dev/null
18625 case x$lt_status in
18626 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18627 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18628 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18631 # compilation failed
18632 lt_cv_dlopen_self_static=no
18639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18640 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18643 CPPFLAGS="$save_CPPFLAGS"
18644 LDFLAGS="$save_LDFLAGS"
18649 case $lt_cv_dlopen_self in
18650 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18651 *) enable_dlopen_self=unknown ;;
18654 case $lt_cv_dlopen_self_static in
18655 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18656 *) enable_dlopen_self_static=unknown ;;
18661 # The else clause should only fire when bootstrapping the
18662 # libtool distribution, otherwise you forgot to ship ltmain.sh
18663 # with your package, and you will get complaints that there are
18664 # no rules to generate ltmain.sh.
18665 if test -f "$ltmain"; then
18666 # See if we are running on zsh, and set the options which allow our commands through
18667 # without removal of \ escapes.
18668 if test -n "${ZSH_VERSION+set}" ; then
18669 setopt NO_GLOB_SUBST
18671 # Now quote all the things that may contain metacharacters while being
18672 # careful not to overquote the AC_SUBSTed values. We take copies of the
18673 # variables and quote the copies for generation of the libtool script.
18674 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18676 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18677 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18678 deplibs_check_method reload_flag reload_cmds need_locks \
18679 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18680 lt_cv_sys_global_symbol_to_c_name_address \
18681 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18682 old_postinstall_cmds old_postuninstall_cmds \
18686 lt_prog_compiler_wl_GCJ \
18687 lt_prog_compiler_pic_GCJ \
18688 lt_prog_compiler_static_GCJ \
18689 lt_prog_compiler_no_builtin_flag_GCJ \
18690 export_dynamic_flag_spec_GCJ \
18691 thread_safe_flag_spec_GCJ \
18692 whole_archive_flag_spec_GCJ \
18693 enable_shared_with_static_runtimes_GCJ \
18694 old_archive_cmds_GCJ \
18695 old_archive_from_new_cmds_GCJ \
18696 predep_objects_GCJ \
18697 postdep_objects_GCJ \
18700 compiler_lib_search_path_GCJ \
18702 archive_expsym_cmds_GCJ \
18703 postinstall_cmds_GCJ \
18704 postuninstall_cmds_GCJ \
18705 old_archive_from_expsyms_cmds_GCJ \
18706 allow_undefined_flag_GCJ \
18707 no_undefined_flag_GCJ \
18708 export_symbols_cmds_GCJ \
18709 hardcode_libdir_flag_spec_GCJ \
18710 hardcode_libdir_flag_spec_ld_GCJ \
18711 hardcode_libdir_separator_GCJ \
18712 hardcode_automatic_GCJ \
18714 module_expsym_cmds_GCJ \
18715 lt_cv_prog_compiler_c_o_GCJ \
18716 exclude_expsyms_GCJ \
18717 include_expsyms_GCJ; do
18720 old_archive_cmds_GCJ | \
18721 old_archive_from_new_cmds_GCJ | \
18722 archive_cmds_GCJ | \
18723 archive_expsym_cmds_GCJ | \
18724 module_cmds_GCJ | \
18725 module_expsym_cmds_GCJ | \
18726 old_archive_from_expsyms_cmds_GCJ | \
18727 export_symbols_cmds_GCJ | \
18728 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18729 postinstall_cmds | postuninstall_cmds | \
18730 old_postinstall_cmds | old_postuninstall_cmds | \
18731 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18732 # Double-quote double-evaled strings.
18733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18742 *'\$0 --fallback-echo"')
18743 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18749 cat <<__EOF__ >> "$cfgfile"
18750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18754 # Shell to use when invoking shell scripts.
18757 # Whether or not to build shared libraries.
18758 build_libtool_libs=$enable_shared
18760 # Whether or not to build static libraries.
18761 build_old_libs=$enable_static
18763 # Whether or not to add -lc for building shared libraries.
18764 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18766 # Whether or not to disallow shared libs when runtime libs are static
18767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18769 # Whether or not to optimize for fast installation.
18770 fast_install=$enable_fast_install
18773 host_alias=$host_alias
18777 # The build system.
18778 build_alias=$build_alias
18782 # An echo program that does not interpret backslashes.
18787 AR_FLAGS=$lt_AR_FLAGS
18792 # A language-specific compiler.
18793 CC=$lt_compiler_GCJ
18795 # Is the compiler the GNU C compiler?
18801 # The linker used to build libraries.
18804 # Whether we need hard or soft links.
18807 # A BSD-compatible nm program.
18810 # A symbol stripping program
18813 # Used to examine libraries when file_magic_cmd begins "file"
18814 MAGIC_CMD=$MAGIC_CMD
18816 # Used on cygwin: DLL creation program.
18819 # Used on cygwin: object dumper.
18822 # Used on cygwin: assembler.
18825 # The name of the directory that contains temporary libtool files.
18828 # How to create reloadable object files.
18829 reload_flag=$lt_reload_flag
18830 reload_cmds=$lt_reload_cmds
18832 # How to pass a linker flag through the compiler.
18833 wl=$lt_lt_prog_compiler_wl_GCJ
18835 # Object file suffix (normally "o").
18836 objext="$ac_objext"
18838 # Old archive suffix (normally "a").
18841 # Shared library suffix (normally ".so").
18842 shrext_cmds='$shrext_cmds'
18844 # Executable file suffix (normally "").
18847 # Additional compiler flags for building library objects.
18848 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18851 # What is the maximum length of a command?
18852 max_cmd_len=$lt_cv_sys_max_cmd_len
18854 # Does compiler simultaneously support -c and -o options?
18855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18857 # Must we lock files when doing compilation?
18858 need_locks=$lt_need_locks
18860 # Do we need the lib prefix for modules?
18861 need_lib_prefix=$need_lib_prefix
18863 # Do we need a version for libraries?
18864 need_version=$need_version
18866 # Whether dlopen is supported.
18867 dlopen_support=$enable_dlopen
18869 # Whether dlopen of programs is supported.
18870 dlopen_self=$enable_dlopen_self
18872 # Whether dlopen of statically linked programs is supported.
18873 dlopen_self_static=$enable_dlopen_self_static
18875 # Compiler flag to prevent dynamic linking.
18876 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18878 # Compiler flag to turn off builtin functions.
18879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18881 # Compiler flag to allow reflexive dlopens.
18882 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18884 # Compiler flag to generate shared objects directly from archives.
18885 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18887 # Compiler flag to generate thread-safe objects.
18888 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18890 # Library versioning type.
18891 version_type=$version_type
18893 # Format of library name prefix.
18894 libname_spec=$lt_libname_spec
18896 # List of archive names. First name is the real one, the rest are links.
18897 # The last name is the one that the linker finds with -lNAME.
18898 library_names_spec=$lt_library_names_spec
18900 # The coded name of the library, if different from the real name.
18901 soname_spec=$lt_soname_spec
18903 # Commands used to build and install an old-style archive.
18905 old_archive_cmds=$lt_old_archive_cmds_GCJ
18906 old_postinstall_cmds=$lt_old_postinstall_cmds
18907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18909 # Create an old-style archive from a shared archive.
18910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18912 # Create a temporary old-style archive to link instead of a shared archive.
18913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18915 # Commands used to build and install a shared archive.
18916 archive_cmds=$lt_archive_cmds_GCJ
18917 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18918 postinstall_cmds=$lt_postinstall_cmds
18919 postuninstall_cmds=$lt_postuninstall_cmds
18921 # Commands used to build a loadable module (assumed same as above if empty)
18922 module_cmds=$lt_module_cmds_GCJ
18923 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18925 # Commands to strip libraries.
18926 old_striplib=$lt_old_striplib
18927 striplib=$lt_striplib
18929 # Dependencies to place before the objects being linked to create a
18931 predep_objects=$lt_predep_objects_GCJ
18933 # Dependencies to place after the objects being linked to create a
18935 postdep_objects=$lt_postdep_objects_GCJ
18937 # Dependencies to place before the objects being linked to create a
18939 predeps=$lt_predeps_GCJ
18941 # Dependencies to place after the objects being linked to create a
18943 postdeps=$lt_postdeps_GCJ
18945 # The library search path used internally by the compiler when linking
18946 # a shared library.
18947 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18949 # Method to check whether dependent libraries are shared objects.
18950 deplibs_check_method=$lt_deplibs_check_method
18952 # Command to use when deplibs_check_method == file_magic.
18953 file_magic_cmd=$lt_file_magic_cmd
18955 # Flag that allows shared libraries with undefined symbols to be built.
18956 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18958 # Flag that forces no undefined symbols.
18959 no_undefined_flag=$lt_no_undefined_flag_GCJ
18961 # Commands used to finish a libtool library installation in a directory.
18962 finish_cmds=$lt_finish_cmds
18964 # Same as above, but a single script fragment to be evaled but not shown.
18965 finish_eval=$lt_finish_eval
18967 # Take the output of nm and produce a listing of raw symbols and C names.
18968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18970 # Transform the output of nm in a proper C declaration
18971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18973 # Transform the output of nm in a C name address pair
18974 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18976 # This is the shared library runtime path variable.
18977 runpath_var=$runpath_var
18979 # This is the shared library path variable.
18980 shlibpath_var=$shlibpath_var
18982 # Is shlibpath searched before the hard-coded library search path?
18983 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18985 # How to hardcode a shared library path into an executable.
18986 hardcode_action=$hardcode_action_GCJ
18988 # Whether we should hardcode library paths into libraries.
18989 hardcode_into_libs=$hardcode_into_libs
18991 # Flag to hardcode \$libdir into a binary during linking.
18992 # This must work even if \$libdir does not exist.
18993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18995 # If ld is used when linking, flag to hardcode \$libdir into
18996 # a binary during linking. This must work even if \$libdir does
18998 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19000 # Whether we need a single -rpath flag with a separated argument.
19001 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19003 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19004 # resulting binary.
19005 hardcode_direct=$hardcode_direct_GCJ
19007 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19008 # resulting binary.
19009 hardcode_minus_L=$hardcode_minus_L_GCJ
19011 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19012 # the resulting binary.
19013 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19015 # Set to yes if building a shared library automatically hardcodes DIR into the library
19016 # and all subsequent libraries and executables linked against it.
19017 hardcode_automatic=$hardcode_automatic_GCJ
19019 # Variables whose values should be saved in libtool wrapper scripts and
19020 # restored at relink time.
19021 variables_saved_for_relink="$variables_saved_for_relink"
19023 # Whether libtool must link a program against all its dependency libraries.
19024 link_all_deplibs=$link_all_deplibs_GCJ
19026 # Compile-time system search path for libraries
19027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19029 # Run-time system search path for libraries
19030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19032 # Fix the shell variable \$srcfile for the compiler.
19033 fix_srcfile_path="$fix_srcfile_path_GCJ"
19035 # Set to yes if exported symbols are required.
19036 always_export_symbols=$always_export_symbols_GCJ
19038 # The commands to list exported symbols.
19039 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19041 # The commands to extract the exported symbol list from a shared archive.
19042 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19044 # Symbols that should not be listed in the preloaded symbols.
19045 exclude_expsyms=$lt_exclude_expsyms_GCJ
19047 # Symbols that must always be exported.
19048 include_expsyms=$lt_include_expsyms_GCJ
19050 # ### END LIBTOOL TAG CONFIG: $tagname
19056 # If there is no Makefile yet, we rely on a make rule to execute
19057 # `config.status --recheck' to rerun these tests and create the
19058 # libtool script then.
19059 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19060 if test -f "$ltmain_in"; then
19061 test -f Makefile && make "$ltmain"
19067 ac_cpp='$CPP $CPPFLAGS'
19068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19083 # Source file extension for RC test sources.
19086 # Object file extension for compiled RC test sources.
19090 # Code to be used in simple compile tests
19091 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19093 # Code to be used in simple link tests
19094 lt_simple_link_test_code="$lt_simple_compile_test_code"
19096 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19098 # If no C compiler was specified, use CC.
19101 # Allow CC to be a program name with arguments.
19105 # save warnings/boilerplate of simple test code
19106 ac_outfile=conftest.$ac_objext
19107 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19109 _lt_compiler_boilerplate=`cat conftest.err`
19112 ac_outfile=conftest.$ac_objext
19113 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19115 _lt_linker_boilerplate=`cat conftest.err`
19119 # Allow CC to be a program name with arguments.
19124 for cc_temp in $compiler""; do
19126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19132 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19134 lt_cv_prog_compiler_c_o_RC=yes
19136 # The else clause should only fire when bootstrapping the
19137 # libtool distribution, otherwise you forgot to ship ltmain.sh
19138 # with your package, and you will get complaints that there are
19139 # no rules to generate ltmain.sh.
19140 if test -f "$ltmain"; then
19141 # See if we are running on zsh, and set the options which allow our commands through
19142 # without removal of \ escapes.
19143 if test -n "${ZSH_VERSION+set}" ; then
19144 setopt NO_GLOB_SUBST
19146 # Now quote all the things that may contain metacharacters while being
19147 # careful not to overquote the AC_SUBSTed values. We take copies of the
19148 # variables and quote the copies for generation of the libtool script.
19149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19153 deplibs_check_method reload_flag reload_cmds need_locks \
19154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19155 lt_cv_sys_global_symbol_to_c_name_address \
19156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19157 old_postinstall_cmds old_postuninstall_cmds \
19161 lt_prog_compiler_wl_RC \
19162 lt_prog_compiler_pic_RC \
19163 lt_prog_compiler_static_RC \
19164 lt_prog_compiler_no_builtin_flag_RC \
19165 export_dynamic_flag_spec_RC \
19166 thread_safe_flag_spec_RC \
19167 whole_archive_flag_spec_RC \
19168 enable_shared_with_static_runtimes_RC \
19169 old_archive_cmds_RC \
19170 old_archive_from_new_cmds_RC \
19171 predep_objects_RC \
19172 postdep_objects_RC \
19175 compiler_lib_search_path_RC \
19177 archive_expsym_cmds_RC \
19178 postinstall_cmds_RC \
19179 postuninstall_cmds_RC \
19180 old_archive_from_expsyms_cmds_RC \
19181 allow_undefined_flag_RC \
19182 no_undefined_flag_RC \
19183 export_symbols_cmds_RC \
19184 hardcode_libdir_flag_spec_RC \
19185 hardcode_libdir_flag_spec_ld_RC \
19186 hardcode_libdir_separator_RC \
19187 hardcode_automatic_RC \
19189 module_expsym_cmds_RC \
19190 lt_cv_prog_compiler_c_o_RC \
19191 exclude_expsyms_RC \
19192 include_expsyms_RC; do
19195 old_archive_cmds_RC | \
19196 old_archive_from_new_cmds_RC | \
19197 archive_cmds_RC | \
19198 archive_expsym_cmds_RC | \
19200 module_expsym_cmds_RC | \
19201 old_archive_from_expsyms_cmds_RC | \
19202 export_symbols_cmds_RC | \
19203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19204 postinstall_cmds | postuninstall_cmds | \
19205 old_postinstall_cmds | old_postuninstall_cmds | \
19206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19207 # Double-quote double-evaled strings.
19208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19217 *'\$0 --fallback-echo"')
19218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19224 cat <<__EOF__ >> "$cfgfile"
19225 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19229 # Shell to use when invoking shell scripts.
19232 # Whether or not to build shared libraries.
19233 build_libtool_libs=$enable_shared
19235 # Whether or not to build static libraries.
19236 build_old_libs=$enable_static
19238 # Whether or not to add -lc for building shared libraries.
19239 build_libtool_need_lc=$archive_cmds_need_lc_RC
19241 # Whether or not to disallow shared libs when runtime libs are static
19242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19244 # Whether or not to optimize for fast installation.
19245 fast_install=$enable_fast_install
19248 host_alias=$host_alias
19252 # The build system.
19253 build_alias=$build_alias
19257 # An echo program that does not interpret backslashes.
19262 AR_FLAGS=$lt_AR_FLAGS
19267 # A language-specific compiler.
19270 # Is the compiler the GNU C compiler?
19276 # The linker used to build libraries.
19279 # Whether we need hard or soft links.
19282 # A BSD-compatible nm program.
19285 # A symbol stripping program
19288 # Used to examine libraries when file_magic_cmd begins "file"
19289 MAGIC_CMD=$MAGIC_CMD
19291 # Used on cygwin: DLL creation program.
19294 # Used on cygwin: object dumper.
19297 # Used on cygwin: assembler.
19300 # The name of the directory that contains temporary libtool files.
19303 # How to create reloadable object files.
19304 reload_flag=$lt_reload_flag
19305 reload_cmds=$lt_reload_cmds
19307 # How to pass a linker flag through the compiler.
19308 wl=$lt_lt_prog_compiler_wl_RC
19310 # Object file suffix (normally "o").
19311 objext="$ac_objext"
19313 # Old archive suffix (normally "a").
19316 # Shared library suffix (normally ".so").
19317 shrext_cmds='$shrext_cmds'
19319 # Executable file suffix (normally "").
19322 # Additional compiler flags for building library objects.
19323 pic_flag=$lt_lt_prog_compiler_pic_RC
19326 # What is the maximum length of a command?
19327 max_cmd_len=$lt_cv_sys_max_cmd_len
19329 # Does compiler simultaneously support -c and -o options?
19330 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19332 # Must we lock files when doing compilation?
19333 need_locks=$lt_need_locks
19335 # Do we need the lib prefix for modules?
19336 need_lib_prefix=$need_lib_prefix
19338 # Do we need a version for libraries?
19339 need_version=$need_version
19341 # Whether dlopen is supported.
19342 dlopen_support=$enable_dlopen
19344 # Whether dlopen of programs is supported.
19345 dlopen_self=$enable_dlopen_self
19347 # Whether dlopen of statically linked programs is supported.
19348 dlopen_self_static=$enable_dlopen_self_static
19350 # Compiler flag to prevent dynamic linking.
19351 link_static_flag=$lt_lt_prog_compiler_static_RC
19353 # Compiler flag to turn off builtin functions.
19354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19356 # Compiler flag to allow reflexive dlopens.
19357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19359 # Compiler flag to generate shared objects directly from archives.
19360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19362 # Compiler flag to generate thread-safe objects.
19363 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19365 # Library versioning type.
19366 version_type=$version_type
19368 # Format of library name prefix.
19369 libname_spec=$lt_libname_spec
19371 # List of archive names. First name is the real one, the rest are links.
19372 # The last name is the one that the linker finds with -lNAME.
19373 library_names_spec=$lt_library_names_spec
19375 # The coded name of the library, if different from the real name.
19376 soname_spec=$lt_soname_spec
19378 # Commands used to build and install an old-style archive.
19380 old_archive_cmds=$lt_old_archive_cmds_RC
19381 old_postinstall_cmds=$lt_old_postinstall_cmds
19382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19384 # Create an old-style archive from a shared archive.
19385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19387 # Create a temporary old-style archive to link instead of a shared archive.
19388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19390 # Commands used to build and install a shared archive.
19391 archive_cmds=$lt_archive_cmds_RC
19392 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19393 postinstall_cmds=$lt_postinstall_cmds
19394 postuninstall_cmds=$lt_postuninstall_cmds
19396 # Commands used to build a loadable module (assumed same as above if empty)
19397 module_cmds=$lt_module_cmds_RC
19398 module_expsym_cmds=$lt_module_expsym_cmds_RC
19400 # Commands to strip libraries.
19401 old_striplib=$lt_old_striplib
19402 striplib=$lt_striplib
19404 # Dependencies to place before the objects being linked to create a
19406 predep_objects=$lt_predep_objects_RC
19408 # Dependencies to place after the objects being linked to create a
19410 postdep_objects=$lt_postdep_objects_RC
19412 # Dependencies to place before the objects being linked to create a
19414 predeps=$lt_predeps_RC
19416 # Dependencies to place after the objects being linked to create a
19418 postdeps=$lt_postdeps_RC
19420 # The library search path used internally by the compiler when linking
19421 # a shared library.
19422 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19424 # Method to check whether dependent libraries are shared objects.
19425 deplibs_check_method=$lt_deplibs_check_method
19427 # Command to use when deplibs_check_method == file_magic.
19428 file_magic_cmd=$lt_file_magic_cmd
19430 # Flag that allows shared libraries with undefined symbols to be built.
19431 allow_undefined_flag=$lt_allow_undefined_flag_RC
19433 # Flag that forces no undefined symbols.
19434 no_undefined_flag=$lt_no_undefined_flag_RC
19436 # Commands used to finish a libtool library installation in a directory.
19437 finish_cmds=$lt_finish_cmds
19439 # Same as above, but a single script fragment to be evaled but not shown.
19440 finish_eval=$lt_finish_eval
19442 # Take the output of nm and produce a listing of raw symbols and C names.
19443 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19445 # Transform the output of nm in a proper C declaration
19446 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19448 # Transform the output of nm in a C name address pair
19449 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19451 # This is the shared library runtime path variable.
19452 runpath_var=$runpath_var
19454 # This is the shared library path variable.
19455 shlibpath_var=$shlibpath_var
19457 # Is shlibpath searched before the hard-coded library search path?
19458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19460 # How to hardcode a shared library path into an executable.
19461 hardcode_action=$hardcode_action_RC
19463 # Whether we should hardcode library paths into libraries.
19464 hardcode_into_libs=$hardcode_into_libs
19466 # Flag to hardcode \$libdir into a binary during linking.
19467 # This must work even if \$libdir does not exist.
19468 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19470 # If ld is used when linking, flag to hardcode \$libdir into
19471 # a binary during linking. This must work even if \$libdir does
19473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19475 # Whether we need a single -rpath flag with a separated argument.
19476 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19478 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19479 # resulting binary.
19480 hardcode_direct=$hardcode_direct_RC
19482 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19483 # resulting binary.
19484 hardcode_minus_L=$hardcode_minus_L_RC
19486 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19487 # the resulting binary.
19488 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19490 # Set to yes if building a shared library automatically hardcodes DIR into the library
19491 # and all subsequent libraries and executables linked against it.
19492 hardcode_automatic=$hardcode_automatic_RC
19494 # Variables whose values should be saved in libtool wrapper scripts and
19495 # restored at relink time.
19496 variables_saved_for_relink="$variables_saved_for_relink"
19498 # Whether libtool must link a program against all its dependency libraries.
19499 link_all_deplibs=$link_all_deplibs_RC
19501 # Compile-time system search path for libraries
19502 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19504 # Run-time system search path for libraries
19505 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19507 # Fix the shell variable \$srcfile for the compiler.
19508 fix_srcfile_path="$fix_srcfile_path_RC"
19510 # Set to yes if exported symbols are required.
19511 always_export_symbols=$always_export_symbols_RC
19513 # The commands to list exported symbols.
19514 export_symbols_cmds=$lt_export_symbols_cmds_RC
19516 # The commands to extract the exported symbol list from a shared archive.
19517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19519 # Symbols that should not be listed in the preloaded symbols.
19520 exclude_expsyms=$lt_exclude_expsyms_RC
19522 # Symbols that must always be exported.
19523 include_expsyms=$lt_include_expsyms_RC
19525 # ### END LIBTOOL TAG CONFIG: $tagname
19531 # If there is no Makefile yet, we rely on a make rule to execute
19532 # `config.status --recheck' to rerun these tests and create the
19533 # libtool script then.
19534 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19535 if test -f "$ltmain_in"; then
19536 test -f Makefile && make "$ltmain"
19542 ac_cpp='$CPP $CPPFLAGS'
19543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19553 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19554 { (exit 1); exit 1; }; }
19558 # Append the new tag name to the list of available tags.
19559 if test -n "$tagname" ; then
19560 available_tags="$available_tags $tagname"
19566 # Now substitute the updated list of available tags.
19567 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19568 mv "${ofile}T" "$ofile"
19572 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19573 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19574 { (exit 1); exit 1; }; }
19580 # This can be used to rebuild libtool when needed
19581 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19583 # Always use our own libtool.
19584 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19586 # Prevent multiple expansion
19612 ac_cpp='$CPP $CPPFLAGS'
19613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19616 if test -n "$ac_tool_prefix"; then
19617 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19618 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19619 echo "$as_me:$LINENO: checking for $ac_word" >&5
19620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19621 if test "${ac_cv_prog_CC+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 if test -n "$CC"; then
19625 ac_cv_prog_CC="$CC" # Let the user override the test.
19627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19628 for as_dir in $PATH
19631 test -z "$as_dir" && as_dir=.
19632 for ac_exec_ext in '' $ac_executable_extensions; do
19633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19634 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19644 if test -n "$CC"; then
19645 echo "$as_me:$LINENO: result: $CC" >&5
19646 echo "${ECHO_T}$CC" >&6
19648 echo "$as_me:$LINENO: result: no" >&5
19649 echo "${ECHO_T}no" >&6
19653 if test -z "$ac_cv_prog_CC"; then
19655 # Extract the first word of "gcc", so it can be a program name with args.
19656 set dummy gcc; ac_word=$2
19657 echo "$as_me:$LINENO: checking for $ac_word" >&5
19658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 if test -n "$ac_ct_CC"; then
19663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19666 for as_dir in $PATH
19669 test -z "$as_dir" && as_dir=.
19670 for ac_exec_ext in '' $ac_executable_extensions; do
19671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19672 ac_cv_prog_ac_ct_CC="gcc"
19673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19682 if test -n "$ac_ct_CC"; then
19683 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19684 echo "${ECHO_T}$ac_ct_CC" >&6
19686 echo "$as_me:$LINENO: result: no" >&5
19687 echo "${ECHO_T}no" >&6
19692 CC="$ac_cv_prog_CC"
19695 if test -z "$CC"; then
19696 if test -n "$ac_tool_prefix"; then
19697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19698 set dummy ${ac_tool_prefix}cc; ac_word=$2
19699 echo "$as_me:$LINENO: checking for $ac_word" >&5
19700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19701 if test "${ac_cv_prog_CC+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 if test -n "$CC"; then
19705 ac_cv_prog_CC="$CC" # Let the user override the test.
19707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19708 for as_dir in $PATH
19711 test -z "$as_dir" && as_dir=.
19712 for ac_exec_ext in '' $ac_executable_extensions; do
19713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19714 ac_cv_prog_CC="${ac_tool_prefix}cc"
19715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19724 if test -n "$CC"; then
19725 echo "$as_me:$LINENO: result: $CC" >&5
19726 echo "${ECHO_T}$CC" >&6
19728 echo "$as_me:$LINENO: result: no" >&5
19729 echo "${ECHO_T}no" >&6
19733 if test -z "$ac_cv_prog_CC"; then
19735 # Extract the first word of "cc", so it can be a program name with args.
19736 set dummy cc; ac_word=$2
19737 echo "$as_me:$LINENO: checking for $ac_word" >&5
19738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 if test -n "$ac_ct_CC"; then
19743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19746 for as_dir in $PATH
19749 test -z "$as_dir" && as_dir=.
19750 for ac_exec_ext in '' $ac_executable_extensions; do
19751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19752 ac_cv_prog_ac_ct_CC="cc"
19753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19762 if test -n "$ac_ct_CC"; then
19763 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19764 echo "${ECHO_T}$ac_ct_CC" >&6
19766 echo "$as_me:$LINENO: result: no" >&5
19767 echo "${ECHO_T}no" >&6
19772 CC="$ac_cv_prog_CC"
19776 if test -z "$CC"; then
19777 # Extract the first word of "cc", so it can be a program name with args.
19778 set dummy cc; ac_word=$2
19779 echo "$as_me:$LINENO: checking for $ac_word" >&5
19780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19781 if test "${ac_cv_prog_CC+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 if test -n "$CC"; then
19785 ac_cv_prog_CC="$CC" # Let the user override the test.
19787 ac_prog_rejected=no
19788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19789 for as_dir in $PATH
19792 test -z "$as_dir" && as_dir=.
19793 for ac_exec_ext in '' $ac_executable_extensions; do
19794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19796 ac_prog_rejected=yes
19800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19806 if test $ac_prog_rejected = yes; then
19807 # We found a bogon in the path, so make sure we never use it.
19808 set dummy $ac_cv_prog_CC
19810 if test $# != 0; then
19811 # We chose a different compiler from the bogus one.
19812 # However, it has the same basename, so the bogon will be chosen
19813 # first if we set CC to just the basename; use the full file name.
19815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19821 if test -n "$CC"; then
19822 echo "$as_me:$LINENO: result: $CC" >&5
19823 echo "${ECHO_T}$CC" >&6
19825 echo "$as_me:$LINENO: result: no" >&5
19826 echo "${ECHO_T}no" >&6
19830 if test -z "$CC"; then
19831 if test -n "$ac_tool_prefix"; then
19834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19836 echo "$as_me:$LINENO: checking for $ac_word" >&5
19837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19838 if test "${ac_cv_prog_CC+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 if test -n "$CC"; then
19842 ac_cv_prog_CC="$CC" # Let the user override the test.
19844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19845 for as_dir in $PATH
19848 test -z "$as_dir" && as_dir=.
19849 for ac_exec_ext in '' $ac_executable_extensions; do
19850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19861 if test -n "$CC"; then
19862 echo "$as_me:$LINENO: result: $CC" >&5
19863 echo "${ECHO_T}$CC" >&6
19865 echo "$as_me:$LINENO: result: no" >&5
19866 echo "${ECHO_T}no" >&6
19869 test -n "$CC" && break
19872 if test -z "$CC"; then
19876 # Extract the first word of "$ac_prog", so it can be a program name with args.
19877 set dummy $ac_prog; ac_word=$2
19878 echo "$as_me:$LINENO: checking for $ac_word" >&5
19879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 if test -n "$ac_ct_CC"; then
19884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19887 for as_dir in $PATH
19890 test -z "$as_dir" && as_dir=.
19891 for ac_exec_ext in '' $ac_executable_extensions; do
19892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19893 ac_cv_prog_ac_ct_CC="$ac_prog"
19894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19903 if test -n "$ac_ct_CC"; then
19904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19905 echo "${ECHO_T}$ac_ct_CC" >&6
19907 echo "$as_me:$LINENO: result: no" >&5
19908 echo "${ECHO_T}no" >&6
19911 test -n "$ac_ct_CC" && break
19920 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19921 See \`config.log' for more details." >&5
19922 echo "$as_me: error: no acceptable C compiler found in \$PATH
19923 See \`config.log' for more details." >&2;}
19924 { (exit 1); exit 1; }; }
19926 # Provide some information about the compiler.
19927 echo "$as_me:$LINENO:" \
19928 "checking for C compiler version" >&5
19929 ac_compiler=`set X $ac_compile; echo $2`
19930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19931 (eval $ac_compiler --version </dev/null >&5) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }
19935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19936 (eval $ac_compiler -v </dev/null >&5) 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }
19940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19941 (eval $ac_compiler -V </dev/null >&5) 2>&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }
19946 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19969 rm -f conftest.$ac_objext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19973 grep -v '^ *+' conftest.er1 >conftest.err
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
19978 { ac_try='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_compiler_gnu=yes
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19999 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20002 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20003 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
20004 GCC=`test $ac_compiler_gnu = yes && echo yes`
20005 ac_test_CFLAGS=${CFLAGS+set}
20006 ac_save_CFLAGS=$CFLAGS
20008 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20009 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
20010 if test "${ac_cv_prog_cc_g+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20028 rm -f conftest.$ac_objext
20029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20030 (eval $ac_compile) 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_c_werror_flag"
20038 || test ! -s conftest.err'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; } &&
20044 { ac_try='test -s conftest.$ac_objext'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_cv_prog_cc_g=yes
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20059 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20060 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
20061 if test "$ac_test_CFLAGS" = set; then
20062 CFLAGS=$ac_save_CFLAGS
20063 elif test $ac_cv_prog_cc_g = yes; then
20064 if test "$GCC" = yes; then
20070 if test "$GCC" = yes; then
20076 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
20077 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20078 if test "${ac_cv_prog_cc_stdc+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 ac_cv_prog_cc_stdc=no
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20089 #include <stdarg.h>
20091 #include <sys/types.h>
20092 #include <sys/stat.h>
20093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20094 struct buf { int x; };
20095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20096 static char *e (p, i)
20102 static char *f (char * (*g) (char **, int), char **p, ...)
20107 s = g (p, va_arg (v,int));
20112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20113 function prototypes and stuff, but not '\xHH' hex character constants.
20114 These don't provoke an error unfortunately, instead are silently treated
20115 as 'x'. The following induces an error, until -std1 is added to get
20116 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20117 array size at least. It's necessary to write '\x00'==0 to get something
20118 that's true only with -std1. */
20119 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20121 int test (int i, double x);
20122 struct s1 {int (*f) (int a);};
20123 struct s2 {int (*f) (double a);};
20124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20135 # Don't try gcc -ansi; that turns off useful extensions and
20136 # breaks some systems' header files.
20137 # AIX -qlanglvl=ansi
20138 # Ultrix and OSF/1 -std1
20139 # HP-UX 10.20 and later -Ae
20140 # HP-UX older versions -Aa -D_HPUX_SOURCE
20141 # SVR4 -Xc -D__EXTENSIONS__
20142 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20144 CC="$ac_save_CC $ac_arg"
20145 rm -f conftest.$ac_objext
20146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20147 (eval $ac_compile) 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -z "$ac_c_werror_flag"
20155 || test ! -s conftest.err'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest.$ac_objext'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_cv_prog_cc_stdc=$ac_arg
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20174 rm -f conftest.err conftest.$ac_objext
20176 rm -f conftest.$ac_ext conftest.$ac_objext
20181 case "x$ac_cv_prog_cc_stdc" in
20183 echo "$as_me:$LINENO: result: none needed" >&5
20184 echo "${ECHO_T}none needed" >&6 ;;
20186 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
20187 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20188 CC="$CC $ac_cv_prog_cc_stdc" ;;
20191 # Some people use a C++ compiler to compile C. Since we use `exit',
20192 # in C++ we need to declare it. In case someone uses the same compiler
20193 # for both compiling C and C++ we need to have the C++ compiler decide
20194 # the declaration of exit, since it's the most demanding environment.
20195 cat >conftest.$ac_ext <<_ACEOF
20196 #ifndef __cplusplus
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202 (eval $ac_compile) 2>conftest.er1
20204 grep -v '^ *+' conftest.er1 >conftest.err
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest.$ac_objext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 for ac_declaration in \
20224 'extern "C" void std::exit (int) throw (); using std::exit;' \
20225 'extern "C" void std::exit (int); using std::exit;' \
20226 'extern "C" void exit (int) throw ();' \
20227 'extern "C" void exit (int);' \
20230 cat >conftest.$ac_ext <<_ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20237 #include <stdlib.h>
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248 (eval $ac_compile) 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -z "$ac_c_werror_flag"
20256 || test ! -s conftest.err'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } &&
20262 { ac_try='test -s conftest.$ac_objext'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20291 rm -f conftest.$ac_objext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293 (eval $ac_compile) 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest.$ac_objext'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20322 if test -n "$ac_declaration"; then
20323 echo '#ifdef __cplusplus' >>confdefs.h
20324 echo $ac_declaration >>confdefs.h
20325 echo '#endif' >>confdefs.h
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20335 ac_cpp='$CPP $CPPFLAGS'
20336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20340 depcc="$CC" am_compiler_list=
20342 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20343 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20344 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20348 # We make a subdir and do the tests there. Otherwise we can end up
20349 # making bogus files that we don't know about and never remove. For
20350 # instance it was reported that on HP-UX the gcc test will end up
20351 # making a dummy file named `D' -- because `-MD' means `put the output
20354 # Copy depcomp to subdir because otherwise we won't find it if we're
20355 # using a relative directory.
20356 cp "$am_depcomp" conftest.dir
20358 # We will build objects and dependencies in a subdirectory because
20359 # it helps to detect inapplicable dependency modes. For instance
20360 # both Tru64's cc and ICC support -MD to output dependencies as a
20361 # side effect of compilation, but ICC will put the dependencies in
20362 # the current directory while Tru64 will put them in the object
20366 am_cv_CC_dependencies_compiler_type=none
20367 if test "$am_compiler_list" = ""; then
20368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20370 for depmode in $am_compiler_list; do
20371 # Setup a source with many dependencies, because some compilers
20372 # like to wrap large dependency lists on column 80 (with \), and
20373 # we should not choose a depcomp mode which is confused by this.
20375 # We need to recreate these files for each test, as the compiler may
20376 # overwrite some of them when testing with obscure command lines.
20377 # This happens at least with the AIX C compiler.
20379 for i in 1 2 3 4 5 6; do
20380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20381 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20382 # Solaris 8's {/usr,}/bin/sh.
20383 touch sub/conftst$i.h
20385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20389 # after this tag, mechanisms are not by side-effect, so they'll
20390 # only be used when explicitly requested
20391 if test "x$enable_dependency_tracking" = xyes; then
20399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20400 # mode. It turns out that the SunPro C++ compiler does not properly
20401 # handle `-M -o', and we need to detect this.
20402 if depmode=$depmode \
20403 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20404 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20405 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20406 >/dev/null 2>conftest.err &&
20407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20408 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20410 # icc doesn't choke on unknown options, it will just issue warnings
20411 # or remarks (even with -Werror). So we grep stderr for any message
20412 # that says an option was ignored or not supported.
20413 # When given -MP, icc 7.0 and 7.1 complain thusly:
20414 # icc: Command line warning: ignoring option '-M'; no argument required
20415 # The diagnosis changed in icc 8.0:
20416 # icc: Command line remark: option '-MP' not supported
20417 if (grep 'ignoring option' conftest.err ||
20418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20419 am_cv_CC_dependencies_compiler_type=$depmode
20426 rm -rf conftest.dir
20428 am_cv_CC_dependencies_compiler_type=none
20432 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20433 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20439 test "x$enable_dependency_tracking" != xno \
20440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20441 am__fastdepCC_TRUE=
20442 am__fastdepCC_FALSE='#'
20444 am__fastdepCC_TRUE='#'
20445 am__fastdepCC_FALSE=
20450 ac_cpp='$CXXCPP $CPPFLAGS'
20451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20454 if test -n "$ac_tool_prefix"; then
20455 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20459 echo "$as_me:$LINENO: checking for $ac_word" >&5
20460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20461 if test "${ac_cv_prog_CXX+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 if test -n "$CXX"; then
20465 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20468 for as_dir in $PATH
20471 test -z "$as_dir" && as_dir=.
20472 for ac_exec_ext in '' $ac_executable_extensions; do
20473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20474 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20483 CXX=$ac_cv_prog_CXX
20484 if test -n "$CXX"; then
20485 echo "$as_me:$LINENO: result: $CXX" >&5
20486 echo "${ECHO_T}$CXX" >&6
20488 echo "$as_me:$LINENO: result: no" >&5
20489 echo "${ECHO_T}no" >&6
20492 test -n "$CXX" && break
20495 if test -z "$CXX"; then
20497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20499 # Extract the first word of "$ac_prog", so it can be a program name with args.
20500 set dummy $ac_prog; ac_word=$2
20501 echo "$as_me:$LINENO: checking for $ac_word" >&5
20502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 if test -n "$ac_ct_CXX"; then
20507 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20510 for as_dir in $PATH
20513 test -z "$as_dir" && as_dir=.
20514 for ac_exec_ext in '' $ac_executable_extensions; do
20515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20516 ac_cv_prog_ac_ct_CXX="$ac_prog"
20517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20526 if test -n "$ac_ct_CXX"; then
20527 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20528 echo "${ECHO_T}$ac_ct_CXX" >&6
20530 echo "$as_me:$LINENO: result: no" >&5
20531 echo "${ECHO_T}no" >&6
20534 test -n "$ac_ct_CXX" && break
20536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20542 # Provide some information about the compiler.
20543 echo "$as_me:$LINENO:" \
20544 "checking for C++ compiler version" >&5
20545 ac_compiler=`set X $ac_compile; echo $2`
20546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20547 (eval $ac_compiler --version </dev/null >&5) 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }
20551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20552 (eval $ac_compiler -v </dev/null >&5) 2>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }
20556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20557 (eval $ac_compiler -V </dev/null >&5) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }
20562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 cat >conftest.$ac_ext <<_ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20585 rm -f conftest.$ac_objext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587 (eval $ac_compile) 2>conftest.er1
20589 grep -v '^ *+' conftest.er1 >conftest.err
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
20594 { ac_try='test -z "$ac_cxx_werror_flag"
20595 || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest.$ac_objext'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_compiler_gnu=yes
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20620 GXX=`test $ac_compiler_gnu = yes && echo yes`
20621 ac_test_CXXFLAGS=${CXXFLAGS+set}
20622 ac_save_CXXFLAGS=$CXXFLAGS
20624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20626 if test "${ac_cv_prog_cxx_g+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646 (eval $ac_compile) 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try='test -z "$ac_cxx_werror_flag"
20654 || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest.$ac_objext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_prog_cxx_g=yes
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_prog_cxx_g=no
20673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20677 if test "$ac_test_CXXFLAGS" = set; then
20678 CXXFLAGS=$ac_save_CXXFLAGS
20679 elif test $ac_cv_prog_cxx_g = yes; then
20680 if test "$GXX" = yes; then
20686 if test "$GXX" = yes; then
20692 for ac_declaration in \
20694 'extern "C" void std::exit (int) throw (); using std::exit;' \
20695 'extern "C" void std::exit (int); using std::exit;' \
20696 'extern "C" void exit (int) throw ();' \
20697 'extern "C" void exit (int);' \
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20707 #include <stdlib.h>
20716 rm -f conftest.$ac_objext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20718 (eval $ac_compile) 2>conftest.er1
20720 grep -v '^ *+' conftest.er1 >conftest.err
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
20725 { ac_try='test -z "$ac_cxx_werror_flag"
20726 || test ! -s conftest.err'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; } &&
20732 { ac_try='test -s conftest.$ac_objext'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20746 cat >conftest.$ac_ext <<_ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20761 rm -f conftest.$ac_objext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763 (eval $ac_compile) 2>conftest.er1
20765 grep -v '^ *+' conftest.er1 >conftest.err
20767 cat conftest.err >&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
20770 { ac_try='test -z "$ac_cxx_werror_flag"
20771 || test ! -s conftest.err'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest.$ac_objext'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20792 if test -n "$ac_declaration"; then
20793 echo '#ifdef __cplusplus' >>confdefs.h
20794 echo $ac_declaration >>confdefs.h
20795 echo '#endif' >>confdefs.h
20799 ac_cpp='$CPP $CPPFLAGS'
20800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20804 depcc="$CXX" am_compiler_list=
20806 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20807 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20808 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20812 # We make a subdir and do the tests there. Otherwise we can end up
20813 # making bogus files that we don't know about and never remove. For
20814 # instance it was reported that on HP-UX the gcc test will end up
20815 # making a dummy file named `D' -- because `-MD' means `put the output
20818 # Copy depcomp to subdir because otherwise we won't find it if we're
20819 # using a relative directory.
20820 cp "$am_depcomp" conftest.dir
20822 # We will build objects and dependencies in a subdirectory because
20823 # it helps to detect inapplicable dependency modes. For instance
20824 # both Tru64's cc and ICC support -MD to output dependencies as a
20825 # side effect of compilation, but ICC will put the dependencies in
20826 # the current directory while Tru64 will put them in the object
20830 am_cv_CXX_dependencies_compiler_type=none
20831 if test "$am_compiler_list" = ""; then
20832 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20834 for depmode in $am_compiler_list; do
20835 # Setup a source with many dependencies, because some compilers
20836 # like to wrap large dependency lists on column 80 (with \), and
20837 # we should not choose a depcomp mode which is confused by this.
20839 # We need to recreate these files for each test, as the compiler may
20840 # overwrite some of them when testing with obscure command lines.
20841 # This happens at least with the AIX C compiler.
20843 for i in 1 2 3 4 5 6; do
20844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20845 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20846 # Solaris 8's {/usr,}/bin/sh.
20847 touch sub/conftst$i.h
20849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20853 # after this tag, mechanisms are not by side-effect, so they'll
20854 # only be used when explicitly requested
20855 if test "x$enable_dependency_tracking" = xyes; then
20863 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20864 # mode. It turns out that the SunPro C++ compiler does not properly
20865 # handle `-M -o', and we need to detect this.
20866 if depmode=$depmode \
20867 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20869 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20870 >/dev/null 2>conftest.err &&
20871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20872 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20874 # icc doesn't choke on unknown options, it will just issue warnings
20875 # or remarks (even with -Werror). So we grep stderr for any message
20876 # that says an option was ignored or not supported.
20877 # When given -MP, icc 7.0 and 7.1 complain thusly:
20878 # icc: Command line warning: ignoring option '-M'; no argument required
20879 # The diagnosis changed in icc 8.0:
20880 # icc: Command line remark: option '-MP' not supported
20881 if (grep 'ignoring option' conftest.err ||
20882 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20883 am_cv_CXX_dependencies_compiler_type=$depmode
20890 rm -rf conftest.dir
20892 am_cv_CXX_dependencies_compiler_type=none
20896 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20897 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
20898 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20903 test "x$enable_dependency_tracking" != xno \
20904 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20905 am__fastdepCXX_TRUE=
20906 am__fastdepCXX_FALSE='#'
20908 am__fastdepCXX_TRUE='#'
20909 am__fastdepCXX_FALSE=
20913 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20915 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20916 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 cat >conftest.make <<\_ACEOF
20921 @echo 'ac_maketemp="$(MAKE)"'
20923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20924 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20925 if test -n "$ac_maketemp"; then
20926 eval ac_cv_prog_make_${ac_make}_set=yes
20928 eval ac_cv_prog_make_${ac_make}_set=no
20930 rm -f conftest.make
20932 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20933 echo "$as_me:$LINENO: result: yes" >&5
20934 echo "${ECHO_T}yes" >&6
20937 echo "$as_me:$LINENO: result: no" >&5
20938 echo "${ECHO_T}no" >&6
20939 SET_MAKE="MAKE=${MAKE-make}"
20942 if test -n "$ac_tool_prefix"; then
20943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20945 echo "$as_me:$LINENO: checking for $ac_word" >&5
20946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20947 if test "${ac_cv_prog_RANLIB+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20950 if test -n "$RANLIB"; then
20951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20954 for as_dir in $PATH
20957 test -z "$as_dir" && as_dir=.
20958 for ac_exec_ext in '' $ac_executable_extensions; do
20959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20969 RANLIB=$ac_cv_prog_RANLIB
20970 if test -n "$RANLIB"; then
20971 echo "$as_me:$LINENO: result: $RANLIB" >&5
20972 echo "${ECHO_T}$RANLIB" >&6
20974 echo "$as_me:$LINENO: result: no" >&5
20975 echo "${ECHO_T}no" >&6
20979 if test -z "$ac_cv_prog_RANLIB"; then
20980 ac_ct_RANLIB=$RANLIB
20981 # Extract the first word of "ranlib", so it can be a program name with args.
20982 set dummy ranlib; ac_word=$2
20983 echo "$as_me:$LINENO: checking for $ac_word" >&5
20984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 if test -n "$ac_ct_RANLIB"; then
20989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20992 for as_dir in $PATH
20995 test -z "$as_dir" && as_dir=.
20996 for ac_exec_ext in '' $ac_executable_extensions; do
20997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20998 ac_cv_prog_ac_ct_RANLIB="ranlib"
20999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21005 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
21008 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
21009 if test -n "$ac_ct_RANLIB"; then
21010 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
21011 echo "${ECHO_T}$ac_ct_RANLIB" >&6
21013 echo "$as_me:$LINENO: result: no" >&5
21014 echo "${ECHO_T}no" >&6
21017 RANLIB=$ac_ct_RANLIB
21019 RANLIB="$ac_cv_prog_RANLIB"
21023 echo "$as_me:$LINENO: checking for X" >&5
21024 echo $ECHO_N "checking for X... $ECHO_C" >&6
21027 # Check whether --with-x or --without-x was given.
21028 if test "${with_x+set}" = set; then
21032 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21033 if test "x$with_x" = xno; then
21034 # The user explicitly disabled X.
21037 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21038 # Both variables are already set.
21041 if test "${ac_cv_have_x+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21044 # One or both of the vars are not set, and there is no cached value.
21045 ac_x_includes=no ac_x_libraries=no
21046 rm -fr conftest.dir
21047 if mkdir conftest.dir; then
21049 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21050 cat >Imakefile <<'_ACEOF'
21052 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21054 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21056 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21057 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21058 for ac_extension in a so sl; do
21059 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21060 test -f $ac_im_libdir/libX11.$ac_extension; then
21061 ac_im_usrlibdir=$ac_im_libdir; break
21064 # Screen out bogus values from the imake configuration. They are
21065 # bogus both because they are the default anyway, and because
21066 # using them would break gcc on systems where it needs fixed includes.
21067 case $ac_im_incroot in
21069 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21071 case $ac_im_usrlibdir in
21072 /usr/lib | /lib) ;;
21073 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21077 rm -fr conftest.dir
21080 # Standard set of common directories for X headers.
21081 # Check X11 before X11Rn because it is often a symlink to the current release.
21093 /usr/local/X11/include
21094 /usr/local/X11R6/include
21095 /usr/local/X11R5/include
21096 /usr/local/X11R4/include
21098 /usr/local/include/X11
21099 /usr/local/include/X11R6
21100 /usr/local/include/X11R5
21101 /usr/local/include/X11R4
21105 /usr/XFree86/include/X11
21109 /usr/unsupported/include
21110 /usr/athena/include
21111 /usr/local/x11r5/include
21112 /usr/lpp/Xamples/include
21114 /usr/openwin/include
21115 /usr/openwin/share/include'
21117 if test "$ac_x_includes" = no; then
21118 # Guess where to find include files, by looking for Intrinsic.h.
21119 # First, try using that file with no special directory specified.
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include <X11/Intrinsic.h>
21128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21131 grep -v '^ *+' conftest.er1 >conftest.err
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } >/dev/null; then
21136 if test -s conftest.err; then
21137 ac_cpp_err=$ac_c_preproc_warn_flag
21138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21145 if test -z "$ac_cpp_err"; then
21146 # We can compile using X headers with no special include directory.
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 for ac_dir in $ac_x_header_dirs; do
21153 if test -r "$ac_dir/X11/Intrinsic.h"; then
21154 ac_x_includes=$ac_dir
21159 rm -f conftest.err conftest.$ac_ext
21160 fi # $ac_x_includes = no
21162 if test "$ac_x_libraries" = no; then
21163 # Check for the libraries.
21164 # See if we find them without any special options.
21165 # Don't add to $LIBS permanently.
21168 cat >conftest.$ac_ext <<_ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21174 #include <X11/Intrinsic.h>
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21185 (eval $ac_link) 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } &&
21192 { ac_try='test -z "$ac_c_werror_flag"
21193 || test ! -s conftest.err'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; } &&
21199 { ac_try='test -s conftest$ac_exeext'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; }; then
21206 # We can link X programs with no special library path.
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21213 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21215 # Don't even attempt the hair of trying to link an X program!
21216 for ac_extension in a so sl; do
21217 if test -r $ac_dir/libXt.$ac_extension; then
21218 ac_x_libraries=$ac_dir
21224 rm -f conftest.err conftest.$ac_objext \
21225 conftest$ac_exeext conftest.$ac_ext
21226 fi # $ac_x_libraries = no
21228 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21229 # Didn't find X anywhere. Cache the known absence of X.
21230 ac_cv_have_x="have_x=no"
21232 # Record where we found X for the cache.
21233 ac_cv_have_x="have_x=yes \
21234 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21239 eval "$ac_cv_have_x"
21242 if test "$have_x" != yes; then
21243 echo "$as_me:$LINENO: result: $have_x" >&5
21244 echo "${ECHO_T}$have_x" >&6
21247 # If each of the values was on the command line, it overrides each guess.
21248 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21249 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21250 # Update the cache value to reflect the command line values.
21251 ac_cv_have_x="have_x=yes \
21252 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21253 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21254 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21257 if test "$no_x" = yes; then
21258 # Not all programs may use this symbol, but it does not hurt to define it.
21260 cat >>confdefs.h <<\_ACEOF
21261 #define X_DISPLAY_MISSING 1
21264 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21266 if test -n "$x_includes"; then
21267 X_CFLAGS="$X_CFLAGS -I$x_includes"
21270 # It would also be nice to do this for all -L options, not just this one.
21271 if test -n "$x_libraries"; then
21272 X_LIBS="$X_LIBS -L$x_libraries"
21273 # For Solaris; some versions of Sun CC require a space after -R and
21274 # others require no space. Words are not sufficient . . . .
21275 case `(uname -sr) 2>/dev/null` in
21277 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21278 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21279 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21295 rm -f conftest.$ac_objext conftest$ac_exeext
21296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21297 (eval $ac_link) 2>conftest.er1
21299 grep -v '^ *+' conftest.er1 >conftest.err
21301 cat conftest.err >&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } &&
21304 { ac_try='test -z "$ac_c_werror_flag"
21305 || test ! -s conftest.err'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; } &&
21311 { ac_try='test -s conftest$ac_exeext'
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; }; then
21319 echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21324 rm -f conftest.err conftest.$ac_objext \
21325 conftest$ac_exeext conftest.$ac_ext
21326 if test $ac_R_nospace = yes; then
21327 echo "$as_me:$LINENO: result: no" >&5
21328 echo "${ECHO_T}no" >&6
21329 X_LIBS="$X_LIBS -R$x_libraries"
21331 LIBS="$ac_xsave_LIBS -R $x_libraries"
21332 cat >conftest.$ac_ext <<_ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21347 rm -f conftest.$ac_objext conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349 (eval $ac_link) 2>conftest.er1
21351 grep -v '^ *+' conftest.er1 >conftest.err
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } &&
21356 { ac_try='test -z "$ac_c_werror_flag"
21357 || test ! -s conftest.err'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; } &&
21363 { ac_try='test -s conftest$ac_exeext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21376 rm -f conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext conftest.$ac_ext
21378 if test $ac_R_space = yes; then
21379 echo "$as_me:$LINENO: result: yes" >&5
21380 echo "${ECHO_T}yes" >&6
21381 X_LIBS="$X_LIBS -R $x_libraries"
21383 echo "$as_me:$LINENO: result: neither works" >&5
21384 echo "${ECHO_T}neither works" >&6
21387 LIBS=$ac_xsave_LIBS
21391 # Check for system-dependent libraries X programs must link with.
21392 # Do this before checking for the system-independent R6 libraries
21393 # (-lICE), since we may need -lsocket or whatever for X linking.
21395 if test "$ISC" = yes; then
21396 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21398 # Martyn Johnson says this is needed for Ultrix, if the X
21399 # libraries were built with DECnet support. And Karl Berry says
21400 # the Alpha needs dnet_stub (dnet does not exist).
21401 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21402 cat >conftest.$ac_ext <<_ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21409 /* Override any gcc2 internal prototype to avoid an error. */
21413 /* We use char because int might match the return type of a gcc2
21414 builtin and then its argument prototype would still apply. */
21415 char XOpenDisplay ();
21424 rm -f conftest.$ac_objext conftest$ac_exeext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426 (eval $ac_link) 2>conftest.er1
21428 grep -v '^ *+' conftest.er1 >conftest.err
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -z "$ac_c_werror_flag"
21434 || test ! -s conftest.err'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; } &&
21440 { ac_try='test -s conftest$ac_exeext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21451 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21452 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21453 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21456 ac_check_lib_save_LIBS=$LIBS
21457 LIBS="-ldnet $LIBS"
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21465 /* Override any gcc2 internal prototype to avoid an error. */
21469 /* We use char because int might match the return type of a gcc2
21470 builtin and then its argument prototype would still apply. */
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482 (eval $ac_link) 2>conftest.er1
21484 grep -v '^ *+' conftest.er1 >conftest.err
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
21489 { ac_try='test -z "$ac_c_werror_flag"
21490 || test ! -s conftest.err'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_lib_dnet_dnet_ntoa=yes
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_cv_lib_dnet_dnet_ntoa=no
21509 rm -f conftest.err conftest.$ac_objext \
21510 conftest$ac_exeext conftest.$ac_ext
21511 LIBS=$ac_check_lib_save_LIBS
21513 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21514 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21515 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21516 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21519 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21520 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21521 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21522 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 ac_check_lib_save_LIBS=$LIBS
21526 LIBS="-ldnet_stub $LIBS"
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21534 /* Override any gcc2 internal prototype to avoid an error. */
21538 /* We use char because int might match the return type of a gcc2
21539 builtin and then its argument prototype would still apply. */
21549 rm -f conftest.$ac_objext conftest$ac_exeext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21551 (eval $ac_link) 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try='test -z "$ac_c_werror_flag"
21559 || test ! -s conftest.err'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest$ac_exeext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_lib_dnet_stub_dnet_ntoa=no
21578 rm -f conftest.err conftest.$ac_objext \
21579 conftest$ac_exeext conftest.$ac_ext
21580 LIBS=$ac_check_lib_save_LIBS
21582 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21583 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21584 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21585 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21590 rm -f conftest.err conftest.$ac_objext \
21591 conftest$ac_exeext conftest.$ac_ext
21592 LIBS="$ac_xsave_LIBS"
21594 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21595 # to get the SysV transport functions.
21596 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21598 # The nsl library prevents programs from opening the X display
21599 # on Irix 5.2, according to T.E. Dickey.
21600 # The functions gethostbyname, getservbyname, and inet_addr are
21601 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21602 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21603 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21604 if test "${ac_cv_func_gethostbyname+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21615 #define gethostbyname innocuous_gethostbyname
21617 /* System header to define __stub macros and hopefully few prototypes,
21618 which can conflict with char gethostbyname (); below.
21619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21620 <limits.h> exists even on freestanding compilers. */
21623 # include <limits.h>
21625 # include <assert.h>
21628 #undef gethostbyname
21630 /* Override any gcc2 internal prototype to avoid an error. */
21635 /* We use char because int might match the return type of a gcc2
21636 builtin and then its argument prototype would still apply. */
21637 char gethostbyname ();
21638 /* The GNU C library defines this for functions which it implements
21639 to always fail with ENOSYS. Some functions are actually named
21640 something starting with __ and the normal name is an alias. */
21641 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21644 char (*f) () = gethostbyname;
21653 return f != gethostbyname;
21658 rm -f conftest.$ac_objext conftest$ac_exeext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21660 (eval $ac_link) 2>conftest.er1
21662 grep -v '^ *+' conftest.er1 >conftest.err
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -z "$ac_c_werror_flag"
21668 || test ! -s conftest.err'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; } &&
21674 { ac_try='test -s conftest$ac_exeext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_func_gethostbyname=yes
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ac_cv_func_gethostbyname=no
21687 rm -f conftest.err conftest.$ac_objext \
21688 conftest$ac_exeext conftest.$ac_ext
21690 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21691 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21693 if test $ac_cv_func_gethostbyname = no; then
21694 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21695 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21696 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21697 echo $ECHO_N "(cached) $ECHO_C" >&6
21699 ac_check_lib_save_LIBS=$LIBS
21701 cat >conftest.$ac_ext <<_ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21708 /* Override any gcc2 internal prototype to avoid an error. */
21712 /* We use char because int might match the return type of a gcc2
21713 builtin and then its argument prototype would still apply. */
21714 char gethostbyname ();
21723 rm -f conftest.$ac_objext conftest$ac_exeext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21725 (eval $ac_link) 2>conftest.er1
21727 grep -v '^ *+' conftest.er1 >conftest.err
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try='test -z "$ac_c_werror_flag"
21733 || test ! -s conftest.err'
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; } &&
21739 { ac_try='test -s conftest$ac_exeext'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; }; then
21745 ac_cv_lib_nsl_gethostbyname=yes
21747 echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21750 ac_cv_lib_nsl_gethostbyname=no
21752 rm -f conftest.err conftest.$ac_objext \
21753 conftest$ac_exeext conftest.$ac_ext
21754 LIBS=$ac_check_lib_save_LIBS
21756 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21757 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21758 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21759 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21762 if test $ac_cv_lib_nsl_gethostbyname = no; then
21763 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21764 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21765 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 ac_check_lib_save_LIBS=$LIBS
21770 cat >conftest.$ac_ext <<_ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21777 /* Override any gcc2 internal prototype to avoid an error. */
21781 /* We use char because int might match the return type of a gcc2
21782 builtin and then its argument prototype would still apply. */
21783 char gethostbyname ();
21792 rm -f conftest.$ac_objext conftest$ac_exeext
21793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21794 (eval $ac_link) 2>conftest.er1
21796 grep -v '^ *+' conftest.er1 >conftest.err
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } &&
21801 { ac_try='test -z "$ac_c_werror_flag"
21802 || test ! -s conftest.err'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; } &&
21808 { ac_try='test -s conftest$ac_exeext'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; }; then
21814 ac_cv_lib_bsd_gethostbyname=yes
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21819 ac_cv_lib_bsd_gethostbyname=no
21821 rm -f conftest.err conftest.$ac_objext \
21822 conftest$ac_exeext conftest.$ac_ext
21823 LIBS=$ac_check_lib_save_LIBS
21825 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21826 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21827 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21834 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21835 # socket/setsockopt and other routines are undefined under SCO ODT
21836 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
21837 # on later versions), says Simon Leinen: it contains gethostby*
21838 # variants that don't use the name server (or something). -lsocket
21839 # must be given before -lnsl if both are needed. We assume that
21840 # if connect needs -lnsl, so does gethostbyname.
21841 echo "$as_me:$LINENO: checking for connect" >&5
21842 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21843 if test "${ac_cv_func_connect+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 cat >conftest.$ac_ext <<_ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21854 #define connect innocuous_connect
21856 /* System header to define __stub macros and hopefully few prototypes,
21857 which can conflict with char connect (); below.
21858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21859 <limits.h> exists even on freestanding compilers. */
21862 # include <limits.h>
21864 # include <assert.h>
21869 /* Override any gcc2 internal prototype to avoid an error. */
21874 /* We use char because int might match the return type of a gcc2
21875 builtin and then its argument prototype would still apply. */
21877 /* The GNU C library defines this for functions which it implements
21878 to always fail with ENOSYS. Some functions are actually named
21879 something starting with __ and the normal name is an alias. */
21880 #if defined (__stub_connect) || defined (__stub___connect)
21883 char (*f) () = connect;
21892 return f != connect;
21897 rm -f conftest.$ac_objext conftest$ac_exeext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21899 (eval $ac_link) 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try='test -z "$ac_c_werror_flag"
21907 || test ! -s conftest.err'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; } &&
21913 { ac_try='test -s conftest$ac_exeext'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 ac_cv_func_connect=yes
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 ac_cv_func_connect=no
21926 rm -f conftest.err conftest.$ac_objext \
21927 conftest$ac_exeext conftest.$ac_ext
21929 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21930 echo "${ECHO_T}$ac_cv_func_connect" >&6
21932 if test $ac_cv_func_connect = no; then
21933 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21934 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21935 if test "${ac_cv_lib_socket_connect+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 ac_check_lib_save_LIBS=$LIBS
21939 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21947 /* Override any gcc2 internal prototype to avoid an error. */
21951 /* We use char because int might match the return type of a gcc2
21952 builtin and then its argument prototype would still apply. */
21962 rm -f conftest.$ac_objext conftest$ac_exeext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21964 (eval $ac_link) 2>conftest.er1
21966 grep -v '^ *+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
21971 { ac_try='test -z "$ac_c_werror_flag"
21972 || test ! -s conftest.err'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; } &&
21978 { ac_try='test -s conftest$ac_exeext'
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21984 ac_cv_lib_socket_connect=yes
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21989 ac_cv_lib_socket_connect=no
21991 rm -f conftest.err conftest.$ac_objext \
21992 conftest$ac_exeext conftest.$ac_ext
21993 LIBS=$ac_check_lib_save_LIBS
21995 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21996 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21997 if test $ac_cv_lib_socket_connect = yes; then
21998 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22003 # Guillermo Gomez says -lposix is necessary on A/UX.
22004 echo "$as_me:$LINENO: checking for remove" >&5
22005 echo $ECHO_N "checking for remove... $ECHO_C" >&6
22006 if test "${ac_cv_func_remove+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22017 #define remove innocuous_remove
22019 /* System header to define __stub macros and hopefully few prototypes,
22020 which can conflict with char remove (); below.
22021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22022 <limits.h> exists even on freestanding compilers. */
22025 # include <limits.h>
22027 # include <assert.h>
22032 /* Override any gcc2 internal prototype to avoid an error. */
22037 /* We use char because int might match the return type of a gcc2
22038 builtin and then its argument prototype would still apply. */
22040 /* The GNU C library defines this for functions which it implements
22041 to always fail with ENOSYS. Some functions are actually named
22042 something starting with __ and the normal name is an alias. */
22043 #if defined (__stub_remove) || defined (__stub___remove)
22046 char (*f) () = remove;
22055 return f != remove;
22060 rm -f conftest.$ac_objext conftest$ac_exeext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22062 (eval $ac_link) 2>conftest.er1
22064 grep -v '^ *+' conftest.er1 >conftest.err
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try='test -z "$ac_c_werror_flag"
22070 || test ! -s conftest.err'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; } &&
22076 { ac_try='test -s conftest$ac_exeext'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_cv_func_remove=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_cv_func_remove=no
22089 rm -f conftest.err conftest.$ac_objext \
22090 conftest$ac_exeext conftest.$ac_ext
22092 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22093 echo "${ECHO_T}$ac_cv_func_remove" >&6
22095 if test $ac_cv_func_remove = no; then
22096 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22097 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22098 if test "${ac_cv_lib_posix_remove+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22101 ac_check_lib_save_LIBS=$LIBS
22102 LIBS="-lposix $LIBS"
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22110 /* Override any gcc2 internal prototype to avoid an error. */
22114 /* We use char because int might match the return type of a gcc2
22115 builtin and then its argument prototype would still apply. */
22125 rm -f conftest.$ac_objext conftest$ac_exeext
22126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22127 (eval $ac_link) 2>conftest.er1
22129 grep -v '^ *+' conftest.er1 >conftest.err
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } &&
22134 { ac_try='test -z "$ac_c_werror_flag"
22135 || test ! -s conftest.err'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; } &&
22141 { ac_try='test -s conftest$ac_exeext'
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 ac_cv_lib_posix_remove=yes
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 ac_cv_lib_posix_remove=no
22154 rm -f conftest.err conftest.$ac_objext \
22155 conftest$ac_exeext conftest.$ac_ext
22156 LIBS=$ac_check_lib_save_LIBS
22158 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22159 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22160 if test $ac_cv_lib_posix_remove = yes; then
22161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22166 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22167 echo "$as_me:$LINENO: checking for shmat" >&5
22168 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22169 if test "${ac_cv_func_shmat+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 cat >conftest.$ac_ext <<_ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22180 #define shmat innocuous_shmat
22182 /* System header to define __stub macros and hopefully few prototypes,
22183 which can conflict with char shmat (); below.
22184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22185 <limits.h> exists even on freestanding compilers. */
22188 # include <limits.h>
22190 # include <assert.h>
22195 /* Override any gcc2 internal prototype to avoid an error. */
22200 /* We use char because int might match the return type of a gcc2
22201 builtin and then its argument prototype would still apply. */
22203 /* The GNU C library defines this for functions which it implements
22204 to always fail with ENOSYS. Some functions are actually named
22205 something starting with __ and the normal name is an alias. */
22206 #if defined (__stub_shmat) || defined (__stub___shmat)
22209 char (*f) () = shmat;
22223 rm -f conftest.$ac_objext conftest$ac_exeext
22224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22225 (eval $ac_link) 2>conftest.er1
22227 grep -v '^ *+' conftest.er1 >conftest.err
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); } &&
22232 { ac_try='test -z "$ac_c_werror_flag"
22233 || test ! -s conftest.err'
22234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235 (eval $ac_try) 2>&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); }; } &&
22239 { ac_try='test -s conftest$ac_exeext'
22240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241 (eval $ac_try) 2>&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); }; }; then
22245 ac_cv_func_shmat=yes
22247 echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ac_cv_func_shmat=no
22252 rm -f conftest.err conftest.$ac_objext \
22253 conftest$ac_exeext conftest.$ac_ext
22255 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22256 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22258 if test $ac_cv_func_shmat = no; then
22259 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22260 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22261 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 ac_check_lib_save_LIBS=$LIBS
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22273 /* Override any gcc2 internal prototype to avoid an error. */
22277 /* We use char because int might match the return type of a gcc2
22278 builtin and then its argument prototype would still apply. */
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22290 (eval $ac_link) 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
22297 { ac_try='test -z "$ac_c_werror_flag"
22298 || test ! -s conftest.err'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; } &&
22304 { ac_try='test -s conftest$ac_exeext'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 ac_cv_lib_ipc_shmat=yes
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 ac_cv_lib_ipc_shmat=no
22317 rm -f conftest.err conftest.$ac_objext \
22318 conftest$ac_exeext conftest.$ac_ext
22319 LIBS=$ac_check_lib_save_LIBS
22321 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22322 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22323 if test $ac_cv_lib_ipc_shmat = yes; then
22324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22330 # Check for libraries that X11R6 Xt/Xaw programs need.
22331 ac_save_LDFLAGS=$LDFLAGS
22332 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22333 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22334 # check for ICE first), but we must link in the order -lSM -lICE or
22335 # we get undefined symbols. So assume we have SM if we have ICE.
22336 # These have to be linked with before -lX11, unlike the other
22337 # libraries we check for below, so use a different variable.
22338 # John Interrante, Karl Berry
22339 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22340 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22341 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 ac_check_lib_save_LIBS=$LIBS
22345 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22346 cat >conftest.$ac_ext <<_ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22353 /* Override any gcc2 internal prototype to avoid an error. */
22357 /* We use char because int might match the return type of a gcc2
22358 builtin and then its argument prototype would still apply. */
22359 char IceConnectionNumber ();
22363 IceConnectionNumber ();
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22370 (eval $ac_link) 2>conftest.er1
22372 grep -v '^ *+' conftest.er1 >conftest.err
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } &&
22377 { ac_try='test -z "$ac_c_werror_flag"
22378 || test ! -s conftest.err'
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; } &&
22384 { ac_try='test -s conftest$ac_exeext'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
22390 ac_cv_lib_ICE_IceConnectionNumber=yes
22392 echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22395 ac_cv_lib_ICE_IceConnectionNumber=no
22397 rm -f conftest.err conftest.$ac_objext \
22398 conftest$ac_exeext conftest.$ac_ext
22399 LIBS=$ac_check_lib_save_LIBS
22401 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22402 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22403 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22404 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22407 LDFLAGS=$ac_save_LDFLAGS
22412 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22413 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22414 if test "${ac_cv_c_bigendian+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 # See if sys/param.h defines the BYTE_ORDER macro.
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 #include <sys/types.h>
22425 #include <sys/param.h>
22430 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22431 bogus endian macros
22438 rm -f conftest.$ac_objext
22439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22440 (eval $ac_compile) 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
22447 { ac_try='test -z "$ac_c_werror_flag"
22448 || test ! -s conftest.err'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; } &&
22454 { ac_try='test -s conftest.$ac_objext'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22460 # It does; now see whether it defined to BIG_ENDIAN or not.
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include <sys/types.h>
22468 #include <sys/param.h>
22473 #if BYTE_ORDER != BIG_ENDIAN
22481 rm -f conftest.$ac_objext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22483 (eval $ac_compile) 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
22490 { ac_try='test -z "$ac_c_werror_flag"
22491 || test ! -s conftest.err'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; } &&
22497 { ac_try='test -s conftest.$ac_objext'
22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 ac_cv_c_bigendian=yes
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22508 ac_cv_c_bigendian=no
22510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 # It does not; compile a test program.
22516 if test "$cross_compiling" = yes; then
22517 # try to guess the endianness by grepping values into an object file
22518 ac_cv_c_bigendian=unknown
22519 cat >conftest.$ac_ext <<_ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h. */
22525 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22526 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22528 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22529 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22534 _ascii (); _ebcdic ();
22539 rm -f conftest.$ac_objext
22540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22541 (eval $ac_compile) 2>conftest.er1
22543 grep -v '^ *+' conftest.er1 >conftest.err
22545 cat conftest.err >&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } &&
22548 { ac_try='test -z "$ac_c_werror_flag"
22549 || test ! -s conftest.err'
22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; } &&
22555 { ac_try='test -s conftest.$ac_objext'
22556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557 (eval $ac_try) 2>&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); }; }; then
22561 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22562 ac_cv_c_bigendian=yes
22564 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22565 if test "$ac_cv_c_bigendian" = unknown; then
22566 ac_cv_c_bigendian=no
22568 # finding both strings is unlikely to happen, but who knows?
22569 ac_cv_c_bigendian=unknown
22573 echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22588 /* Are we little or big endian? From Harbison&Steele. */
22592 char c[sizeof (long)];
22595 exit (u.c[sizeof (long) - 1] == 1);
22598 rm -f conftest$ac_exeext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22600 (eval $ac_link) 2>&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 ac_cv_c_bigendian=no
22611 echo "$as_me: program exited with status $ac_status" >&5
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22615 ( exit $ac_status )
22616 ac_cv_c_bigendian=yes
22618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22623 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22624 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22625 case $ac_cv_c_bigendian in
22628 cat >>confdefs.h <<\_ACEOF
22629 #define WORDS_BIGENDIAN 1
22635 { { echo "$as_me:$LINENO: error: unknown endianness
22636 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22637 echo "$as_me: error: unknown endianness
22638 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22639 { (exit 1); exit 1; }; } ;;
22642 echo "$as_me:$LINENO: checking for inline" >&5
22643 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22644 if test "${ac_cv_c_inline+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 for ac_kw in inline __inline__ __inline; do
22649 cat >conftest.$ac_ext <<_ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 #ifndef __cplusplus
22657 static $ac_kw foo_t static_foo () {return 0; }
22658 $ac_kw foo_t foo () {return 0; }
22662 rm -f conftest.$ac_objext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664 (eval $ac_compile) 2>conftest.er1
22666 grep -v '^ *+' conftest.er1 >conftest.err
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } &&
22671 { ac_try='test -z "$ac_c_werror_flag"
22672 || test ! -s conftest.err'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest.$ac_objext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 ac_cv_c_inline=$ac_kw; break
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22694 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22695 echo "${ECHO_T}$ac_cv_c_inline" >&6
22698 case $ac_cv_c_inline in
22701 case $ac_cv_c_inline in
22703 *) ac_val=$ac_cv_c_inline;;
22705 cat >>confdefs.h <<_ACEOF
22706 #ifndef __cplusplus
22707 #define inline $ac_val
22713 echo "$as_me:$LINENO: checking for unsigned char" >&5
22714 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
22715 if test "${ac_cv_type_unsigned_char+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 $ac_includes_default
22728 if ((unsigned char *) 0)
22730 if (sizeof (unsigned char))
22736 rm -f conftest.$ac_objext
22737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22738 (eval $ac_compile) 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } &&
22745 { ac_try='test -z "$ac_c_werror_flag"
22746 || test ! -s conftest.err'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; } &&
22752 { ac_try='test -s conftest.$ac_objext'
22753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22754 (eval $ac_try) 2>&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); }; }; then
22758 ac_cv_type_unsigned_char=yes
22760 echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22763 ac_cv_type_unsigned_char=no
22765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22767 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
22768 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
22770 echo "$as_me:$LINENO: checking size of unsigned char" >&5
22771 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
22772 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22773 echo $ECHO_N "(cached) $ECHO_C" >&6
22775 if test "$ac_cv_type_unsigned_char" = yes; then
22776 # The cast to unsigned long works around a bug in the HP C Compiler
22777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22779 # This bug is HP SR number 8606223364.
22780 if test "$cross_compiling" = yes; then
22781 # Depending upon the size, compute the lo and hi bounds.
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22788 $ac_includes_default
22792 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
22799 rm -f conftest.$ac_objext
22800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22801 (eval $ac_compile) 2>conftest.er1
22803 grep -v '^ *+' conftest.er1 >conftest.err
22805 cat conftest.err >&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
22808 { ac_try='test -z "$ac_c_werror_flag"
22809 || test ! -s conftest.err'
22810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; } &&
22815 { ac_try='test -s conftest.$ac_objext'
22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; }; then
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 $ac_includes_default
22833 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
22840 rm -f conftest.$ac_objext
22841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842 (eval $ac_compile) 2>conftest.er1
22844 grep -v '^ *+' conftest.er1 >conftest.err
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } &&
22849 { ac_try='test -z "$ac_c_werror_flag"
22850 || test ! -s conftest.err'
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; } &&
22856 { ac_try='test -s conftest.$ac_objext'
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; }; then
22862 ac_hi=$ac_mid; break
22864 echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22867 ac_lo=`expr $ac_mid + 1`
22868 if test $ac_lo -le $ac_mid; then
22872 ac_mid=`expr 2 '*' $ac_mid + 1`
22874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22877 echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22880 cat >conftest.$ac_ext <<_ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22890 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
22897 rm -f conftest.$ac_objext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22899 (eval $ac_compile) 2>conftest.er1
22901 grep -v '^ *+' conftest.er1 >conftest.err
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } &&
22906 { ac_try='test -z "$ac_c_werror_flag"
22907 || test ! -s conftest.err'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; } &&
22913 { ac_try='test -s conftest.$ac_objext'
22914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915 (eval $ac_try) 2>&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); }; }; then
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 $ac_includes_default
22931 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
22938 rm -f conftest.$ac_objext
22939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22940 (eval $ac_compile) 2>conftest.er1
22942 grep -v '^ *+' conftest.er1 >conftest.err
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } &&
22947 { ac_try='test -z "$ac_c_werror_flag"
22948 || test ! -s conftest.err'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; } &&
22954 { ac_try='test -s conftest.$ac_objext'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }; then
22960 ac_lo=$ac_mid; break
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 ac_hi=`expr '(' $ac_mid ')' - 1`
22966 if test $ac_mid -le $ac_hi; then
22970 ac_mid=`expr 2 '*' $ac_mid`
22972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22983 # Binary search between lo and hi bounds.
22984 while test "x$ac_lo" != "x$ac_hi"; do
22985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22986 cat >conftest.$ac_ext <<_ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 $ac_includes_default
22996 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
23003 rm -f conftest.$ac_objext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005 (eval $ac_compile) 2>conftest.er1
23007 grep -v '^ *+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
23012 { ac_try='test -z "$ac_c_werror_flag"
23013 || test ! -s conftest.err'
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest.$ac_objext'
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_lo=`expr '(' $ac_mid ')' + 1`
23032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23035 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23036 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
23037 See \`config.log' for more details." >&5
23038 echo "$as_me: error: cannot compute sizeof (unsigned char), 77
23039 See \`config.log' for more details." >&2;}
23040 { (exit 1); exit 1; }; } ;;
23043 if test "$cross_compiling" = yes; then
23044 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23045 See \`config.log' for more details." >&5
23046 echo "$as_me: error: cannot run test program while cross compiling
23047 See \`config.log' for more details." >&2;}
23048 { (exit 1); exit 1; }; }
23050 cat >conftest.$ac_ext <<_ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h. */
23056 $ac_includes_default
23057 long longval () { return (long) (sizeof (unsigned char)); }
23058 unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
23060 #include <stdlib.h>
23065 FILE *f = fopen ("conftest.val", "w");
23068 if (((long) (sizeof (unsigned char))) < 0)
23070 long i = longval ();
23071 if (i != ((long) (sizeof (unsigned char))))
23073 fprintf (f, "%ld\n", i);
23077 unsigned long i = ulongval ();
23078 if (i != ((long) (sizeof (unsigned char))))
23080 fprintf (f, "%lu\n", i);
23082 exit (ferror (f) || fclose (f) != 0);
23088 rm -f conftest$ac_exeext
23089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23090 (eval $ac_link) 2>&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 ac_cv_sizeof_unsigned_char=`cat conftest.val`
23101 echo "$as_me: program exited with status $ac_status" >&5
23102 echo "$as_me: failed program was:" >&5
23103 sed 's/^/| /' conftest.$ac_ext >&5
23105 ( exit $ac_status )
23106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
23107 See \`config.log' for more details." >&5
23108 echo "$as_me: error: cannot compute sizeof (unsigned char), 77
23109 See \`config.log' for more details." >&2;}
23110 { (exit 1); exit 1; }; }
23112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23117 ac_cv_sizeof_unsigned_char=0
23120 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23121 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
23122 cat >>confdefs.h <<_ACEOF
23123 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23127 echo "$as_me:$LINENO: checking for unsigned short" >&5
23128 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
23129 if test "${ac_cv_type_unsigned_short+set}" = set; then
23130 echo $ECHO_N "(cached) $ECHO_C" >&6
23132 cat >conftest.$ac_ext <<_ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h. */
23138 $ac_includes_default
23142 if ((unsigned short *) 0)
23144 if (sizeof (unsigned short))
23150 rm -f conftest.$ac_objext
23151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23152 (eval $ac_compile) 2>conftest.er1
23154 grep -v '^ *+' conftest.er1 >conftest.err
23156 cat conftest.err >&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } &&
23159 { ac_try='test -z "$ac_c_werror_flag"
23160 || test ! -s conftest.err'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; } &&
23166 { ac_try='test -s conftest.$ac_objext'
23167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23168 (eval $ac_try) 2>&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; }; then
23172 ac_cv_type_unsigned_short=yes
23174 echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23177 ac_cv_type_unsigned_short=no
23179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23181 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23182 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
23184 echo "$as_me:$LINENO: checking size of unsigned short" >&5
23185 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
23186 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 if test "$ac_cv_type_unsigned_short" = yes; then
23190 # The cast to unsigned long works around a bug in the HP C Compiler
23191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23193 # This bug is HP SR number 8606223364.
23194 if test "$cross_compiling" = yes; then
23195 # Depending upon the size, compute the lo and hi bounds.
23196 cat >conftest.$ac_ext <<_ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 $ac_includes_default
23206 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
23213 rm -f conftest.$ac_objext
23214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23215 (eval $ac_compile) 2>conftest.er1
23217 grep -v '^ *+' conftest.er1 >conftest.err
23219 cat conftest.err >&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
23222 { ac_try='test -z "$ac_c_werror_flag"
23223 || test ! -s conftest.err'
23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; } &&
23229 { ac_try='test -s conftest.$ac_objext'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; }; then
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 $ac_includes_default
23247 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
23254 rm -f conftest.$ac_objext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23256 (eval $ac_compile) 2>conftest.er1
23258 grep -v '^ *+' conftest.er1 >conftest.err
23260 cat conftest.err >&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } &&
23263 { ac_try='test -z "$ac_c_werror_flag"
23264 || test ! -s conftest.err'
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; } &&
23270 { ac_try='test -s conftest.$ac_objext'
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; }; then
23276 ac_hi=$ac_mid; break
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ac_lo=`expr $ac_mid + 1`
23282 if test $ac_lo -le $ac_mid; then
23286 ac_mid=`expr 2 '*' $ac_mid + 1`
23288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23291 echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23294 cat >conftest.$ac_ext <<_ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h. */
23300 $ac_includes_default
23304 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
23311 rm -f conftest.$ac_objext
23312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23313 (eval $ac_compile) 2>conftest.er1
23315 grep -v '^ *+' conftest.er1 >conftest.err
23317 cat conftest.err >&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); } &&
23320 { ac_try='test -z "$ac_c_werror_flag"
23321 || test ! -s conftest.err'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; } &&
23327 { ac_try='test -s conftest.$ac_objext'
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; }; then
23335 cat >conftest.$ac_ext <<_ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h. */
23341 $ac_includes_default
23345 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
23352 rm -f conftest.$ac_objext
23353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23354 (eval $ac_compile) 2>conftest.er1
23356 grep -v '^ *+' conftest.er1 >conftest.err
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } &&
23361 { ac_try='test -z "$ac_c_werror_flag"
23362 || test ! -s conftest.err'
23363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; } &&
23368 { ac_try='test -s conftest.$ac_objext'
23369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23374 ac_lo=$ac_mid; break
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ac_hi=`expr '(' $ac_mid ')' - 1`
23380 if test $ac_mid -le $ac_hi; then
23384 ac_mid=`expr 2 '*' $ac_mid`
23386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23389 echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23397 # Binary search between lo and hi bounds.
23398 while test "x$ac_lo" != "x$ac_hi"; do
23399 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23400 cat >conftest.$ac_ext <<_ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h. */
23406 $ac_includes_default
23410 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
23417 rm -f conftest.$ac_objext
23418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23419 (eval $ac_compile) 2>conftest.er1
23421 grep -v '^ *+' conftest.er1 >conftest.err
23423 cat conftest.err >&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } &&
23426 { ac_try='test -z "$ac_c_werror_flag"
23427 || test ! -s conftest.err'
23428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429 (eval $ac_try) 2>&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; } &&
23433 { ac_try='test -s conftest.$ac_objext'
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; }; then
23441 echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23444 ac_lo=`expr '(' $ac_mid ')' + 1`
23446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23449 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
23450 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
23451 See \`config.log' for more details." >&5
23452 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
23453 See \`config.log' for more details." >&2;}
23454 { (exit 1); exit 1; }; } ;;
23457 if test "$cross_compiling" = yes; then
23458 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23459 See \`config.log' for more details." >&5
23460 echo "$as_me: error: cannot run test program while cross compiling
23461 See \`config.log' for more details." >&2;}
23462 { (exit 1); exit 1; }; }
23464 cat >conftest.$ac_ext <<_ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h. */
23470 $ac_includes_default
23471 long longval () { return (long) (sizeof (unsigned short)); }
23472 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
23474 #include <stdlib.h>
23479 FILE *f = fopen ("conftest.val", "w");
23482 if (((long) (sizeof (unsigned short))) < 0)
23484 long i = longval ();
23485 if (i != ((long) (sizeof (unsigned short))))
23487 fprintf (f, "%ld\n", i);
23491 unsigned long i = ulongval ();
23492 if (i != ((long) (sizeof (unsigned short))))
23494 fprintf (f, "%lu\n", i);
23496 exit (ferror (f) || fclose (f) != 0);
23502 rm -f conftest$ac_exeext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23504 (eval $ac_link) 2>&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509 (eval $ac_try) 2>&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); }; }; then
23513 ac_cv_sizeof_unsigned_short=`cat conftest.val`
23515 echo "$as_me: program exited with status $ac_status" >&5
23516 echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23519 ( exit $ac_status )
23520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
23521 See \`config.log' for more details." >&5
23522 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
23523 See \`config.log' for more details." >&2;}
23524 { (exit 1); exit 1; }; }
23526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23531 ac_cv_sizeof_unsigned_short=0
23534 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
23535 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
23536 cat >>confdefs.h <<_ACEOF
23537 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23541 echo "$as_me:$LINENO: checking for unsigned int" >&5
23542 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
23543 if test "${ac_cv_type_unsigned_int+set}" = set; then
23544 echo $ECHO_N "(cached) $ECHO_C" >&6
23546 cat >conftest.$ac_ext <<_ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23552 $ac_includes_default
23556 if ((unsigned int *) 0)
23558 if (sizeof (unsigned int))
23564 rm -f conftest.$ac_objext
23565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23566 (eval $ac_compile) 2>conftest.er1
23568 grep -v '^ *+' conftest.er1 >conftest.err
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } &&
23573 { ac_try='test -z "$ac_c_werror_flag"
23574 || test ! -s conftest.err'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; } &&
23580 { ac_try='test -s conftest.$ac_objext'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 ac_cv_type_unsigned_int=yes
23588 echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 ac_cv_type_unsigned_int=no
23593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23595 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
23596 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
23598 echo "$as_me:$LINENO: checking size of unsigned int" >&5
23599 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
23600 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23603 if test "$ac_cv_type_unsigned_int" = yes; then
23604 # The cast to unsigned long works around a bug in the HP C Compiler
23605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23607 # This bug is HP SR number 8606223364.
23608 if test "$cross_compiling" = yes; then
23609 # Depending upon the size, compute the lo and hi bounds.
23610 cat >conftest.$ac_ext <<_ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23616 $ac_includes_default
23620 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
23627 rm -f conftest.$ac_objext
23628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23629 (eval $ac_compile) 2>conftest.er1
23631 grep -v '^ *+' conftest.er1 >conftest.err
23633 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } &&
23636 { ac_try='test -z "$ac_c_werror_flag"
23637 || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest.$ac_objext'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23651 cat >conftest.$ac_ext <<_ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 $ac_includes_default
23661 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
23668 rm -f conftest.$ac_objext
23669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23670 (eval $ac_compile) 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } &&
23677 { ac_try='test -z "$ac_c_werror_flag"
23678 || test ! -s conftest.err'
23679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680 (eval $ac_try) 2>&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); }; } &&
23684 { ac_try='test -s conftest.$ac_objext'
23685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686 (eval $ac_try) 2>&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; }; then
23690 ac_hi=$ac_mid; break
23692 echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23695 ac_lo=`expr $ac_mid + 1`
23696 if test $ac_lo -le $ac_mid; then
23700 ac_mid=`expr 2 '*' $ac_mid + 1`
23702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 $ac_includes_default
23718 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
23725 rm -f conftest.$ac_objext
23726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23727 (eval $ac_compile) 2>conftest.er1
23729 grep -v '^ *+' conftest.er1 >conftest.err
23731 cat conftest.err >&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } &&
23734 { ac_try='test -z "$ac_c_werror_flag"
23735 || test ! -s conftest.err'
23736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737 (eval $ac_try) 2>&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; } &&
23741 { ac_try='test -s conftest.$ac_objext'
23742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23743 (eval $ac_try) 2>&5
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; }; then
23749 cat >conftest.$ac_ext <<_ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h. */
23755 $ac_includes_default
23759 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
23766 rm -f conftest.$ac_objext
23767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23768 (eval $ac_compile) 2>conftest.er1
23770 grep -v '^ *+' conftest.er1 >conftest.err
23772 cat conftest.err >&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); } &&
23775 { ac_try='test -z "$ac_c_werror_flag"
23776 || test ! -s conftest.err'
23777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778 (eval $ac_try) 2>&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; } &&
23782 { ac_try='test -s conftest.$ac_objext'
23783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784 (eval $ac_try) 2>&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); }; }; then
23788 ac_lo=$ac_mid; break
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ac_hi=`expr '(' $ac_mid ')' - 1`
23794 if test $ac_mid -le $ac_hi; then
23798 ac_mid=`expr 2 '*' $ac_mid`
23800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23811 # Binary search between lo and hi bounds.
23812 while test "x$ac_lo" != "x$ac_hi"; do
23813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23814 cat >conftest.$ac_ext <<_ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 $ac_includes_default
23824 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
23831 rm -f conftest.$ac_objext
23832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23833 (eval $ac_compile) 2>conftest.er1
23835 grep -v '^ *+' conftest.er1 >conftest.err
23837 cat conftest.err >&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } &&
23840 { ac_try='test -z "$ac_c_werror_flag"
23841 || test ! -s conftest.err'
23842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843 (eval $ac_try) 2>&5
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); }; } &&
23847 { ac_try='test -s conftest.$ac_objext'
23848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23849 (eval $ac_try) 2>&5
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); }; }; then
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23858 ac_lo=`expr '(' $ac_mid ')' + 1`
23860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23863 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
23864 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
23865 See \`config.log' for more details." >&5
23866 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
23867 See \`config.log' for more details." >&2;}
23868 { (exit 1); exit 1; }; } ;;
23871 if test "$cross_compiling" = yes; then
23872 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23873 See \`config.log' for more details." >&5
23874 echo "$as_me: error: cannot run test program while cross compiling
23875 See \`config.log' for more details." >&2;}
23876 { (exit 1); exit 1; }; }
23878 cat >conftest.$ac_ext <<_ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23884 $ac_includes_default
23885 long longval () { return (long) (sizeof (unsigned int)); }
23886 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
23888 #include <stdlib.h>
23893 FILE *f = fopen ("conftest.val", "w");
23896 if (((long) (sizeof (unsigned int))) < 0)
23898 long i = longval ();
23899 if (i != ((long) (sizeof (unsigned int))))
23901 fprintf (f, "%ld\n", i);
23905 unsigned long i = ulongval ();
23906 if (i != ((long) (sizeof (unsigned int))))
23908 fprintf (f, "%lu\n", i);
23910 exit (ferror (f) || fclose (f) != 0);
23916 rm -f conftest$ac_exeext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23918 (eval $ac_link) 2>&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923 (eval $ac_try) 2>&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; }; then
23927 ac_cv_sizeof_unsigned_int=`cat conftest.val`
23929 echo "$as_me: program exited with status $ac_status" >&5
23930 echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23933 ( exit $ac_status )
23934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
23935 See \`config.log' for more details." >&5
23936 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
23937 See \`config.log' for more details." >&2;}
23938 { (exit 1); exit 1; }; }
23940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23945 ac_cv_sizeof_unsigned_int=0
23948 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23949 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
23950 cat >>confdefs.h <<_ACEOF
23951 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23955 echo "$as_me:$LINENO: checking for unsigned long" >&5
23956 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
23957 if test "${ac_cv_type_unsigned_long+set}" = set; then
23958 echo $ECHO_N "(cached) $ECHO_C" >&6
23960 cat >conftest.$ac_ext <<_ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h. */
23966 $ac_includes_default
23970 if ((unsigned long *) 0)
23972 if (sizeof (unsigned long))
23978 rm -f conftest.$ac_objext
23979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23980 (eval $ac_compile) 2>conftest.er1
23982 grep -v '^ *+' conftest.er1 >conftest.err
23984 cat conftest.err >&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } &&
23987 { ac_try='test -z "$ac_c_werror_flag"
23988 || test ! -s conftest.err'
23989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990 (eval $ac_try) 2>&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); }; } &&
23994 { ac_try='test -s conftest.$ac_objext'
23995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996 (eval $ac_try) 2>&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); }; }; then
24000 ac_cv_type_unsigned_long=yes
24002 echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24005 ac_cv_type_unsigned_long=no
24007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24009 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24010 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
24012 echo "$as_me:$LINENO: checking size of unsigned long" >&5
24013 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
24014 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24015 echo $ECHO_N "(cached) $ECHO_C" >&6
24017 if test "$ac_cv_type_unsigned_long" = yes; then
24018 # The cast to unsigned long works around a bug in the HP C Compiler
24019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24021 # This bug is HP SR number 8606223364.
24022 if test "$cross_compiling" = yes; then
24023 # Depending upon the size, compute the lo and hi bounds.
24024 cat >conftest.$ac_ext <<_ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 $ac_includes_default
24034 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
24041 rm -f conftest.$ac_objext
24042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24043 (eval $ac_compile) 2>conftest.er1
24045 grep -v '^ *+' conftest.er1 >conftest.err
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } &&
24050 { ac_try='test -z "$ac_c_werror_flag"
24051 || test ! -s conftest.err'
24052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053 (eval $ac_try) 2>&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; } &&
24057 { ac_try='test -s conftest.$ac_objext'
24058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059 (eval $ac_try) 2>&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); }; }; then
24065 cat >conftest.$ac_ext <<_ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24071 $ac_includes_default
24075 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
24082 rm -f conftest.$ac_objext
24083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24084 (eval $ac_compile) 2>conftest.er1
24086 grep -v '^ *+' conftest.er1 >conftest.err
24088 cat conftest.err >&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } &&
24091 { ac_try='test -z "$ac_c_werror_flag"
24092 || test ! -s conftest.err'
24093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094 (eval $ac_try) 2>&5
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); }; } &&
24098 { ac_try='test -s conftest.$ac_objext'
24099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100 (eval $ac_try) 2>&5
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); }; }; then
24104 ac_hi=$ac_mid; break
24106 echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24109 ac_lo=`expr $ac_mid + 1`
24110 if test $ac_lo -le $ac_mid; then
24114 ac_mid=`expr 2 '*' $ac_mid + 1`
24116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24119 echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24122 cat >conftest.$ac_ext <<_ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 $ac_includes_default
24132 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
24139 rm -f conftest.$ac_objext
24140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24141 (eval $ac_compile) 2>conftest.er1
24143 grep -v '^ *+' conftest.er1 >conftest.err
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
24148 { ac_try='test -z "$ac_c_werror_flag"
24149 || test ! -s conftest.err'
24150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151 (eval $ac_try) 2>&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); }; } &&
24155 { ac_try='test -s conftest.$ac_objext'
24156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157 (eval $ac_try) 2>&5
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); }; }; then
24163 cat >conftest.$ac_ext <<_ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24169 $ac_includes_default
24173 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
24180 rm -f conftest.$ac_objext
24181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24182 (eval $ac_compile) 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } &&
24189 { ac_try='test -z "$ac_c_werror_flag"
24190 || test ! -s conftest.err'
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; } &&
24196 { ac_try='test -s conftest.$ac_objext'
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 ac_lo=$ac_mid; break
24204 echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24207 ac_hi=`expr '(' $ac_mid ')' - 1`
24208 if test $ac_mid -le $ac_hi; then
24212 ac_mid=`expr 2 '*' $ac_mid`
24214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24225 # Binary search between lo and hi bounds.
24226 while test "x$ac_lo" != "x$ac_hi"; do
24227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24228 cat >conftest.$ac_ext <<_ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h. */
24234 $ac_includes_default
24238 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
24245 rm -f conftest.$ac_objext
24246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24247 (eval $ac_compile) 2>conftest.er1
24249 grep -v '^ *+' conftest.er1 >conftest.err
24251 cat conftest.err >&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } &&
24254 { ac_try='test -z "$ac_c_werror_flag"
24255 || test ! -s conftest.err'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest.$ac_objext'
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 ac_lo=`expr '(' $ac_mid ')' + 1`
24274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24277 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24278 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
24279 See \`config.log' for more details." >&5
24280 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
24281 See \`config.log' for more details." >&2;}
24282 { (exit 1); exit 1; }; } ;;
24285 if test "$cross_compiling" = yes; then
24286 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24287 See \`config.log' for more details." >&5
24288 echo "$as_me: error: cannot run test program while cross compiling
24289 See \`config.log' for more details." >&2;}
24290 { (exit 1); exit 1; }; }
24292 cat >conftest.$ac_ext <<_ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24298 $ac_includes_default
24299 long longval () { return (long) (sizeof (unsigned long)); }
24300 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
24302 #include <stdlib.h>
24307 FILE *f = fopen ("conftest.val", "w");
24310 if (((long) (sizeof (unsigned long))) < 0)
24312 long i = longval ();
24313 if (i != ((long) (sizeof (unsigned long))))
24315 fprintf (f, "%ld\n", i);
24319 unsigned long i = ulongval ();
24320 if (i != ((long) (sizeof (unsigned long))))
24322 fprintf (f, "%lu\n", i);
24324 exit (ferror (f) || fclose (f) != 0);
24330 rm -f conftest$ac_exeext
24331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24332 (eval $ac_link) 2>&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24341 ac_cv_sizeof_unsigned_long=`cat conftest.val`
24343 echo "$as_me: program exited with status $ac_status" >&5
24344 echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24347 ( exit $ac_status )
24348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
24349 See \`config.log' for more details." >&5
24350 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
24351 See \`config.log' for more details." >&2;}
24352 { (exit 1); exit 1; }; }
24354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24359 ac_cv_sizeof_unsigned_long=0
24362 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
24363 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
24364 cat >>confdefs.h <<_ACEOF
24365 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24369 echo "$as_me:$LINENO: checking for unsigned long long" >&5
24370 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
24371 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24372 echo $ECHO_N "(cached) $ECHO_C" >&6
24374 cat >conftest.$ac_ext <<_ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h. */
24380 $ac_includes_default
24384 if ((unsigned long long *) 0)
24386 if (sizeof (unsigned long long))
24392 rm -f conftest.$ac_objext
24393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24394 (eval $ac_compile) 2>conftest.er1
24396 grep -v '^ *+' conftest.er1 >conftest.err
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } &&
24401 { ac_try='test -z "$ac_c_werror_flag"
24402 || test ! -s conftest.err'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; } &&
24408 { ac_try='test -s conftest.$ac_objext'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; }; then
24414 ac_cv_type_unsigned_long_long=yes
24416 echo "$as_me: failed program was:" >&5
24417 sed 's/^/| /' conftest.$ac_ext >&5
24419 ac_cv_type_unsigned_long_long=no
24421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24423 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24424 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
24426 echo "$as_me:$LINENO: checking size of unsigned long long" >&5
24427 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
24428 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
24429 echo $ECHO_N "(cached) $ECHO_C" >&6
24431 if test "$ac_cv_type_unsigned_long_long" = yes; then
24432 # The cast to unsigned long works around a bug in the HP C Compiler
24433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24435 # This bug is HP SR number 8606223364.
24436 if test "$cross_compiling" = yes; then
24437 # Depending upon the size, compute the lo and hi bounds.
24438 cat >conftest.$ac_ext <<_ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24444 $ac_includes_default
24448 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
24455 rm -f conftest.$ac_objext
24456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24457 (eval $ac_compile) 2>conftest.er1
24459 grep -v '^ *+' conftest.er1 >conftest.err
24461 cat conftest.err >&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } &&
24464 { ac_try='test -z "$ac_c_werror_flag"
24465 || test ! -s conftest.err'
24466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467 (eval $ac_try) 2>&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); }; } &&
24471 { ac_try='test -s conftest.$ac_objext'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; }; then
24479 cat >conftest.$ac_ext <<_ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h. */
24485 $ac_includes_default
24489 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
24496 rm -f conftest.$ac_objext
24497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24498 (eval $ac_compile) 2>conftest.er1
24500 grep -v '^ *+' conftest.er1 >conftest.err
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } &&
24505 { ac_try='test -z "$ac_c_werror_flag"
24506 || test ! -s conftest.err'
24507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24508 (eval $ac_try) 2>&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); }; } &&
24512 { ac_try='test -s conftest.$ac_objext'
24513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24514 (eval $ac_try) 2>&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); }; }; then
24518 ac_hi=$ac_mid; break
24520 echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24523 ac_lo=`expr $ac_mid + 1`
24524 if test $ac_lo -le $ac_mid; then
24528 ac_mid=`expr 2 '*' $ac_mid + 1`
24530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24533 echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24536 cat >conftest.$ac_ext <<_ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24542 $ac_includes_default
24546 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
24553 rm -f conftest.$ac_objext
24554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24555 (eval $ac_compile) 2>conftest.er1
24557 grep -v '^ *+' conftest.er1 >conftest.err
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } &&
24562 { ac_try='test -z "$ac_c_werror_flag"
24563 || test ! -s conftest.err'
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; } &&
24569 { ac_try='test -s conftest.$ac_objext'
24570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24571 (eval $ac_try) 2>&5
24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 (exit $ac_status); }; }; then
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 $ac_includes_default
24587 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
24594 rm -f conftest.$ac_objext
24595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24596 (eval $ac_compile) 2>conftest.er1
24598 grep -v '^ *+' conftest.er1 >conftest.err
24600 cat conftest.err >&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); } &&
24603 { ac_try='test -z "$ac_c_werror_flag"
24604 || test ! -s conftest.err'
24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606 (eval $ac_try) 2>&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; } &&
24610 { ac_try='test -s conftest.$ac_objext'
24611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612 (eval $ac_try) 2>&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; }; then
24616 ac_lo=$ac_mid; break
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24621 ac_hi=`expr '(' $ac_mid ')' - 1`
24622 if test $ac_mid -le $ac_hi; then
24626 ac_mid=`expr 2 '*' $ac_mid`
24628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24631 echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24639 # Binary search between lo and hi bounds.
24640 while test "x$ac_lo" != "x$ac_hi"; do
24641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24642 cat >conftest.$ac_ext <<_ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24648 $ac_includes_default
24652 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
24659 rm -f conftest.$ac_objext
24660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24661 (eval $ac_compile) 2>conftest.er1
24663 grep -v '^ *+' conftest.er1 >conftest.err
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } &&
24668 { ac_try='test -z "$ac_c_werror_flag"
24669 || test ! -s conftest.err'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; } &&
24675 { ac_try='test -s conftest.$ac_objext'
24676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677 (eval $ac_try) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24686 ac_lo=`expr '(' $ac_mid ')' + 1`
24688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24691 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
24692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
24693 See \`config.log' for more details." >&5
24694 echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
24695 See \`config.log' for more details." >&2;}
24696 { (exit 1); exit 1; }; } ;;
24699 if test "$cross_compiling" = yes; then
24700 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24701 See \`config.log' for more details." >&5
24702 echo "$as_me: error: cannot run test program while cross compiling
24703 See \`config.log' for more details." >&2;}
24704 { (exit 1); exit 1; }; }
24706 cat >conftest.$ac_ext <<_ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712 $ac_includes_default
24713 long longval () { return (long) (sizeof (unsigned long long)); }
24714 unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
24716 #include <stdlib.h>
24721 FILE *f = fopen ("conftest.val", "w");
24724 if (((long) (sizeof (unsigned long long))) < 0)
24726 long i = longval ();
24727 if (i != ((long) (sizeof (unsigned long long))))
24729 fprintf (f, "%ld\n", i);
24733 unsigned long i = ulongval ();
24734 if (i != ((long) (sizeof (unsigned long long))))
24736 fprintf (f, "%lu\n", i);
24738 exit (ferror (f) || fclose (f) != 0);
24744 rm -f conftest$ac_exeext
24745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24746 (eval $ac_link) 2>&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751 (eval $ac_try) 2>&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); }; }; then
24755 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
24757 echo "$as_me: program exited with status $ac_status" >&5
24758 echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24761 ( exit $ac_status )
24762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
24763 See \`config.log' for more details." >&5
24764 echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
24765 See \`config.log' for more details." >&2;}
24766 { (exit 1); exit 1; }; }
24768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24773 ac_cv_sizeof_unsigned_long_long=0
24776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
24777 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
24778 cat >>confdefs.h <<_ACEOF
24779 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24783 echo "$as_me:$LINENO: checking for int *" >&5
24784 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24785 if test "${ac_cv_type_int_p+set}" = set; then
24786 echo $ECHO_N "(cached) $ECHO_C" >&6
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 $ac_includes_default
24800 if (sizeof (int *))
24806 rm -f conftest.$ac_objext
24807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24808 (eval $ac_compile) 2>conftest.er1
24810 grep -v '^ *+' conftest.er1 >conftest.err
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } &&
24815 { ac_try='test -z "$ac_c_werror_flag"
24816 || test ! -s conftest.err'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; } &&
24822 { ac_try='test -s conftest.$ac_objext'
24823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824 (eval $ac_try) 2>&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; }; then
24828 ac_cv_type_int_p=yes
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ac_cv_type_int_p=no
24835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24837 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24838 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24840 echo "$as_me:$LINENO: checking size of int *" >&5
24841 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24842 if test "${ac_cv_sizeof_int_p+set}" = set; then
24843 echo $ECHO_N "(cached) $ECHO_C" >&6
24845 if test "$ac_cv_type_int_p" = yes; then
24846 # The cast to unsigned long works around a bug in the HP C Compiler
24847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24849 # This bug is HP SR number 8606223364.
24850 if test "$cross_compiling" = yes; then
24851 # Depending upon the size, compute the lo and hi bounds.
24852 cat >conftest.$ac_ext <<_ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h. */
24858 $ac_includes_default
24862 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24869 rm -f conftest.$ac_objext
24870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24871 (eval $ac_compile) 2>conftest.er1
24873 grep -v '^ *+' conftest.er1 >conftest.err
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } &&
24878 { ac_try='test -z "$ac_c_werror_flag"
24879 || test ! -s conftest.err'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; } &&
24885 { ac_try='test -s conftest.$ac_objext'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; }; then
24893 cat >conftest.$ac_ext <<_ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h. */
24899 $ac_includes_default
24903 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24910 rm -f conftest.$ac_objext
24911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24912 (eval $ac_compile) 2>conftest.er1
24914 grep -v '^ *+' conftest.er1 >conftest.err
24916 cat conftest.err >&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } &&
24919 { ac_try='test -z "$ac_c_werror_flag"
24920 || test ! -s conftest.err'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; } &&
24926 { ac_try='test -s conftest.$ac_objext'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; }; then
24932 ac_hi=$ac_mid; break
24934 echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24937 ac_lo=`expr $ac_mid + 1`
24938 if test $ac_lo -le $ac_mid; then
24942 ac_mid=`expr 2 '*' $ac_mid + 1`
24944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24956 $ac_includes_default
24960 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24967 rm -f conftest.$ac_objext
24968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24969 (eval $ac_compile) 2>conftest.er1
24971 grep -v '^ *+' conftest.er1 >conftest.err
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } &&
24976 { ac_try='test -z "$ac_c_werror_flag"
24977 || test ! -s conftest.err'
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; } &&
24983 { ac_try='test -s conftest.$ac_objext'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; }; then
24991 cat >conftest.$ac_ext <<_ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24997 $ac_includes_default
25001 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25008 rm -f conftest.$ac_objext
25009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25010 (eval $ac_compile) 2>conftest.er1
25012 grep -v '^ *+' conftest.er1 >conftest.err
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_c_werror_flag"
25018 || test ! -s conftest.err'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; } &&
25024 { ac_try='test -s conftest.$ac_objext'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; }; then
25030 ac_lo=$ac_mid; break
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 ac_hi=`expr '(' $ac_mid ')' - 1`
25036 if test $ac_mid -le $ac_hi; then
25040 ac_mid=`expr 2 '*' $ac_mid`
25042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25045 echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25053 # Binary search between lo and hi bounds.
25054 while test "x$ac_lo" != "x$ac_hi"; do
25055 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 $ac_includes_default
25066 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25073 rm -f conftest.$ac_objext
25074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25075 (eval $ac_compile) 2>conftest.er1
25077 grep -v '^ *+' conftest.er1 >conftest.err
25079 cat conftest.err >&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } &&
25082 { ac_try='test -z "$ac_c_werror_flag"
25083 || test ! -s conftest.err'
25084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25085 (eval $ac_try) 2>&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); }; } &&
25089 { ac_try='test -s conftest.$ac_objext'
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; }; then
25097 echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25100 ac_lo=`expr '(' $ac_mid ')' + 1`
25102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25105 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25107 See \`config.log' for more details." >&5
25108 echo "$as_me: error: cannot compute sizeof (int *), 77
25109 See \`config.log' for more details." >&2;}
25110 { (exit 1); exit 1; }; } ;;
25113 if test "$cross_compiling" = yes; then
25114 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25115 See \`config.log' for more details." >&5
25116 echo "$as_me: error: cannot run test program while cross compiling
25117 See \`config.log' for more details." >&2;}
25118 { (exit 1); exit 1; }; }
25120 cat >conftest.$ac_ext <<_ACEOF
25123 cat confdefs.h >>conftest.$ac_ext
25124 cat >>conftest.$ac_ext <<_ACEOF
25125 /* end confdefs.h. */
25126 $ac_includes_default
25127 long longval () { return (long) (sizeof (int *)); }
25128 unsigned long ulongval () { return (long) (sizeof (int *)); }
25130 #include <stdlib.h>
25135 FILE *f = fopen ("conftest.val", "w");
25138 if (((long) (sizeof (int *))) < 0)
25140 long i = longval ();
25141 if (i != ((long) (sizeof (int *))))
25143 fprintf (f, "%ld\n", i);
25147 unsigned long i = ulongval ();
25148 if (i != ((long) (sizeof (int *))))
25150 fprintf (f, "%lu\n", i);
25152 exit (ferror (f) || fclose (f) != 0);
25158 rm -f conftest$ac_exeext
25159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160 (eval $ac_link) 2>&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; }; then
25169 ac_cv_sizeof_int_p=`cat conftest.val`
25171 echo "$as_me: program exited with status $ac_status" >&5
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25175 ( exit $ac_status )
25176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25177 See \`config.log' for more details." >&5
25178 echo "$as_me: error: cannot compute sizeof (int *), 77
25179 See \`config.log' for more details." >&2;}
25180 { (exit 1); exit 1; }; }
25182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25187 ac_cv_sizeof_int_p=0
25190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25191 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25192 cat >>confdefs.h <<_ACEOF
25193 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25198 for ac_func in select
25200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25201 echo "$as_me:$LINENO: checking for $ac_func" >&5
25202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25203 if eval "test \"\${$as_ac_var+set}\" = set"; then
25204 echo $ECHO_N "(cached) $ECHO_C" >&6
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25214 #define $ac_func innocuous_$ac_func
25216 /* System header to define __stub macros and hopefully few prototypes,
25217 which can conflict with char $ac_func (); below.
25218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25219 <limits.h> exists even on freestanding compilers. */
25222 # include <limits.h>
25224 # include <assert.h>
25229 /* Override any gcc2 internal prototype to avoid an error. */
25234 /* We use char because int might match the return type of a gcc2
25235 builtin and then its argument prototype would still apply. */
25237 /* The GNU C library defines this for functions which it implements
25238 to always fail with ENOSYS. Some functions are actually named
25239 something starting with __ and the normal name is an alias. */
25240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25243 char (*f) () = $ac_func;
25252 return f != $ac_func;
25257 rm -f conftest.$ac_objext conftest$ac_exeext
25258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25259 (eval $ac_link) 2>conftest.er1
25261 grep -v '^ *+' conftest.er1 >conftest.err
25263 cat conftest.err >&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } &&
25266 { ac_try='test -z "$ac_c_werror_flag"
25267 || test ! -s conftest.err'
25268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; } &&
25273 { ac_try='test -s conftest$ac_exeext'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279 eval "$as_ac_var=yes"
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25284 eval "$as_ac_var=no"
25286 rm -f conftest.err conftest.$ac_objext \
25287 conftest$ac_exeext conftest.$ac_ext
25289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25291 if test `eval echo '${'$as_ac_var'}'` = yes; then
25292 cat >>confdefs.h <<_ACEOF
25293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25295 cat >>confdefs.h <<\_ACEOF
25296 #define BX_HAVE_SELECT 1
25303 for ac_func in snprintf
25305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25306 echo "$as_me:$LINENO: checking for $ac_func" >&5
25307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25308 if eval "test \"\${$as_ac_var+set}\" = set"; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25311 cat >conftest.$ac_ext <<_ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h. */
25317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25319 #define $ac_func innocuous_$ac_func
25321 /* System header to define __stub macros and hopefully few prototypes,
25322 which can conflict with char $ac_func (); below.
25323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25324 <limits.h> exists even on freestanding compilers. */
25327 # include <limits.h>
25329 # include <assert.h>
25334 /* Override any gcc2 internal prototype to avoid an error. */
25339 /* We use char because int might match the return type of a gcc2
25340 builtin and then its argument prototype would still apply. */
25342 /* The GNU C library defines this for functions which it implements
25343 to always fail with ENOSYS. Some functions are actually named
25344 something starting with __ and the normal name is an alias. */
25345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25348 char (*f) () = $ac_func;
25357 return f != $ac_func;
25362 rm -f conftest.$ac_objext conftest$ac_exeext
25363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25364 (eval $ac_link) 2>conftest.er1
25366 grep -v '^ *+' conftest.er1 >conftest.err
25368 cat conftest.err >&5
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } &&
25371 { ac_try='test -z "$ac_c_werror_flag"
25372 || test ! -s conftest.err'
25373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); }; } &&
25378 { ac_try='test -s conftest$ac_exeext'
25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380 (eval $ac_try) 2>&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; }; then
25384 eval "$as_ac_var=yes"
25386 echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25389 eval "$as_ac_var=no"
25391 rm -f conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
25394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25396 if test `eval echo '${'$as_ac_var'}'` = yes; then
25397 cat >>confdefs.h <<_ACEOF
25398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25400 cat >>confdefs.h <<\_ACEOF
25401 #define BX_HAVE_SNPRINTF 1
25408 for ac_func in strtoull
25410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25411 echo "$as_me:$LINENO: checking for $ac_func" >&5
25412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25413 if eval "test \"\${$as_ac_var+set}\" = set"; then
25414 echo $ECHO_N "(cached) $ECHO_C" >&6
25416 cat >conftest.$ac_ext <<_ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25424 #define $ac_func innocuous_$ac_func
25426 /* System header to define __stub macros and hopefully few prototypes,
25427 which can conflict with char $ac_func (); below.
25428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25429 <limits.h> exists even on freestanding compilers. */
25432 # include <limits.h>
25434 # include <assert.h>
25439 /* Override any gcc2 internal prototype to avoid an error. */
25444 /* We use char because int might match the return type of a gcc2
25445 builtin and then its argument prototype would still apply. */
25447 /* The GNU C library defines this for functions which it implements
25448 to always fail with ENOSYS. Some functions are actually named
25449 something starting with __ and the normal name is an alias. */
25450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25453 char (*f) () = $ac_func;
25462 return f != $ac_func;
25467 rm -f conftest.$ac_objext conftest$ac_exeext
25468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25469 (eval $ac_link) 2>conftest.er1
25471 grep -v '^ *+' conftest.er1 >conftest.err
25473 cat conftest.err >&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } &&
25476 { ac_try='test -z "$ac_c_werror_flag"
25477 || test ! -s conftest.err'
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; } &&
25483 { ac_try='test -s conftest$ac_exeext'
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 eval "$as_ac_var=yes"
25491 echo "$as_me: failed program was:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25494 eval "$as_ac_var=no"
25496 rm -f conftest.err conftest.$ac_objext \
25497 conftest$ac_exeext conftest.$ac_ext
25499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25501 if test `eval echo '${'$as_ac_var'}'` = yes; then
25502 cat >>confdefs.h <<_ACEOF
25503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25505 cat >>confdefs.h <<\_ACEOF
25506 #define BX_HAVE_STRTOULL 1
25513 for ac_func in strtouq
25515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25516 echo "$as_me:$LINENO: checking for $ac_func" >&5
25517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25518 if eval "test \"\${$as_ac_var+set}\" = set"; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
25521 cat >conftest.$ac_ext <<_ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h. */
25527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25529 #define $ac_func innocuous_$ac_func
25531 /* System header to define __stub macros and hopefully few prototypes,
25532 which can conflict with char $ac_func (); below.
25533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25534 <limits.h> exists even on freestanding compilers. */
25537 # include <limits.h>
25539 # include <assert.h>
25544 /* Override any gcc2 internal prototype to avoid an error. */
25549 /* We use char because int might match the return type of a gcc2
25550 builtin and then its argument prototype would still apply. */
25552 /* The GNU C library defines this for functions which it implements
25553 to always fail with ENOSYS. Some functions are actually named
25554 something starting with __ and the normal name is an alias. */
25555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25558 char (*f) () = $ac_func;
25567 return f != $ac_func;
25572 rm -f conftest.$ac_objext conftest$ac_exeext
25573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25574 (eval $ac_link) 2>conftest.er1
25576 grep -v '^ *+' conftest.er1 >conftest.err
25578 cat conftest.err >&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } &&
25581 { ac_try='test -z "$ac_c_werror_flag"
25582 || test ! -s conftest.err'
25583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25584 (eval $ac_try) 2>&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); }; } &&
25588 { ac_try='test -s conftest$ac_exeext'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; }; then
25594 eval "$as_ac_var=yes"
25596 echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25599 eval "$as_ac_var=no"
25601 rm -f conftest.err conftest.$ac_objext \
25602 conftest$ac_exeext conftest.$ac_ext
25604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25606 if test `eval echo '${'$as_ac_var'}'` = yes; then
25607 cat >>confdefs.h <<_ACEOF
25608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25610 cat >>confdefs.h <<\_ACEOF
25611 #define BX_HAVE_STRTOUQ 1
25618 for ac_func in strdup
25620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25621 echo "$as_me:$LINENO: checking for $ac_func" >&5
25622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25623 if eval "test \"\${$as_ac_var+set}\" = set"; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25626 cat >conftest.$ac_ext <<_ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25634 #define $ac_func innocuous_$ac_func
25636 /* System header to define __stub macros and hopefully few prototypes,
25637 which can conflict with char $ac_func (); below.
25638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25639 <limits.h> exists even on freestanding compilers. */
25642 # include <limits.h>
25644 # include <assert.h>
25649 /* Override any gcc2 internal prototype to avoid an error. */
25654 /* We use char because int might match the return type of a gcc2
25655 builtin and then its argument prototype would still apply. */
25657 /* The GNU C library defines this for functions which it implements
25658 to always fail with ENOSYS. Some functions are actually named
25659 something starting with __ and the normal name is an alias. */
25660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25663 char (*f) () = $ac_func;
25672 return f != $ac_func;
25677 rm -f conftest.$ac_objext conftest$ac_exeext
25678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25679 (eval $ac_link) 2>conftest.er1
25681 grep -v '^ *+' conftest.er1 >conftest.err
25683 cat conftest.err >&5
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } &&
25686 { ac_try='test -z "$ac_c_werror_flag"
25687 || test ! -s conftest.err'
25688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689 (eval $ac_try) 2>&5
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); }; } &&
25693 { ac_try='test -s conftest$ac_exeext'
25694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695 (eval $ac_try) 2>&5
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); }; }; then
25699 eval "$as_ac_var=yes"
25701 echo "$as_me: failed program was:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25704 eval "$as_ac_var=no"
25706 rm -f conftest.err conftest.$ac_objext \
25707 conftest$ac_exeext conftest.$ac_ext
25709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25711 if test `eval echo '${'$as_ac_var'}'` = yes; then
25712 cat >>confdefs.h <<_ACEOF
25713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25715 cat >>confdefs.h <<\_ACEOF
25716 #define BX_HAVE_STRDUP 1
25723 echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
25724 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6
25725 cat >conftest.$ac_ext <<_ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h. */
25735 typedef struct { } junk;
25740 rm -f conftest.$ac_objext
25741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25742 (eval $ac_compile) 2>conftest.er1
25744 grep -v '^ *+' conftest.er1 >conftest.err
25746 cat conftest.err >&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); } &&
25749 { ac_try='test -z "$ac_c_werror_flag"
25750 || test ! -s conftest.err'
25751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752 (eval $ac_try) 2>&5
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); }; } &&
25756 { ac_try='test -s conftest.$ac_objext'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; }; then
25762 echo "$as_me:$LINENO: result: yes" >&5
25763 echo "${ECHO_T}yes" >&6
25765 echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25769 cat >>confdefs.h <<\_ACEOF
25770 #define BX_NO_EMPTY_STRUCTS 1
25773 echo "$as_me:$LINENO: result: no" >&5
25774 echo "${ECHO_T}no" >&6
25777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25779 echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
25780 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6
25781 cat >conftest.$ac_ext <<_ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h. */
25791 typedef struct { } __attribute__ ((packed)) junk;
25796 rm -f conftest.$ac_objext
25797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25798 (eval $ac_compile) 2>conftest.er1
25800 grep -v '^ *+' conftest.er1 >conftest.err
25802 cat conftest.err >&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } &&
25805 { ac_try='test -z "$ac_c_werror_flag"
25806 || test ! -s conftest.err'
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; } &&
25812 { ac_try='test -s conftest.$ac_objext'
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; }; then
25818 echo "$as_me:$LINENO: result: yes" >&5
25819 echo "${ECHO_T}yes" >&6
25821 echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25825 echo "$as_me:$LINENO: result: no" >&5
25826 echo "${ECHO_T}no" >&6
25827 cat >>confdefs.h <<\_ACEOF
25828 #define BX_NO_ATTRIBUTES 1
25833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25838 ac_cpp='$CXXCPP $CPPFLAGS'
25839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25843 echo "$as_me:$LINENO: checking for hash_map.h" >&5
25844 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6
25845 cat >conftest.$ac_ext <<_ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h. */
25851 #include <hash_map.h>
25860 rm -f conftest.$ac_objext
25861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25862 (eval $ac_compile) 2>conftest.er1
25864 grep -v '^ *+' conftest.er1 >conftest.err
25866 cat conftest.err >&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } &&
25869 { ac_try='test -z "$ac_cxx_werror_flag"
25870 || test ! -s conftest.err'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; } &&
25876 { ac_try='test -s conftest.$ac_objext'
25877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878 (eval $ac_try) 2>&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); }; }; then
25883 echo "$as_me:$LINENO: result: yes" >&5
25884 echo "${ECHO_T}yes" >&6
25885 cat >>confdefs.h <<\_ACEOF
25886 #define BX_HAVE_HASH_MAP 1
25891 echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25894 echo "$as_me:$LINENO: result: no" >&5
25895 echo "${ECHO_T}no" >&6
25897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25899 ac_cpp='$CPP $CPPFLAGS'
25900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25905 echo "$as_me:$LINENO: checking for number of processors" >&5
25906 echo $ECHO_N "checking for number of processors... $ECHO_C" >&6
25907 # Check whether --enable-processors or --disable-processors was given.
25908 if test "${enable_processors+set}" = set; then
25909 enableval="$enable_processors"
25910 case "$enableval" in
25912 echo "$as_me:$LINENO: result: 1" >&5
25913 echo "${ECHO_T}1" >&6
25914 cat >>confdefs.h <<\_ACEOF
25915 #define BX_SMP_PROCESSORS 1
25918 cat >>confdefs.h <<\_ACEOF
25919 #define BX_BOOTSTRAP_PROCESSOR 0
25922 cat >>confdefs.h <<\_ACEOF
25923 #define BX_IOAPIC_DEFAULT_ID 1
25928 echo "$as_me:$LINENO: result: 2" >&5
25929 echo "${ECHO_T}2" >&6
25930 cat >>confdefs.h <<\_ACEOF
25931 #define BX_SMP_PROCESSORS 2
25934 cat >>confdefs.h <<\_ACEOF
25935 #define BX_BOOTSTRAP_PROCESSOR 0
25938 cat >>confdefs.h <<\_ACEOF
25939 #define BX_IOAPIC_DEFAULT_ID 2
25942 cat >>confdefs.h <<\_ACEOF
25943 #define BX_USE_CPU_SMF 0
25948 echo "$as_me:$LINENO: result: 4" >&5
25949 echo "${ECHO_T}4" >&6
25950 cat >>confdefs.h <<\_ACEOF
25951 #define BX_SMP_PROCESSORS 4
25954 cat >>confdefs.h <<\_ACEOF
25955 #define BX_BOOTSTRAP_PROCESSOR 2
25958 cat >>confdefs.h <<\_ACEOF
25959 #define BX_IOAPIC_DEFAULT_ID 4
25962 cat >>confdefs.h <<\_ACEOF
25963 #define BX_USE_CPU_SMF 0
25969 echo "WARNING: processors != 1,2,4 can work, but you need to modify rombios.c manually"
25970 echo "$as_me:$LINENO: result: $enable_val" >&5
25971 echo "${ECHO_T}$enable_val" >&6
25972 cat >>confdefs.h <<\_ACEOF
25973 #define BX_SMP_PROCESSORS $enable_val
25976 cat >>confdefs.h <<\_ACEOF
25977 #define BX_BOOTSTRAP_PROCESSOR 0
25980 cat >>confdefs.h <<\_ACEOF
25981 #define BX_IOAPIC_DEFAULT_ID $enable_val
25984 cat >>confdefs.h <<\_ACEOF
25985 #define BX_USE_CPU_SMF 0
25990 bx_procs="$enableval"
25994 echo "$as_me:$LINENO: result: 1" >&5
25995 echo "${ECHO_T}1" >&6
25996 cat >>confdefs.h <<\_ACEOF
25997 #define BX_SMP_PROCESSORS 1
26000 cat >>confdefs.h <<\_ACEOF
26001 #define BX_BOOTSTRAP_PROCESSOR 0
26004 cat >>confdefs.h <<\_ACEOF
26005 #define BX_IOAPIC_DEFAULT_ID 1
26013 echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
26014 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6
26015 cat >conftest.$ac_ext <<_ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h. */
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032 (eval $ac_compile) 2>conftest.er1
26034 grep -v '^ *+' conftest.er1 >conftest.err
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
26039 { ac_try='test -z "$ac_c_werror_flag"
26040 || test ! -s conftest.err'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; } &&
26046 { ac_try='test -s conftest.$ac_objext'
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 echo "$as_me:$LINENO: result: yes" >&5
26053 echo "${ECHO_T}yes" >&6
26055 echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26059 echo "$as_me:$LINENO: result: no" >&5
26060 echo "${ECHO_T}no" >&6
26061 cat >>confdefs.h <<\_ACEOF
26062 #define BX_NO_BLANK_LABELS 1
26067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26069 echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
26070 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6
26071 cat >conftest.$ac_ext <<_ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26086 rm -f conftest.$ac_objext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26088 (eval $ac_compile) 2>conftest.er1
26090 grep -v '^ *+' conftest.er1 >conftest.err
26092 cat conftest.err >&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } &&
26095 { ac_try='test -z "$ac_c_werror_flag"
26096 || test ! -s conftest.err'
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; } &&
26102 { ac_try='test -s conftest.$ac_objext'
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 echo "$as_me:$LINENO: result: yes" >&5
26109 echo "${ECHO_T}yes" >&6
26111 echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26115 echo "$as_me:$LINENO: result: no" >&5
26116 echo "${ECHO_T}no" >&6
26117 cat >>confdefs.h <<\_ACEOF
26118 #define BX_64BIT_CONSTANTS_USE_LL 0
26123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26125 echo "$as_me:$LINENO: checking for cpu level" >&5
26126 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6
26127 # Check whether --enable-cpu-level or --disable-cpu-level was given.
26128 if test "${enable_cpu_level+set}" = set; then
26129 enableval="$enable_cpu_level"
26130 case "$enableval" in
26132 echo "$as_me:$LINENO: result: 3" >&5
26133 echo "${ECHO_T}3" >&6
26134 cat >>confdefs.h <<\_ACEOF
26135 #define BX_CPU_LEVEL 3
26138 cat >>confdefs.h <<\_ACEOF
26139 #define BX_CPU_LEVEL_HACKED 3
26144 echo "$as_me:$LINENO: result: 4" >&5
26145 echo "${ECHO_T}4" >&6
26146 cat >>confdefs.h <<\_ACEOF
26147 #define BX_CPU_LEVEL 4
26150 cat >>confdefs.h <<\_ACEOF
26151 #define BX_CPU_LEVEL_HACKED 4
26156 echo "$as_me:$LINENO: result: 5" >&5
26157 echo "${ECHO_T}5" >&6
26158 cat >>confdefs.h <<\_ACEOF
26159 #define BX_CPU_LEVEL 5
26162 cat >>confdefs.h <<\_ACEOF
26163 #define BX_CPU_LEVEL_HACKED 5
26168 echo "$as_me:$LINENO: result: 6" >&5
26169 echo "${ECHO_T}6" >&6
26170 cat >>confdefs.h <<\_ACEOF
26171 #define BX_CPU_LEVEL 6
26174 cat >>confdefs.h <<\_ACEOF
26175 #define BX_CPU_LEVEL_HACKED 6
26181 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
26185 bx_cpu_level=$enableval
26186 if test "$bx_procs" -gt 1 -a "$enableval" -lt 6; then
26187 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
26193 # for multiprocessors, cpu level must be 6
26194 if test "$bx_procs" -gt 1; then
26195 echo "$as_me:$LINENO: result: 6" >&5
26196 echo "${ECHO_T}6" >&6
26197 cat >>confdefs.h <<\_ACEOF
26198 #define BX_CPU_LEVEL 6
26201 cat >>confdefs.h <<\_ACEOF
26202 #define BX_CPU_LEVEL_HACKED 6
26207 echo "$as_me:$LINENO: result: 5" >&5
26208 echo "${ECHO_T}5" >&6
26209 cat >>confdefs.h <<\_ACEOF
26210 #define BX_CPU_LEVEL 5
26213 cat >>confdefs.h <<\_ACEOF
26214 #define BX_CPU_LEVEL_HACKED 5
26225 echo "$as_me:$LINENO: checking for dynamic translation support" >&5
26226 echo $ECHO_N "checking for dynamic translation support... $ECHO_C" >&6
26227 # Check whether --enable-dynamic or --disable-dynamic was given.
26228 if test "${enable_dynamic+set}" = set; then
26229 enableval="$enable_dynamic"
26230 if test "$enableval" = no; then
26231 echo "$as_me:$LINENO: result: no" >&5
26232 echo "${ECHO_T}no" >&6
26233 cat >>confdefs.h <<\_ACEOF
26234 #define BX_DYNAMIC_TRANSLATION 0
26241 if test "$enableval" = yes; then
26243 echo \!\!\!Error\!\!\!
26244 echo "You must specify a CPU type to dynamic-translation option"
26245 echo \!\!\!Error\!\!\!
26248 case "$enableval" in
26250 cat >>confdefs.h <<\_ACEOF
26251 #define BX_DYNAMIC_CPU_I386 1
26254 AS_DYNAMIC_OBJS='$(X86_OBJS)'
26255 AS_DYNAMIC_INCS='$(X86_H)'
26258 cat >>confdefs.h <<\_ACEOF
26259 #define BX_DYNAMIC_CPU_SPARC 1
26262 AS_DYNAMIC_OBJS='$(SPARC_OBJS).o'
26263 AS_DYNAMIC_INCS='$(SPARC_H)'
26267 echo \!\!\!Error\!\!\!
26268 echo "Sorry, dynamic translation is not yet available on your platform"
26269 echo \!\!\!Error\!\!\!
26274 echo "$as_me:$LINENO: result: yes" >&5
26275 echo "${ECHO_T}yes" >&6
26276 cat >>confdefs.h <<\_ACEOF
26277 #define BX_DYNAMIC_TRANSLATION 1
26280 DYNAMIC_VAR='$(DYNAMIC_LIB)'
26284 echo "$as_me:$LINENO: result: no" >&5
26285 echo "${ECHO_T}no" >&6
26286 cat >>confdefs.h <<\_ACEOF
26287 #define BX_DYNAMIC_TRANSLATION 0
26300 echo "$as_me:$LINENO: checking for APIC support" >&5
26301 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6
26302 # Check whether --enable-apic or --disable-apic was given.
26303 if test "${enable_apic+set}" = set; then
26304 enableval="$enable_apic"
26305 if test "$enableval" = yes; then
26306 echo "$as_me:$LINENO: result: yes" >&5
26307 echo "${ECHO_T}yes" >&6
26308 cat >>confdefs.h <<\_ACEOF
26309 #define BX_SUPPORT_APIC 1
26312 IOAPIC_OBJS='ioapic.o'
26315 echo "$as_me:$LINENO: result: no" >&5
26316 echo "${ECHO_T}no" >&6
26317 if test "$bx_procs" -gt 1; then
26318 echo "Number of processors = $bx_procs"
26319 echo "ERROR: With processors > 1 you must use --enable-apic"
26322 cat >>confdefs.h <<\_ACEOF
26323 #define BX_SUPPORT_APIC 0
26332 if test "$bx_procs" -gt 1 -o "$bx_cpu_level" -gt 5; then
26333 # enable APIC by default, if processors>1 or if cpulevel>5
26334 echo "$as_me:$LINENO: result: yes" >&5
26335 echo "${ECHO_T}yes" >&6
26336 cat >>confdefs.h <<\_ACEOF
26337 #define BX_SUPPORT_APIC 1
26340 IOAPIC_OBJS='ioapic.o'
26343 echo "$as_me:$LINENO: result: no" >&5
26344 echo "${ECHO_T}no" >&6
26345 cat >>confdefs.h <<\_ACEOF
26346 #define BX_SUPPORT_APIC 0
26358 echo "$as_me:$LINENO: checking for split hard disk image support" >&5
26359 echo $ECHO_N "checking for split hard disk image support... $ECHO_C" >&6
26360 # Check whether --enable-split-hd or --disable-split-hd was given.
26361 if test "${enable_split_hd+set}" = set; then
26362 enableval="$enable_split_hd"
26363 if test "$enableval" = yes; then
26364 echo "$as_me:$LINENO: result: yes" >&5
26365 echo "${ECHO_T}yes" >&6
26366 cat >>confdefs.h <<\_ACEOF
26367 #define BX_SPLIT_HD_SUPPORT 1
26371 echo "$as_me:$LINENO: result: no" >&5
26372 echo "${ECHO_T}no" >&6
26373 cat >>confdefs.h <<\_ACEOF
26374 #define BX_SPLIT_HD_SUPPORT 0
26380 echo "$as_me:$LINENO: result: yes" >&5
26381 echo "${ECHO_T}yes" >&6
26382 cat >>confdefs.h <<\_ACEOF
26383 #define BX_SPLIT_HD_SUPPORT 1
26391 echo "$as_me:$LINENO: checking for NE2000 support" >&5
26392 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6
26393 # Check whether --enable-ne2000 or --disable-ne2000 was given.
26394 if test "${enable_ne2000+set}" = set; then
26395 enableval="$enable_ne2000"
26396 if test "$enableval" = yes; then
26397 echo "$as_me:$LINENO: result: yes" >&5
26398 echo "${ECHO_T}yes" >&6
26399 cat >>confdefs.h <<\_ACEOF
26400 #define BX_NE2K_SUPPORT 1
26403 NE2K_OBJS='ne2k.o eth.o eth_null.o'
26404 if test "${ac_cv_header_net_bpf_h+set}" = set; then
26405 echo "$as_me:$LINENO: checking for net/bpf.h" >&5
26406 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
26407 if test "${ac_cv_header_net_bpf_h+set}" = set; then
26408 echo $ECHO_N "(cached) $ECHO_C" >&6
26410 echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
26411 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
26413 # Is the header compilable?
26414 echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
26415 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6
26416 cat >conftest.$ac_ext <<_ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h. */
26422 $ac_includes_default
26423 #include <net/bpf.h>
26425 rm -f conftest.$ac_objext
26426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26427 (eval $ac_compile) 2>conftest.er1
26429 grep -v '^ *+' conftest.er1 >conftest.err
26431 cat conftest.err >&5
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); } &&
26434 { ac_try='test -z "$ac_c_werror_flag"
26435 || test ! -s conftest.err'
26436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26437 (eval $ac_try) 2>&5
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); }; } &&
26441 { ac_try='test -s conftest.$ac_objext'
26442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26443 (eval $ac_try) 2>&5
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); }; }; then
26447 ac_header_compiler=yes
26449 echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26452 ac_header_compiler=no
26454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26456 echo "${ECHO_T}$ac_header_compiler" >&6
26458 # Is the header present?
26459 echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
26460 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6
26461 cat >conftest.$ac_ext <<_ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h. */
26467 #include <net/bpf.h>
26469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26472 grep -v '^ *+' conftest.er1 >conftest.err
26474 cat conftest.err >&5
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } >/dev/null; then
26477 if test -s conftest.err; then
26478 ac_cpp_err=$ac_c_preproc_warn_flag
26479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26486 if test -z "$ac_cpp_err"; then
26487 ac_header_preproc=yes
26489 echo "$as_me: failed program was:" >&5
26490 sed 's/^/| /' conftest.$ac_ext >&5
26492 ac_header_preproc=no
26494 rm -f conftest.err conftest.$ac_ext
26495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26496 echo "${ECHO_T}$ac_header_preproc" >&6
26498 # So? What about this header?
26499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26501 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
26502 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26503 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
26504 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
26505 ac_header_preproc=yes
26508 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
26509 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
26510 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
26511 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
26512 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
26513 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
26514 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
26515 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
26516 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
26517 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
26518 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
26519 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
26522 ## ------------------------------------------ ##
26523 ## Report this to the AC_PACKAGE_NAME lists. ##
26524 ## ------------------------------------------ ##
26527 sed "s/^/$as_me: WARNING: /" >&2
26530 echo "$as_me:$LINENO: checking for net/bpf.h" >&5
26531 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
26532 if test "${ac_cv_header_net_bpf_h+set}" = set; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26535 ac_cv_header_net_bpf_h=$ac_header_preproc
26537 echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
26538 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
26541 if test $ac_cv_header_net_bpf_h = yes; then
26542 NE2K_OBJS="$NE2K_OBJS eth_fbsd.o"
26547 echo "$as_me:$LINENO: result: no" >&5
26548 echo "${ECHO_T}no" >&6
26549 cat >>confdefs.h <<\_ACEOF
26550 #define BX_NE2K_SUPPORT 0
26557 echo "$as_me:$LINENO: result: no" >&5
26558 echo "${ECHO_T}no" >&6
26559 cat >>confdefs.h <<\_ACEOF
26560 #define BX_NE2K_SUPPORT 0
26570 echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
26571 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6
26572 # Check whether --enable-pci or --disable-pci was given.
26573 if test "${enable_pci+set}" = set; then
26574 enableval="$enable_pci"
26575 if test "$enableval" = yes; then
26576 echo "$as_me:$LINENO: result: yes" >&5
26577 echo "${ECHO_T}yes" >&6
26578 cat >>confdefs.h <<\_ACEOF
26579 #define BX_PCI_SUPPORT 1
26584 echo "$as_me:$LINENO: result: no" >&5
26585 echo "${ECHO_T}no" >&6
26586 cat >>confdefs.h <<\_ACEOF
26587 #define BX_PCI_SUPPORT 0
26594 echo "$as_me:$LINENO: result: no" >&5
26595 echo "${ECHO_T}no" >&6
26596 cat >>confdefs.h <<\_ACEOF
26597 #define BX_PCI_SUPPORT 0
26607 echo "$as_me:$LINENO: checking for port e9 hack" >&5
26608 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6
26609 # Check whether --enable-port-e9-hack or --disable-port-e9-hack was given.
26610 if test "${enable_port_e9_hack+set}" = set; then
26611 enableval="$enable_port_e9_hack"
26612 if test "$enableval" = yes; then
26613 echo "$as_me:$LINENO: result: yes" >&5
26614 echo "${ECHO_T}yes" >&6
26615 cat >>confdefs.h <<\_ACEOF
26616 #define BX_PORT_E9_HACK 1
26620 echo "$as_me:$LINENO: result: no" >&5
26621 echo "${ECHO_T}no" >&6
26622 cat >>confdefs.h <<\_ACEOF
26623 #define BX_PORT_E9_HACK 0
26629 echo "$as_me:$LINENO: result: no" >&5
26630 echo "${ECHO_T}no" >&6
26631 cat >>confdefs.h <<\_ACEOF
26632 #define BX_PORT_E9_HACK 0
26640 echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
26641 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6
26642 # Check whether --enable-cpp or --disable-cpp was given.
26643 if test "${enable_cpp+set}" = set; then
26644 enableval="$enable_cpp"
26645 if test "$enableval" = yes; then
26646 echo "$as_me:$LINENO: result: yes" >&5
26647 echo "${ECHO_T}yes" >&6
26648 SUFFIX_LINE='.SUFFIXES: .cpp'
26651 echo "$as_me:$LINENO: result: no" >&5
26652 echo "${ECHO_T}no" >&6
26653 SUFFIX_LINE='.SUFFIXES: .cc'
26658 echo "$as_me:$LINENO: result: no" >&5
26659 echo "${ECHO_T}no" >&6
26660 SUFFIX_LINE='.SUFFIXES: .cc'
26668 if test "$enable_cpp" = yes; then
26669 echo "moving .cc source files to .cpp"
26670 sourcefiles=`find . -name "*.cc" -print`
26671 if test "$sourcefiles" != ""; then
26672 for ccname in $sourcefiles
26674 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
26675 echo "mv $ccname $cppname"
26676 mv $ccname $cppname
26679 echo "no more .cc source files to rename"
26684 echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
26685 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6
26686 # Check whether --enable-debugger or --disable-debugger was given.
26687 if test "${enable_debugger+set}" = set; then
26688 enableval="$enable_debugger"
26689 if test "$enableval" = yes; then
26690 echo "$as_me:$LINENO: result: yes" >&5
26691 echo "${ECHO_T}yes" >&6
26692 cat >>confdefs.h <<\_ACEOF
26693 #define BX_DEBUGGER 1
26696 DEBUGGER_VAR='$(DEBUGGER_LIB)'
26699 echo "$as_me:$LINENO: result: no" >&5
26700 echo "${ECHO_T}no" >&6
26701 cat >>confdefs.h <<\_ACEOF
26702 #define BX_DEBUGGER 0
26711 echo "$as_me:$LINENO: result: no" >&5
26712 echo "${ECHO_T}no" >&6
26713 cat >>confdefs.h <<\_ACEOF
26714 #define BX_DEBUGGER 0
26724 echo "$as_me:$LINENO: checking for disassembler support" >&5
26725 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6
26726 # Check whether --enable-disasm or --disable-disasm was given.
26727 if test "${enable_disasm+set}" = set; then
26728 enableval="$enable_disasm"
26729 if test "$enableval" = yes; then
26730 echo "$as_me:$LINENO: result: yes" >&5
26731 echo "${ECHO_T}yes" >&6
26732 cat >>confdefs.h <<\_ACEOF
26733 #define BX_DISASM 1
26736 DISASM_VAR='$(DISASM_LIB)'
26738 echo "$as_me:$LINENO: result: no" >&5
26739 echo "${ECHO_T}no" >&6
26740 if test "$bx_debugger" = 1; then
26741 echo "ERROR: debugger is enabled, so --enable-disasm is required"
26744 cat >>confdefs.h <<\_ACEOF
26745 #define BX_DISASM 0
26752 if test "$bx_debugger" = 1; then
26753 echo "$as_me:$LINENO: result: yes" >&5
26754 echo "${ECHO_T}yes" >&6
26755 cat >>confdefs.h <<\_ACEOF
26756 #define BX_DISASM 1
26759 DISASM_VAR='$(DISASM_LIB)'
26761 echo "$as_me:$LINENO: result: no" >&5
26762 echo "${ECHO_T}no" >&6
26763 cat >>confdefs.h <<\_ACEOF
26764 #define BX_DISASM 0
26774 echo "$as_me:$LINENO: checking whether to use readline" >&5
26775 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
26776 # Check whether --enable-readline or --disable-readline was given.
26777 if test "${enable_readline+set}" = set; then
26778 enableval="$enable_readline"
26779 if test "$enableval" = yes; then
26780 echo "$as_me:$LINENO: result: yes" >&5
26781 echo "${ECHO_T}yes" >&6
26784 echo "$as_me:$LINENO: result: no" >&5
26785 echo "${ECHO_T}no" >&6
26790 echo "$as_me:$LINENO: result: yes" >&5
26791 echo "${ECHO_T}yes" >&6
26797 if test "$want_readline" = yes; then
26798 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
26799 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
26800 if test "${ac_cv_lib_readline_readline+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26803 ac_check_lib_save_LIBS=$LIBS
26804 LIBS="-lreadline $LIBS"
26805 cat >conftest.$ac_ext <<_ACEOF
26808 cat confdefs.h >>conftest.$ac_ext
26809 cat >>conftest.$ac_ext <<_ACEOF
26810 /* end confdefs.h. */
26812 /* Override any gcc2 internal prototype to avoid an error. */
26816 /* We use char because int might match the return type of a gcc2
26817 builtin and then its argument prototype would still apply. */
26827 rm -f conftest.$ac_objext conftest$ac_exeext
26828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26829 (eval $ac_link) 2>conftest.er1
26831 grep -v '^ *+' conftest.er1 >conftest.err
26833 cat conftest.err >&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } &&
26836 { ac_try='test -z "$ac_c_werror_flag"
26837 || test ! -s conftest.err'
26838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839 (eval $ac_try) 2>&5
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); }; } &&
26843 { ac_try='test -s conftest$ac_exeext'
26844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845 (eval $ac_try) 2>&5
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); }; }; then
26849 ac_cv_lib_readline_readline=yes
26851 echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26854 ac_cv_lib_readline_readline=no
26856 rm -f conftest.err conftest.$ac_objext \
26857 conftest$ac_exeext conftest.$ac_ext
26858 LIBS=$ac_check_lib_save_LIBS
26860 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
26861 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
26862 if test $ac_cv_lib_readline_readline = yes; then
26864 if test "$bx_debugger" = 1; then
26865 # only add readline library if debugger is on
26866 cat >>confdefs.h <<\_ACEOF
26867 #define HAVE_LIBREADLINE 1
26870 READLINE_LIB='-lreadline'
26879 if test "${ac_cv_header_readline_history_h+set}" = set; then
26880 echo "$as_me:$LINENO: checking for readline/history.h" >&5
26881 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
26882 if test "${ac_cv_header_readline_history_h+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
26886 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
26888 # Is the header compilable?
26889 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
26890 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
26891 cat >conftest.$ac_ext <<_ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h. */
26897 $ac_includes_default
26898 #include <readline/history.h>
26900 rm -f conftest.$ac_objext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26902 (eval $ac_compile) 2>conftest.er1
26904 grep -v '^ *+' conftest.er1 >conftest.err
26906 cat conftest.err >&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); } &&
26909 { ac_try='test -z "$ac_c_werror_flag"
26910 || test ! -s conftest.err'
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; } &&
26916 { ac_try='test -s conftest.$ac_objext'
26917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918 (eval $ac_try) 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; }; then
26922 ac_header_compiler=yes
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26927 ac_header_compiler=no
26929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26931 echo "${ECHO_T}$ac_header_compiler" >&6
26933 # Is the header present?
26934 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
26935 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h. */
26942 #include <readline/history.h>
26944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26947 grep -v '^ *+' conftest.er1 >conftest.err
26949 cat conftest.err >&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } >/dev/null; then
26952 if test -s conftest.err; then
26953 ac_cpp_err=$ac_c_preproc_warn_flag
26954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26961 if test -z "$ac_cpp_err"; then
26962 ac_header_preproc=yes
26964 echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26967 ac_header_preproc=no
26969 rm -f conftest.err conftest.$ac_ext
26970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26971 echo "${ECHO_T}$ac_header_preproc" >&6
26973 # So? What about this header?
26974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26976 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
26977 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26978 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
26979 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
26980 ac_header_preproc=yes
26983 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
26984 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
26985 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
26986 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
26987 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
26988 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
26989 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
26990 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
26992 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
26993 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
26994 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
26997 ## ------------------------------------------ ##
26998 ## Report this to the AC_PACKAGE_NAME lists. ##
26999 ## ------------------------------------------ ##
27002 sed "s/^/$as_me: WARNING: /" >&2
27005 echo "$as_me:$LINENO: checking for readline/history.h" >&5
27006 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
27007 if test "${ac_cv_header_readline_history_h+set}" = set; then
27008 echo $ECHO_N "(cached) $ECHO_C" >&6
27010 ac_cv_header_readline_history_h=$ac_header_preproc
27012 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
27013 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
27016 if test $ac_cv_header_readline_history_h = yes; then
27017 cat >>confdefs.h <<\_ACEOF
27018 #define HAVE_READLINE_HISTORY_H 1
27027 echo "$as_me:$LINENO: checking for loader support" >&5
27028 echo $ECHO_N "checking for loader support... $ECHO_C" >&6
27029 # Check whether --enable-loader or --disable-loader was given.
27030 if test "${enable_loader+set}" = set; then
27031 enableval="$enable_loader"
27032 if test "$enableval" = yes; then
27033 echo "$as_me:$LINENO: result: yes" >&5
27034 echo "${ECHO_T}yes" >&6
27035 cat >>confdefs.h <<\_ACEOF
27036 #define BX_USE_LOADER 1
27039 BX_LOADER_OBJS='bx_loader.o loader.o'
27041 echo "$as_me:$LINENO: result: no" >&5
27042 echo "${ECHO_T}no" >&6
27043 cat >>confdefs.h <<\_ACEOF
27044 #define BX_USE_LOADER 0
27051 echo "$as_me:$LINENO: result: no" >&5
27052 echo "${ECHO_T}no" >&6
27053 cat >>confdefs.h <<\_ACEOF
27054 #define BX_USE_LOADER 0
27065 INSTRUMENT_DIR='instrument/stubs'
27067 echo "$as_me:$LINENO: checking for instrumentation support" >&5
27068 echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6
27069 # Check whether --enable-instrumentation or --disable-instrumentation was given.
27070 if test "${enable_instrumentation+set}" = set; then
27071 enableval="$enable_instrumentation"
27072 if test "$enableval" = yes; then
27073 echo "$as_me:$LINENO: result: yes" >&5
27074 echo "${ECHO_T}yes" >&6
27075 cat >>confdefs.h <<\_ACEOF
27076 #define BX_INSTRUMENTATION 1
27079 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
27080 elif test "$enableval" = no; then
27081 echo "$as_me:$LINENO: result: no" >&5
27082 echo "${ECHO_T}no" >&6
27083 cat >>confdefs.h <<\_ACEOF
27084 #define BX_INSTRUMENTATION 0
27089 echo "$as_me:$LINENO: result: yes" >&5
27090 echo "${ECHO_T}yes" >&6
27091 cat >>confdefs.h <<\_ACEOF
27092 #define BX_INSTRUMENTATION 1
27095 INSTRUMENT_DIR=$enableval
27096 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
27100 echo "$as_me:$LINENO: result: no" >&5
27101 echo "${ECHO_T}no" >&6
27102 cat >>confdefs.h <<\_ACEOF
27103 #define BX_INSTRUMENTATION 0
27113 # Check whether --enable-simid or --disable-simid was given.
27114 if test "${enable_simid+set}" = set; then
27115 enableval="$enable_simid"
27116 if test "$enableval" = yes; then
27117 cat >>confdefs.h <<\_ACEOF
27118 #define BX_SIM_ID 0
27121 elif test "$enableval" = no; then
27122 cat >>confdefs.h <<\_ACEOF
27123 #define BX_SIM_ID 0
27127 cat >>confdefs.h <<_ACEOF
27128 #define BX_SIM_ID $enableval
27134 cat >>confdefs.h <<\_ACEOF
27135 #define BX_SIM_ID 0
27142 # Check whether --enable-num-sim or --disable-num-sim was given.
27143 if test "${enable_num_sim+set}" = set; then
27144 enableval="$enable_num_sim"
27145 if test "$enableval" = yes; then
27146 cat >>confdefs.h <<\_ACEOF
27147 #define BX_NUM_SIMULATORS 1
27150 elif test "$enableval" = no; then
27151 cat >>confdefs.h <<\_ACEOF
27152 #define BX_NUM_SIMULATORS 1
27156 cat >>confdefs.h <<_ACEOF
27157 #define BX_NUM_SIMULATORS $enableval
27163 cat >>confdefs.h <<\_ACEOF
27164 #define BX_NUM_SIMULATORS 1
27171 # Check whether --enable-time0 or --disable-time0 was given.
27172 if test "${enable_time0+set}" = set; then
27173 enableval="$enable_time0"
27174 if test "$enableval" = yes; then
27175 cat >>confdefs.h <<\_ACEOF
27176 #define BX_USE_SPECIFIED_TIME0 917385580
27179 elif test "$enableval" = no; then
27180 cat >>confdefs.h <<\_ACEOF
27181 #define BX_USE_SPECIFIED_TIME0 0
27185 cat >>confdefs.h <<_ACEOF
27186 #define BX_USE_SPECIFIED_TIME0 $enableval
27192 cat >>confdefs.h <<\_ACEOF
27193 #define BX_USE_SPECIFIED_TIME0 0
27202 echo "$as_me:$LINENO: checking for VGA emulation" >&5
27203 echo $ECHO_N "checking for VGA emulation... $ECHO_C" >&6
27204 # Check whether --enable-vga or --disable-vga was given.
27205 if test "${enable_vga+set}" = set; then
27206 enableval="$enable_vga"
27207 if test "$enableval" = yes; then
27208 echo "$as_me:$LINENO: result: yes" >&5
27209 echo "${ECHO_T}yes" >&6
27210 cat >>confdefs.h <<\_ACEOF
27211 #define BX_SUPPORT_VGA 1
27214 VIDEO_OBJS='$(VIDEO_OBJS_VGA)'
27216 echo "$as_me:$LINENO: result: no" >&5
27217 echo "${ECHO_T}no" >&6
27218 cat >>confdefs.h <<\_ACEOF
27219 #define BX_SUPPORT_VGA 0
27222 VIDEO_OBJS='$(VIDEO_OBJS_HGA)'
27226 echo "$as_me:$LINENO: result: no" >&5
27227 echo "${ECHO_T}no" >&6
27228 cat >>confdefs.h <<\_ACEOF
27229 #define BX_SUPPORT_VGA 0
27232 VIDEO_OBJS='$(VIDEO_OBJS_HGA)'
27238 echo "$as_me:$LINENO: checking for FPU emulation" >&5
27239 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6
27242 # Check whether --enable-fpu or --disable-fpu was given.
27243 if test "${enable_fpu+set}" = set; then
27244 enableval="$enable_fpu"
27245 if test "$enableval" = yes; then
27246 echo "$as_me:$LINENO: result: yes" >&5
27247 echo "${ECHO_T}yes" >&6
27248 cat >>confdefs.h <<\_ACEOF
27249 #define BX_SUPPORT_FPU 1
27252 FPU_VAR='$(FPU_LIB)'
27253 FPU_GLUE_OBJ='$(FPU_GLUE_OBJ)'
27254 elif test "$enableval" = no; then
27255 echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6
27257 cat >>confdefs.h <<\_ACEOF
27258 #define BX_SUPPORT_FPU 0
27263 echo "ERROR: --enable-fpu does not accept a path"
27269 echo "$as_me:$LINENO: result: yes" >&5
27270 echo "${ECHO_T}yes" >&6
27271 cat >>confdefs.h <<\_ACEOF
27272 #define BX_SUPPORT_FPU 1
27275 FPU_VAR='$(FPU_LIB)'
27276 FPU_GLUE_OBJ='$(FPU_GLUE_OBJ)'
27285 echo "$as_me:$LINENO: checking for x86 debugger support" >&5
27286 echo $ECHO_N "checking for x86 debugger support... $ECHO_C" >&6
27287 # Check whether --enable-x86-debugger or --disable-x86-debugger was given.
27288 if test "${enable_x86_debugger+set}" = set; then
27289 enableval="$enable_x86_debugger"
27290 if test "$enableval" = yes; then
27291 echo "$as_me:$LINENO: result: yes" >&5
27292 echo "${ECHO_T}yes" >&6
27293 cat >>confdefs.h <<\_ACEOF
27294 #define BX_X86_DEBUGGER 1
27297 elif test "$enableval" = no; then
27298 echo "$as_me:$LINENO: result: no" >&5
27299 echo "${ECHO_T}no" >&6
27300 cat >>confdefs.h <<\_ACEOF
27301 #define BX_X86_DEBUGGER 0
27305 echo "$as_me:$LINENO: result: yes" >&5
27306 echo "${ECHO_T}yes" >&6
27307 cat >>confdefs.h <<\_ACEOF
27308 #define BX_X86_DEBUGGER 1
27314 echo "$as_me:$LINENO: result: no" >&5
27315 echo "${ECHO_T}no" >&6
27316 cat >>confdefs.h <<\_ACEOF
27317 #define BX_X86_DEBUGGER 0
27324 echo "$as_me:$LINENO: checking for CDROM support" >&5
27325 echo $ECHO_N "checking for CDROM support... $ECHO_C" >&6
27326 # Check whether --enable-cdrom or --disable-cdrom was given.
27327 if test "${enable_cdrom+set}" = set; then
27328 enableval="$enable_cdrom"
27329 if test "$enableval" = yes; then
27330 echo "$as_me:$LINENO: result: yes" >&5
27331 echo "${ECHO_T}yes" >&6
27332 CDROM_OBJS='cdrom.o'
27333 cat >>confdefs.h <<\_ACEOF
27334 #define BX_SUPPORT_CDROM 1
27337 elif test "$enableval" = no; then
27338 echo "$as_me:$LINENO: result: no" >&5
27339 echo "${ECHO_T}no" >&6
27341 cat >>confdefs.h <<\_ACEOF
27342 #define BX_SUPPORT_CDROM 0
27346 echo "$as_me:$LINENO: result: yes" >&5
27347 echo "${ECHO_T}yes" >&6
27348 CDROM_OBJS='cdrom.o'
27349 cat >>confdefs.h <<\_ACEOF
27350 #define BX_SUPPORT_CDROM 1
27356 echo "$as_me:$LINENO: result: no" >&5
27357 echo "${ECHO_T}no" >&6
27359 cat >>confdefs.h <<\_ACEOF
27360 #define BX_SUPPORT_CDROM 0
27369 echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
27370 echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6
27371 # Check whether --enable-sb16 or --disable-sb16 was given.
27372 if test "${enable_sb16+set}" = set; then
27373 enableval="$enable_sb16"
27374 if test "$enableval" = no; then
27375 echo "$as_me:$LINENO: result: no" >&5
27376 echo "${ECHO_T}no" >&6
27378 cat >>confdefs.h <<\_ACEOF
27379 #define BX_SUPPORT_SB16 0
27383 case "$enableval" in
27385 SB16_OBJS='$(SB16_DUMMY_OBJS)'
27386 cat >>confdefs.h <<\_ACEOF
27387 #define BX_SOUND_OUTPUT_C bx_sound_output_c
27390 echo "$as_me:$LINENO: result: dummy" >&5
27391 echo "${ECHO_T}dummy" >&6
27394 SB16_OBJS='$(SB16_LINUX_OBJS)'
27395 cat >>confdefs.h <<\_ACEOF
27396 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
27399 echo "$as_me:$LINENO: result: linux" >&5
27400 echo "${ECHO_T}linux" >&6
27403 SB16_OBJS='$(SB16_WIN_OBJS)'
27404 cat >>confdefs.h <<\_ACEOF
27405 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
27408 echo "$as_me:$LINENO: result: win" >&5
27409 echo "${ECHO_T}win" >&6
27413 echo \!\!\!Error\!\!\!
27414 echo "You must pass one of dummy, linux, win to --enable-sb16"
27417 cat >>confdefs.h <<\_ACEOF
27418 #define BX_SUPPORT_SB16 1
27424 echo "$as_me:$LINENO: result: no" >&5
27425 echo "${ECHO_T}no" >&6
27427 cat >>confdefs.h <<\_ACEOF
27428 #define BX_SUPPORT_SB16 0
27437 # Check whether --enable-hga-dumps or --disable-hga-dumps was given.
27438 if test "${enable_hga_dumps+set}" = set; then
27439 enableval="$enable_hga_dumps"
27440 cat >>confdefs.h <<_ACEOF
27441 #define BX_EMULATE_HGA_DUMPS $enableval
27446 PRIMARY_TARGET='bochs'
27448 cat >>confdefs.h <<\_ACEOF
27449 #define BX_PROVIDE_DEVICE_MODELS 0
27452 IODEV_LIB_VAR='iodev/libiodev.a'
27453 cat >>confdefs.h <<\_ACEOF
27454 #define BX_PROVIDE_CPU_MEMORY 1
27457 NONINLINE_VAR='$(NONINLINE_OBJS)'
27466 # Check whether --with-x11 or --without-x11 was given.
27467 if test "${with_x11+set}" = set; then
27468 withval="$with_x11"
27473 # Check whether --with-beos or --without-beos was given.
27474 if test "${with_beos+set}" = set; then
27475 withval="$with_beos"
27480 # Check whether --with-win32 or --without-win32 was given.
27481 if test "${with_win32+set}" = set; then
27482 withval="$with_win32"
27487 # Check whether --with-win32-vcpp or --without-win32-vcpp was given.
27488 if test "${with_win32_vcpp+set}" = set; then
27489 withval="$with_win32_vcpp"
27494 # Check whether --with-macos or --without-macos was given.
27495 if test "${with_macos+set}" = set; then
27496 withval="$with_macos"
27501 # Check whether --with-nogui or --without-nogui was given.
27502 if test "${with_nogui+set}" = set; then
27503 withval="$with_nogui"
27508 # Check whether --with-term or --without-term was given.
27509 if test "${with_term+set}" = set; then
27510 withval="$with_term"
27515 # Check whether --with-rfb or --without-rfb was given.
27516 if test "${with_rfb+set}" = set; then
27517 withval="$with_rfb"
27521 echo "$as_me:$LINENO: checking for gui library to use" >&5
27522 echo $ECHO_N "checking for gui library to use... $ECHO_C" >&6
27526 if (test "$with_x11" != yes) && \
27527 (test "$with_beos" != yes) && \
27528 (test "$with_win32" != yes) && \
27529 (test "$with_nogui" != yes) && \
27530 (test "$with_win32_vcpp" != yes) && \
27531 (test "$with_term" != yes) && \
27532 (test "$with_rfb" != yes) && \
27533 (test "$with_macos" != yes); then
27542 MAKELIB="ar rv \$@"
27544 LINK="\$(CXX) -o \$@ \$(CXXFLAGS)"
27546 COMMAND_SEPARATOR="&& \\"
27547 CD_UP_ONE="echo done"
27548 CD_UP_TWO="echo done"
27550 if test "$with_x11" = yes; then
27551 echo "$as_me:$LINENO: result: X windows" >&5
27552 echo "${ECHO_T}X windows" >&6
27553 if test "$no_x" = yes; then
27554 echo ERROR: X windows gui was selected, but X windows libraries were not found.
27557 cat >>confdefs.h <<\_ACEOF
27558 #define BX_WITH_X11 1
27561 GUI_OBJS='$(GUI_OBJS_X11)'
27562 GUI_LINK_OPTS='$(GUI_LINK_OPTS_X)'
27563 elif test "$with_win32" = yes; then
27564 echo "$as_me:$LINENO: result: win32" >&5
27565 echo "${ECHO_T}win32" >&6
27566 cat >>confdefs.h <<\_ACEOF
27567 #define BX_WITH_WIN32 1
27570 GUI_OBJS='$(GUI_OBJS_WIN32)'
27571 GUI_LINK_OPTS='$(GUI_LINK_OPTS_WIN32)'
27572 elif test "$with_beos" = yes; then
27573 echo "$as_me:$LINENO: result: beos" >&5
27574 echo "${ECHO_T}beos" >&6
27575 cat >>confdefs.h <<\_ACEOF
27576 #define BX_WITH_BEOS 1
27579 GUI_OBJS='$(GUI_OBJS_BEOS)'
27580 GUI_LINK_OPTS='$(GUI_LINK_OPTS_BEOS)'
27581 elif test "$with_rfb" = yes; then
27582 echo "$as_me:$LINENO: result: rfb" >&5
27583 echo "${ECHO_T}rfb" >&6
27584 cat >>confdefs.h <<\_ACEOF
27585 #define BX_WITH_RFB 1
27588 GUI_OBJS='$(GUI_OBJS_RFB)'
27589 GUI_LINK_OPTS='$(GUI_LINK_OPTS_RFB)'
27590 elif test "$with_win32_vcpp" = yes; then
27591 echo "$as_me:$LINENO: result: win32-vcpp" >&5
27592 echo "${ECHO_T}win32-vcpp" >&6
27593 cat >>confdefs.h <<\_ACEOF
27594 #define BX_WITH_WIN32 1
27597 GUI_OBJS='$(GUI_OBJS_WIN32)'
27598 GUI_LINK_OPTS='$(GUI_LINK_OPTS_WIN32_VCPP)'
27602 #C_OPT="/Zi" # for debugging
27603 C_OPT="/O2" # optimize for speed
27604 CFLAGS="/nologo /G6 /MT /W3 /GX /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
27611 MAKELIB="lib.exe /nologo /subsystem:console /machine:I386 /verbose /out:\$@"
27614 #L_OPT="/debug" # for debugging
27615 L_OPT="" # no debug info
27616 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /machine:I386 /out:\$@ BINMODE.OBJ"
27618 PRIMARY_TARGET="bochs.exe"
27619 COMMAND_SEPARATOR=""
27621 CD_UP_TWO="cd ..\.."
27622 cat >>confdefs.h <<\_ACEOF
27623 #define BX_64BIT_CONSTANTS_USE_LL 0
27626 cat >>confdefs.h <<\_ACEOF
27627 #define inline __inline
27630 cat >>confdefs.h <<\_ACEOF
27631 #define BX_NO_EMPTY_STRUCTS 1
27634 cat >>confdefs.h <<\_ACEOF
27635 #define BX_NO_ATTRIBUTES 1
27638 cat >>confdefs.h <<\_ACEOF
27639 #define BX_HAVE_HASH_MAP 0
27642 elif test "$with_macos" = yes; then
27643 echo "$as_me:$LINENO: result: macos" >&5
27644 echo "${ECHO_T}macos" >&6
27645 cat >>confdefs.h <<\_ACEOF
27646 #define BX_WITH_MACOS 1
27649 cat >>confdefs.h <<\_ACEOF
27650 #define BX_HAVE_STRDUP 0
27653 GUI_OBJS='$(GUI_OBJS_MACOS)'
27654 GUI_LINK_OPTS='$(GUI_LINK_OPTS_MACOS)'
27655 elif test "$with_term" = yes; then
27656 echo "$as_me:$LINENO: result: term" >&5
27657 echo "${ECHO_T}term" >&6
27658 cat >>confdefs.h <<\_ACEOF
27659 #define BX_WITH_TERM 1
27662 GUI_OBJS='$(GUI_OBJS_TERM)'
27663 GUI_LINK_OPTS='$(GUI_LINK_OPTS_TERM)'
27666 echo "$as_me:$LINENO: result: none" >&5
27667 echo "${ECHO_T}none" >&6
27668 cat >>confdefs.h <<\_ACEOF
27669 #define BX_WITH_NOGUI 1
27672 GUI_OBJS='$(GUI_OBJS_NOGUI)'
27673 GUI_LINK_OPTS='$(GUI_LINK_OPTS_NOGUI)'
27676 if test "$use_curses" = yes; then
27677 echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
27678 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6
27679 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
27680 echo $ECHO_N "(cached) $ECHO_C" >&6
27682 ac_check_lib_save_LIBS=$LIBS
27683 LIBS="-lcurses $LIBS"
27684 cat >conftest.$ac_ext <<_ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h. */
27691 /* Override any gcc2 internal prototype to avoid an error. */
27695 /* We use char because int might match the return type of a gcc2
27696 builtin and then its argument prototype would still apply. */
27706 rm -f conftest.$ac_objext conftest$ac_exeext
27707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27708 (eval $ac_link) 2>conftest.er1
27710 grep -v '^ *+' conftest.er1 >conftest.err
27712 cat conftest.err >&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); } &&
27715 { ac_try='test -z "$ac_c_werror_flag"
27716 || test ! -s conftest.err'
27717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718 (eval $ac_try) 2>&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; } &&
27722 { ac_try='test -s conftest$ac_exeext'
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; }; then
27728 ac_cv_lib_curses_mvaddch=yes
27730 echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27733 ac_cv_lib_curses_mvaddch=no
27735 rm -f conftest.err conftest.$ac_objext \
27736 conftest$ac_exeext conftest.$ac_ext
27737 LIBS=$ac_check_lib_save_LIBS
27739 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
27740 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6
27741 if test $ac_cv_lib_curses_mvaddch = yes; then
27742 GUI_LINK_OPTS_TERM='-lcurses'
27745 echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
27746 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6
27747 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27750 ac_check_lib_save_LIBS=$LIBS
27751 LIBS="-lncurses $LIBS"
27752 cat >conftest.$ac_ext <<_ACEOF
27755 cat confdefs.h >>conftest.$ac_ext
27756 cat >>conftest.$ac_ext <<_ACEOF
27757 /* end confdefs.h. */
27759 /* Override any gcc2 internal prototype to avoid an error. */
27763 /* We use char because int might match the return type of a gcc2
27764 builtin and then its argument prototype would still apply. */
27774 rm -f conftest.$ac_objext conftest$ac_exeext
27775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27776 (eval $ac_link) 2>conftest.er1
27778 grep -v '^ *+' conftest.er1 >conftest.err
27780 cat conftest.err >&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); } &&
27783 { ac_try='test -z "$ac_c_werror_flag"
27784 || test ! -s conftest.err'
27785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786 (eval $ac_try) 2>&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); }; } &&
27790 { ac_try='test -s conftest$ac_exeext'
27791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792 (eval $ac_try) 2>&5
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); }; }; then
27796 ac_cv_lib_ncurses_mvaddch=yes
27798 echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27801 ac_cv_lib_ncurses_mvaddch=no
27803 rm -f conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
27805 LIBS=$ac_check_lib_save_LIBS
27807 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
27808 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6
27809 if test $ac_cv_lib_ncurses_mvaddch = yes; then
27810 GUI_LINK_OPTS_TERM='-lncurses'
27813 echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
27814 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6
27815 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27818 ac_check_lib_save_LIBS=$LIBS
27819 LIBS="-ltermlib $LIBS"
27820 cat >conftest.$ac_ext <<_ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h. */
27827 /* Override any gcc2 internal prototype to avoid an error. */
27831 /* We use char because int might match the return type of a gcc2
27832 builtin and then its argument prototype would still apply. */
27842 rm -f conftest.$ac_objext conftest$ac_exeext
27843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27844 (eval $ac_link) 2>conftest.er1
27846 grep -v '^ *+' conftest.er1 >conftest.err
27848 cat conftest.err >&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } &&
27851 { ac_try='test -z "$ac_c_werror_flag"
27852 || test ! -s conftest.err'
27853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854 (eval $ac_try) 2>&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; } &&
27858 { ac_try='test -s conftest$ac_exeext'
27859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860 (eval $ac_try) 2>&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); }; }; then
27864 ac_cv_lib_termlib_mvaddch=yes
27866 echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27869 ac_cv_lib_termlib_mvaddch=no
27871 rm -f conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
27873 LIBS=$ac_check_lib_save_LIBS
27875 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
27876 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6
27877 if test $ac_cv_lib_termlib_mvaddch = yes; then
27878 GUI_LINK_OPTS_TERM='-ltermlib'
27881 if test "$GUI_LINK_OPTS_TERM" = ""; then
27882 echo Curses library not found: tried curses, ncurses, and termlib.
27887 if test "$with_rfb" = yes; then
27888 # first see if compiler takes "-pthread" argument
27889 echo "$as_me:$LINENO: checking for -pthread arg to compiler" >&5
27890 echo $ECHO_N "checking for -pthread arg to compiler... $ECHO_C" >&6
27891 CFLAGS_SAVE="$CFLAGS"
27892 CFLAGS="$CFLAGS -pthread"
27893 cat >conftest.$ac_ext <<_ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27899 #include <pthread.h>
27903 pthread_create(0,0,0,0);
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27910 (eval $ac_link) 2>conftest.er1
27912 grep -v '^ *+' conftest.er1 >conftest.err
27914 cat conftest.err >&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } &&
27917 { ac_try='test -z "$ac_c_werror_flag"
27918 || test ! -s conftest.err'
27919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920 (eval $ac_try) 2>&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; } &&
27924 { ac_try='test -s conftest$ac_exeext'
27925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926 (eval $ac_try) 2>&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); }; }; then
27931 # it compiles with -pthread
27932 echo "$as_me:$LINENO: result: yes" >&5
27933 echo "${ECHO_T}yes" >&6
27934 CXXFLAGS="$CXXFLAGS -pthread"
27937 echo "$as_me: failed program was:" >&5
27938 sed 's/^/| /' conftest.$ac_ext >&5
27941 echo "$as_me:$LINENO: result: no" >&5
27942 echo "${ECHO_T}no" >&6
27943 # now try with -lpthread
27944 CFLAGS="$CFLAGS_SAVE"
27945 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
27946 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
27947 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
27948 echo $ECHO_N "(cached) $ECHO_C" >&6
27950 ac_check_lib_save_LIBS=$LIBS
27951 LIBS="-lpthread $LIBS"
27952 cat >conftest.$ac_ext <<_ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h. */
27959 /* Override any gcc2 internal prototype to avoid an error. */
27963 /* We use char because int might match the return type of a gcc2
27964 builtin and then its argument prototype would still apply. */
27965 char pthread_create ();
27974 rm -f conftest.$ac_objext conftest$ac_exeext
27975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27976 (eval $ac_link) 2>conftest.er1
27978 grep -v '^ *+' conftest.er1 >conftest.err
27980 cat conftest.err >&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } &&
27983 { ac_try='test -z "$ac_c_werror_flag"
27984 || test ! -s conftest.err'
27985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986 (eval $ac_try) 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
27991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27992 (eval $ac_try) 2>&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); }; }; then
27996 ac_cv_lib_pthread_pthread_create=yes
27998 echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28001 ac_cv_lib_pthread_pthread_create=no
28003 rm -f conftest.err conftest.$ac_objext \
28004 conftest$ac_exeext conftest.$ac_ext
28005 LIBS=$ac_check_lib_save_LIBS
28007 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
28008 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
28009 if test $ac_cv_lib_pthread_pthread_create = yes; then
28011 # it compiles with -lpthread
28012 RFB_LIBS='-lpthread'
28016 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
28022 rm -f conftest.err conftest.$ac_objext \
28023 conftest$ac_exeext conftest.$ac_ext
28027 for ac_header in X11/Xos.h
28029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28031 echo "$as_me:$LINENO: checking for $ac_header" >&5
28032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
28036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28039 # Is the header compilable?
28040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28042 cat >conftest.$ac_ext <<_ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h. */
28048 $ac_includes_default
28049 #include <$ac_header>
28051 rm -f conftest.$ac_objext
28052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28053 (eval $ac_compile) 2>conftest.er1
28055 grep -v '^ *+' conftest.er1 >conftest.err
28057 cat conftest.err >&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); } &&
28060 { ac_try='test -z "$ac_c_werror_flag"
28061 || test ! -s conftest.err'
28062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28063 (eval $ac_try) 2>&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); }; } &&
28067 { ac_try='test -s conftest.$ac_objext'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; }; then
28073 ac_header_compiler=yes
28075 echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28078 ac_header_compiler=no
28080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28082 echo "${ECHO_T}$ac_header_compiler" >&6
28084 # Is the header present?
28085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28087 cat >conftest.$ac_ext <<_ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h. */
28093 #include <$ac_header>
28095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28098 grep -v '^ *+' conftest.er1 >conftest.err
28100 cat conftest.err >&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); } >/dev/null; then
28103 if test -s conftest.err; then
28104 ac_cpp_err=$ac_c_preproc_warn_flag
28105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28112 if test -z "$ac_cpp_err"; then
28113 ac_header_preproc=yes
28115 echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28118 ac_header_preproc=no
28120 rm -f conftest.err conftest.$ac_ext
28121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28122 echo "${ECHO_T}$ac_header_preproc" >&6
28124 # So? What about this header?
28125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28131 ac_header_preproc=yes
28134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28148 ## ------------------------------------------ ##
28149 ## Report this to the AC_PACKAGE_NAME lists. ##
28150 ## ------------------------------------------ ##
28153 sed "s/^/$as_me: WARNING: /" >&2
28156 echo "$as_me:$LINENO: checking for $ac_header" >&5
28157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28159 echo $ECHO_N "(cached) $ECHO_C" >&6
28161 eval "$as_ac_Header=\$ac_header_preproc"
28163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28168 cat >>confdefs.h <<_ACEOF
28169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28171 have_xos_header=true
28173 have_xos_header=false
28180 if test x$have_xos_header = xtrue; then
28181 HAVE_XOS_HEADER_TRUE=
28182 HAVE_XOS_HEADER_FALSE='#'
28184 HAVE_XOS_HEADER_TRUE='#'
28185 HAVE_XOS_HEADER_FALSE=
28207 # Extract the first word of "gzip", so it can be a program name with args.
28208 set dummy gzip; ac_word=$2
28209 echo "$as_me:$LINENO: checking for $ac_word" >&5
28210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28211 if test "${ac_cv_path_GZIP+set}" = set; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28216 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
28219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28220 for as_dir in $PATH
28223 test -z "$as_dir" && as_dir=.
28224 for ac_exec_ext in '' $ac_executable_extensions; do
28225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28226 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
28227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28236 GZIP=$ac_cv_path_GZIP
28238 if test -n "$GZIP"; then
28239 echo "$as_me:$LINENO: result: $GZIP" >&5
28240 echo "${ECHO_T}$GZIP" >&6
28242 echo "$as_me:$LINENO: result: no" >&5
28243 echo "${ECHO_T}no" >&6
28246 # Extract the first word of "tar", so it can be a program name with args.
28247 set dummy tar; ac_word=$2
28248 echo "$as_me:$LINENO: checking for $ac_word" >&5
28249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28250 if test "${ac_cv_path_TAR+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28255 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
28258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28259 for as_dir in $PATH
28262 test -z "$as_dir" && as_dir=.
28263 for ac_exec_ext in '' $ac_executable_extensions; do
28264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28265 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
28266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28275 TAR=$ac_cv_path_TAR
28277 if test -n "$TAR"; then
28278 echo "$as_me:$LINENO: result: $TAR" >&5
28279 echo "${ECHO_T}$TAR" >&6
28281 echo "$as_me:$LINENO: result: no" >&5
28282 echo "${ECHO_T}no" >&6
28289 sid_host=`$ac_config_sub $host`
28290 sid_target=`$ac_config_sub $target`
28292 if test "$sid_host" = "$sid_target" -o "$target" = "NONE"
28294 { echo "$as_me:$LINENO: WARNING: Assuming --enable-targets=all" >&5
28295 echo "$as_me: WARNING: Assuming --enable-targets=all" >&2;}
28297 sidtarget_default=1
28299 all_targets="$target"
28300 sidtarget_default=0
28304 # Check whether --enable-targets or --disable-targets was given.
28305 if test "${enable_targets+set}" = set; then
28306 enableval="$enable_targets"
28308 case "${enable_targets}" in
28309 all) sidtarget_default=1 ;;
28310 no) sidtarget_default=0 ;;
28311 *) all_targets="${all_targets} `echo ${enable_targets} | sed -e 's-,- -g'`" ;;
28316 sidtarget_arm=$sidtarget_default
28317 sidtarget_x86=$sidtarget_default
28318 sidtarget_mips=$sidtarget_default
28319 sidtarget_m32r=$sidtarget_default
28320 sidtarget_m68k=$sidtarget_default
28321 sidtarget_mep=$sidtarget_default
28322 sidtarget_mt=$sidtarget_default
28323 sidtarget_ppc=$sidtarget_default
28324 sidtarget_sh=$sidtarget_default
28325 sidtarget_sh64=$sidtarget_default
28326 sidtarget_xstormy16=$sidtarget_default
28328 for targ in $all_targets
28331 arm*) sidtarget_arm=1 ;;
28332 thumb*) sidtarget_arm=1 ;;
28333 i386*) sidtarget_x86=1 ;;
28334 mips*) sidtarget_mips=1 ;;
28335 m32r*) sidtarget_m32r=1 ;;
28336 m68k*) sidtarget_m68k=1 ;;
28337 mep*) sidtarget_mep=1 ;;
28338 mt*) sidtarget_mt=1 ;;
28339 powerpc*) sidtarget_ppc=1 ;;
28340 ppc*) sidtarget_ppc=1 ;;
28341 sh64*) sidtarget_sh64=1 ;;
28342 sh*) sidtarget_sh=1 ;;
28343 xstormy16*) sidtarget_xstormy16=1 ;;
28344 *) { echo "$as_me:$LINENO: WARNING: \"Unknown target $targ\"" >&5
28345 echo "$as_me: WARNING: \"Unknown target $targ\"" >&2;} ;;
28350 ${sidtarget_arm}) ;;
28351 ${sidtarget_x86}) ;;
28352 ${sidtarget_mips}) ;;
28353 ${sidtarget_m32r}) ;;
28354 ${sidtarget_m68k}) ;;
28355 ${sidtarget_mep}) ;;
28356 ${sidtarget_mt}) ;;
28357 ${sidtarget_ppc}) ;;
28358 ${sidtarget_sh}) ;;
28359 ${sidtarget_sh64}) ;;
28360 ${sidtarget_xstormy16}) ;;
28361 *) { echo "$as_me:$LINENO: WARNING: No selected sid targets: use --enable-targets or --target" >&5
28362 echo "$as_me: WARNING: No selected sid targets: use --enable-targets or --target" >&2;}
28367 echo "$as_me:$LINENO: checking ARM family support" >&5
28368 echo $ECHO_N "checking ARM family support... $ECHO_C" >&6
28372 if test "x$sidtarget_arm" = x1; then
28373 SIDTARGET_ARM_TRUE=
28374 SIDTARGET_ARM_FALSE='#'
28376 SIDTARGET_ARM_TRUE='#'
28377 SIDTARGET_ARM_FALSE=
28380 echo "$as_me:$LINENO: result: $sidtarget_arm" >&5
28381 echo "${ECHO_T}$sidtarget_arm" >&6
28383 echo "$as_me:$LINENO: checking X86 family support" >&5
28384 echo $ECHO_N "checking X86 family support... $ECHO_C" >&6
28388 if test "x$sidtarget_x86" = x1; then
28389 SIDTARGET_X86_TRUE=
28390 SIDTARGET_X86_FALSE='#'
28392 SIDTARGET_X86_TRUE='#'
28393 SIDTARGET_X86_FALSE=
28396 echo "$as_me:$LINENO: result: $sidtarget_x86" >&5
28397 echo "${ECHO_T}$sidtarget_x86" >&6
28399 echo "$as_me:$LINENO: checking MIPS family support" >&5
28400 echo $ECHO_N "checking MIPS family support... $ECHO_C" >&6
28404 if test "x$sidtarget_mips" = x1; then
28405 SIDTARGET_MIPS_TRUE=
28406 SIDTARGET_MIPS_FALSE='#'
28408 SIDTARGET_MIPS_TRUE='#'
28409 SIDTARGET_MIPS_FALSE=
28412 echo "$as_me:$LINENO: result: $sidtarget_mips" >&5
28413 echo "${ECHO_T}$sidtarget_mips" >&6
28415 echo "$as_me:$LINENO: checking M32R family support" >&5
28416 echo $ECHO_N "checking M32R family support... $ECHO_C" >&6
28420 if test "x$sidtarget_m32r" = x1; then
28421 SIDTARGET_M32R_TRUE=
28422 SIDTARGET_M32R_FALSE='#'
28424 SIDTARGET_M32R_TRUE='#'
28425 SIDTARGET_M32R_FALSE=
28428 echo "$as_me:$LINENO: result: $sidtarget_m32r" >&5
28429 echo "${ECHO_T}$sidtarget_m32r" >&6
28431 echo "$as_me:$LINENO: checking M68K family support" >&5
28432 echo $ECHO_N "checking M68K family support... $ECHO_C" >&6
28436 if test "x$sidtarget_m68k" = x1; then
28437 SIDTARGET_M68K_TRUE=
28438 SIDTARGET_M68K_FALSE='#'
28440 SIDTARGET_M68K_TRUE='#'
28441 SIDTARGET_M68K_FALSE=
28444 echo "$as_me:$LINENO: result: $sidtarget_m68k" >&5
28445 echo "${ECHO_T}$sidtarget_m68k" >&6
28447 echo "$as_me:$LINENO: checking Toshiba MeP family support" >&5
28448 echo $ECHO_N "checking Toshiba MeP family support... $ECHO_C" >&6
28452 if test "x$sidtarget_mep" = x1; then
28453 SIDTARGET_MEP_TRUE=
28454 SIDTARGET_MEP_FALSE='#'
28456 SIDTARGET_MEP_TRUE='#'
28457 SIDTARGET_MEP_FALSE=
28460 echo "$as_me:$LINENO: result: $sidtarget_mep" >&5
28461 echo "${ECHO_T}$sidtarget_mep" >&6
28463 echo "$as_me:$LINENO: checking MT family support" >&5
28464 echo $ECHO_N "checking MT family support... $ECHO_C" >&6
28468 if test "x$sidtarget_mt" = x1; then
28470 SIDTARGET_MT_FALSE='#'
28472 SIDTARGET_MT_TRUE='#'
28473 SIDTARGET_MT_FALSE=
28476 echo "$as_me:$LINENO: result: $sidtarget_mt" >&5
28477 echo "${ECHO_T}$sidtarget_mt" >&6
28479 echo "$as_me:$LINENO: checking PPC family support" >&5
28480 echo $ECHO_N "checking PPC family support... $ECHO_C" >&6
28484 if test "x$sidtarget_ppc" = x1; then
28485 SIDTARGET_PPC_TRUE=
28486 SIDTARGET_PPC_FALSE='#'
28488 SIDTARGET_PPC_TRUE='#'
28489 SIDTARGET_PPC_FALSE=
28492 echo "$as_me:$LINENO: result: $sidtarget_ppc" >&5
28493 echo "${ECHO_T}$sidtarget_ppc" >&6
28495 echo "$as_me:$LINENO: checking SH family support" >&5
28496 echo $ECHO_N "checking SH family support... $ECHO_C" >&6
28500 if test "x$sidtarget_sh" = x1; then
28502 SIDTARGET_SH_FALSE='#'
28504 SIDTARGET_SH_TRUE='#'
28505 SIDTARGET_SH_FALSE=
28508 echo "$as_me:$LINENO: result: $sidtarget_sh" >&5
28509 echo "${ECHO_T}$sidtarget_sh" >&6
28511 echo "$as_me:$LINENO: checking SH64 family support" >&5
28512 echo $ECHO_N "checking SH64 family support... $ECHO_C" >&6
28516 if test "x$sidtarget_sh64" = x1; then
28517 SIDTARGET_SH64_TRUE=
28518 SIDTARGET_SH64_FALSE='#'
28520 SIDTARGET_SH64_TRUE='#'
28521 SIDTARGET_SH64_FALSE=
28524 echo "$as_me:$LINENO: result: $sidtarget_sh64" >&5
28525 echo "${ECHO_T}$sidtarget_sh64" >&6
28527 echo "$as_me:$LINENO: checking Sanyo Xstormy16 family support" >&5
28528 echo $ECHO_N "checking Sanyo Xstormy16 family support... $ECHO_C" >&6
28532 if test "x$sidtarget_xstormy16" = x1; then
28533 SIDTARGET_XSTORMY16_TRUE=
28534 SIDTARGET_XSTORMY16_FALSE='#'
28536 SIDTARGET_XSTORMY16_TRUE='#'
28537 SIDTARGET_XSTORMY16_FALSE=
28540 echo "$as_me:$LINENO: result: $sidtarget_xstormy16" >&5
28541 echo "${ECHO_T}$sidtarget_xstormy16" >&6
28545 ac_config_files="$ac_config_files Makefile vga/Makefile gui/Makefile keyboard/Makefile pic/Makefile pit/Makefile cmos/Makefile dma/Makefile floppy/Makefile unmapped/Makefile harddrv/Makefile cpu/Makefile cpu/memory/Makefile cpu/fpu/Makefile"
28546 cat >confcache <<\_ACEOF
28547 # This file is a shell script that caches the results of configure
28548 # tests run on this system so they can be shared between configure
28549 # scripts and configure runs, see configure's option --config-cache.
28550 # It is not useful on other systems. If it contains results you don't
28551 # want to keep, you may remove or edit it.
28553 # config.status only pays attention to the cache file if you give it
28554 # the --recheck option to rerun configure.
28556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28558 # following values.
28562 # The following way of writing the cache mishandles newlines in values,
28563 # but we know of no workaround that is simple, portable, and efficient.
28564 # So, don't put newlines in cache variables' values.
28565 # Ultrix sh set writes to stderr and can't be redirected directly,
28566 # and sets the high bit in the cache file unless we assign to the vars.
28569 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28571 # `set' does not quote correctly, so add quotes (double-quote
28572 # substitution turns \\\\ into \\, and sed turns \\ into \).
28575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28578 # `set' quotes correctly as required by POSIX, so do not add quotes.
28580 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28589 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28591 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28592 if test -w $cache_file; then
28593 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28594 cat confcache >$cache_file
28596 echo "not updating unwritable cache $cache_file"
28601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28602 # Let make expand exec_prefix.
28603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28607 # trailing colons and then remove the whole line if VPATH becomes empty
28608 # (actually we leave an empty line to preserve line numbers).
28609 if test "x$srcdir" = x.; then
28610 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28611 s/:*\$(srcdir):*/:/;
28612 s/:*\${srcdir}:*/:/;
28614 s/^\([^=]*=[ ]*\):*/\1/;
28620 DEFS=-DHAVE_CONFIG_H
28624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28625 # 1. Remove the extension, and $U if already installed.
28626 ac_i=`echo "$ac_i" |
28627 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28629 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28630 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28632 LIBOBJS=$ac_libobjs
28634 LTLIBOBJS=$ac_ltlibobjs
28637 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28638 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28639 Usually this means the macro was only invoked conditionally." >&5
28640 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28641 Usually this means the macro was only invoked conditionally." >&2;}
28642 { (exit 1); exit 1; }; }
28644 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28645 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28646 Usually this means the macro was only invoked conditionally." >&5
28647 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28648 Usually this means the macro was only invoked conditionally." >&2;}
28649 { (exit 1); exit 1; }; }
28651 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28652 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28653 Usually this means the macro was only invoked conditionally." >&5
28654 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28655 Usually this means the macro was only invoked conditionally." >&2;}
28656 { (exit 1); exit 1; }; }
28658 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28659 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28660 Usually this means the macro was only invoked conditionally." >&5
28661 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28662 Usually this means the macro was only invoked conditionally." >&2;}
28663 { (exit 1); exit 1; }; }
28665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28666 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28667 Usually this means the macro was only invoked conditionally." >&5
28668 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28669 Usually this means the macro was only invoked conditionally." >&2;}
28670 { (exit 1); exit 1; }; }
28672 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28673 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28674 Usually this means the macro was only invoked conditionally." >&5
28675 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28676 Usually this means the macro was only invoked conditionally." >&2;}
28677 { (exit 1); exit 1; }; }
28679 if test -z "${HAVE_XOS_HEADER_TRUE}" && test -z "${HAVE_XOS_HEADER_FALSE}"; then
28680 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XOS_HEADER\" was never defined.
28681 Usually this means the macro was only invoked conditionally." >&5
28682 echo "$as_me: error: conditional \"HAVE_XOS_HEADER\" was never defined.
28683 Usually this means the macro was only invoked conditionally." >&2;}
28684 { (exit 1); exit 1; }; }
28686 if test -z "${SIDTARGET_ARM_TRUE}" && test -z "${SIDTARGET_ARM_FALSE}"; then
28687 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_ARM\" was never defined.
28688 Usually this means the macro was only invoked conditionally." >&5
28689 echo "$as_me: error: conditional \"SIDTARGET_ARM\" was never defined.
28690 Usually this means the macro was only invoked conditionally." >&2;}
28691 { (exit 1); exit 1; }; }
28693 if test -z "${SIDTARGET_X86_TRUE}" && test -z "${SIDTARGET_X86_FALSE}"; then
28694 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_X86\" was never defined.
28695 Usually this means the macro was only invoked conditionally." >&5
28696 echo "$as_me: error: conditional \"SIDTARGET_X86\" was never defined.
28697 Usually this means the macro was only invoked conditionally." >&2;}
28698 { (exit 1); exit 1; }; }
28700 if test -z "${SIDTARGET_MIPS_TRUE}" && test -z "${SIDTARGET_MIPS_FALSE}"; then
28701 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_MIPS\" was never defined.
28702 Usually this means the macro was only invoked conditionally." >&5
28703 echo "$as_me: error: conditional \"SIDTARGET_MIPS\" was never defined.
28704 Usually this means the macro was only invoked conditionally." >&2;}
28705 { (exit 1); exit 1; }; }
28707 if test -z "${SIDTARGET_M32R_TRUE}" && test -z "${SIDTARGET_M32R_FALSE}"; then
28708 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_M32R\" was never defined.
28709 Usually this means the macro was only invoked conditionally." >&5
28710 echo "$as_me: error: conditional \"SIDTARGET_M32R\" was never defined.
28711 Usually this means the macro was only invoked conditionally." >&2;}
28712 { (exit 1); exit 1; }; }
28714 if test -z "${SIDTARGET_M68K_TRUE}" && test -z "${SIDTARGET_M68K_FALSE}"; then
28715 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_M68K\" was never defined.
28716 Usually this means the macro was only invoked conditionally." >&5
28717 echo "$as_me: error: conditional \"SIDTARGET_M68K\" was never defined.
28718 Usually this means the macro was only invoked conditionally." >&2;}
28719 { (exit 1); exit 1; }; }
28721 if test -z "${SIDTARGET_MEP_TRUE}" && test -z "${SIDTARGET_MEP_FALSE}"; then
28722 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_MEP\" was never defined.
28723 Usually this means the macro was only invoked conditionally." >&5
28724 echo "$as_me: error: conditional \"SIDTARGET_MEP\" was never defined.
28725 Usually this means the macro was only invoked conditionally." >&2;}
28726 { (exit 1); exit 1; }; }
28728 if test -z "${SIDTARGET_MT_TRUE}" && test -z "${SIDTARGET_MT_FALSE}"; then
28729 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_MT\" was never defined.
28730 Usually this means the macro was only invoked conditionally." >&5
28731 echo "$as_me: error: conditional \"SIDTARGET_MT\" was never defined.
28732 Usually this means the macro was only invoked conditionally." >&2;}
28733 { (exit 1); exit 1; }; }
28735 if test -z "${SIDTARGET_PPC_TRUE}" && test -z "${SIDTARGET_PPC_FALSE}"; then
28736 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_PPC\" was never defined.
28737 Usually this means the macro was only invoked conditionally." >&5
28738 echo "$as_me: error: conditional \"SIDTARGET_PPC\" was never defined.
28739 Usually this means the macro was only invoked conditionally." >&2;}
28740 { (exit 1); exit 1; }; }
28742 if test -z "${SIDTARGET_SH_TRUE}" && test -z "${SIDTARGET_SH_FALSE}"; then
28743 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_SH\" was never defined.
28744 Usually this means the macro was only invoked conditionally." >&5
28745 echo "$as_me: error: conditional \"SIDTARGET_SH\" was never defined.
28746 Usually this means the macro was only invoked conditionally." >&2;}
28747 { (exit 1); exit 1; }; }
28749 if test -z "${SIDTARGET_SH64_TRUE}" && test -z "${SIDTARGET_SH64_FALSE}"; then
28750 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_SH64\" was never defined.
28751 Usually this means the macro was only invoked conditionally." >&5
28752 echo "$as_me: error: conditional \"SIDTARGET_SH64\" was never defined.
28753 Usually this means the macro was only invoked conditionally." >&2;}
28754 { (exit 1); exit 1; }; }
28756 if test -z "${SIDTARGET_XSTORMY16_TRUE}" && test -z "${SIDTARGET_XSTORMY16_FALSE}"; then
28757 { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_XSTORMY16\" was never defined.
28758 Usually this means the macro was only invoked conditionally." >&5
28759 echo "$as_me: error: conditional \"SIDTARGET_XSTORMY16\" was never defined.
28760 Usually this means the macro was only invoked conditionally." >&2;}
28761 { (exit 1); exit 1; }; }
28764 : ${CONFIG_STATUS=./config.status}
28765 ac_clean_files_save=$ac_clean_files
28766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28767 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28768 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28769 cat >$CONFIG_STATUS <<_ACEOF
28771 # Generated by $as_me.
28772 # Run this file to recreate the current configuration.
28773 # Compiler output produced by configure, useful for debugging
28774 # configure, is in config.log if it exists.
28777 ac_cs_recheck=false
28779 SHELL=\${CONFIG_SHELL-$SHELL}
28782 cat >>$CONFIG_STATUS <<\_ACEOF
28783 ## --------------------- ##
28784 ## M4sh Initialization. ##
28785 ## --------------------- ##
28787 # Be Bourne compatible
28788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28791 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28792 # is contrary to our usage. Disable this feature.
28793 alias -g '${1+"$@"}'='"$@"'
28794 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28797 DUALCASE=1; export DUALCASE # for MKS sh
28799 # Support unset when possible.
28800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28807 # Work around bugs in pre-3.0 UWIN ksh.
28808 $as_unset ENV MAIL MAILPATH
28815 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28816 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28817 LC_TELEPHONE LC_TIME
28819 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28820 eval $as_var=C; export $as_var
28826 # Required to use basename.
28827 if expr a : '\(a\)' >/dev/null 2>&1; then
28833 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28834 as_basename=basename
28840 # Name of the executable.
28841 as_me=`$as_basename "$0" ||
28842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28843 X"$0" : 'X\(//\)$' \| \
28844 X"$0" : 'X\(/\)$' \| \
28845 . : '\(.\)' 2>/dev/null ||
28847 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28848 /^X\/\(\/\/\)$/{ s//\1/; q; }
28849 /^X\/\(\/\).*/{ s//\1/; q; }
28853 # PATH needs CR, and LINENO needs CR and PATH.
28854 # Avoid depending upon Character Ranges.
28855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28858 as_cr_digits='0123456789'
28859 as_cr_alnum=$as_cr_Letters$as_cr_digits
28861 # The user is always right.
28862 if test "${PATH_SEPARATOR+set}" != set; then
28863 echo "#! /bin/sh" >conf$$.sh
28864 echo "exit 0" >>conf$$.sh
28866 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28875 as_lineno_1=$LINENO
28876 as_lineno_2=$LINENO
28877 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28878 test "x$as_lineno_1" != "x$as_lineno_2" &&
28879 test "x$as_lineno_3" = "x$as_lineno_2" || {
28880 # Find who we are. Look in the path if we contain no path at all
28883 *[\\/]* ) as_myself=$0 ;;
28884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28885 for as_dir in $PATH
28888 test -z "$as_dir" && as_dir=.
28889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28894 # We did not find ourselves, most probably we were run as `sh COMMAND'
28895 # in which case we are not to be found in the path.
28896 if test "x$as_myself" = x; then
28899 if test ! -f "$as_myself"; then
28900 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28901 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28902 { (exit 1); exit 1; }; }
28904 case $CONFIG_SHELL in
28906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28907 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28910 test -z "$as_dir" && as_dir=.
28911 for as_base in sh bash ksh sh5; do
28914 if ("$as_dir/$as_base" -c '
28915 as_lineno_1=$LINENO
28916 as_lineno_2=$LINENO
28917 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28918 test "x$as_lineno_1" != "x$as_lineno_2" &&
28919 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28920 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28921 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28922 CONFIG_SHELL=$as_dir/$as_base
28923 export CONFIG_SHELL
28924 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28932 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28933 # uniformly replaced by the line number. The first 'sed' inserts a
28934 # line-number line before each line; the second 'sed' does the real
28935 # work. The second script uses 'N' to pair each line-number line
28936 # with the numbered line, and appends trailing '-' during
28937 # substitution so that $LINENO is not a special case at line end.
28938 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28939 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28940 sed '=' <$as_myself |
28945 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28948 s,^['$as_cr_digits']*\n,,
28949 ' >$as_me.lineno &&
28950 chmod +x $as_me.lineno ||
28951 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28952 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28953 { (exit 1); exit 1; }; }
28955 # Don't try to exec as it changes $[0], causing all sort of problems
28956 # (the dirname of $[0] is not the place where we might find the
28957 # original and so on. Autoconf is especially sensible to this).
28959 # Exit status is that of the last command.
28964 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28965 *c*,-n*) ECHO_N= ECHO_C='
28967 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28968 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28971 if expr a : '\(a\)' >/dev/null 2>&1; then
28977 rm -f conf$$ conf$$.exe conf$$.file
28979 if ln -s conf$$.file conf$$ 2>/dev/null; then
28980 # We could just check for DJGPP; but this test a) works b) is more generic
28981 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28982 if test -f conf$$.exe; then
28983 # Don't use ln at all; we don't have any links
28988 elif ln conf$$.file conf$$ 2>/dev/null; then
28993 rm -f conf$$ conf$$.exe conf$$.file
28995 if mkdir -p . 2>/dev/null; then
28998 test -d ./-p && rmdir ./-p
29002 as_executable_p="test -f"
29004 # Sed expression to map a string onto a valid CPP name.
29005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29007 # Sed expression to map a string onto a valid variable name.
29008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29012 # We need space, tab and new line, in precisely that order.
29022 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29023 # report actual input values of CONFIG_FILES etc. instead of their
29024 # values after options handling. Logging --version etc. is OK.
29028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29029 ## Running $as_me. ##
29034 This file was extended by $as_me, which was
29035 generated by GNU Autoconf 2.59. Invocation command line was
29037 CONFIG_FILES = $CONFIG_FILES
29038 CONFIG_HEADERS = $CONFIG_HEADERS
29039 CONFIG_LINKS = $CONFIG_LINKS
29040 CONFIG_COMMANDS = $CONFIG_COMMANDS
29044 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29048 # Files that config.status was made for.
29049 if test -n "$ac_config_files"; then
29050 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29053 if test -n "$ac_config_headers"; then
29054 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29057 if test -n "$ac_config_links"; then
29058 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29061 if test -n "$ac_config_commands"; then
29062 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29065 cat >>$CONFIG_STATUS <<\_ACEOF
29068 \`$as_me' instantiates files from templates according to the
29069 current configuration.
29071 Usage: $0 [OPTIONS] [FILE]...
29073 -h, --help print this help, then exit
29074 -V, --version print version number, then exit
29075 -q, --quiet do not print progress messages
29076 -d, --debug don't remove temporary files
29077 --recheck update $as_me by reconfiguring in the same conditions
29078 --file=FILE[:TEMPLATE]
29079 instantiate the configuration file FILE
29080 --header=FILE[:TEMPLATE]
29081 instantiate the configuration header FILE
29083 Configuration files:
29086 Configuration headers:
29089 Configuration commands:
29092 Report bugs to <bug-autoconf@gnu.org>."
29095 cat >>$CONFIG_STATUS <<_ACEOF
29098 configured by $0, generated by GNU Autoconf 2.59,
29099 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29101 Copyright (C) 2003 Free Software Foundation, Inc.
29102 This config.status script is free software; the Free Software Foundation
29103 gives unlimited permission to copy, distribute and modify it."
29108 cat >>$CONFIG_STATUS <<\_ACEOF
29109 # If no file are specified by the user, then we need to provide default
29110 # value. By we need to know if files were specified by the user.
29116 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29117 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29125 *) # This is not an option, so the user has probably given explicit
29128 ac_need_defaults=false;;
29132 # Handling of the options.
29134 cat >>$CONFIG_STATUS <<\_ACEOF
29135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29137 --version | --vers* | -V )
29138 echo "$ac_cs_version"; exit 0 ;;
29140 # Conflict between --help and --header
29141 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29142 Try \`$0 --help' for more information." >&5
29143 echo "$as_me: error: ambiguous option: $1
29144 Try \`$0 --help' for more information." >&2;}
29145 { (exit 1); exit 1; }; };;
29146 --help | --hel | -h )
29147 echo "$ac_cs_usage"; exit 0 ;;
29148 --debug | --d* | -d )
29150 --file | --fil | --fi | --f )
29152 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29153 ac_need_defaults=false;;
29154 --header | --heade | --head | --hea )
29156 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29157 ac_need_defaults=false;;
29158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29159 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29162 # This is an error.
29163 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29164 Try \`$0 --help' for more information." >&5
29165 echo "$as_me: error: unrecognized option: $1
29166 Try \`$0 --help' for more information." >&2;}
29167 { (exit 1); exit 1; }; } ;;
29169 *) ac_config_targets="$ac_config_targets $1" ;;
29175 ac_configure_extra_args=
29177 if $ac_cs_silent; then
29179 ac_configure_extra_args="$ac_configure_extra_args --silent"
29183 cat >>$CONFIG_STATUS <<_ACEOF
29184 if \$ac_cs_recheck; then
29185 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29186 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29191 cat >>$CONFIG_STATUS <<_ACEOF
29193 # INIT-COMMANDS section.
29196 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29202 cat >>$CONFIG_STATUS <<\_ACEOF
29203 for ac_config_target in $ac_config_targets
29205 case "$ac_config_target" in
29206 # Handling of arguments.
29207 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29208 "vga/Makefile" ) CONFIG_FILES="$CONFIG_FILES vga/Makefile" ;;
29209 "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
29210 "keyboard/Makefile" ) CONFIG_FILES="$CONFIG_FILES keyboard/Makefile" ;;
29211 "pic/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
29212 "pit/Makefile" ) CONFIG_FILES="$CONFIG_FILES pit/Makefile" ;;
29213 "cmos/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmos/Makefile" ;;
29214 "dma/Makefile" ) CONFIG_FILES="$CONFIG_FILES dma/Makefile" ;;
29215 "floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES floppy/Makefile" ;;
29216 "unmapped/Makefile" ) CONFIG_FILES="$CONFIG_FILES unmapped/Makefile" ;;
29217 "harddrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES harddrv/Makefile" ;;
29218 "cpu/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
29219 "cpu/memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/memory/Makefile" ;;
29220 "cpu/fpu/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/fpu/Makefile" ;;
29221 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29222 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29223 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29224 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29225 { (exit 1); exit 1; }; };;
29229 # If the user did not use the arguments to specify the items to instantiate,
29230 # then the envvar interface is used. Set only those that are not.
29231 # We use the long form for the default assignment because of an extremely
29232 # bizarre bug on SunOS 4.1.3.
29233 if $ac_need_defaults; then
29234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29239 # Have a temporary directory for convenience. Make it in the build tree
29240 # simply because there is no reason to put it here, and in addition,
29241 # creating and moving files from /tmp can sometimes cause problems.
29242 # Create a temporary directory, and hook for its removal unless debugging.
29245 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29246 trap '{ (exit 1); exit 1; }' 1 2 13 15
29249 # Create a (secure) tmp directory for tmp files.
29252 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29253 test -n "$tmp" && test -d "$tmp"
29256 tmp=./confstat$$-$RANDOM
29257 (umask 077 && mkdir $tmp)
29260 echo "$me: cannot create a temporary directory in ." >&2
29261 { (exit 1); exit 1; }
29266 cat >>$CONFIG_STATUS <<_ACEOF
29269 # CONFIG_FILES section.
29272 # No need to generate the scripts if there are no CONFIG_FILES.
29273 # This happens for instance when ./config.status config.h
29274 if test -n "\$CONFIG_FILES"; then
29275 # Protect against being on the right side of a sed subst in config.status.
29276 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29277 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29278 s,@SHELL@,$SHELL,;t t
29279 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29280 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29281 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29282 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29283 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29284 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29285 s,@exec_prefix@,$exec_prefix,;t t
29286 s,@prefix@,$prefix,;t t
29287 s,@program_transform_name@,$program_transform_name,;t t
29288 s,@bindir@,$bindir,;t t
29289 s,@sbindir@,$sbindir,;t t
29290 s,@libexecdir@,$libexecdir,;t t
29291 s,@datadir@,$datadir,;t t
29292 s,@sysconfdir@,$sysconfdir,;t t
29293 s,@sharedstatedir@,$sharedstatedir,;t t
29294 s,@localstatedir@,$localstatedir,;t t
29295 s,@libdir@,$libdir,;t t
29296 s,@includedir@,$includedir,;t t
29297 s,@oldincludedir@,$oldincludedir,;t t
29298 s,@infodir@,$infodir,;t t
29299 s,@mandir@,$mandir,;t t
29300 s,@build_alias@,$build_alias,;t t
29301 s,@host_alias@,$host_alias,;t t
29302 s,@target_alias@,$target_alias,;t t
29303 s,@DEFS@,$DEFS,;t t
29304 s,@ECHO_C@,$ECHO_C,;t t
29305 s,@ECHO_N@,$ECHO_N,;t t
29306 s,@ECHO_T@,$ECHO_T,;t t
29307 s,@LIBS@,$LIBS,;t t
29308 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29309 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29310 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29311 s,@CYGPATH_W@,$CYGPATH_W,;t t
29312 s,@PACKAGE@,$PACKAGE,;t t
29313 s,@VERSION@,$VERSION,;t t
29314 s,@ACLOCAL@,$ACLOCAL,;t t
29315 s,@AUTOCONF@,$AUTOCONF,;t t
29316 s,@AUTOMAKE@,$AUTOMAKE,;t t
29317 s,@AUTOHEADER@,$AUTOHEADER,;t t
29318 s,@MAKEINFO@,$MAKEINFO,;t t
29319 s,@install_sh@,$install_sh,;t t
29320 s,@STRIP@,$STRIP,;t t
29321 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29322 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29323 s,@mkdir_p@,$mkdir_p,;t t
29325 s,@SET_MAKE@,$SET_MAKE,;t t
29326 s,@am__leading_dot@,$am__leading_dot,;t t
29327 s,@AMTAR@,$AMTAR,;t t
29328 s,@am__tar@,$am__tar,;t t
29329 s,@am__untar@,$am__untar,;t t
29330 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29331 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29332 s,@MAINT@,$MAINT,;t t
29333 s,@build@,$build,;t t
29334 s,@build_cpu@,$build_cpu,;t t
29335 s,@build_vendor@,$build_vendor,;t t
29336 s,@build_os@,$build_os,;t t
29337 s,@host@,$host,;t t
29338 s,@host_cpu@,$host_cpu,;t t
29339 s,@host_vendor@,$host_vendor,;t t
29340 s,@host_os@,$host_os,;t t
29342 s,@CFLAGS@,$CFLAGS,;t t
29343 s,@LDFLAGS@,$LDFLAGS,;t t
29344 s,@CPPFLAGS@,$CPPFLAGS,;t t
29345 s,@ac_ct_CC@,$ac_ct_CC,;t t
29346 s,@EXEEXT@,$EXEEXT,;t t
29347 s,@OBJEXT@,$OBJEXT,;t t
29348 s,@DEPDIR@,$DEPDIR,;t t
29349 s,@am__include@,$am__include,;t t
29350 s,@am__quote@,$am__quote,;t t
29351 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29352 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29353 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29354 s,@CCDEPMODE@,$CCDEPMODE,;t t
29355 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29356 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29357 s,@EGREP@,$EGREP,;t t
29358 s,@LN_S@,$LN_S,;t t
29359 s,@ECHO@,$ECHO,;t t
29361 s,@ac_ct_AR@,$ac_ct_AR,;t t
29362 s,@RANLIB@,$RANLIB,;t t
29363 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29366 s,@CXXFLAGS@,$CXXFLAGS,;t t
29367 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29368 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29369 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29370 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29371 s,@CXXCPP@,$CXXCPP,;t t
29373 s,@FFLAGS@,$FFLAGS,;t t
29374 s,@ac_ct_F77@,$ac_ct_F77,;t t
29375 s,@LIBTOOL@,$LIBTOOL,;t t
29376 s,@X_CFLAGS@,$X_CFLAGS,;t t
29377 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29378 s,@X_LIBS@,$X_LIBS,;t t
29379 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29380 s,@DYNAMIC_VAR@,$DYNAMIC_VAR,;t t
29381 s,@AS_DYNAMIC_OBJS@,$AS_DYNAMIC_OBJS,;t t
29382 s,@AS_DYNAMIC_INCS@,$AS_DYNAMIC_INCS,;t t
29383 s,@IOAPIC_OBJS@,$IOAPIC_OBJS,;t t
29384 s,@APIC_OBJS@,$APIC_OBJS,;t t
29385 s,@BX_SPLIT_HD_SUPPORT@,$BX_SPLIT_HD_SUPPORT,;t t
29386 s,@NE2K_OBJS@,$NE2K_OBJS,;t t
29387 s,@PCI_OBJ@,$PCI_OBJ,;t t
29388 s,@SUFFIX_LINE@,$SUFFIX_LINE,;t t
29389 s,@CPP_SUFFIX@,$CPP_SUFFIX,;t t
29390 s,@DEBUGGER_VAR@,$DEBUGGER_VAR,;t t
29391 s,@DISASM_VAR@,$DISASM_VAR,;t t
29392 s,@READLINE_LIB@,$READLINE_LIB,;t t
29393 s,@BX_LOADER_OBJS@,$BX_LOADER_OBJS,;t t
29394 s,@INSTRUMENT_DIR@,$INSTRUMENT_DIR,;t t
29395 s,@INSTRUMENT_VAR@,$INSTRUMENT_VAR,;t t
29396 s,@VIDEO_OBJS@,$VIDEO_OBJS,;t t
29397 s,@FPU_VAR@,$FPU_VAR,;t t
29398 s,@FPU_GLUE_OBJ@,$FPU_GLUE_OBJ,;t t
29399 s,@CDROM_OBJS@,$CDROM_OBJS,;t t
29400 s,@SB16_OBJS@,$SB16_OBJS,;t t
29401 s,@IODEV_LIB_VAR@,$IODEV_LIB_VAR,;t t
29402 s,@NONINLINE_VAR@,$NONINLINE_VAR,;t t
29403 s,@INLINE_VAR@,$INLINE_VAR,;t t
29404 s,@EXTERNAL_DEPENDENCY@,$EXTERNAL_DEPENDENCY,;t t
29405 s,@HAVE_XOS_HEADER_TRUE@,$HAVE_XOS_HEADER_TRUE,;t t
29406 s,@HAVE_XOS_HEADER_FALSE@,$HAVE_XOS_HEADER_FALSE,;t t
29407 s,@RFB_LIBS@,$RFB_LIBS,;t t
29408 s,@GUI_OBJS@,$GUI_OBJS,;t t
29409 s,@GUI_LINK_OPTS@,$GUI_LINK_OPTS,;t t
29410 s,@GUI_LINK_OPTS_TERM@,$GUI_LINK_OPTS_TERM,;t t
29411 s,@DASH@,$DASH,;t t
29412 s,@SLASH@,$SLASH,;t t
29413 s,@CXXFP@,$CXXFP,;t t
29416 s,@MAKELIB@,$MAKELIB,;t t
29417 s,@RMCOMMAND@,$RMCOMMAND,;t t
29418 s,@LINK@,$LINK,;t t
29420 s,@PRIMARY_TARGET@,$PRIMARY_TARGET,;t t
29421 s,@COMMAND_SEPARATOR@,$COMMAND_SEPARATOR,;t t
29422 s,@CD_UP_ONE@,$CD_UP_ONE,;t t
29423 s,@CD_UP_TWO@,$CD_UP_TWO,;t t
29424 s,@GZIP@,$GZIP,;t t
29426 s,@sidtarget_arm@,$sidtarget_arm,;t t
29427 s,@SIDTARGET_ARM_TRUE@,$SIDTARGET_ARM_TRUE,;t t
29428 s,@SIDTARGET_ARM_FALSE@,$SIDTARGET_ARM_FALSE,;t t
29429 s,@sidtarget_x86@,$sidtarget_x86,;t t
29430 s,@SIDTARGET_X86_TRUE@,$SIDTARGET_X86_TRUE,;t t
29431 s,@SIDTARGET_X86_FALSE@,$SIDTARGET_X86_FALSE,;t t
29432 s,@sidtarget_mips@,$sidtarget_mips,;t t
29433 s,@SIDTARGET_MIPS_TRUE@,$SIDTARGET_MIPS_TRUE,;t t
29434 s,@SIDTARGET_MIPS_FALSE@,$SIDTARGET_MIPS_FALSE,;t t
29435 s,@sidtarget_m32r@,$sidtarget_m32r,;t t
29436 s,@SIDTARGET_M32R_TRUE@,$SIDTARGET_M32R_TRUE,;t t
29437 s,@SIDTARGET_M32R_FALSE@,$SIDTARGET_M32R_FALSE,;t t
29438 s,@sidtarget_m68k@,$sidtarget_m68k,;t t
29439 s,@SIDTARGET_M68K_TRUE@,$SIDTARGET_M68K_TRUE,;t t
29440 s,@SIDTARGET_M68K_FALSE@,$SIDTARGET_M68K_FALSE,;t t
29441 s,@sidtarget_mep@,$sidtarget_mep,;t t
29442 s,@SIDTARGET_MEP_TRUE@,$SIDTARGET_MEP_TRUE,;t t
29443 s,@SIDTARGET_MEP_FALSE@,$SIDTARGET_MEP_FALSE,;t t
29444 s,@sidtarget_mt@,$sidtarget_mt,;t t
29445 s,@SIDTARGET_MT_TRUE@,$SIDTARGET_MT_TRUE,;t t
29446 s,@SIDTARGET_MT_FALSE@,$SIDTARGET_MT_FALSE,;t t
29447 s,@sidtarget_ppc@,$sidtarget_ppc,;t t
29448 s,@SIDTARGET_PPC_TRUE@,$SIDTARGET_PPC_TRUE,;t t
29449 s,@SIDTARGET_PPC_FALSE@,$SIDTARGET_PPC_FALSE,;t t
29450 s,@sidtarget_sh@,$sidtarget_sh,;t t
29451 s,@SIDTARGET_SH_TRUE@,$SIDTARGET_SH_TRUE,;t t
29452 s,@SIDTARGET_SH_FALSE@,$SIDTARGET_SH_FALSE,;t t
29453 s,@sidtarget_sh64@,$sidtarget_sh64,;t t
29454 s,@SIDTARGET_SH64_TRUE@,$SIDTARGET_SH64_TRUE,;t t
29455 s,@SIDTARGET_SH64_FALSE@,$SIDTARGET_SH64_FALSE,;t t
29456 s,@sidtarget_xstormy16@,$sidtarget_xstormy16,;t t
29457 s,@SIDTARGET_XSTORMY16_TRUE@,$SIDTARGET_XSTORMY16_TRUE,;t t
29458 s,@SIDTARGET_XSTORMY16_FALSE@,$SIDTARGET_XSTORMY16_FALSE,;t t
29459 s,@LIBOBJS@,$LIBOBJS,;t t
29460 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29465 cat >>$CONFIG_STATUS <<\_ACEOF
29466 # Split the substitutions into bite-sized pieces for seds with
29467 # small command number limits, like on Digital OSF/1 and HP-UX.
29468 ac_max_sed_lines=48
29469 ac_sed_frag=1 # Number of current file.
29470 ac_beg=1 # First line for current file.
29471 ac_end=$ac_max_sed_lines # Line after last line for current file.
29474 while $ac_more_lines; do
29475 if test $ac_beg -gt 1; then
29476 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29478 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29480 if test ! -s $tmp/subs.frag; then
29481 ac_more_lines=false
29483 # The purpose of the label and of the branching condition is to
29484 # speed up the sed processing (if there are no `@' at all, there
29485 # is no need to browse any of the substitutions).
29486 # These are the two extra sed commands mentioned above.
29488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29489 if test -z "$ac_sed_cmds"; then
29490 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29492 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29494 ac_sed_frag=`expr $ac_sed_frag + 1`
29496 ac_end=`expr $ac_end + $ac_max_sed_lines`
29499 if test -z "$ac_sed_cmds"; then
29502 fi # test -n "$CONFIG_FILES"
29505 cat >>$CONFIG_STATUS <<\_ACEOF
29506 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29509 - | *:- | *:-:* ) # input from stdin
29511 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29512 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29513 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29515 * ) ac_file_in=$ac_file.in ;;
29518 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29519 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29521 X"$ac_file" : 'X\(//\)[^/]' \| \
29522 X"$ac_file" : 'X\(//\)$' \| \
29523 X"$ac_file" : 'X\(/\)' \| \
29524 . : '\(.\)' 2>/dev/null ||
29526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29528 /^X\(\/\/\)$/{ s//\1/; q; }
29529 /^X\(\/\).*/{ s//\1/; q; }
29531 { if $as_mkdir_p; then
29536 while test ! -d "$as_dir"; do
29537 as_dirs="$as_dir $as_dirs"
29538 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29540 X"$as_dir" : 'X\(//\)[^/]' \| \
29541 X"$as_dir" : 'X\(//\)$' \| \
29542 X"$as_dir" : 'X\(/\)' \| \
29543 . : '\(.\)' 2>/dev/null ||
29545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29547 /^X\(\/\/\)$/{ s//\1/; q; }
29548 /^X\(\/\).*/{ s//\1/; q; }
29551 test ! -n "$as_dirs" || mkdir $as_dirs
29552 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29553 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29554 { (exit 1); exit 1; }; }; }
29558 if test "$ac_dir" != .; then
29559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29560 # A "../" for each directory in $ac_dir_suffix.
29561 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29563 ac_dir_suffix= ac_top_builddir=
29567 .) # No --srcdir option. We are building in place.
29569 if test -z "$ac_top_builddir"; then
29572 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29574 [\\/]* | ?:[\\/]* ) # Absolute path.
29575 ac_srcdir=$srcdir$ac_dir_suffix;
29576 ac_top_srcdir=$srcdir ;;
29577 *) # Relative path.
29578 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29579 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29582 # Do not use `cd foo && pwd` to compute absolute paths, because
29583 # the directories may not exist.
29585 .) ac_abs_builddir="$ac_dir";;
29588 .) ac_abs_builddir=`pwd`;;
29589 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29590 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29593 case $ac_abs_builddir in
29594 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29596 case ${ac_top_builddir}. in
29597 .) ac_abs_top_builddir=$ac_abs_builddir;;
29598 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29599 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29602 case $ac_abs_builddir in
29603 .) ac_abs_srcdir=$ac_srcdir;;
29606 .) ac_abs_srcdir=$ac_abs_builddir;;
29607 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29608 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29611 case $ac_abs_builddir in
29612 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29614 case $ac_top_srcdir in
29615 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29616 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29617 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29623 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29624 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29627 if test x"$ac_file" != x-; then
29628 { echo "$as_me:$LINENO: creating $ac_file" >&5
29629 echo "$as_me: creating $ac_file" >&6;}
29632 # Let's still pretend it is `configure' which instantiates (i.e., don't
29633 # use $as_me), people would be surprised to read:
29634 # /* config.h. Generated by config.status. */
29635 if test x"$ac_file" = x-; then
29638 configure_input="$ac_file. "
29640 configure_input=$configure_input"Generated from `echo $ac_file_in |
29641 sed 's,.*/,,'` by configure."
29643 # First look for the input files in the build tree, otherwise in the
29645 ac_file_inputs=`IFS=:
29646 for f in $ac_file_in; do
29648 -) echo $tmp/stdin ;;
29650 # Absolute (can't be DOS-style, as IFS=:)
29651 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29652 echo "$as_me: error: cannot find input file: $f" >&2;}
29653 { (exit 1); exit 1; }; }
29656 if test -f "$f"; then
29659 elif test -f "$srcdir/$f"; then
29664 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29665 echo "$as_me: error: cannot find input file: $f" >&2;}
29666 { (exit 1); exit 1; }; }
29669 done` || { (exit 1); exit 1; }
29671 cat >>$CONFIG_STATUS <<_ACEOF
29675 cat >>$CONFIG_STATUS <<\_ACEOF
29677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29678 s,@configure_input@,$configure_input,;t t
29679 s,@srcdir@,$ac_srcdir,;t t
29680 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29681 s,@top_srcdir@,$ac_top_srcdir,;t t
29682 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29683 s,@builddir@,$ac_builddir,;t t
29684 s,@abs_builddir@,$ac_abs_builddir,;t t
29685 s,@top_builddir@,$ac_top_builddir,;t t
29686 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29687 s,@INSTALL@,$ac_INSTALL,;t t
29688 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29690 if test x"$ac_file" != x-; then
29691 mv $tmp/out $ac_file
29699 cat >>$CONFIG_STATUS <<\_ACEOF
29702 # CONFIG_HEADER section.
29705 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29706 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29708 # ac_d sets the value in "#define NAME VALUE" lines.
29709 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29710 ac_dB='[ ].*$,\1#\2'
29713 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29714 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29715 ac_uB='$,\1#\2define\3'
29719 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29722 - | *:- | *:-:* ) # input from stdin
29724 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29726 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29727 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29728 * ) ac_file_in=$ac_file.in ;;
29731 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29732 echo "$as_me: creating $ac_file" >&6;}
29734 # First look for the input files in the build tree, otherwise in the
29736 ac_file_inputs=`IFS=:
29737 for f in $ac_file_in; do
29739 -) echo $tmp/stdin ;;
29741 # Absolute (can't be DOS-style, as IFS=:)
29742 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29743 echo "$as_me: error: cannot find input file: $f" >&2;}
29744 { (exit 1); exit 1; }; }
29745 # Do quote $f, to prevent DOS paths from being IFS'd.
29748 if test -f "$f"; then
29751 elif test -f "$srcdir/$f"; then
29756 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29757 echo "$as_me: error: cannot find input file: $f" >&2;}
29758 { (exit 1); exit 1; }; }
29761 done` || { (exit 1); exit 1; }
29762 # Remove the trailing spaces.
29763 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29767 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29768 # `conftest.undefs', that substitutes the proper values into
29769 # config.h.in to produce config.h. The first handles `#define'
29770 # templates, and the second `#undef' templates.
29771 # And first: Protect against being on the right side of a sed subst in
29772 # config.status. Protect against being in an unquoted here document
29773 # in config.status.
29774 rm -f conftest.defines conftest.undefs
29775 # Using a here document instead of a string reduces the quoting nightmare.
29776 # Putting comments in sed scripts is not portable.
29778 # `end' is used to avoid that the second main sed command (meant for
29779 # 0-ary CPP macros) applies to n-ary macro definitions.
29780 # See the Autoconf documentation for `clear'.
29781 cat >confdef2sed.sed <<\_ACEOF
29786 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29788 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29791 # If some macros were called several times there might be several times
29792 # the same #defines, which is useless. Nevertheless, we may not want to
29793 # sort them, since we want the *last* AC-DEFINE to be honored.
29794 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29795 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29796 rm -f confdef2sed.sed
29798 # This sed command replaces #undef with comments. This is necessary, for
29799 # example, in the case of _POSIX_SOURCE, which is predefined and required
29800 # on some systems where configure will not decide to define it.
29801 cat >>conftest.undefs <<\_ACEOF
29802 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29805 # Break up conftest.defines because some shells have a limit on the size
29806 # of here documents, and old seds have small limits too (100 cmds).
29807 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29808 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29809 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29810 echo ' :' >>$CONFIG_STATUS
29811 rm -f conftest.tail
29812 while grep . conftest.defines >/dev/null
29814 # Write a limited-size here document to $tmp/defines.sed.
29815 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29816 # Speed up: don't consider the non `#define' lines.
29817 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29818 # Work around the forget-to-reset-the-flag bug.
29819 echo 't clr' >>$CONFIG_STATUS
29820 echo ': clr' >>$CONFIG_STATUS
29821 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29823 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29825 mv $tmp/out $tmp/in
29827 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29828 rm -f conftest.defines
29829 mv conftest.tail conftest.defines
29831 rm -f conftest.defines
29832 echo ' fi # grep' >>$CONFIG_STATUS
29833 echo >>$CONFIG_STATUS
29835 # Break up conftest.undefs because some shells have a limit on the size
29836 # of here documents, and old seds have small limits too (100 cmds).
29837 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29838 rm -f conftest.tail
29839 while grep . conftest.undefs >/dev/null
29841 # Write a limited-size here document to $tmp/undefs.sed.
29842 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29843 # Speed up: don't consider the non `#undef'
29844 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29845 # Work around the forget-to-reset-the-flag bug.
29846 echo 't clr' >>$CONFIG_STATUS
29847 echo ': clr' >>$CONFIG_STATUS
29848 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29850 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29852 mv $tmp/out $tmp/in
29854 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29855 rm -f conftest.undefs
29856 mv conftest.tail conftest.undefs
29858 rm -f conftest.undefs
29860 cat >>$CONFIG_STATUS <<\_ACEOF
29861 # Let's still pretend it is `configure' which instantiates (i.e., don't
29862 # use $as_me), people would be surprised to read:
29863 # /* config.h. Generated by config.status. */
29864 if test x"$ac_file" = x-; then
29865 echo "/* Generated by configure. */" >$tmp/config.h
29867 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29869 cat $tmp/in >>$tmp/config.h
29871 if test x"$ac_file" != x-; then
29872 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29874 echo "$as_me: $ac_file is unchanged" >&6;}
29876 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29878 X"$ac_file" : 'X\(//\)[^/]' \| \
29879 X"$ac_file" : 'X\(//\)$' \| \
29880 X"$ac_file" : 'X\(/\)' \| \
29881 . : '\(.\)' 2>/dev/null ||
29883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29885 /^X\(\/\/\)$/{ s//\1/; q; }
29886 /^X\(\/\).*/{ s//\1/; q; }
29888 { if $as_mkdir_p; then
29893 while test ! -d "$as_dir"; do
29894 as_dirs="$as_dir $as_dirs"
29895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29897 X"$as_dir" : 'X\(//\)[^/]' \| \
29898 X"$as_dir" : 'X\(//\)$' \| \
29899 X"$as_dir" : 'X\(/\)' \| \
29900 . : '\(.\)' 2>/dev/null ||
29902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29904 /^X\(\/\/\)$/{ s//\1/; q; }
29905 /^X\(\/\).*/{ s//\1/; q; }
29908 test ! -n "$as_dirs" || mkdir $as_dirs
29909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29911 { (exit 1); exit 1; }; }; }
29914 mv $tmp/config.h $ac_file
29918 rm -f $tmp/config.h
29920 # Compute $ac_file's index in $config_headers.
29922 for _am_header in $config_headers :; do
29923 case $_am_header in
29924 $ac_file | $ac_file:* )
29927 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29930 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29931 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29932 X$ac_file : 'X\(//\)[^/]' \| \
29933 X$ac_file : 'X\(//\)$' \| \
29934 X$ac_file : 'X\(/\)' \| \
29935 . : '\(.\)' 2>/dev/null ||
29937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29939 /^X\(\/\/\)$/{ s//\1/; q; }
29940 /^X\(\/\).*/{ s//\1/; q; }
29941 s/.*/./; q'`/stamp-h$_am_stamp_count
29944 cat >>$CONFIG_STATUS <<\_ACEOF
29947 # CONFIG_COMMANDS section.
29949 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29950 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29951 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29952 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29953 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29954 X"$ac_dest" : 'X\(//\)[^/]' \| \
29955 X"$ac_dest" : 'X\(//\)$' \| \
29956 X"$ac_dest" : 'X\(/\)' \| \
29957 . : '\(.\)' 2>/dev/null ||
29959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29961 /^X\(\/\/\)$/{ s//\1/; q; }
29962 /^X\(\/\).*/{ s//\1/; q; }
29964 { if $as_mkdir_p; then
29969 while test ! -d "$as_dir"; do
29970 as_dirs="$as_dir $as_dirs"
29971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29973 X"$as_dir" : 'X\(//\)[^/]' \| \
29974 X"$as_dir" : 'X\(//\)$' \| \
29975 X"$as_dir" : 'X\(/\)' \| \
29976 . : '\(.\)' 2>/dev/null ||
29978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29980 /^X\(\/\/\)$/{ s//\1/; q; }
29981 /^X\(\/\).*/{ s//\1/; q; }
29984 test ! -n "$as_dirs" || mkdir $as_dirs
29985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29986 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29987 { (exit 1); exit 1; }; }; }
29991 if test "$ac_dir" != .; then
29992 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29993 # A "../" for each directory in $ac_dir_suffix.
29994 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29996 ac_dir_suffix= ac_top_builddir=
30000 .) # No --srcdir option. We are building in place.
30002 if test -z "$ac_top_builddir"; then
30005 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30007 [\\/]* | ?:[\\/]* ) # Absolute path.
30008 ac_srcdir=$srcdir$ac_dir_suffix;
30009 ac_top_srcdir=$srcdir ;;
30010 *) # Relative path.
30011 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30012 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30015 # Do not use `cd foo && pwd` to compute absolute paths, because
30016 # the directories may not exist.
30018 .) ac_abs_builddir="$ac_dir";;
30021 .) ac_abs_builddir=`pwd`;;
30022 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30023 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30026 case $ac_abs_builddir in
30027 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30029 case ${ac_top_builddir}. in
30030 .) ac_abs_top_builddir=$ac_abs_builddir;;
30031 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30032 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30035 case $ac_abs_builddir in
30036 .) ac_abs_srcdir=$ac_srcdir;;
30039 .) ac_abs_srcdir=$ac_abs_builddir;;
30040 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30041 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30044 case $ac_abs_builddir in
30045 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30047 case $ac_top_srcdir in
30048 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30049 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30050 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30055 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30056 echo "$as_me: executing $ac_dest commands" >&6;}
30058 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30059 # Strip MF so we end up with the name of the file.
30060 mf=`echo "$mf" | sed -e 's/:.*$//'`
30061 # Check whether this is an Automake generated Makefile or not.
30062 # We used to match only the files named `Makefile.in', but
30063 # some people rename them; so instead we look at the file content.
30064 # Grep'ing the first line is not enough: some people post-process
30065 # each Makefile.in and add a new line on top of each file to say so.
30066 # So let's grep whole file.
30067 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30068 dirpart=`(dirname "$mf") 2>/dev/null ||
30069 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30070 X"$mf" : 'X\(//\)[^/]' \| \
30071 X"$mf" : 'X\(//\)$' \| \
30072 X"$mf" : 'X\(/\)' \| \
30073 . : '\(.\)' 2>/dev/null ||
30075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30077 /^X\(\/\/\)$/{ s//\1/; q; }
30078 /^X\(\/\).*/{ s//\1/; q; }
30083 # Extract the definition of DEPDIR, am__include, and am__quote
30084 # from the Makefile without running `make'.
30085 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30086 test -z "$DEPDIR" && continue
30087 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30088 test -z "am__include" && continue
30089 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30090 # When using ansi2knr, U may be empty or an underscore; expand it
30091 U=`sed -n 's/^U = //p' < "$mf"`
30092 # Find all dependency output files, they are included files with
30093 # $(DEPDIR) in their names. We invoke sed twice because it is the
30094 # simplest approach to changing $(DEPDIR) to its actual value in the
30096 for file in `sed -n "
30097 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30098 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30099 # Make sure the directory exists.
30100 test -f "$dirpart/$file" && continue
30101 fdir=`(dirname "$file") 2>/dev/null ||
30102 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30103 X"$file" : 'X\(//\)[^/]' \| \
30104 X"$file" : 'X\(//\)$' \| \
30105 X"$file" : 'X\(/\)' \| \
30106 . : '\(.\)' 2>/dev/null ||
30108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30110 /^X\(\/\/\)$/{ s//\1/; q; }
30111 /^X\(\/\).*/{ s//\1/; q; }
30113 { if $as_mkdir_p; then
30114 mkdir -p $dirpart/$fdir
30116 as_dir=$dirpart/$fdir
30118 while test ! -d "$as_dir"; do
30119 as_dirs="$as_dir $as_dirs"
30120 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30122 X"$as_dir" : 'X\(//\)[^/]' \| \
30123 X"$as_dir" : 'X\(//\)$' \| \
30124 X"$as_dir" : 'X\(/\)' \| \
30125 . : '\(.\)' 2>/dev/null ||
30127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30129 /^X\(\/\/\)$/{ s//\1/; q; }
30130 /^X\(\/\).*/{ s//\1/; q; }
30133 test ! -n "$as_dirs" || mkdir $as_dirs
30134 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30135 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30136 { (exit 1); exit 1; }; }; }
30138 # echo "creating $dirpart/$file"
30139 echo '# dummy' > "$dirpart/$file"
30147 cat >>$CONFIG_STATUS <<\_ACEOF
30149 { (exit 0); exit 0; }
30151 chmod +x $CONFIG_STATUS
30152 ac_clean_files=$ac_clean_files_save
30155 # configure is writing to config.log, and then calls config.status.
30156 # config.status does its own redirection, appending to config.log.
30157 # Unfortunately, on DOS this fails, as config.log is still kept open
30158 # by configure, so config.status won't be able to write to it; its
30159 # output is simply discarded. So we exec the FD to /dev/null,
30160 # effectively closing config.log, so it can be properly (re)opened and
30161 # appended to by config.status. When coming back to configure, we
30162 # need to make the FD available again.
30163 if test "$no_create" != yes; then
30165 ac_config_status_args=
30166 test "$silent" = yes &&
30167 ac_config_status_args="$ac_config_status_args --quiet"
30169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30172 # would make configure fail if this is the last instruction.
30173 $ac_cs_success || { (exit 1); exit 1; }