2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
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 "$lt_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 "$lt_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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='GNU OpenMP Runtime Library'
418 PACKAGE_TARNAME='libgomp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
423 # Factoring default headers for most tests.
424 ac_includes_default="\
427 # include <sys/types.h>
430 # include <sys/stat.h>
441 # if !STDC_HEADERS && HAVE_MEMORY_H
447 # include <strings.h>
450 # include <inttypes.h>
460 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 GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
463 # Initialize some variables set by options.
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
475 program_transform_name=s,x,x,
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513 # Accept the important Cygnus configure options, so we can diagnose typos.
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
535 cache_file=config.cache ;;
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 datadir=$ac_optarg ;;
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 eval "enable_$ac_feature='$ac_optarg'" ;;
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
578 -help | --help | --hel | --he | -h)
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
602 -libdir | --libdir | --libdi | --libd)
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 # Obsolete; use --without-fp.
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 sbindir=$ac_optarg ;;
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 sharedstatedir=$ac_optarg ;;
706 -site | --site | --sit)
708 -site=* | --site=* | --sit=*)
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 -version | --version | --versio | --versi | --vers | -V)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 eval "with_$ac_package='$ac_optarg'" ;;
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
757 # Obsolete; use --with-x.
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
809 eval ac_val=$`echo $ac_var`
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
821 eval ac_val=$`echo $ac_var`
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850 test "$silent" = yes && exec 6>/dev/null
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
870 if test ! -r $srcdir/$ac_unique_file; then
874 ac_srcdir_defaulted=no
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CPP_set=${CPP+set}
902 ac_env_CPP_value=$CPP
903 ac_cv_env_CPP_set=${CPP+set}
904 ac_cv_env_CPP_value=$CPP
905 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_env_CPPFLAGS_value=$CPPFLAGS
907 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909 ac_env_FC_set=${FC+set}
911 ac_cv_env_FC_set=${FC+set}
912 ac_cv_env_FC_value=$FC
913 ac_env_FCFLAGS_set=${FCFLAGS+set}
914 ac_env_FCFLAGS_value=$FCFLAGS
915 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916 ac_cv_env_FCFLAGS_value=$FCFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 # Report the --help message.
925 if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
929 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
931 Usage: $0 [OPTION]... [VAR=VALUE]...
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE. See below for descriptions of some of the useful variables.
936 Defaults for the options are specified in brackets.
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
952 Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
963 For better control, use the options below.
965 Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
990 --target=TARGET configure for building compilers for TARGET [HOST]
994 if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --enable-version-specific-runtime-libs
1004 Specify that runtime libraries should be installed
1005 in a compiler-specific directory [default=no]
1006 --enable-generated-files-in-srcdir
1007 put copies of generated files in source dir intended
1008 for creating source tarballs for users without
1009 texinfo bison or flex. [default=no]
1010 --enable-multilib build many library versions (default)
1011 --disable-dependency-tracking speeds up one-time build
1012 --enable-dependency-tracking do not reject slow dependency extractors
1013 --enable-shared[=PKGS]
1014 build shared libraries [default=yes]
1015 --enable-static[=PKGS]
1016 build static libraries [default=yes]
1017 --enable-fast-install[=PKGS]
1018 optimize for fast installation [default=yes]
1019 --disable-libtool-lock avoid locking (might break parallel builds)
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-linux-futex use the Linux futex system call
1024 --enable-tls Use thread-local storage [default=yes]
1025 --enable-symvers=STYLE enables symbol versioning of the shared library
1029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1031 --with-pic try to use only PIC/non-PIC objects [default=use
1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1035 Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1043 FC Fortran compiler command
1044 FCFLAGS Fortran compiler flags
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1052 if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1059 if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 ac_dir_suffix= ac_top_builddir=
1068 .) # No --srcdir option. We are building in place.
1070 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1086 .) ac_abs_builddir="$ac_dir";;
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1133 $ac_configure --help
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1144 GNU OpenMP Runtime Library configure 1.0
1145 generated by GNU Autoconf 2.59
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1218 ac_must_keep_next=false
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1247 -* ) ac_must_keep_next=true ;;
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1276 # The following way of writing the cache mishandles newlines in values,
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1306 if test -n "$ac_subst_files"; then
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -s confdefs.h; then
1328 sed "/^$/d" confdefs.h | sort
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1411 # Check that the precious variables saved in the cache have kept the same
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1435 echo "$as_me: former value: $ac_old_val" >&2;}
1436 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1437 echo "$as_me: current value: $ac_new_val" >&2;}
1438 ac_cache_corrupted=:
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1454 if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494 ac_config_headers="$ac_config_headers config.h"
1501 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1502 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1503 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1504 if test "${enable_version_specific_runtime_libs+set}" = set; then
1505 enableval="$enable_version_specific_runtime_libs"
1507 case "$enableval" in
1509 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1510 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1511 { (exit 1); exit 1; }; } ;;
1515 enable_version_specific_runtime_libs=no
1518 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1519 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1521 # We would like our source tree to be readonly. However when releases or
1522 # pre-releases are generated, the flex/bison generated files as well as the
1523 # various formats of manuals need to be included along with the rest of the
1524 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1526 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1527 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1528 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1529 if test "${enable_generated_files_in_srcdir+set}" = set; then
1530 enableval="$enable_generated_files_in_srcdir"
1532 case "$enableval" in
1534 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1535 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1536 { (exit 1); exit 1; }; } ;;
1540 enable_generated_files_in_srcdir=no
1543 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1544 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1547 if test "$enable_generated_files_in_srcdir" = yes; then
1560 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1562 # You will slowly go insane if you do not grok the following fact: when
1563 # building this library, the top-level /target/ becomes the library's /host/.
1565 # configure then causes --target to default to --host, exactly like any
1566 # other package using autoconf. Therefore, 'target' and 'host' will
1567 # always be the same. This makes sense both for native and cross compilers
1568 # just think about it for a little while. :-)
1570 # Also, if this library is being configured as part of a cross compiler, the
1571 # top-level configure script will pass the "real" host as $with_cross_host.
1573 # Do not delete or change the following two lines. For why, see
1574 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1576 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1577 if test -f $ac_dir/install-sh; then
1579 ac_install_sh="$ac_aux_dir/install-sh -c"
1581 elif test -f $ac_dir/install.sh; then
1583 ac_install_sh="$ac_aux_dir/install.sh -c"
1585 elif test -f $ac_dir/shtool; then
1587 ac_install_sh="$ac_aux_dir/shtool install -c"
1591 if test -z "$ac_aux_dir"; then
1592 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1593 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1594 { (exit 1); exit 1; }; }
1596 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1597 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1598 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1600 # Make sure we can run config.sub.
1601 $ac_config_sub sun4 >/dev/null 2>&1 ||
1602 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1603 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1604 { (exit 1); exit 1; }; }
1606 echo "$as_me:$LINENO: checking build system type" >&5
1607 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1608 if test "${ac_cv_build+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 ac_cv_build_alias=$build_alias
1612 test -z "$ac_cv_build_alias" &&
1613 ac_cv_build_alias=`$ac_config_guess`
1614 test -z "$ac_cv_build_alias" &&
1615 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1616 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1617 { (exit 1); exit 1; }; }
1618 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1624 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1625 echo "${ECHO_T}$ac_cv_build" >&6
1627 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632 echo "$as_me:$LINENO: checking host system type" >&5
1633 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1634 if test "${ac_cv_host+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 ac_cv_host_alias=$host_alias
1638 test -z "$ac_cv_host_alias" &&
1639 ac_cv_host_alias=$ac_cv_build_alias
1640 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1642 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1646 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1647 echo "${ECHO_T}$ac_cv_host" >&6
1649 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654 echo "$as_me:$LINENO: checking target system type" >&5
1655 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1656 if test "${ac_cv_target+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 ac_cv_target_alias=$target_alias
1660 test "x$ac_cv_target_alias" = "x" &&
1661 ac_cv_target_alias=$ac_cv_host_alias
1662 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1664 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1665 { (exit 1); exit 1; }; }
1668 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1669 echo "${ECHO_T}$ac_cv_target" >&6
1670 target=$ac_cv_target
1671 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676 # The aliases save the names the user supplied, while $host etc.
1677 # will get canonicalized.
1678 test -n "$target_alias" &&
1679 test "$program_prefix$program_suffix$program_transform_name" = \
1681 program_prefix=${target_alias}-
1682 target_alias=${target_alias-$host_alias}
1684 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1685 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1686 # 1.9.0: minimum required version
1687 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1688 # of other PACKAGE_* variables will, however, and there's nothing
1689 # we can do about that; they come from AC_INIT).
1690 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1691 # file in the top srcdir, etc, etc), so stop complaining.
1692 # no-dist: we don't want 'dist' and related rules.
1693 # -Wall: turns on all automake warnings...
1694 # -Wno-portability: ...except this one, since GNU make is required.
1695 # -Wno-override: ... and this one, since we do want this in testsuite.
1696 am__api_version="1.9"
1697 # Find a good install program. We prefer a C program (faster),
1698 # so one script is as good as another. But avoid the broken or
1699 # incompatible versions:
1700 # SysV /etc/install, /usr/sbin/install
1701 # SunOS /usr/etc/install
1702 # IRIX /sbin/install
1704 # AmigaOS /C/install, which installs bootblocks on floppy discs
1705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1708 # OS/2's system install, which has a completely different semantic
1709 # ./install, which can be erroneously created by make from ./install.sh.
1710 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1711 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1712 if test -z "$INSTALL"; then
1713 if test "${ac_cv_path_install+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 # Account for people who put trailing slashes in PATH elements.
1723 ./ | .// | /cC/* | \
1724 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1725 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1728 # OSF1 and SCO ODT 3.0 have their own names for install.
1729 # Don't use installbsd from OSF since it installs stuff as root
1731 for ac_prog in ginstall scoinst install; do
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1734 if test $ac_prog = install &&
1735 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736 # AIX install. It has an incompatible calling convention.
1738 elif test $ac_prog = install &&
1739 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1740 # program-specific install script used by HP pwplus--don't use.
1743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1755 if test "${ac_cv_path_install+set}" = set; then
1756 INSTALL=$ac_cv_path_install
1758 # As a last resort, use the slow shell script. We don't cache a
1759 # path for INSTALL within a source directory, because that will
1760 # break other packages using the cache if that directory is
1761 # removed, or if the path is relative.
1762 INSTALL=$ac_install_sh
1765 echo "$as_me:$LINENO: result: $INSTALL" >&5
1766 echo "${ECHO_T}$INSTALL" >&6
1768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1769 # It thinks the first close brace ends the variable substitution.
1770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1776 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1777 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1780 echo timestamp > conftest.file
1781 # Do `set' in a subshell so we don't clobber the current shell's
1782 # arguments. Must try -L first in case configure is actually a
1783 # symlink; some systems play weird games with the mod time of symlinks
1784 # (eg FreeBSD returns the mod time of the symlink's containing
1787 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1788 if test "$*" = "X"; then
1790 set X `ls -t $srcdir/configure conftest.file`
1793 if test "$*" != "X $srcdir/configure conftest.file" \
1794 && test "$*" != "X conftest.file $srcdir/configure"; then
1796 # If neither matched, then we have a broken ls. This can happen
1797 # if, for instance, CONFIG_SHELL is bash and it inherits a
1798 # broken ls alias from the environment. This has actually
1799 # happened. Such a system could not be considered "sane".
1800 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1801 alias in your environment" >&5
1802 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1803 alias in your environment" >&2;}
1804 { (exit 1); exit 1; }; }
1807 test "$2" = conftest.file
1813 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1814 Check your system clock" >&5
1815 echo "$as_me: error: newly created file is older than distributed files!
1816 Check your system clock" >&2;}
1817 { (exit 1); exit 1; }; }
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821 test "$program_prefix" != NONE &&
1822 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1823 # Use a double $ so make ignores it.
1824 test "$program_suffix" != NONE &&
1825 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1826 # Double any \ or $. echo might interpret backslashes.
1827 # By default was `s,x,x', remove it if useless.
1828 cat <<\_ACEOF >conftest.sed
1829 s/[\\$]/&&/g;s/;s,x,x,$//
1831 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1834 # expand $ac_aux_dir to an absolute path
1835 am_aux_dir=`cd $ac_aux_dir && pwd`
1837 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1838 # Use eval to expand $SHELL
1839 if eval "$MISSING --run true"; then
1840 am_missing_run="$MISSING --run "
1843 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1844 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1847 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1848 # We used to keeping the `.' as first argument, in order to
1849 # allow $(mkdir_p) to be used without argument. As in
1850 # $(mkdir_p) $(somedir)
1851 # where $(somedir) is conditionally defined. However this is wrong
1853 # 1. if the package is installed by a user who cannot write `.'
1854 # make install will fail,
1855 # 2. the above comment should most certainly read
1856 # $(mkdir_p) $(DESTDIR)$(somedir)
1857 # so it does not work when $(somedir) is undefined and
1858 # $(DESTDIR) is not.
1859 # To support the latter case, we have to write
1860 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1861 # so the `.' trick is pointless.
1862 mkdir_p='mkdir -p --'
1864 # On NextStep and OpenStep, the `mkdir' command does not
1865 # recognize any option. It will interpret all options as
1866 # directories to create, and then abort because `.' already
1868 for d in ./-p ./--version;
1870 test -d $d && rmdir $d
1872 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1873 if test -f "$ac_aux_dir/mkinstalldirs"; then
1874 mkdir_p='$(mkinstalldirs)'
1876 mkdir_p='$(install_sh) -d'
1880 for ac_prog in gawk mawk nawk awk
1882 # Extract the first word of "$ac_prog", so it can be a program name with args.
1883 set dummy $ac_prog; 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_AWK+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$AWK"; then
1890 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 if test -n "$AWK"; then
1910 echo "$as_me:$LINENO: result: $AWK" >&5
1911 echo "${ECHO_T}$AWK" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 test -n "$AWK" && break
1920 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1921 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1922 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1923 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 cat >conftest.make <<\_ACEOF
1928 @echo 'ac_maketemp="$(MAKE)"'
1930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1931 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1932 if test -n "$ac_maketemp"; then
1933 eval ac_cv_prog_make_${ac_make}_set=yes
1935 eval ac_cv_prog_make_${ac_make}_set=no
1939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1940 echo "$as_me:$LINENO: result: yes" >&5
1941 echo "${ECHO_T}yes" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 SET_MAKE="MAKE=${MAKE-make}"
1949 rm -rf .tst 2>/dev/null
1950 mkdir .tst 2>/dev/null
1951 if test -d .tst; then
1956 rmdir .tst 2>/dev/null
1958 # test to see if srcdir already configured
1959 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1960 test -f $srcdir/config.status; then
1961 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1962 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # test whether we have cygpath
1967 if test -z "$CYGPATH_W"; then
1968 if (cygpath --version) >/dev/null 2>/dev/null; then
1969 CYGPATH_W='cygpath -w'
1976 # Define the identity of the package.
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE "$PACKAGE"
1986 cat >>confdefs.h <<_ACEOF
1987 #define VERSION "$VERSION"
1990 # Some tools Automake needs.
1992 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1995 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1998 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2001 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2004 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2006 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2008 # Installed binaries are usually stripped using `strip' when the user
2009 # run `make install-strip'. However `strip' might not be the right
2010 # tool to use in cross-compilation environments, therefore Automake
2011 # will honor the `STRIP' environment variable to overrule this program.
2012 if test "$cross_compiling" != no; then
2013 if test -n "$ac_tool_prefix"; then
2014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}strip; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_STRIP+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$STRIP"; then
2022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 STRIP=$ac_cv_prog_STRIP
2041 if test -n "$STRIP"; then
2042 echo "$as_me:$LINENO: result: $STRIP" >&5
2043 echo "${ECHO_T}$STRIP" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2050 if test -z "$ac_cv_prog_STRIP"; then
2052 # Extract the first word of "strip", so it can be a program name with args.
2053 set dummy strip; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$ac_ct_STRIP"; then
2060 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_ac_ct_STRIP="strip"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2079 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2080 if test -n "$ac_ct_STRIP"; then
2081 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2082 echo "${ECHO_T}$ac_ct_STRIP" >&6
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2090 STRIP="$ac_cv_prog_STRIP"
2094 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2096 # We need awk for the "check" target. The system "awk" is bad on
2098 # Always define AMTAR for backward compatibility.
2100 AMTAR=${AMTAR-"${am_missing_run}tar"}
2102 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2108 # Default to --enable-multilib
2109 # Check whether --enable-multilib or --disable-multilib was given.
2110 if test "${enable_multilib+set}" = set; then
2111 enableval="$enable_multilib"
2112 case "$enableval" in
2113 yes) multilib=yes ;;
2115 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2116 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2117 { (exit 1); exit 1; }; } ;;
2123 # We may get other options which we leave undocumented:
2124 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2125 # See config-ml.in if you want the gory details.
2127 if test "$srcdir" = "."; then
2128 if test "$with_target_subdir" != "."; then
2129 multi_basedir="$srcdir/$with_multisrctop../.."
2131 multi_basedir="$srcdir/$with_multisrctop.."
2134 multi_basedir="$srcdir/.."
2138 # Even if the default multilib is not a cross compilation,
2139 # it may be that some of the other multilibs are.
2140 if test $cross_compiling = no && test $multilib = yes \
2141 && test "x${with_multisubdir}" != x ; then
2142 cross_compiling=maybe
2145 ac_config_commands="$ac_config_commands default-1"
2148 # Calculate toolexeclibdir
2149 # Also toolexecdir, though it's only used in toolexeclibdir
2150 case ${enable_version_specific_runtime_libs} in
2152 # Need the gcc compiler version to know where to install libraries
2153 # and header files if --enable-version-specific-runtime-libs option
2155 toolexecdir='$(libdir)/gcc/$(target_alias)'
2156 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2159 if test -n "$with_cross_host" &&
2160 test x"$with_cross_host" != x"no"; then
2161 # Install a library built with a cross compiler in tooldir, not libdir.
2162 toolexecdir='$(exec_prefix)/$(target_alias)'
2163 toolexeclibdir='$(toolexecdir)/lib'
2165 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2166 toolexeclibdir='$(libdir)'
2168 multi_os_directory=`$CC -print-multi-os-directory`
2169 case $multi_os_directory in
2170 .) ;; # Avoid trailing /.
2171 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2178 # Check the compiler.
2179 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2180 # We must force CC to /not/ be precious variables; otherwise
2181 # the wrong, non-multilib-adjusted value will be used in multilibs.
2182 # As a side effect, we have to subst CFLAGS ourselves.
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2228 if test -z "$ac_cv_prog_CC"; then
2230 # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_ac_ct_CC="gcc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2270 if test -z "$CC"; then
2271 if test -n "$ac_tool_prefix"; then
2272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_CC="${ac_tool_prefix}cc"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 if test -n "$CC"; then
2300 echo "$as_me:$LINENO: result: $CC" >&5
2301 echo "${ECHO_T}$CC" >&6
2303 echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2308 if test -z "$ac_cv_prog_CC"; then
2310 # Extract the first word of "cc", so it can be a program name with args.
2311 set dummy cc; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CC="cc"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2341 echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2351 if test -z "$CC"; then
2352 # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371 ac_prog_rejected=yes
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test $ac_prog_rejected = yes; then
2382 # We found a bogon in the path, so make sure we never use it.
2383 set dummy $ac_cv_prog_CC
2385 if test $# != 0; then
2386 # We chose a different compiler from the bogus one.
2387 # However, it has the same basename, so the bogon will be chosen
2388 # first if we set CC to just the basename; use the full file name.
2390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2396 if test -n "$CC"; then
2397 echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2405 if test -z "$CC"; then
2406 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 if test -n "$CC"; then
2437 echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6
2440 echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6
2444 test -n "$CC" && break
2447 if test -z "$CC"; then
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_ac_ct_CC="$ac_prog"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6
2482 echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2486 test -n "$ac_ct_CC" && break
2495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details." >&2;}
2499 { (exit 1); exit 1; }; }
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO:" \
2503 "checking for C compiler version" >&5
2504 ac_compiler=`set X $ac_compile; echo $2`
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506 (eval $ac_compiler --version </dev/null >&5) 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511 (eval $ac_compiler -v </dev/null >&5) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2516 (eval $ac_compiler -V </dev/null >&5) 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545 (eval $ac_link_default) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # Find the output, starting from the most likely. This scheme is
2550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2553 # Be careful to initialize this variable, since it used to be cached.
2554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2556 # b.out is created by i960 compilers.
2557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2559 test -f "$ac_file" || continue
2561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2564 # This is the source file.
2567 # We found the default executable, but exeext='' is most
2571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572 # FIXME: I believe we export ac_cv_exeext for Libtool,
2573 # but it would be cool to find out if it's true. Does anybody
2574 # maintain Libtool? --akim.
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&2;}
2589 { (exit 77); exit 77; }; }
2592 ac_exeext=$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_file" >&5
2594 echo "${ECHO_T}$ac_file" >&6
2596 # Check the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603 if { ac_try='./$ac_file'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2611 if test "$cross_compiling" = maybe; then
2614 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2624 echo "$as_me:$LINENO: result: yes" >&5
2625 echo "${ECHO_T}yes" >&6
2627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check the compiler produces executables we can run. If not, either
2630 # the compiler is broken, or we cross compile.
2631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 echo "${ECHO_T}$cross_compiling" >&6
2636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639 (eval $ac_link) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; then
2643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2647 for ac_file in conftest.exe conftest conftest.*; do
2648 test -f "$ac_file" || continue
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2665 rm -f conftest$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667 echo "${ECHO_T}$ac_cv_exeext" >&6
2669 rm -f conftest.$ac_ext
2670 EXEEXT=$ac_cv_exeext
2672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674 if test "${ac_cv_objext+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.o conftest.obj
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6
2720 OBJEXT=$ac_cv_objext
2722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>conftest.er1
2749 grep -v '^ *+' conftest.er1 >conftest.err
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -z "$ac_c_werror_flag"
2755 || test ! -s conftest.err'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2778 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2780 GCC=`test $ac_compiler_gnu = yes && echo yes`
2781 ac_test_CFLAGS=${CFLAGS+set}
2782 ac_save_CFLAGS=$CFLAGS
2784 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2786 if test "${ac_cv_prog_cc_g+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>conftest.er1
2808 grep -v '^ *+' conftest.er1 >conftest.err
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -z "$ac_c_werror_flag"
2814 || test ! -s conftest.err'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; } &&
2820 { ac_try='test -s conftest.$ac_objext'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2837 if test "$ac_test_CFLAGS" = set; then
2838 CFLAGS=$ac_save_CFLAGS
2839 elif test $ac_cv_prog_cc_g = yes; then
2840 if test "$GCC" = yes; then
2846 if test "$GCC" = yes; then
2852 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2853 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2854 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 ac_cv_prog_cc_stdc=no
2859 cat >conftest.$ac_ext <<_ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2867 #include <sys/types.h>
2868 #include <sys/stat.h>
2869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2870 struct buf { int x; };
2871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2872 static char *e (p, i)
2878 static char *f (char * (*g) (char **, int), char **p, ...)
2883 s = g (p, va_arg (v,int));
2888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2889 function prototypes and stuff, but not '\xHH' hex character constants.
2890 These don't provoke an error unfortunately, instead are silently treated
2891 as 'x'. The following induces an error, until -std1 is added to get
2892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2893 array size at least. It's necessary to write '\x00'==0 to get something
2894 that's true only with -std1. */
2895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2897 int test (int i, double x);
2898 struct s1 {int (*f) (int a);};
2899 struct s2 {int (*f) (double a);};
2900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2911 # Don't try gcc -ansi; that turns off useful extensions and
2912 # breaks some systems' header files.
2913 # AIX -qlanglvl=ansi
2914 # Ultrix and OSF/1 -std1
2915 # HP-UX 10.20 and later -Ae
2916 # HP-UX older versions -Aa -D_HPUX_SOURCE
2917 # SVR4 -Xc -D__EXTENSIONS__
2918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2920 CC="$ac_save_CC $ac_arg"
2921 rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
2925 grep -v '^ *+' conftest.er1 >conftest.err
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -z "$ac_c_werror_flag"
2931 || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try='test -s conftest.$ac_objext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 ac_cv_prog_cc_stdc=$ac_arg
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2950 rm -f conftest.err conftest.$ac_objext
2952 rm -f conftest.$ac_ext conftest.$ac_objext
2957 case "x$ac_cv_prog_cc_stdc" in
2959 echo "$as_me:$LINENO: result: none needed" >&5
2960 echo "${ECHO_T}none needed" >&6 ;;
2962 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2963 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2964 CC="$CC $ac_cv_prog_cc_stdc" ;;
2967 # Some people use a C++ compiler to compile C. Since we use `exit',
2968 # in C++ we need to declare it. In case someone uses the same compiler
2969 # for both compiling C and C++ we need to have the C++ compiler decide
2970 # the declaration of exit, since it's the most demanding environment.
2971 cat >conftest.$ac_ext <<_ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978 (eval $ac_compile) 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -z "$ac_c_werror_flag"
2986 || test ! -s conftest.err'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; } &&
2992 { ac_try='test -s conftest.$ac_objext'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
2998 for ac_declaration in \
3000 'extern "C" void std::exit (int) throw (); using std::exit;' \
3001 'extern "C" void std::exit (int); using std::exit;' \
3002 'extern "C" void exit (int) throw ();' \
3003 'extern "C" void exit (int);' \
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag"
3032 || test ! -s conftest.err'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069 (eval $ac_compile) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -z "$ac_c_werror_flag"
3077 || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3098 if test -n "$ac_declaration"; then
3099 echo '#ifdef __cplusplus' >>confdefs.h
3100 echo $ac_declaration >>confdefs.h
3101 echo '#endif' >>confdefs.h
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 DEPDIR="${am__leading_dot}deps"
3117 ac_config_commands="$ac_config_commands depfiles"
3120 am_make=${MAKE-make}
3121 cat > confinc << 'END'
3126 # If we don't find an include directive, just comment out the code.
3127 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3128 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3132 # First try GNU make style include.
3133 echo "include confinc" > confmf
3134 # We grep out `Entering directory' and `Leaving directory'
3135 # messages which can occur if `w' ends up in MAKEFLAGS.
3136 # In particular we don't look at `^make:' because GNU make might
3137 # be invoked under some other name (usually "gmake"), in which
3138 # case it prints its new name instead of `make'.
3139 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3144 # Now try BSD make style include.
3145 if test "$am__include" = "#"; then
3146 echo '.include "confinc"' > confmf
3147 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3148 am__include=.include
3155 echo "$as_me:$LINENO: result: $_am_result" >&5
3156 echo "${ECHO_T}$_am_result" >&6
3157 rm -f confinc confmf
3159 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3160 if test "${enable_dependency_tracking+set}" = set; then
3161 enableval="$enable_dependency_tracking"
3164 if test "x$enable_dependency_tracking" != xno; then
3165 am_depcomp="$ac_aux_dir/depcomp"
3170 if test "x$enable_dependency_tracking" != xno; then
3181 depcc="$CC" am_compiler_list=
3183 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3184 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3185 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3189 # We make a subdir and do the tests there. Otherwise we can end up
3190 # making bogus files that we don't know about and never remove. For
3191 # instance it was reported that on HP-UX the gcc test will end up
3192 # making a dummy file named `D' -- because `-MD' means `put the output
3195 # Copy depcomp to subdir because otherwise we won't find it if we're
3196 # using a relative directory.
3197 cp "$am_depcomp" conftest.dir
3199 # We will build objects and dependencies in a subdirectory because
3200 # it helps to detect inapplicable dependency modes. For instance
3201 # both Tru64's cc and ICC support -MD to output dependencies as a
3202 # side effect of compilation, but ICC will put the dependencies in
3203 # the current directory while Tru64 will put them in the object
3207 am_cv_CC_dependencies_compiler_type=none
3208 if test "$am_compiler_list" = ""; then
3209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3211 for depmode in $am_compiler_list; do
3212 # Setup a source with many dependencies, because some compilers
3213 # like to wrap large dependency lists on column 80 (with \), and
3214 # we should not choose a depcomp mode which is confused by this.
3216 # We need to recreate these files for each test, as the compiler may
3217 # overwrite some of them when testing with obscure command lines.
3218 # This happens at least with the AIX C compiler.
3220 for i in 1 2 3 4 5 6; do
3221 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3222 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3223 # Solaris 8's {/usr,}/bin/sh.
3224 touch sub/conftst$i.h
3226 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3230 # after this tag, mechanisms are not by side-effect, so they'll
3231 # only be used when explicitly requested
3232 if test "x$enable_dependency_tracking" = xyes; then
3240 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3241 # mode. It turns out that the SunPro C++ compiler does not properly
3242 # handle `-M -o', and we need to detect this.
3243 if depmode=$depmode \
3244 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3245 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3246 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3247 >/dev/null 2>conftest.err &&
3248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3251 # icc doesn't choke on unknown options, it will just issue warnings
3252 # or remarks (even with -Werror). So we grep stderr for any message
3253 # that says an option was ignored or not supported.
3254 # When given -MP, icc 7.0 and 7.1 complain thusly:
3255 # icc: Command line warning: ignoring option '-M'; no argument required
3256 # The diagnosis changed in icc 8.0:
3257 # icc: Command line remark: option '-MP' not supported
3258 if (grep 'ignoring option' conftest.err ||
3259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3260 am_cv_CC_dependencies_compiler_type=$depmode
3269 am_cv_CC_dependencies_compiler_type=none
3273 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3274 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3275 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3280 test "x$enable_dependency_tracking" != xno \
3281 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3283 am__fastdepCC_FALSE='#'
3285 am__fastdepCC_TRUE='#'
3286 am__fastdepCC_FALSE=
3294 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3295 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3296 # in both places for now and restore CFLAGS at the end of config.
3297 save_CFLAGS="$CFLAGS"
3299 # Add -Wall -Werror if we are using GCC.
3300 if test "x$GCC" = "xyes"; then
3301 XCFLAGS="$XCFLAGS -Wall -Werror"
3304 # Find other programs we need.
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3307 set dummy ${ac_tool_prefix}ar; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_AR+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$AR"; then
3314 ac_cv_prog_AR="$AR" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_AR="${ac_tool_prefix}ar"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 if test -n "$AR"; then
3334 echo "$as_me:$LINENO: result: $AR" >&5
3335 echo "${ECHO_T}$AR" >&6
3337 echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3342 if test -z "$ac_cv_prog_AR"; then
3344 # Extract the first word of "ar", so it can be a program name with args.
3345 set dummy ar; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$ac_ct_AR"; then
3352 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_AR="ar"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3371 if test -n "$ac_ct_AR"; then
3372 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3373 echo "${ECHO_T}$ac_ct_AR" >&6
3375 echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3384 if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_prog_RANLIB+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 if test -n "$RANLIB"; then
3393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 RANLIB=$ac_cv_prog_RANLIB
3412 if test -n "$RANLIB"; then
3413 echo "$as_me:$LINENO: result: $RANLIB" >&5
3414 echo "${ECHO_T}$RANLIB" >&6
3416 echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3421 if test -z "$ac_cv_prog_RANLIB"; then
3422 ac_ct_RANLIB=$RANLIB
3423 # Extract the first word of "ranlib", so it can be a program name with args.
3424 set dummy ranlib; ac_word=$2
3425 echo "$as_me:$LINENO: checking for $ac_word" >&5
3426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 if test -n "$ac_ct_RANLIB"; then
3431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440 ac_cv_prog_ac_ct_RANLIB="ranlib"
3441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3451 if test -n "$ac_ct_RANLIB"; then
3452 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3453 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3455 echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3459 RANLIB=$ac_ct_RANLIB
3461 RANLIB="$ac_cv_prog_RANLIB"
3464 # Extract the first word of "perl", so it can be a program name with args.
3465 set dummy perl; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_PERL+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3494 PERL=$ac_cv_path_PERL
3496 if test -n "$PERL"; then
3497 echo "$as_me:$LINENO: result: $PERL" >&5
3498 echo "${ECHO_T}$PERL" >&6
3500 echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3504 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3505 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3506 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3507 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 cat >conftest.make <<\_ACEOF
3512 @echo 'ac_maketemp="$(MAKE)"'
3514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3515 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3516 if test -n "$ac_maketemp"; then
3517 eval ac_cv_prog_make_${ac_make}_set=yes
3519 eval ac_cv_prog_make_${ac_make}_set=no
3523 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3524 echo "$as_me:$LINENO: result: yes" >&5
3525 echo "${ECHO_T}yes" >&6
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3530 SET_MAKE="MAKE=${MAKE-make}"
3533 # Find a good install program. We prefer a C program (faster),
3534 # so one script is as good as another. But avoid the broken or
3535 # incompatible versions:
3536 # SysV /etc/install, /usr/sbin/install
3537 # SunOS /usr/etc/install
3538 # IRIX /sbin/install
3540 # AmigaOS /C/install, which installs bootblocks on floppy discs
3541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3544 # OS/2's system install, which has a completely different semantic
3545 # ./install, which can be erroneously created by make from ./install.sh.
3546 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3547 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3548 if test -z "$INSTALL"; then
3549 if test "${ac_cv_path_install+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 # Account for people who put trailing slashes in PATH elements.
3559 ./ | .// | /cC/* | \
3560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3561 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3564 # OSF1 and SCO ODT 3.0 have their own names for install.
3565 # Don't use installbsd from OSF since it installs stuff as root
3567 for ac_prog in ginstall scoinst install; do
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3570 if test $ac_prog = install &&
3571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3572 # AIX install. It has an incompatible calling convention.
3574 elif test $ac_prog = install &&
3575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3576 # program-specific install script used by HP pwplus--don't use.
3579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3591 if test "${ac_cv_path_install+set}" = set; then
3592 INSTALL=$ac_cv_path_install
3594 # As a last resort, use the slow shell script. We don't cache a
3595 # path for INSTALL within a source directory, because that will
3596 # break other packages using the cache if that directory is
3597 # removed, or if the path is relative.
3598 INSTALL=$ac_install_sh
3601 echo "$as_me:$LINENO: result: $INSTALL" >&5
3602 echo "${ECHO_T}$INSTALL" >&6
3604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3605 # It thinks the first close brace ends the variable substitution.
3606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3613 # See if makeinfo has been installed and is modern enough
3614 # that we can use it.
3616 # Extract the first word of "makeinfo", so it can be a program name with args.
3617 set dummy makeinfo; ac_word=$2
3618 echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 if test -n "$MAKEINFO"; then
3624 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_MAKEINFO="makeinfo"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 MAKEINFO=$ac_cv_prog_MAKEINFO
3643 if test -n "$MAKEINFO"; then
3644 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3645 echo "${ECHO_T}$MAKEINFO" >&6
3647 echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6
3651 if test -n "$MAKEINFO"; then
3652 # Found it, now check the version.
3653 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3654 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3655 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3659 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3661 case $ac_prog_version in
3662 '') gcc_cv_prog_makeinfo_modern=no;;
3663 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3664 *) gcc_cv_prog_makeinfo_modern=no;;
3668 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3669 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3671 gcc_cv_prog_makeinfo_modern=no
3673 if test $gcc_cv_prog_makeinfo_modern = no; then
3674 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3679 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3681 BUILD_INFO_FALSE='#'
3692 macro_version='2.1a'
3693 macro_revision='1.2435'
3706 ltmain="$ac_aux_dir/ltmain.sh"
3716 # Check whether --enable-shared or --disable-shared was given.
3717 if test "${enable_shared+set}" = set; then
3718 enableval="$enable_shared"
3719 p=${PACKAGE-default}
3721 yes) enable_shared=yes ;;
3722 no) enable_shared=no ;;
3725 # Look at the argument we got. We use all the common list separators.
3726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3727 for pkg in $enableval; do
3729 if test "X$pkg" = "X$p"; then
3747 # Check whether --enable-static or --disable-static was given.
3748 if test "${enable_static+set}" = set; then
3749 enableval="$enable_static"
3750 p=${PACKAGE-default}
3752 yes) enable_static=yes ;;
3753 no) enable_static=no ;;
3756 # Look at the argument we got. We use all the common list separators.
3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758 for pkg in $enableval; do
3760 if test "X$pkg" = "X$p"; then
3779 # Check whether --with-pic or --without-pic was given.
3780 if test "${with_pic+set}" = set; then
3787 test -z "$pic_mode" && pic_mode=default
3795 # Check whether --enable-fast-install or --disable-fast-install was given.
3796 if test "${enable_fast_install+set}" = set; then
3797 enableval="$enable_fast_install"
3798 p=${PACKAGE-default}
3800 yes) enable_fast_install=yes ;;
3801 no) enable_fast_install=no ;;
3803 enable_fast_install=no
3804 # Look at the argument we got. We use all the common list separators.
3805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806 for pkg in $enableval; do
3808 if test "X$pkg" = "X$p"; then
3809 enable_fast_install=yes
3816 enable_fast_install=yes
3826 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3827 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3828 if test "${lt_cv_path_SED+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # Loop through the user's path and test for sed and gsed.
3832 # Then use that list of sed's as ones to test for truncation.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for lt_ac_prog in sed gsed; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3841 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3849 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3850 # along with /bin/sed that truncates output.
3851 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3852 test ! -f $lt_ac_sed && continue
3853 cat /dev/null > conftest.in
3855 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3856 # Check for GNU sed and select it if it is found.
3857 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3858 lt_cv_path_SED=$lt_ac_sed
3862 cat conftest.in conftest.in >conftest.tmp
3863 mv conftest.tmp conftest.in
3864 cp conftest.in conftest.nl
3866 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3867 cmp -s conftest.out conftest.nl || break
3868 # 10000 chars as input seems more than enough
3869 test $lt_ac_count -gt 10 && break
3870 lt_ac_count=`expr $lt_ac_count + 1`
3871 if test $lt_ac_count -gt $lt_ac_max; then
3872 lt_ac_max=$lt_ac_count
3873 lt_cv_path_SED=$lt_ac_sed
3882 echo "$as_me:$LINENO: result: $SED" >&5
3883 echo "${ECHO_T}$SED" >&6
3885 test -z "$SED" && SED=sed
3886 Xsed="$SED -e 1s/^X//"
3898 echo "$as_me:$LINENO: checking for egrep" >&5
3899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3900 if test "${ac_cv_prog_egrep+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3904 then ac_cv_prog_egrep='grep -E'
3905 else ac_cv_prog_egrep='egrep'
3908 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3909 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3910 EGREP=$ac_cv_prog_egrep
3913 echo "$as_me:$LINENO: checking for fgrep" >&5
3914 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3915 if test "${ac_cv_prog_fgrep+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3919 then ac_cv_prog_fgrep='grep -F'
3920 else ac_cv_prog_fgrep='fgrep'
3923 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3924 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3925 FGREP=$ac_cv_prog_fgrep
3928 test -z "$GREP" && GREP=grep
3948 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3949 if test "${with_gnu_ld+set}" = set; then
3950 withval="$with_gnu_ld"
3951 test "$withval" = no || with_gnu_ld=yes
3956 if test "$GCC" = yes; then
3957 # Check if gcc -print-prog-name=ld gives a path.
3958 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3959 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3962 # gcc leaves a trailing carriage return which upsets mingw
3963 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3965 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3968 # Accept absolute paths.
3970 re_direlt='/[^/][^/]*/\.\./'
3971 # Canonicalize the pathname of ld
3972 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3973 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3974 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3976 test -z "$LD" && LD="$ac_prog"
3979 # If it fails, then pretend we aren't using GCC.
3983 # If it is relative, then search for the first ld in PATH.
3987 elif test "$with_gnu_ld" = yes; then
3988 echo "$as_me:$LINENO: checking for GNU ld" >&5
3989 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3991 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3992 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3994 if test "${lt_cv_path_LD+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 if test -z "$LD"; then
3998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3999 for ac_dir in $PATH; do
4001 test -z "$ac_dir" && ac_dir=.
4002 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4003 lt_cv_path_LD="$ac_dir/$ac_prog"
4004 # Check to see if the program is GNU ld. I'd rather use --version,
4005 # but apparently some variants of GNU ld only accept -v.
4006 # Break only if it was the GNU/non-GNU ld that we prefer.
4007 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4008 *GNU* | *'with BFD'*)
4009 test "$with_gnu_ld" != no && break
4012 test "$with_gnu_ld" != yes && break
4019 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4024 if test -n "$LD"; then
4025 echo "$as_me:$LINENO: result: $LD" >&5
4026 echo "${ECHO_T}$LD" >&6
4028 echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6
4031 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4032 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4033 { (exit 1); exit 1; }; }
4034 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4035 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4036 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4040 case `$LD -v 2>&1 </dev/null` in
4041 *GNU* | *'with BFD'*)
4042 lt_cv_prog_gnu_ld=yes
4045 lt_cv_prog_gnu_ld=no
4049 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4050 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4051 with_gnu_ld=$lt_cv_prog_gnu_ld
4062 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4063 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4064 if test "${lt_cv_path_NM+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 if test -n "$NM"; then
4068 # Let the user override the test.
4071 lt_nm_to_check="${ac_tool_prefix}nm"
4072 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4073 lt_nm_to_check="$lt_nm_to_check nm"
4075 for lt_tmp_nm in $lt_nm_to_check; do
4076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4077 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4079 test -z "$ac_dir" && ac_dir=.
4080 tmp_nm="$ac_dir/$lt_tmp_nm"
4081 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4082 # Check to see if the nm accepts a BSD-compat flag.
4083 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4084 # nm: unknown option "B" ignored
4085 # Tru64's nm complains that /dev/null is an invalid object file
4086 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4087 */dev/null* | *'Invalid file or object type'*)
4088 lt_cv_path_NM="$tmp_nm -B"
4092 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4094 lt_cv_path_NM="$tmp_nm -p"
4098 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4099 continue # so that we can try to find one that supports BSD flags
4108 : ${lt_cv_path_NM=no}
4111 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4112 echo "${ECHO_T}$lt_cv_path_NM" >&6
4113 if test "$lt_cv_path_NM" != "no"; then
4116 # Didn't find any BSD compatible name lister, look for dumpbin.
4117 if test -n "$ac_tool_prefix"; then
4118 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 if test -n "$DUMPBIN"; then
4128 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 DUMPBIN=$ac_cv_prog_DUMPBIN
4147 if test -n "$DUMPBIN"; then
4148 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4149 echo "${ECHO_T}$DUMPBIN" >&6
4151 echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4155 test -n "$DUMPBIN" && break
4158 if test -z "$DUMPBIN"; then
4159 ac_ct_DUMPBIN=$DUMPBIN
4160 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4162 # Extract the first word of "$ac_prog", so it can be a program name with args.
4163 set dummy $ac_prog; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$ac_ct_DUMPBIN"; then
4170 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4189 if test -n "$ac_ct_DUMPBIN"; then
4190 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4191 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4193 echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4197 test -n "$ac_ct_DUMPBIN" && break
4199 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4201 DUMPBIN=$ac_ct_DUMPBIN
4205 if test "$DUMPBIN" != ":"; then
4209 test -z "$NM" && NM=nm
4216 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4217 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4218 if test "${lt_cv_nm_interface+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 lt_cv_nm_interface="BSD nm"
4222 echo "int some_variable = 0;" > conftest.$ac_ext
4223 (eval echo "\"\$as_me:4223: $ac_compile\"" >&5)
4224 (eval "$ac_compile" 2>conftest.err)
4225 cat conftest.err >&5
4226 (eval echo "\"\$as_me:4226: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4227 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4228 cat conftest.err >&5
4229 (eval echo "\"\$as_me:4229: output\"" >&5)
4230 cat conftest.out >&5
4231 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4232 lt_cv_nm_interface="MS dumpbin"
4236 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4237 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4239 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4240 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4242 if test "$LN_S" = "ln -s"; then
4243 echo "$as_me:$LINENO: result: yes" >&5
4244 echo "${ECHO_T}yes" >&6
4246 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4247 echo "${ECHO_T}no, using $LN_S" >&6
4250 # find the maximum length of command line arguments
4251 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4252 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4253 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 # On DJGPP, this test can blow up pretty badly due to problems in libc
4262 # (any single argument exceeding 2000 bytes causes a buffer overrun
4263 # during glob expansion). Even if it were fixed, the result of this
4264 # check would be larger than it should be.
4265 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4269 # Under GNU Hurd, this test is not required because there is
4270 # no limit to the length of command line arguments.
4271 # Libtool will interpret -1 as no limit whatsoever
4272 lt_cv_sys_max_cmd_len=-1;
4276 # On Win9x/ME, this test blows up -- it succeeds, but takes
4277 # about 5 minutes as the teststring grows exponentially.
4278 # Worse, since 9x/ME are not pre-emptively multitasking,
4279 # you end up with a "frozen" computer, even though with patience
4280 # the test eventually succeeds (with a max line length of 256k).
4281 # Instead, let's just punt: use the minimum linelength reported by
4282 # all of the supported platforms: 8192 (on NT/2K/XP).
4283 lt_cv_sys_max_cmd_len=8192;
4287 # On AmigaOS with pdksh, this test takes hours, literally.
4288 # So we just punt and use a minimum line length of 8192.
4289 lt_cv_sys_max_cmd_len=8192;
4292 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4293 # This has been around since 386BSD, at least. Likely further.
4294 if test -x /sbin/sysctl; then
4295 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4296 elif test -x /usr/sbin/sysctl; then
4297 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4299 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4301 # And add a safety zone
4302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4307 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4308 lt_cv_sys_max_cmd_len=196608
4312 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4313 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4314 # nice to cause kernel panics so lets avoid the loop below.
4315 # First set a reasonable default.
4316 lt_cv_sys_max_cmd_len=16384
4318 if test -x /sbin/sysconfig; then
4319 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4320 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4325 lt_cv_sys_max_cmd_len=102400
4327 sysv5* | sco5v6* | sysv4.2uw2*)
4328 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4329 if test -n "$kargmax"; then
4330 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4332 lt_cv_sys_max_cmd_len=32768
4336 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4337 if test -n $lt_cv_sys_max_cmd_len; then
4338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4341 # Make teststring a little bigger before we do anything with it.
4342 # a 1K string should be a reasonable start.
4343 for i in 1 2 3 4 5 6 7 8 ; do
4344 teststring=$teststring$teststring
4346 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4347 # If test is not a shell built-in, we'll probably end up computing a
4348 # maximum length that is only half of the actual maximum length, but
4350 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4351 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4352 test $i != 17 # 1/2 MB should be enough
4355 teststring=$teststring$teststring
4357 # Only check the string length outside the loop.
4358 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4360 # Add a significant safety factor because C++ compilers can tack on
4361 # massive amounts of additional arguments before passing them to the
4362 # linker. It appears as though 1/2 is a usable value.
4363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4370 if test -n $lt_cv_sys_max_cmd_len ; then
4371 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4372 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4374 echo "$as_me:$LINENO: result: none" >&5
4375 echo "${ECHO_T}none" >&6
4377 max_cmd_len=$lt_cv_sys_max_cmd_len
4389 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4390 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4391 # Try some XSI features
4394 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4395 = c,a/b,, ) >/dev/null 2>&1 \
4397 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4398 echo "${ECHO_T}$xsi_shell" >&6
4401 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4402 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4404 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4406 && lt_shell_append=yes
4407 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4408 echo "${ECHO_T}$lt_shell_append" >&6
4411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4421 # test EBCDIC or ASCII
4422 case `echo X|tr X '\101'` in
4423 A) # ASCII based system
4424 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4425 lt_SP2NL='tr \040 \012'
4426 lt_NL2SP='tr \015\012 \040\040'
4428 *) # EBCDIC based system
4429 lt_SP2NL='tr \100 \n'
4430 lt_NL2SP='tr \r\n \100\100'
4442 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4443 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4444 if test "${lt_cv_ld_reload_flag+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 lt_cv_ld_reload_flag='-r'
4449 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4450 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4451 reload_flag=$lt_cv_ld_reload_flag
4452 case $reload_flag in
4454 *) reload_flag=" $reload_flag" ;;
4456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4459 if test "$GCC" = yes; then
4460 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4462 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4476 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4477 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4478 if test "${lt_cv_deplibs_check_method+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 lt_cv_file_magic_cmd='$MAGIC_CMD'
4482 lt_cv_file_magic_test_file=
4483 lt_cv_deplibs_check_method='unknown'
4484 # Need to set the preceding variable on all platforms that support
4485 # interlibrary dependencies.
4486 # 'none' -- dependencies not supported.
4487 # `unknown' -- same as none, but documents that we really don't know.
4488 # 'pass_all' -- all dependencies passed with no checks.
4489 # 'test_compile' -- check by making test program.
4490 # 'file_magic [[regex]]' -- check by looking for files in library path
4491 # which responds to the $file_magic_cmd with a given extended regex.
4492 # If you have `file' or equivalent on your system and you're not sure
4493 # whether `pass_all' will *always* work, you probably want this one.
4497 lt_cv_deplibs_check_method=pass_all
4501 lt_cv_deplibs_check_method=pass_all
4505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4506 lt_cv_file_magic_cmd='/usr/bin/file -L'
4507 lt_cv_file_magic_test_file=/shlib/libc.so
4511 # func_win32_libid is a shell function defined in ltmain.sh
4512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4513 lt_cv_file_magic_cmd='func_win32_libid'
4517 # Base MSYS/MinGW do not provide the 'file' command needed by
4518 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4519 # unless we find 'file', for example because we are cross-compiling.
4520 if ( file / ) >/dev/null 2>&1; then
4521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4522 lt_cv_file_magic_cmd='func_win32_libid'
4524 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4525 lt_cv_file_magic_cmd='$OBJDUMP -f'
4529 darwin* | rhapsody*)
4530 lt_cv_deplibs_check_method=pass_all
4533 freebsd* | dragonfly*)
4534 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4537 # Not sure whether the presence of OpenBSD here was a mistake.
4538 # Let's accept both of them until this is cleared up.
4539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4540 lt_cv_file_magic_cmd=/usr/bin/file
4541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4545 lt_cv_deplibs_check_method=pass_all
4550 lt_cv_deplibs_check_method=pass_all
4553 hpux10.20* | hpux11*)
4554 lt_cv_file_magic_cmd=/usr/bin/file
4557 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4558 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4561 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]'
4562 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4566 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4572 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4576 irix5* | irix6* | nonstopux*)
4578 *-32|*"-32 ") libmagic=32-bit;;
4579 *-n32|*"-n32 ") libmagic=N32;;
4580 *-64|*"-64 ") libmagic=64-bit;;
4581 *) libmagic=never-match;;
4583 lt_cv_deplibs_check_method=pass_all
4586 # This must be Linux ELF.
4587 linux* | k*bsd*-gnu)
4588 lt_cv_deplibs_check_method=pass_all
4592 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4601 lt_cv_file_magic_cmd=/usr/bin/file
4602 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4606 lt_cv_deplibs_check_method=pass_all
4610 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4617 osf3* | osf4* | osf5*)
4618 lt_cv_deplibs_check_method=pass_all
4622 lt_cv_deplibs_check_method=pass_all
4626 lt_cv_deplibs_check_method=pass_all
4629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4630 lt_cv_deplibs_check_method=pass_all
4634 case $host_vendor in
4636 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]'
4637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4640 lt_cv_deplibs_check_method=pass_all
4643 lt_cv_file_magic_cmd='/bin/file'
4644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4647 lt_cv_file_magic_cmd='/bin/file'
4648 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4649 lt_cv_file_magic_test_file=/lib/libc.so
4652 lt_cv_deplibs_check_method=pass_all
4655 lt_cv_deplibs_check_method=pass_all
4661 lt_cv_deplibs_check_method=pass_all
4666 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4667 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4668 file_magic_cmd=$lt_cv_file_magic_cmd
4669 deplibs_check_method=$lt_cv_deplibs_check_method
4670 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}ar; ac_word=$2
4686 echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688 if test "${ac_cv_prog_AR+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$AR"; then
4692 ac_cv_prog_AR="$AR" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_AR="${ac_tool_prefix}ar"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 if test -n "$AR"; then
4712 echo "$as_me:$LINENO: result: $AR" >&5
4713 echo "${ECHO_T}$AR" >&6
4715 echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6
4720 if test -z "$ac_cv_prog_AR"; then
4722 # Extract the first word of "ar", so it can be a program name with args.
4723 set dummy ar; ac_word=$2
4724 echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$ac_ct_AR"; then
4730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_prog_ac_ct_AR="ar"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4749 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4750 if test -n "$ac_ct_AR"; then
4751 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4752 echo "${ECHO_T}$ac_ct_AR" >&6
4754 echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4763 test -z "$AR" && AR=ar
4764 test -z "$AR_FLAGS" && AR_FLAGS=cru
4776 if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}strip; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_STRIP+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$STRIP"; then
4785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 STRIP=$ac_cv_prog_STRIP
4804 if test -n "$STRIP"; then
4805 echo "$as_me:$LINENO: result: $STRIP" >&5
4806 echo "${ECHO_T}$STRIP" >&6
4808 echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4813 if test -z "$ac_cv_prog_STRIP"; then
4815 # Extract the first word of "strip", so it can be a program name with args.
4816 set dummy strip; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$ac_ct_STRIP"; then
4823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_ac_ct_STRIP="strip"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4842 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4843 if test -n "$ac_ct_STRIP"; then
4844 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4845 echo "${ECHO_T}$ac_ct_STRIP" >&6
4847 echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6
4853 STRIP="$ac_cv_prog_STRIP"
4856 test -z "$STRIP" && STRIP=:
4863 if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_RANLIB+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 if test -n "$RANLIB"; then
4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 RANLIB=$ac_cv_prog_RANLIB
4891 if test -n "$RANLIB"; then
4892 echo "$as_me:$LINENO: result: $RANLIB" >&5
4893 echo "${ECHO_T}$RANLIB" >&6
4895 echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4900 if test -z "$ac_cv_prog_RANLIB"; then
4901 ac_ct_RANLIB=$RANLIB
4902 # Extract the first word of "ranlib", so it can be a program name with args.
4903 set dummy ranlib; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$ac_ct_RANLIB"; then
4910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_ac_ct_RANLIB="ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4929 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930 if test -n "$ac_ct_RANLIB"; then
4931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4934 echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4938 RANLIB=$ac_ct_RANLIB
4940 RANLIB="$ac_cv_prog_RANLIB"
4943 test -z "$RANLIB" && RANLIB=:
4950 # Determine commands to create old-style static archives.
4951 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4952 old_postinstall_cmds='chmod 644 $oldlib'
4953 old_postuninstall_cmds=
4955 if test -n "$RANLIB"; then
4958 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4961 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4964 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5000 # If no C compiler was specified, use CC.
5003 # If no C compiler flags were specified, use CFLAGS.
5004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5006 # Allow CC to be a program name with arguments.
5010 # Check for command to grab the raw symbol name followed by C symbol from nm.
5011 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5012 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5013 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 # These are sane defaults that work on at least a few old systems.
5018 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5020 # Character class describing NM global symbol codes.
5021 symcode='[BCDEGRST]'
5023 # Regexp to match symbols that can be accessed directly from C.
5024 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5026 # Define system-specific variables.
5031 cygwin* | mingw* | pw32*)
5032 symcode='[ABCDGISTW]'
5035 if test "$host_cpu" = ia64; then
5036 symcode='[ABCDEGRST]'
5040 symcode='[BCDEGRST]'
5043 symcode='[BCDEGQRST]'
5054 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5062 # If we're using GNU nm, then use its standard symbol codes.
5063 case `$NM -V 2>&1` in
5064 *GNU* | *'with BFD'*)
5065 symcode='[ABCDGIRSTW]' ;;
5068 # Transform an extracted symbol line into a proper C declaration.
5069 # Some systems (esp. on ia64) link data and code symbols differently,
5070 # so use this general approach.
5071 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5073 # Transform an extracted symbol line into symbol name and symbol address
5074 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5076 # Handle CRLF in mingw tool chain
5080 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5084 # Try without a prefix underscore, then with it.
5085 for ac_symprfx in "" "_"; do
5087 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5088 symxfrm="\\1 $ac_symprfx\\2 \\2"
5090 # Write the raw and C identifiers.
5091 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5092 # Fake it for dumpbin and say T for any non-static function
5093 # and D for any global variable.
5094 # Also find C++ and __fastcall symbols from MSVC++,
5095 # which start with @ or ?.
5096 lt_cv_sys_global_symbol_pipe="$AWK '"\
5097 " {last_section=section; section=\$ 3};"\
5098 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5099 " \$ 0!~/External *\|/{next};"\
5100 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5101 " {if(hide[section]) next};"\
5102 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5103 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5104 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5105 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5106 " ' prfx=^$ac_symprfx"
5108 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5111 # Check to see that the pipe works correctly.
5115 cat > conftest.$ac_ext <<_LT_EOF
5120 void nm_test_func(void);
5121 void nm_test_func(void){}
5125 int main(){nm_test_var='a';nm_test_func();return(0);}
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; then
5133 # Now try to grab the symbols.
5135 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5136 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && test -s "$nlist"; then
5140 # Try sorting and uniquifying the output.
5141 if sort "$nlist" | uniq > "$nlist"T; then
5142 mv -f "$nlist"T "$nlist"
5147 # Make sure that we snagged all the symbols we need.
5148 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5149 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5150 cat <<_LT_EOF > conftest.$ac_ext
5156 # Now generate the symbol file.
5157 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5159 cat <<_LT_EOF >> conftest.$ac_ext
5161 /* The mapping between symbol names and symbols. */
5166 lt__PROGRAM__LTX_preloaded_symbols[] =
5168 { "@PROGRAM@", (void *) 0 },
5170 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5171 cat <<\_LT_EOF >> conftest.$ac_ext
5175 /* This works around a problem in FreeBSD linker */
5176 #ifdef FREEBSD_WORKAROUND
5177 static const void *lt_preloaded_setup() {
5178 return lt__PROGRAM__LTX_preloaded_symbols;
5186 # Now try linking the two files.
5187 mv conftest.$ac_objext conftstm.$ac_objext
5188 lt_save_LIBS="$LIBS"
5189 lt_save_CFLAGS="$CFLAGS"
5190 LIBS="conftstm.$ac_objext"
5191 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5199 LIBS="$lt_save_LIBS"
5200 CFLAGS="$lt_save_CFLAGS"
5202 echo "cannot find nm_test_func in $nlist" >&5
5205 echo "cannot find nm_test_var in $nlist" >&5
5208 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5211 echo "$progname: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5214 rm -f conftest* conftst*
5216 # Do not use the global_symbol_pipe unless it works.
5217 if test "$pipe_works" = yes; then
5220 lt_cv_sys_global_symbol_pipe=
5226 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5227 lt_cv_sys_global_symbol_to_cdecl=
5229 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5230 echo "$as_me:$LINENO: result: failed" >&5
5231 echo "${ECHO_T}failed" >&6
5233 echo "$as_me:$LINENO: result: ok" >&5
5234 echo "${ECHO_T}ok" >&6
5254 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5255 if test "${enable_libtool_lock+set}" = set; then
5256 enableval="$enable_libtool_lock"
5259 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5261 # Some flags need to be propagated to the compiler or linker for good
5265 # Find out which ABI we are using.
5266 echo 'int i;' > conftest.$ac_ext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; then
5272 case `/usr/bin/file conftest.$ac_objext` in
5284 # Find out which ABI we are using.
5285 echo '#line 5285 "configure"' > conftest.$ac_ext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; then
5291 if test "$lt_cv_prog_gnu_ld" = yes; then
5292 case `/usr/bin/file conftest.$ac_objext` in
5294 LD="${LD-ld} -melf32bsmip"
5297 LD="${LD-ld} -melf32bmipn32"
5300 LD="${LD-ld} -melf64bmip"
5304 case `/usr/bin/file conftest.$ac_objext` in
5320 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5321 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5322 # Find out which ABI we are using.
5323 echo 'int i;' > conftest.$ac_ext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; then
5329 case `/usr/bin/file conftest.o` in
5332 x86_64-*kfreebsd*-gnu)
5333 LD="${LD-ld} -m elf_i386_fbsd"
5336 LD="${LD-ld} -m elf_i386"
5338 ppc64-*linux*|powerpc64-*linux*)
5339 LD="${LD-ld} -m elf32ppclinux"
5342 LD="${LD-ld} -m elf_s390"
5345 LD="${LD-ld} -m elf32_sparc"
5351 x86_64-*kfreebsd*-gnu)
5352 LD="${LD-ld} -m elf_x86_64_fbsd"
5355 LD="${LD-ld} -m elf_x86_64"
5357 ppc*-*linux*|powerpc*-*linux*)
5358 LD="${LD-ld} -m elf64ppc"
5360 s390*-*linux*|s390*-*tpf*)
5361 LD="${LD-ld} -m elf64_s390"
5364 LD="${LD-ld} -m elf64_sparc"
5374 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5375 SAVE_CFLAGS="$CFLAGS"
5376 CFLAGS="$CFLAGS -belf"
5377 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5378 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5379 if test "${lt_cv_cc_needs_belf+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388 cat >conftest.$ac_ext <<_ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>conftest.er1
5407 grep -v '^ *+' conftest.er1 >conftest.err
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag"
5413 || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try='test -s conftest$ac_exeext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 lt_cv_cc_needs_belf=yes
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5430 lt_cv_cc_needs_belf=no
5432 rm -f conftest.err conftest.$ac_objext \
5433 conftest$ac_exeext conftest.$ac_ext
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5442 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5443 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5444 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5445 CFLAGS="$SAVE_CFLAGS"
5449 # Find out which ABI we are using.
5450 echo 'int i;' > conftest.$ac_ext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; then
5456 case `/usr/bin/file conftest.o` in
5458 case $lt_cv_prog_gnu_ld in
5459 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5460 *) LD="${LD-ld} -64" ;;
5469 need_locks="$enable_libtool_lock"
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5477 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5478 # On Suns, sometimes $CPP names a directory.
5479 if test -n "$CPP" && test -d "$CPP"; then
5482 if test -z "$CPP"; then
5483 if test "${ac_cv_prog_CPP+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 # Double quotes because CPP needs to be expanded
5487 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5490 for ac_c_preproc_warn_flag in '' yes
5492 # Use a header file that comes with gcc, so configuring glibc
5493 # with a fresh cross-compiler works.
5494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 # <limits.h> exists even on freestanding compilers.
5496 # On the NeXT, cc -E runs the code through the compiler's parser,
5497 # not just through cpp. "Syntax error" is here to catch this case.
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5505 # include <limits.h>
5507 # include <assert.h>
5511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5514 grep -v '^ *+' conftest.er1 >conftest.err
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } >/dev/null; then
5519 if test -s conftest.err; then
5520 ac_cpp_err=$ac_c_preproc_warn_flag
5521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5528 if test -z "$ac_cpp_err"; then
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 # Broken: fails on valid input.
5537 rm -f conftest.err conftest.$ac_ext
5539 # OK, works on sane cases. Now check whether non-existent headers
5540 # can be detected and how.
5541 cat >conftest.$ac_ext <<_ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 #include <ac_nonexistent.h>
5549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5552 grep -v '^ *+' conftest.er1 >conftest.err
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null; then
5557 if test -s conftest.err; then
5558 ac_cpp_err=$ac_c_preproc_warn_flag
5559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5566 if test -z "$ac_cpp_err"; then
5567 # Broken: success on invalid input.
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5573 # Passes both tests.
5577 rm -f conftest.err conftest.$ac_ext
5580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5581 rm -f conftest.err conftest.$ac_ext
5582 if $ac_preproc_ok; then
5594 echo "$as_me:$LINENO: result: $CPP" >&5
5595 echo "${ECHO_T}$CPP" >&6
5597 for ac_c_preproc_warn_flag in '' yes
5599 # Use a header file that comes with gcc, so configuring glibc
5600 # with a fresh cross-compiler works.
5601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602 # <limits.h> exists even on freestanding compilers.
5603 # On the NeXT, cc -E runs the code through the compiler's parser,
5604 # not just through cpp. "Syntax error" is here to catch this case.
5605 cat >conftest.$ac_ext <<_ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5612 # include <limits.h>
5614 # include <assert.h>
5618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5621 grep -v '^ *+' conftest.er1 >conftest.err
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } >/dev/null; then
5626 if test -s conftest.err; then
5627 ac_cpp_err=$ac_c_preproc_warn_flag
5628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5635 if test -z "$ac_cpp_err"; then
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 # Broken: fails on valid input.
5644 rm -f conftest.err conftest.$ac_ext
5646 # OK, works on sane cases. Now check whether non-existent headers
5647 # can be detected and how.
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <ac_nonexistent.h>
5656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } >/dev/null; then
5664 if test -s conftest.err; then
5665 ac_cpp_err=$ac_c_preproc_warn_flag
5666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5673 if test -z "$ac_cpp_err"; then
5674 # Broken: success on invalid input.
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 # Passes both tests.
5684 rm -f conftest.err conftest.$ac_ext
5687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688 rm -f conftest.err conftest.$ac_ext
5689 if $ac_preproc_ok; then
5692 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5693 See \`config.log' for more details." >&5
5694 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5695 See \`config.log' for more details." >&2;}
5696 { (exit 1); exit 1; }; }
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5707 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5708 if test "${ac_cv_header_stdc+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_header_stdc=yes
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 ac_cv_header_stdc=no
5759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5761 if test $ac_cv_header_stdc = yes; then
5762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5773 $EGREP "memchr" >/dev/null 2>&1; then
5776 ac_cv_header_stdc=no
5782 if test $ac_cv_header_stdc = yes; then
5783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5794 $EGREP "free" >/dev/null 2>&1; then
5797 ac_cv_header_stdc=no
5803 if test $ac_cv_header_stdc = yes; then
5804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5805 if test "$cross_compiling" = yes; then
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5815 #if ((' ' & 0x0FF) == 0x020)
5816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5819 # define ISLOWER(c) \
5820 (('a' <= (c) && (c) <= 'i') \
5821 || ('j' <= (c) && (c) <= 'r') \
5822 || ('s' <= (c) && (c) <= 'z'))
5823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5831 for (i = 0; i < 256; i++)
5832 if (XOR (islower (i), ISLOWER (i))
5833 || toupper (i) != TOUPPER (i))
5838 rm -f conftest$ac_exeext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5840 (eval $ac_link) 2>&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5851 echo "$as_me: program exited with status $ac_status" >&5
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5856 ac_cv_header_stdc=no
5858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5862 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5863 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5864 if test $ac_cv_header_stdc = yes; then
5866 cat >>confdefs.h <<\_ACEOF
5867 #define STDC_HEADERS 1
5872 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5882 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5883 inttypes.h stdint.h unistd.h
5885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886 echo "$as_me:$LINENO: checking for $ac_header" >&5
5887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5899 #include <$ac_header>
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>conftest.er1
5905 grep -v '^ *+' conftest.er1 >conftest.err
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } &&
5910 { ac_try='test -z "$ac_c_werror_flag"
5911 || test ! -s conftest.err'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest.$ac_objext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 eval "$as_ac_Header=yes"
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 eval "$as_ac_Header=no"
5930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5935 cat >>confdefs.h <<_ACEOF
5936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5945 for ac_header in dlfcn.h
5947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948 echo "$as_me:$LINENO: checking for $ac_header" >&5
5949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 $ac_includes_default
5961 #include <$ac_header>
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try='test -s conftest.$ac_objext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 eval "$as_ac_Header=yes"
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5990 eval "$as_ac_Header=no"
5992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5997 cat >>confdefs.h <<_ACEOF
5998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007 # This can be used to rebuild libtool when needed
6008 LIBTOOL_DEPS="$ltmain"
6010 # Always use our own libtool.
6011 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6037 test -z "$LN_S" && LN_S="ln -s"
6052 if test -n "${ZSH_VERSION+set}" ; then
6053 setopt NO_GLOB_SUBST
6056 echo "$as_me:$LINENO: checking for objdir" >&5
6057 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6058 if test "${lt_cv_objdir+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 rm -f .libs 2>/dev/null
6062 mkdir .libs 2>/dev/null
6063 if test -d .libs; then
6066 # MS-DOS does not allow filenames that begin with a dot.
6069 rmdir .libs 2>/dev/null
6071 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6072 echo "${ECHO_T}$lt_cv_objdir" >&6
6073 objdir=$lt_cv_objdir
6079 cat >>confdefs.h <<_ACEOF
6080 #define LT_OBJDIR "$lt_cv_objdir/"
6101 # AIX sometimes has problems with the GCC collect2 program. For some
6102 # reason, if we set the COLLECT_NAMES environment variable, the problems
6103 # vanish in a puff of smoke.
6104 if test "X${COLLECT_NAMES+set}" != Xset; then
6106 export COLLECT_NAMES
6111 # Sed substitution that helps us do robust quoting. It backslashifies
6112 # metacharacters that are still active within double-quoted strings.
6113 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6115 # Same as above, but do not quote variable references.
6116 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6118 # Sed substitution to delay expansion of an escaped shell variable in a
6119 # double_quote_subst'ed string.
6120 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6122 # Sed substitution to delay expansion of an escaped single quote.
6123 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6125 # Sed substitution to avoid accidental globbing in evaled expressions
6126 no_glob_subst='s/\*/\\\*/g'
6130 can_build_shared=yes
6132 # All known linkers require a `.a' archive for static linking (except MSVC,
6133 # which needs '.lib').
6136 with_gnu_ld="$lt_cv_prog_gnu_ld"
6139 old_CFLAGS="$CFLAGS"
6141 # Set sane defaults for various variables
6142 test -z "$CC" && CC=cc
6143 test -z "$LTCC" && LTCC=$CC
6144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6145 test -z "$LD" && LD=ld
6146 test -z "$ac_objext" && ac_objext=o
6148 for cc_temp in $compiler""; do
6150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6156 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6159 # Only perform the check for file, if the check method requires it
6160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6161 case $deplibs_check_method in
6163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6164 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6165 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6174 lt_save_MAGIC_CMD="$MAGIC_CMD"
6175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6177 for ac_dir in $ac_dummy; do
6179 test -z "$ac_dir" && ac_dir=.
6180 if test -f $ac_dir/${ac_tool_prefix}file; then
6181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6182 if test -n "$file_magic_test_file"; then
6183 case $deplibs_check_method in
6185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6188 $EGREP "$file_magic_regex" > /dev/null; then
6193 *** Warning: the command libtool uses to detect shared libraries,
6194 *** $file_magic_cmd, produces output that libtool cannot recognize.
6195 *** The result is that libtool may fail to recognize shared libraries
6196 *** as such. This will affect the creation of libtool libraries that
6197 *** depend on shared libraries, but programs linked with such libtool
6198 *** libraries will work regardless of this problem. Nevertheless, you
6199 *** may want to report the problem to your system manager and/or to
6200 *** bug-libtool@gnu.org
6210 MAGIC_CMD="$lt_save_MAGIC_CMD"
6215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216 if test -n "$MAGIC_CMD"; then
6217 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6218 echo "${ECHO_T}$MAGIC_CMD" >&6
6220 echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6
6228 if test -z "$lt_cv_path_MAGIC_CMD"; then
6229 if test -n "$ac_tool_prefix"; then
6230 echo "$as_me:$LINENO: checking for file" >&5
6231 echo $ECHO_N "checking for file... $ECHO_C" >&6
6232 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6240 lt_save_MAGIC_CMD="$MAGIC_CMD"
6241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6243 for ac_dir in $ac_dummy; do
6245 test -z "$ac_dir" && ac_dir=.
6246 if test -f $ac_dir/file; then
6247 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6248 if test -n "$file_magic_test_file"; then
6249 case $deplibs_check_method in
6251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6254 $EGREP "$file_magic_regex" > /dev/null; then
6259 *** Warning: the command libtool uses to detect shared libraries,
6260 *** $file_magic_cmd, produces output that libtool cannot recognize.
6261 *** The result is that libtool may fail to recognize shared libraries
6262 *** as such. This will affect the creation of libtool libraries that
6263 *** depend on shared libraries, but programs linked with such libtool
6264 *** libraries will work regardless of this problem. Nevertheless, you
6265 *** may want to report the problem to your system manager and/or to
6266 *** bug-libtool@gnu.org
6276 MAGIC_CMD="$lt_save_MAGIC_CMD"
6281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6282 if test -n "$MAGIC_CMD"; then
6283 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6284 echo "${ECHO_T}$MAGIC_CMD" >&6
6286 echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6300 # Use C for the default configuration in the libtool script
6304 ac_cpp='$CPP $CPPFLAGS'
6305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6310 # Source file extension for C test sources.
6313 # Object file extension for compiled C test sources.
6317 # Code to be used in simple compile tests
6318 lt_simple_compile_test_code="int some_variable = 0;"
6320 # Code to be used in simple link tests
6321 lt_simple_link_test_code='int main(){return(0);}'
6329 # If no C compiler was specified, use CC.
6332 # If no C compiler flags were specified, use CFLAGS.
6333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6335 # Allow CC to be a program name with arguments.
6338 # Save the default compiler, since it gets overwritten when the other
6339 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6340 compiler_DEFAULT=$CC
6342 # save warnings/boilerplate of simple test code
6343 ac_outfile=conftest.$ac_objext
6344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6346 _lt_compiler_boilerplate=`cat conftest.err`
6349 ac_outfile=conftest.$ac_objext
6350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6352 _lt_linker_boilerplate=`cat conftest.err`
6357 ## There is no encapsulation within the following macros, do not change
6358 ## the running order or otherwise move them around unless you know exactly
6359 ## what you are doing...
6360 if test -n "$compiler"; then
6362 lt_prog_compiler_no_builtin_flag=
6364 if test "$GCC" = yes; then
6365 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6367 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6368 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6369 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 lt_cv_prog_compiler_rtti_exceptions=no
6373 ac_outfile=conftest.$ac_objext
6374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6375 lt_compiler_flag="-fno-rtti -fno-exceptions"
6376 # Insert the option either (1) after the last *FLAGS variable, or
6377 # (2) before a word containing "conftest.", or (3) at the end.
6378 # Note that $ac_compile itself does not contain backslashes and begins
6379 # with a dollar sign (not a hyphen), so the echo should work correctly.
6380 # The option is referenced via a variable to avoid confusing sed.
6381 lt_compile=`echo "$ac_compile" | $SED \
6382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6384 -e 's:$: $lt_compiler_flag:'`
6385 (eval echo "\"\$as_me:6385: $lt_compile\"" >&5)
6386 (eval "$lt_compile" 2>conftest.err)
6388 cat conftest.err >&5
6389 echo "$as_me:6389: \$? = $ac_status" >&5
6390 if (exit $ac_status) && test -s "$ac_outfile"; then
6391 # The compiler can only warn and ignore the option if not recognized
6392 # So say no if there are warnings other than the usual output.
6393 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6396 lt_cv_prog_compiler_rtti_exceptions=yes
6402 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6403 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6405 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6406 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6418 lt_prog_compiler_wl=
6419 lt_prog_compiler_pic=
6420 lt_prog_compiler_static=
6422 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6423 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6425 if test "$GCC" = yes; then
6426 lt_prog_compiler_wl='-Wl,'
6427 lt_prog_compiler_static='-static'
6431 # All AIX code is PIC.
6432 if test "$host_cpu" = ia64; then
6433 # AIX 5 now supports IA64 processor
6434 lt_prog_compiler_static='-Bstatic'
6439 if test "$host_cpu" = m68k; then
6440 # FIXME: we need at least 68020 code to build shared libraries, but
6441 # adding the `-m68020' flag to GCC prevents building anything better,
6443 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6447 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6448 # PIC is the default for these OSes.
6451 mingw* | cygwin* | pw32* | os2*)
6452 # This hack is so that the source file can tell whether it is being
6453 # built for inclusion in a dll (and should export symbols for example).
6454 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6455 # (--disable-auto-import) libraries
6456 lt_prog_compiler_pic='-DDLL_EXPORT'
6459 darwin* | rhapsody*)
6460 # PIC is the default on this platform
6461 # Common symbols not allowed in MH_DYLIB files
6462 lt_prog_compiler_pic='-fno-common'
6466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6473 lt_prog_compiler_pic='-fPIC'
6479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6480 # Instead, we relocate shared libraries at runtime.
6484 # Just because we use GCC doesn't mean we suddenly get shared libraries
6485 # on systems that don't support them.
6486 lt_prog_compiler_can_build_shared=no
6491 # QNX uses GNU C++, but need to define -shared option too, otherwise
6493 lt_prog_compiler_pic='-fPIC -shared'
6497 if test -d /usr/nec; then
6498 lt_prog_compiler_pic=-Kconform_pic
6503 lt_prog_compiler_pic='-fPIC'
6507 # PORTME Check for flag to pass linker flags through the system compiler.
6510 lt_prog_compiler_wl='-Wl,'
6511 if test "$host_cpu" = ia64; then
6512 # AIX 5 now supports IA64 processor
6513 lt_prog_compiler_static='-Bstatic'
6515 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6519 # PIC is the default on this platform
6520 # Common symbols not allowed in MH_DYLIB files
6521 case $cc_basename in
6523 lt_prog_compiler_pic='-qnocommon'
6524 lt_prog_compiler_wl='-Wl,'
6529 mingw* | cygwin* | pw32* | os2*)
6530 # This hack is so that the source file can tell whether it is being
6531 # built for inclusion in a dll (and should export symbols for example).
6532 lt_prog_compiler_pic='-DDLL_EXPORT'
6535 hpux9* | hpux10* | hpux11*)
6536 lt_prog_compiler_wl='-Wl,'
6537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6544 lt_prog_compiler_pic='+Z'
6547 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6548 lt_prog_compiler_static='${wl}-a ${wl}archive'
6551 irix5* | irix6* | nonstopux*)
6552 lt_prog_compiler_wl='-Wl,'
6553 # PIC (with -KPIC) is the default.
6554 lt_prog_compiler_static='-non_shared'
6557 linux* | k*bsd*-gnu)
6558 case $cc_basename in
6560 lt_prog_compiler_wl='-Wl,'
6561 lt_prog_compiler_pic='-KPIC'
6562 lt_prog_compiler_static='-static'
6564 pgcc* | pgf77* | pgf90* | pgf95*)
6565 # Portland Group compilers (*not* the Pentium gcc compiler,
6566 # which looks to be a dead project)
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-fpic'
6569 lt_prog_compiler_static='-Bstatic'
6572 lt_prog_compiler_wl='-Wl,'
6573 # All Alpha code is PIC.
6574 lt_prog_compiler_static='-non_shared'
6577 case `$CC -V 2>&1 | sed 5q` in
6580 lt_prog_compiler_pic='-KPIC'
6581 lt_prog_compiler_static='-Bstatic'
6582 lt_prog_compiler_wl='-Wl,'
6585 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6586 lt_prog_compiler_pic='-KPIC'
6587 lt_prog_compiler_static='-Bstatic'
6588 lt_prog_compiler_wl=''
6596 lt_prog_compiler_pic='-KPIC'
6597 lt_prog_compiler_static='-Bstatic'
6601 # QNX uses GNU C++, but need to define -shared option too, otherwise
6603 lt_prog_compiler_pic='-fPIC -shared'
6606 osf3* | osf4* | osf5*)
6607 lt_prog_compiler_wl='-Wl,'
6608 # All OSF/1 code is PIC.
6609 lt_prog_compiler_static='-non_shared'
6613 lt_prog_compiler_static='-non_shared'
6617 lt_prog_compiler_pic='-KPIC'
6618 lt_prog_compiler_static='-Bstatic'
6619 case $cc_basename in
6621 lt_prog_compiler_wl='-Qoption ld ';;
6623 lt_prog_compiler_wl='-Wl,';;
6628 lt_prog_compiler_wl='-Qoption ld '
6629 lt_prog_compiler_pic='-PIC'
6630 lt_prog_compiler_static='-Bstatic'
6633 sysv4 | sysv4.2uw2* | sysv4.3*)
6634 lt_prog_compiler_wl='-Wl,'
6635 lt_prog_compiler_pic='-KPIC'
6636 lt_prog_compiler_static='-Bstatic'
6640 if test -d /usr/nec ;then
6641 lt_prog_compiler_pic='-Kconform_pic'
6642 lt_prog_compiler_static='-Bstatic'
6646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6647 lt_prog_compiler_wl='-Wl,'
6648 lt_prog_compiler_pic='-KPIC'
6649 lt_prog_compiler_static='-Bstatic'
6653 lt_prog_compiler_wl='-Wl,'
6654 lt_prog_compiler_can_build_shared=no
6658 lt_prog_compiler_pic='-pic'
6659 lt_prog_compiler_static='-Bstatic'
6663 lt_prog_compiler_can_build_shared=no
6669 # For platforms which do not support PIC, -DPIC is meaningless:
6671 lt_prog_compiler_pic=
6674 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6678 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6686 # Check to make sure the PIC flag actually works.
6688 if test -n "$lt_prog_compiler_pic"; then
6689 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6690 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6691 if test "${lt_prog_compiler_pic_works+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 lt_prog_compiler_pic_works=no
6695 ac_outfile=conftest.$ac_objext
6696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6697 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6698 # Insert the option either (1) after the last *FLAGS variable, or
6699 # (2) before a word containing "conftest.", or (3) at the end.
6700 # Note that $ac_compile itself does not contain backslashes and begins
6701 # with a dollar sign (not a hyphen), so the echo should work correctly.
6702 # The option is referenced via a variable to avoid confusing sed.
6703 lt_compile=`echo "$ac_compile" | $SED \
6704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6706 -e 's:$: $lt_compiler_flag:'`
6707 (eval echo "\"\$as_me:6707: $lt_compile\"" >&5)
6708 (eval "$lt_compile" 2>conftest.err)
6710 cat conftest.err >&5
6711 echo "$as_me:6711: \$? = $ac_status" >&5
6712 if (exit $ac_status) && test -s "$ac_outfile"; then
6713 # The compiler can only warn and ignore the option if not recognized
6714 # So say no if there are warnings other than the usual output.
6715 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6718 lt_prog_compiler_pic_works=yes
6724 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6725 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6727 if test x"$lt_prog_compiler_pic_works" = xyes; then
6728 case $lt_prog_compiler_pic in
6730 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6733 lt_prog_compiler_pic=
6734 lt_prog_compiler_can_build_shared=no
6745 # Check to make sure the static flag actually works.
6747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6748 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6749 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6750 if test "${lt_prog_compiler_static_works+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 lt_prog_compiler_static_works=no
6754 save_LDFLAGS="$LDFLAGS"
6755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6758 # The linker can only warn and ignore the option if not recognized
6759 # So say no if there are warnings
6760 if test -s conftest.err; then
6761 # Append any errors to the config.log.
6762 cat conftest.err 1>&5
6763 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6765 if diff conftest.exp conftest.er2 >/dev/null; then
6766 lt_prog_compiler_static_works=yes
6769 lt_prog_compiler_static_works=yes
6773 LDFLAGS="$save_LDFLAGS"
6776 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6777 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6779 if test x"$lt_prog_compiler_static_works" = xyes; then
6782 lt_prog_compiler_static=
6791 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6792 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6793 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 lt_cv_prog_compiler_c_o=no
6797 $RM -r conftest 2>/dev/null
6801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6803 lt_compiler_flag="-o out/conftest2.$ac_objext"
6804 # Insert the option either (1) after the last *FLAGS variable, or
6805 # (2) before a word containing "conftest.", or (3) at the end.
6806 # Note that $ac_compile itself does not contain backslashes and begins
6807 # with a dollar sign (not a hyphen), so the echo should work correctly.
6808 lt_compile=`echo "$ac_compile" | $SED \
6809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6811 -e 's:$: $lt_compiler_flag:'`
6812 (eval echo "\"\$as_me:6812: $lt_compile\"" >&5)
6813 (eval "$lt_compile" 2>out/conftest.err)
6815 cat out/conftest.err >&5
6816 echo "$as_me:6816: \$? = $ac_status" >&5
6817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6819 # The compiler can only warn and ignore the option if not recognized
6820 # So say no if there are warnings
6821 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6824 lt_cv_prog_compiler_c_o=yes
6829 # SGI C++ compiler will create directory out/ii_files/ for
6830 # template instantiation
6831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6832 $RM out/* && rmdir out
6838 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6839 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6846 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6848 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 lt_cv_prog_compiler_c_o=no
6852 $RM -r conftest 2>/dev/null
6856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6858 lt_compiler_flag="-o out/conftest2.$ac_objext"
6859 # Insert the option either (1) after the last *FLAGS variable, or
6860 # (2) before a word containing "conftest.", or (3) at the end.
6861 # Note that $ac_compile itself does not contain backslashes and begins
6862 # with a dollar sign (not a hyphen), so the echo should work correctly.
6863 lt_compile=`echo "$ac_compile" | $SED \
6864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6866 -e 's:$: $lt_compiler_flag:'`
6867 (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
6868 (eval "$lt_compile" 2>out/conftest.err)
6870 cat out/conftest.err >&5
6871 echo "$as_me:6871: \$? = $ac_status" >&5
6872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6874 # The compiler can only warn and ignore the option if not recognized
6875 # So say no if there are warnings
6876 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6879 lt_cv_prog_compiler_c_o=yes
6884 # SGI C++ compiler will create directory out/ii_files/ for
6885 # template instantiation
6886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6887 $RM out/* && rmdir out
6893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6899 hard_links="nottested"
6900 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6901 # do not overwrite the value of need_locks provided by the user
6902 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6903 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6908 ln conftest.a conftest.b 2>&5 || hard_links=no
6909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6910 echo "$as_me:$LINENO: result: $hard_links" >&5
6911 echo "${ECHO_T}$hard_links" >&6
6912 if test "$hard_links" = no; then
6913 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6914 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6926 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6927 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6930 allow_undefined_flag=
6931 always_export_symbols=no
6933 archive_expsym_cmds=
6934 compiler_needs_object=no
6935 enable_shared_with_static_runtimes=no
6936 export_dynamic_flag_spec=
6937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6938 hardcode_automatic=no
6940 hardcode_direct_absolute=no
6941 hardcode_libdir_flag_spec=
6942 hardcode_libdir_flag_spec_ld=
6943 hardcode_libdir_separator=
6945 hardcode_shlibpath_var=unsupported
6947 link_all_deplibs=unknown
6950 old_archive_from_new_cmds=
6951 old_archive_from_expsyms_cmds=
6952 thread_safe_flag_spec=
6953 whole_archive_flag_spec=
6954 # include_expsyms should be a list of space-separated symbols to be *always*
6955 # included in the symbol list
6957 # exclude_expsyms can be an extended regexp of symbols to exclude
6958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6960 # as well as any symbol that contains `d'.
6961 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6963 # platforms (ab)use it in PIC code, but their linkers get confused if
6964 # the symbol is explicitly referenced. Since portable code cannot
6965 # rely on this symbol name, it's probably fine to never include it in
6966 # preloaded symbol tables.
6967 extract_expsyms_cmds=
6970 cygwin* | mingw* | pw32*)
6971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6972 # When not using gcc, we currently assume that we are using
6973 # Microsoft Visual C++.
6974 if test "$GCC" != yes; then
6979 # we just hope/assume this is gcc and not c89 (= MSVC++)
6988 if test "$with_gnu_ld" = yes; then
6989 # If archive_cmds runs LD, not CC, wlarc should be empty
6992 # Set some defaults for GNU ld with shared library support. These
6993 # are reset later if shared libraries are not supported. Putting them
6994 # here allows them to be overridden if necessary.
6995 runpath_var=LD_RUN_PATH
6996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6997 export_dynamic_flag_spec='${wl}--export-dynamic'
6998 # ancient GNU ld didn't support --whole-archive et. al.
6999 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7000 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7002 whole_archive_flag_spec=
7004 supports_anon_versioning=no
7005 case `$LD -v 2>&1` in
7006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7009 *\ 2.11.*) ;; # other 2.11 versions
7010 *) supports_anon_versioning=yes ;;
7013 # See if GNU ld supports shared libraries.
7016 # On AIX/PPC, the GNU linker is very broken
7017 if test "$host_cpu" != ia64; then
7021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7022 *** to be unable to reliably create shared libraries on AIX.
7023 *** Therefore, libtool is disabling shared libraries support. If you
7024 *** really care for shared libraries, you may want to modify your PATH
7025 *** so that a non-GNU linker is found, and then restart.
7032 if test "$host_cpu" = m68k; then
7033 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)'
7034 hardcode_libdir_flag_spec='-L$libdir'
7035 hardcode_minus_L=yes
7038 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7039 # that the semantics of dynamic libraries on AmigaOS, at least up
7040 # to version 4, is to share data among multiple programs linked
7041 # with the same dynamic library. Since this doesn't match the
7042 # behavior of shared libraries on other platforms, we can't use
7048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7049 allow_undefined_flag=unsupported
7050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7051 # support --undefined. This deserves some investigation. FIXME
7052 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7058 cygwin* | mingw* | pw32*)
7059 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7060 # as there is no search path for DLLs.
7061 hardcode_libdir_flag_spec='-L$libdir'
7062 allow_undefined_flag=unsupported
7063 always_export_symbols=no
7064 enable_shared_with_static_runtimes=yes
7065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7067 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7069 # If the export-symbols file already is a .def file (1st line
7070 # is EXPORTS), use it as is; otherwise, prepend...
7071 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7072 cp $export_symbols $output_objdir/$soname.def;
7074 echo EXPORTS > $output_objdir/$soname.def;
7075 cat $export_symbols >> $output_objdir/$soname.def;
7077 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7085 hardcode_shlibpath_var=no
7086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7087 export_dynamic_flag_spec='${wl}-E'
7088 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7089 # Instead, shared libraries are loaded at an image base (0x10000000 by
7090 # default) and relocated if they conflict, which is a slow very memory
7091 # consuming and fragmenting process. To avoid this, we pick a random,
7092 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7093 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7095 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7098 gnu* | linux* | tpf* | k*bsd*-gnu)
7100 if test "$host_os" = linux-dietlibc; then
7101 case $cc_basename in
7102 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7105 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7106 && test "$tmp_diet" = no
7109 case $cc_basename,$host_cpu in
7110 pgcc*) # Portland Group C compiler
7111 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'
7112 tmp_addflag=' $pic_flag'
7114 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7115 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'
7116 tmp_addflag=' $pic_flag -Mnomain' ;;
7117 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7118 tmp_addflag=' -i_dynamic' ;;
7119 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7120 tmp_addflag=' -i_dynamic -nofor_main' ;;
7121 ifc* | ifort*) # Intel Fortran compiler
7122 tmp_addflag=' -nofor_main' ;;
7124 case `$CC -V 2>&1 | sed 5q` in
7125 *Sun\ C*) # Sun C 5.9
7126 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7127 compiler_needs_object=yes
7128 tmp_sharedflag='-G' ;;
7129 *Sun\ F*) # Sun Fortran 8.3
7130 tmp_sharedflag='-G' ;;
7132 tmp_sharedflag='-shared' ;;
7134 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7136 if test "x$supports_anon_versioning" = xyes; then
7137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7139 echo "local: *; };" >> $output_objdir/$libname.ver~
7140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7149 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7158 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7162 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7163 *** create shared libraries on Solaris systems. Therefore, libtool
7164 *** is disabling shared libraries support. We urge you to upgrade GNU
7165 *** binutils to release 2.9.1 or newer. Another option is to modify
7166 *** your PATH or compiler configuration so that the native linker is
7167 *** used, and then restart.
7170 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7179 case `$LD -v 2>&1` in
7180 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7184 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7185 *** reliably create shared libraries on SCO systems. Therefore, libtool
7186 *** is disabling shared libraries support. We urge you to upgrade GNU
7187 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7188 *** your PATH or compiler configuration so that the native linker is
7189 *** used, and then restart.
7194 # For security reasons, it is highly recommended that you always
7195 # use absolute paths for naming shared libraries, and exclude the
7196 # DT_RUNPATH tag from executables and libraries. But doing so
7197 # requires that you compile everything twice, which is a pain.
7198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7210 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7213 hardcode_shlibpath_var=no
7217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7226 if test "$ld_shlibs" = no; then
7228 hardcode_libdir_flag_spec=
7229 export_dynamic_flag_spec=
7230 whole_archive_flag_spec=
7233 # PORTME fill in a description of your system's linker (not GNU ld)
7236 allow_undefined_flag=unsupported
7237 always_export_symbols=yes
7238 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'
7239 # Note: this linker hardcodes the directories in LIBPATH if there
7240 # are no directories specified by -L.
7241 hardcode_minus_L=yes
7242 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7243 # Neither direct hardcoding nor static linking is supported with a
7245 hardcode_direct=unsupported
7250 if test "$host_cpu" = ia64; then
7251 # On IA64, the linker does run time linking by default, so we don't
7252 # have to do anything special.
7253 aix_use_runtimelinking=no
7254 exp_sym_flag='-Bexport'
7257 # If we're using GNU nm, then we don't want the "-C" option.
7258 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7260 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'
7262 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'
7264 aix_use_runtimelinking=no
7266 # Test if we are trying to use run time linking or normal
7267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7268 # need to do runtime linking.
7269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7270 for ld_flag in $LDFLAGS; do
7271 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7272 aix_use_runtimelinking=yes
7279 exp_sym_flag='-bexport'
7280 no_entry_flag='-bnoentry'
7283 # When large executables or shared objects are built, AIX ld can
7284 # have problems creating the table of contents. If linking a library
7285 # or program results in "error TOC overflow" add -mminimal-toc to
7286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7291 hardcode_direct_absolute=yes
7292 hardcode_libdir_separator=':'
7293 link_all_deplibs=yes
7294 file_list_spec='${wl}-f,'
7296 if test "$GCC" = yes; then
7297 case $host_os in aix4.[012]|aix4.[012].*)
7298 # We only want to do this on AIX 4.2 and lower, the check
7299 # below for broken collect2 doesn't work under 4.3+
7300 collect2name=`${CC} -print-prog-name=collect2`
7301 if test -f "$collect2name" &&
7302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7304 # We have reworked collect2
7307 # We have old collect2
7308 hardcode_direct=unsupported
7309 # It fails to find uninstalled libraries when the uninstalled
7310 # path is not listed in the libpath. Setting hardcode_minus_L
7311 # to unsupported forces relinking
7312 hardcode_minus_L=yes
7313 hardcode_libdir_flag_spec='-L$libdir'
7314 hardcode_libdir_separator=
7318 shared_flag='-shared'
7319 if test "$aix_use_runtimelinking" = yes; then
7320 shared_flag="$shared_flag "'${wl}-G'
7324 if test "$host_cpu" = ia64; then
7325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7326 # chokes on -Wl,-G. The following line is correct:
7329 if test "$aix_use_runtimelinking" = yes; then
7330 shared_flag='${wl}-G'
7332 shared_flag='${wl}-bM:SRE'
7337 # It seems that -bexpall does not export symbols beginning with
7338 # underscore (_), so it is better to generate a list of symbols to export.
7339 always_export_symbols=yes
7340 if test "$aix_use_runtimelinking" = yes; then
7341 # Warning - without using the other runtime loading flags (-brtl),
7342 # -berok will link without error, but may produce a broken library.
7343 allow_undefined_flag='-berok'
7344 # Determine the default libpath from the value encoded in an
7346 cat >conftest.$ac_ext <<_ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>conftest.er1
7365 grep -v '^ *+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try='test -z "$ac_c_werror_flag"
7371 || test ! -s conftest.err'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; } &&
7377 { ac_try='test -s conftest$ac_exeext'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7384 lt_aix_libpath_sed='
7385 /Import File Strings/,/^$/ {
7391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7392 # Check for a 64-bit object if we didn't find anything.
7393 if test -z "$aix_libpath"; then
7394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7401 rm -f conftest.err conftest.$ac_objext \
7402 conftest$ac_exeext conftest.$ac_ext
7403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7405 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7406 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7408 if test "$host_cpu" = ia64; then
7409 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7410 allow_undefined_flag="-z nodefs"
7411 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7413 # Determine the default libpath from the value encoded in an
7415 cat >conftest.$ac_ext <<_ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7430 rm -f conftest.$ac_objext conftest$ac_exeext
7431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432 (eval $ac_link) 2>conftest.er1
7434 grep -v '^ *+' conftest.er1 >conftest.err
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try='test -z "$ac_c_werror_flag"
7440 || test ! -s conftest.err'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; } &&
7446 { ac_try='test -s conftest$ac_exeext'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; }; then
7453 lt_aix_libpath_sed='
7454 /Import File Strings/,/^$/ {
7460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7461 # Check for a 64-bit object if we didn't find anything.
7462 if test -z "$aix_libpath"; then
7463 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7470 rm -f conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7475 # Warning - without using the other run time loading flags,
7476 # -berok will link without error, but may produce a broken library.
7477 no_undefined_flag=' ${wl}-bernotok'
7478 allow_undefined_flag=' ${wl}-berok'
7479 # Exported symbols can be pulled into shared objects from archives
7480 whole_archive_flag_spec='$convenience'
7481 archive_cmds_need_lc=yes
7482 # This is similar to how AIX traditionally builds its shared libraries.
7483 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7489 if test "$host_cpu" = m68k; then
7490 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)'
7491 hardcode_libdir_flag_spec='-L$libdir'
7492 hardcode_minus_L=yes
7494 # see comment about different semantics on the GNU ld section
7499 export_dynamic_flag_spec=-rdynamic
7502 cygwin* | mingw* | pw32*)
7503 # When not using gcc, we currently assume that we are using
7504 # Microsoft Visual C++.
7505 # hardcode_libdir_flag_spec is actually meaningless, as there is
7506 # no search path for DLLs.
7507 hardcode_libdir_flag_spec=' '
7508 allow_undefined_flag=unsupported
7509 # Tell ltmain to make .lib files, not .a files.
7511 # Tell ltmain to make .dll files, not .so files.
7513 # FIXME: Setting linknames here is a bad hack.
7514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7515 # The linker will automatically build a .lib file if we build a DLL.
7516 old_archive_from_new_cmds='true'
7517 # FIXME: Should let the user specify the lib program.
7518 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7519 fix_srcfile_path='`cygpath -w "$srcfile"`'
7520 enable_shared_with_static_runtimes=yes
7523 darwin* | rhapsody*)
7525 rhapsody* | darwin1.[012])
7526 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7529 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7531 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7534 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7539 archive_cmds_need_lc=no
7541 hardcode_automatic=yes
7542 hardcode_shlibpath_var=unsupported
7543 whole_archive_flag_spec=''
7544 link_all_deplibs=yes
7545 if test "$GCC" = yes ; then
7546 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 lt_cv_apple_cc_single_mod=no
7550 if test -z "${LT_MULTI_MODULE}"; then
7551 # By default we will add the -single_module flag. You can override
7552 # by either setting the environment variable LT_MULTI_MODULE
7553 # non-empty at configure time, or by adding -multi-module to the
7555 echo "int foo(void){return 1;}" > conftest.c
7556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7557 -dynamiclib ${wl}-single_module conftest.c
7558 if test -f libconftest.dylib; then
7559 lt_cv_apple_cc_single_mod=yes
7560 rm libconftest.dylib
7566 output_verbose_link_cmd=echo
7567 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7568 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7569 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7571 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7572 archive_expsym_cmds='sed "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}'
7574 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7575 module_expsym_cmds='sed -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}'
7577 case $cc_basename in
7579 output_verbose_link_cmd=echo
7580 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7581 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7583 archive_expsym_cmds='sed "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}'
7584 module_expsym_cmds='sed "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}'
7594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595 hardcode_libdir_flag_spec='-L$libdir'
7596 hardcode_shlibpath_var=no
7603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7604 # support. Future versions do this automatically, but an explicit c++rt0.o
7605 # does not break anything, and helps significantly (at the cost of a little
7608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7609 hardcode_libdir_flag_spec='-R$libdir'
7611 hardcode_shlibpath_var=no
7614 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7618 hardcode_minus_L=yes
7619 hardcode_shlibpath_var=no
7622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7623 freebsd* | dragonfly*)
7624 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7625 hardcode_libdir_flag_spec='-R$libdir'
7627 hardcode_shlibpath_var=no
7631 if test "$GCC" = yes; then
7632 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'
7634 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'
7636 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7637 hardcode_libdir_separator=:
7640 # hardcode_minus_L: Not really in the search PATH,
7641 # but as the default location of the library.
7642 hardcode_minus_L=yes
7643 export_dynamic_flag_spec='${wl}-E'
7647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7648 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7650 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7652 if test "$with_gnu_ld" = no; then
7653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7654 hardcode_libdir_flag_spec_ld='+b $libdir'
7655 hardcode_libdir_separator=:
7657 hardcode_direct_absolute=yes
7658 export_dynamic_flag_spec='${wl}-E'
7659 # hardcode_minus_L: Not really in the search PATH,
7660 # but as the default location of the library.
7661 hardcode_minus_L=yes
7666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7669 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7672 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7675 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7681 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7684 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7687 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7691 if test "$with_gnu_ld" = no; then
7692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7693 hardcode_libdir_separator=:
7698 hardcode_shlibpath_var=no
7702 hardcode_direct_absolute=yes
7703 export_dynamic_flag_spec='${wl}-E'
7705 # hardcode_minus_L: Not really in the search PATH,
7706 # but as the default location of the library.
7707 hardcode_minus_L=yes
7713 irix5* | irix6* | nonstopux*)
7714 if test "$GCC" = yes; then
7715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7716 # Try to use the -exported_symbol ld option, if it does not
7717 # work, assume that -exports_file does not work either and
7718 # implicitly export all symbols.
7719 save_LDFLAGS="$LDFLAGS"
7720 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7721 cat >conftest.$ac_ext <<_ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726 (eval $ac_link) 2>conftest.er1
7728 grep -v '^ *+' conftest.er1 >conftest.err
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try='test -z "$ac_c_werror_flag"
7734 || test ! -s conftest.err'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7753 rm -f conftest.err conftest.$ac_objext \
7754 conftest$ac_exeext conftest.$ac_ext
7755 LDFLAGS="$save_LDFLAGS"
7757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7760 archive_cmds_need_lc='no'
7761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7762 hardcode_libdir_separator=:
7764 link_all_deplibs=yes
7768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7773 hardcode_libdir_flag_spec='-R$libdir'
7775 hardcode_shlibpath_var=no
7779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7782 hardcode_libdir_separator=:
7783 hardcode_shlibpath_var=no
7791 hardcode_shlibpath_var=no
7792 hardcode_direct_absolute=yes
7793 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7795 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7797 export_dynamic_flag_spec='${wl}-E'
7800 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7802 hardcode_libdir_flag_spec='-R$libdir'
7805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7813 hardcode_libdir_flag_spec='-L$libdir'
7814 hardcode_minus_L=yes
7815 allow_undefined_flag=unsupported
7816 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'
7817 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7821 if test "$GCC" = yes; then
7822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7823 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7825 allow_undefined_flag=' -expect_unresolved \*'
7826 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7828 archive_cmds_need_lc='no'
7829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830 hardcode_libdir_separator=:
7833 osf4* | osf5*) # as osf3* with the addition of -msym flag
7834 if test "$GCC" = yes; then
7835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7836 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7839 allow_undefined_flag=' -expect_unresolved \*'
7840 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7841 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7842 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7844 # Both c and cxx compiler support -rpath directly
7845 hardcode_libdir_flag_spec='-rpath $libdir'
7847 archive_cmds_need_lc='no'
7848 hardcode_libdir_separator=:
7852 no_undefined_flag=' -z defs'
7853 if test "$GCC" = yes; then
7855 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7857 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7859 case `$CC -V 2>&1` in
7862 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7864 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7868 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7870 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7874 hardcode_libdir_flag_spec='-R$libdir'
7875 hardcode_shlibpath_var=no
7877 solaris2.[0-5] | solaris2.[0-5].*) ;;
7879 # The compiler driver will combine and reorder linker options,
7880 # but understands `-z linker_flag'. GCC discards it without `$wl',
7881 # but is careful enough not to reorder.
7882 # Supported since Solaris 2.6 (maybe 2.5.1?)
7883 if test "$GCC" = yes; then
7884 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7886 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7890 link_all_deplibs=yes
7894 if test "x$host_vendor" = xsequent; then
7895 # Use $CC to link under sequent, because it throws in some extra .o
7896 # files that make .init and .fini sections work.
7897 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7899 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7901 hardcode_libdir_flag_spec='-L$libdir'
7903 hardcode_minus_L=yes
7904 hardcode_shlibpath_var=no
7908 case $host_vendor in
7910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7911 hardcode_direct=yes # is this really true???
7914 ## LD is ld it makes a PLAMLIB
7915 ## CC just makes a GrossModule.
7916 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7917 reload_cmds='$CC -r -o $output$reload_objs'
7921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7922 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7925 runpath_var='LD_RUN_PATH'
7926 hardcode_shlibpath_var=no
7930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7931 hardcode_shlibpath_var=no
7932 export_dynamic_flag_spec='-Bexport'
7936 if test -d /usr/nec; then
7937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7938 hardcode_shlibpath_var=no
7939 runpath_var=LD_RUN_PATH
7940 hardcode_runpath_var=yes
7945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7946 no_undefined_flag='${wl}-z,text'
7947 archive_cmds_need_lc=no
7948 hardcode_shlibpath_var=no
7949 runpath_var='LD_RUN_PATH'
7951 if test "$GCC" = yes; then
7952 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7955 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7960 sysv5* | sco3.2v5* | sco5v6*)
7961 # Note: We can NOT use -z defs as we might desire, because we do not
7962 # link with -lc, and that would cause any symbols used from libc to
7963 # always be unresolved, which means just about no library would
7964 # ever link correctly. If we're not using GNU ld we use -z text
7965 # though, which does catch some bad symbols but isn't as heavy-handed
7967 no_undefined_flag='${wl}-z,text'
7968 allow_undefined_flag='${wl}-z,nodefs'
7969 archive_cmds_need_lc=no
7970 hardcode_shlibpath_var=no
7971 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7972 hardcode_libdir_separator=':'
7973 link_all_deplibs=yes
7974 export_dynamic_flag_spec='${wl}-Bexport'
7975 runpath_var='LD_RUN_PATH'
7977 if test "$GCC" = yes; then
7978 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7981 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7988 hardcode_libdir_flag_spec='-L$libdir'
7989 hardcode_shlibpath_var=no
7997 if test x$host_vendor = xsni; then
7999 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8000 export_dynamic_flag_spec='${wl}-Blargedynsym'
8006 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8007 echo "${ECHO_T}$ld_shlibs" >&6
8008 test "$ld_shlibs" = no && can_build_shared=no
8010 with_gnu_ld=$with_gnu_ld
8027 # Do we need to explicitly link libc?
8029 case "x$archive_cmds_need_lc" in
8031 # Assume -lc should be added
8032 archive_cmds_need_lc=yes
8034 if test "$enable_shared" = yes && test "$GCC" = yes; then
8035 case $archive_cmds in
8037 # FIXME: we may have to deal with multi-command sequences.
8040 # Test whether the compiler implicitly links with -lc since on some
8041 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8042 # to ld, don't add -lc before -lgcc.
8043 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8044 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049 (eval $ac_compile) 2>&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } 2>conftest.err; then
8055 libobjs=conftest.$ac_objext
8057 wl=$lt_prog_compiler_wl
8058 pic_flag=$lt_prog_compiler_pic
8064 lt_save_allow_undefined_flag=$allow_undefined_flag
8065 allow_undefined_flag=
8066 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8067 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }
8072 archive_cmds_need_lc=no
8074 archive_cmds_need_lc=yes
8076 allow_undefined_flag=$lt_save_allow_undefined_flag
8078 cat conftest.err 1>&5
8081 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8082 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8245 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8246 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8248 if test "$withGCC" = yes; then
8250 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8251 *) lt_awk_arg="/^libraries:/" ;;
8253 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8254 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8255 # if the path contains ";" then we assume it to be the separator
8256 # otherwise default to the standard path separator (i.e. ":") - it is
8257 # assumed that no part of a normal pathname contains ";" but that should
8258 # okay in the real world where ";" in dirpaths is itself problematic.
8259 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8263 # Ok, now we have the path, separated by spaces, we can step through it
8264 # and add multilib dir if necessary.
8265 lt_tmp_lt_search_path_spec=
8266 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8267 for lt_sys_path in $lt_search_path_spec; do
8268 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8269 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8271 test -d "$lt_sys_path" && \
8272 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8275 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8276 BEGIN {RS=" "; FS="/|\n";} {
8279 for (lt_i = NF; lt_i > 0; lt_i--) {
8280 if ($lt_i != "" && $lt_i != ".") {
8281 if ($lt_i == "..") {
8284 if (lt_count == 0) {
8285 lt_foo="/" $lt_i lt_foo;
8292 if (lt_foo != "") { lt_freq[lt_foo]++; }
8293 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8295 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8297 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8300 libname_spec='lib$name'
8308 shlibpath_overrides_runpath=unknown
8310 dynamic_linker="$host_os ld.so"
8311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8312 need_lib_prefix=unknown
8313 hardcode_into_libs=no
8315 # when you set need_version to no, make sure it does not cause -set_version
8316 # flags to be left without arguments
8317 need_version=unknown
8322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8323 shlibpath_var=LIBPATH
8325 # AIX 3 has no versioning support, so we append a major version to the name.
8326 soname_spec='${libname}${release}${shared_ext}$major'
8333 hardcode_into_libs=yes
8334 if test "$host_cpu" = ia64; then
8335 # AIX 5 supports IA64
8336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8337 shlibpath_var=LD_LIBRARY_PATH
8339 # With GCC up to 2.95.x, collect2 would create an import file
8340 # for dependence libraries. The import file would start with
8341 # the line `#! .'. This would cause the generated library to
8342 # depend on `.', always an invalid library. This was fixed in
8343 # development snapshots of GCC prior to 3.0.
8345 aix4 | aix4.[01] | aix4.[01].*)
8346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8348 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8356 # soname into executable. Probably we can add versioning support to
8357 # collect2, so additional links can be useful in future.
8358 if test "$aix_use_runtimelinking" = yes; then
8359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8360 # instead of lib<name>.a to let people know that these are not
8361 # typical AIX shared libraries.
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8364 # We preserve .a as extension for shared libraries through AIX4.2
8365 # and later when we are not doing run time linking.
8366 library_names_spec='${libname}${release}.a $libname.a'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8369 shlibpath_var=LIBPATH
8374 if test "$host_cpu" = m68k; then
8375 library_names_spec='$libname.ixlibrary $libname.a'
8376 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8377 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'
8384 library_names_spec='${libname}${shared_ext}'
8385 dynamic_linker="$host_os ld.so"
8386 shlibpath_var=LIBRARY_PATH
8392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8393 soname_spec='${libname}${release}${shared_ext}$major'
8394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8395 shlibpath_var=LD_LIBRARY_PATH
8396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8398 # the default ld.so.conf also contains /usr/contrib/lib and
8399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8400 # libtool to hard-code these into programs
8403 cygwin* | mingw* | pw32*)
8404 version_type=windows
8409 case $withGCC,$host_os in
8410 yes,cygwin* | yes,mingw* | yes,pw32*)
8411 library_names_spec='$libname.dll.a'
8412 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8413 postinstall_cmds='base_file=`basename \${file}`~
8414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8415 dldir=$destdir/`dirname \$dlpath`~
8416 test -d \$dldir || mkdir -p \$dldir~
8417 $install_prog $dir/$dlname \$dldir/$dlname~
8418 chmod a+x \$dldir/$dlname~
8419 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8420 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8423 dlpath=$dir/\$dldll~
8425 shlibpath_overrides_runpath=yes
8429 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8431 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8434 # MinGW DLLs use traditional 'lib' prefix
8435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8436 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8437 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8438 # It is most probably a Windows format PATH printed by
8439 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8440 # path with ; separators, and with drive letters. We can handle the
8441 # drive letters (cygwin fileutils understands them), so leave them,
8442 # especially as we might pass files found there to a mingw objdump,
8443 # which wouldn't understand a cygwinified path. Ahh.
8444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8450 # pw32 DLLs use 'pw' prefix rather than 'lib'
8451 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8460 dynamic_linker='Win32 ld.exe'
8461 # FIXME: first we should search . and the directory the executable is in
8465 darwin* | rhapsody*)
8466 dynamic_linker="$host_os dyld"
8470 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8471 soname_spec='${libname}${release}${major}$shared_ext'
8472 shlibpath_overrides_runpath=yes
8473 shlibpath_var=DYLD_LIBRARY_PATH
8474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8485 soname_spec='${libname}${release}${shared_ext}$major'
8486 shlibpath_var=LD_LIBRARY_PATH
8493 freebsd* | dragonfly*)
8494 # DragonFly does not have aout. When/if they implement a new
8495 # versioning mechanism, adjust this.
8496 if test -x /usr/bin/objformat; then
8497 objformat=`/usr/bin/objformat`
8500 freebsd[123]*) objformat=aout ;;
8504 version_type=freebsd-$objformat
8505 case $version_type in
8507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8516 shlibpath_var=LD_LIBRARY_PATH
8519 shlibpath_overrides_runpath=yes
8521 freebsd3.[01]* | freebsdelf3.[01]*)
8522 shlibpath_overrides_runpath=yes
8523 hardcode_into_libs=yes
8525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8527 shlibpath_overrides_runpath=no
8528 hardcode_into_libs=yes
8530 *) # from 4.6 on, and DragonFly
8531 shlibpath_overrides_runpath=yes
8532 hardcode_into_libs=yes
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8542 soname_spec='${libname}${release}${shared_ext}$major'
8543 shlibpath_var=LD_LIBRARY_PATH
8544 hardcode_into_libs=yes
8547 hpux9* | hpux10* | hpux11*)
8548 # Give a soname corresponding to the major version so that dld.sl refuses to
8549 # link against other versions.
8556 hardcode_into_libs=yes
8557 dynamic_linker="$host_os dld.so"
8558 shlibpath_var=LD_LIBRARY_PATH
8559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561 soname_spec='${libname}${release}${shared_ext}$major'
8562 if test "X$HPUX_IA64_MODE" = X32; then
8563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8571 hardcode_into_libs=yes
8572 dynamic_linker="$host_os dld.sl"
8573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8576 soname_spec='${libname}${release}${shared_ext}$major'
8577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8582 dynamic_linker="$host_os dld.sl"
8583 shlibpath_var=SHLIB_PATH
8584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586 soname_spec='${libname}${release}${shared_ext}$major'
8589 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8590 postinstall_cmds='chmod 555 $lib'
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8599 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8600 shlibpath_var=LD_LIBRARY_PATH
8601 shlibpath_overrides_runpath=no
8602 hardcode_into_libs=yes
8605 irix5* | irix6* | nonstopux*)
8607 nonstopux*) version_type=nonstopux ;;
8609 if test "$lt_cv_prog_gnu_ld" = yes; then
8617 soname_spec='${libname}${release}${shared_ext}$major'
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8620 irix5* | nonstopux*)
8624 case $LD in # libtool.m4 will add one of these switches to LD
8625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8626 libsuff= shlibsuff= libmagic=32-bit;;
8627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8628 libsuff=32 shlibsuff=N32 libmagic=N32;;
8629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8631 *) libsuff= shlibsuff= libmagic=never-match;;
8635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8636 shlibpath_overrides_runpath=no
8637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8639 hardcode_into_libs=yes
8642 # No shared lib support for Linux oldld, aout, or coff.
8643 linux*oldld* | linux*aout* | linux*coff*)
8647 # This must be Linux ELF.
8648 linux* | k*bsd*-gnu)
8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8655 shlibpath_var=LD_LIBRARY_PATH
8656 shlibpath_overrides_runpath=no
8657 # Some binutils ld are patched to set DT_RUNPATH
8658 save_LDFLAGS=$LDFLAGS
8660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8679 (eval $ac_link) 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest$ac_exeext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8700 shlibpath_overrides_runpath=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8708 rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LDFLAGS=$save_LDFLAGS
8713 # This implies no fast_install, which is unacceptable.
8714 # Some rework will be needed to allow for fast_install
8715 # before this can be enabled.
8716 hardcode_into_libs=yes
8718 # Append ld.so.conf contents to the search path
8719 if test -f /etc/ld.so.conf; then
8720 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8724 # We used to test for /lib/ld.so.1 and disable shared libraries on
8725 # powerpc, because MkLinux only supported shared libraries with the
8726 # GNU dynamic linker. Since this was broken with cross compilers,
8727 # most powerpc-linux boxes support dynamic linking these days and
8728 # people can always --disable-shared, the test was removed, and we
8729 # assume the GNU/Linux dynamic linker is in use.
8730 dynamic_linker='GNU/Linux ld.so'
8737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8740 dynamic_linker='NetBSD (a.out) ld.so'
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 dynamic_linker='NetBSD ld.elf_so'
8746 shlibpath_var=LD_LIBRARY_PATH
8747 shlibpath_overrides_runpath=yes
8748 hardcode_into_libs=yes
8753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8754 shlibpath_var=LD_LIBRARY_PATH
8755 shlibpath_overrides_runpath=yes
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8764 shlibpath_var=LD_LIBRARY_PATH
8765 shlibpath_overrides_runpath=no
8766 hardcode_into_libs=yes
8767 dynamic_linker='ldqnx.so'
8772 sys_lib_dlsearch_path_spec="/usr/lib"
8774 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8776 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8777 *) need_version=no ;;
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8784 openbsd2.[89] | openbsd2.[89].*)
8785 shlibpath_overrides_runpath=no
8788 shlibpath_overrides_runpath=yes
8792 shlibpath_overrides_runpath=yes
8797 libname_spec='$name'
8800 library_names_spec='$libname${shared_ext} $libname.a'
8801 dynamic_linker='OS/2 ld.exe'
8802 shlibpath_var=LIBPATH
8805 osf3* | osf4* | osf5*)
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8813 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 shlibpath_overrides_runpath=yes
8828 hardcode_into_libs=yes
8829 # ldd complains unless libraries are executable
8830 postinstall_cmds='chmod +x $lib'
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8836 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8837 shlibpath_var=LD_LIBRARY_PATH
8838 shlibpath_overrides_runpath=yes
8839 if test "$with_gnu_ld" = yes; then
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 shlibpath_var=LD_LIBRARY_PATH
8850 case $host_vendor in
8852 shlibpath_overrides_runpath=no
8854 runpath_var=LD_RUN_PATH
8862 shlibpath_overrides_runpath=no
8863 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8869 if test -d /usr/nec ;then
8871 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8872 soname_spec='$libname${shared_ext}.$major'
8873 shlibpath_var=LD_LIBRARY_PATH
8877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8878 version_type=freebsd-elf
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=yes
8885 hardcode_into_libs=yes
8886 if test "$with_gnu_ld" = yes; then
8887 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8889 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8892 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8896 sys_lib_dlsearch_path_spec='/usr/lib'
8900 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8904 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 shlibpath_overrides_runpath=no
8907 hardcode_into_libs=yes
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 shlibpath_var=LD_LIBRARY_PATH
8921 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8922 echo "${ECHO_T}$dynamic_linker" >&6
8923 test "$dynamic_linker" = no && can_build_shared=no
8925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8926 if test "$GCC" = yes; then
8927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9016 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9019 if test -n "$hardcode_libdir_flag_spec" ||
9020 test -n "$runpath_var" ||
9021 test "X$hardcode_automatic" = "Xyes" ; then
9023 # We can hardcode non-existent directories.
9024 if test "$hardcode_direct" != no &&
9025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9026 # have to relink, otherwise we might link with an installed library
9027 # when we should be linking with a yet-to-be-installed one
9028 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9029 test "$hardcode_minus_L" != no; then
9030 # Linking always hardcodes the temporary library directory.
9031 hardcode_action=relink
9033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9034 hardcode_action=immediate
9037 # We cannot hardcode anything, or else we can only hardcode existing
9039 hardcode_action=unsupported
9041 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9042 echo "${ECHO_T}$hardcode_action" >&6
9044 if test "$hardcode_action" = relink ||
9045 test "$inherit_rpath" = yes; then
9046 # Fast installation is not supported
9047 enable_fast_install=no
9048 elif test "$shlibpath_overrides_runpath" = yes ||
9049 test "$enable_shared" = no; then
9050 # Fast installation is not necessary
9051 enable_fast_install=needless
9059 if test "x$enable_dlopen" != xyes; then
9060 enable_dlopen=unknown
9061 enable_dlopen_self=unknown
9062 enable_dlopen_self_static=unknown
9069 lt_cv_dlopen="load_add_on"
9071 lt_cv_dlopen_self=yes
9075 lt_cv_dlopen="LoadLibrary"
9080 lt_cv_dlopen="dlopen"
9085 # if libdl is installed we need to link against it
9086 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 ac_check_lib_save_LIBS=$LIBS
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_lib_dl_dlopen=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ac_cv_lib_dl_dlopen=no
9144 rm -f conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 LIBS=$ac_check_lib_save_LIBS
9148 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9149 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9150 if test $ac_cv_lib_dl_dlopen = yes; then
9151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9156 lt_cv_dlopen_self=yes
9163 echo "$as_me:$LINENO: checking for shl_load" >&5
9164 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9165 if test "${ac_cv_func_shl_load+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9176 #define shl_load innocuous_shl_load
9178 /* System header to define __stub macros and hopefully few prototypes,
9179 which can conflict with char shl_load (); below.
9180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9181 <limits.h> exists even on freestanding compilers. */
9184 # include <limits.h>
9186 # include <assert.h>
9191 /* Override any gcc2 internal prototype to avoid an error. */
9196 /* We use char because int might match the return type of a gcc2
9197 builtin and then its argument prototype would still apply. */
9199 /* The GNU C library defines this for functions which it implements
9200 to always fail with ENOSYS. Some functions are actually named
9201 something starting with __ and the normal name is an alias. */
9202 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9205 char (*f) () = shl_load;
9214 return f != shl_load;
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221 (eval $ac_link) 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -z "$ac_c_werror_flag"
9229 || test ! -s conftest.err'
9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; } &&
9235 { ac_try='test -s conftest$ac_exeext'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 ac_cv_func_shl_load=yes
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ac_cv_func_shl_load=no
9248 rm -f conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9251 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9252 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9253 if test $ac_cv_func_shl_load = yes; then
9254 lt_cv_dlopen="shl_load"
9256 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9257 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9258 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 ac_check_lib_save_LIBS=$LIBS
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9270 /* Override any gcc2 internal prototype to avoid an error. */
9274 /* We use char because int might match the return type of a gcc2
9275 builtin and then its argument prototype would still apply. */
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>conftest.er1
9289 grep -v '^ *+' conftest.er1 >conftest.err
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -z "$ac_c_werror_flag"
9295 || test ! -s conftest.err'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 ac_cv_lib_dld_shl_load=yes
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 ac_cv_lib_dld_shl_load=no
9314 rm -f conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9318 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9319 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9320 if test $ac_cv_lib_dld_shl_load = yes; then
9321 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9323 echo "$as_me:$LINENO: checking for dlopen" >&5
9324 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9325 if test "${ac_cv_func_dlopen+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9336 #define dlopen innocuous_dlopen
9338 /* System header to define __stub macros and hopefully few prototypes,
9339 which can conflict with char dlopen (); below.
9340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341 <limits.h> exists even on freestanding compilers. */
9344 # include <limits.h>
9346 # include <assert.h>
9351 /* Override any gcc2 internal prototype to avoid an error. */
9356 /* We use char because int might match the return type of a gcc2
9357 builtin and then its argument prototype would still apply. */
9359 /* The GNU C library defines this for functions which it implements
9360 to always fail with ENOSYS. Some functions are actually named
9361 something starting with __ and the normal name is an alias. */
9362 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9365 char (*f) () = dlopen;
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381 (eval $ac_link) 2>conftest.er1
9383 grep -v '^ *+' conftest.er1 >conftest.err
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest$ac_exeext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_cv_func_dlopen=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_cv_func_dlopen=no
9408 rm -f conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9411 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9412 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9413 if test $ac_cv_func_dlopen = yes; then
9414 lt_cv_dlopen="dlopen"
9416 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9417 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9418 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 ac_check_lib_save_LIBS=$LIBS
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9430 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_lib_dl_dlopen=yes
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9472 ac_cv_lib_dl_dlopen=no
9474 rm -f conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9478 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9480 if test $ac_cv_lib_dl_dlopen = yes; then
9481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9483 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9484 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9485 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 ac_check_lib_save_LIBS=$LIBS
9490 cat >conftest.$ac_ext <<_ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9497 /* Override any gcc2 internal prototype to avoid an error. */
9501 /* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514 (eval $ac_link) 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag"
9522 || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_lib_svld_dlopen=yes
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_cv_lib_svld_dlopen=no
9541 rm -f conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 LIBS=$ac_check_lib_save_LIBS
9545 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9546 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9547 if test $ac_cv_lib_svld_dlopen = yes; then
9548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9550 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9551 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9552 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 ac_check_lib_save_LIBS=$LIBS
9557 cat >conftest.$ac_ext <<_ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9564 /* Override any gcc2 internal prototype to avoid an error. */
9568 /* We use char because int might match the return type of a gcc2
9569 builtin and then its argument prototype would still apply. */
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581 (eval $ac_link) 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -z "$ac_c_werror_flag"
9589 || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest$ac_exeext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_cv_lib_dld_dld_link=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_cv_lib_dld_dld_link=no
9608 rm -f conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9612 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9613 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9614 if test $ac_cv_lib_dld_dld_link = yes; then
9615 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9636 if test "x$lt_cv_dlopen" != xno; then
9642 case $lt_cv_dlopen in
9644 save_CPPFLAGS="$CPPFLAGS"
9645 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9647 save_LDFLAGS="$LDFLAGS"
9648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9651 LIBS="$lt_cv_dlopen_libs $LIBS"
9653 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9654 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9655 if test "${lt_cv_dlopen_self+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 if test "$cross_compiling" = yes; then :
9659 lt_cv_dlopen_self=cross
9661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9662 lt_status=$lt_dlunknown
9663 cat > conftest.$ac_ext <<_LT_EOF
9664 #line 9664 "configure"
9665 #include "confdefs.h"
9674 # define LT_DLGLOBAL RTLD_GLOBAL
9677 # define LT_DLGLOBAL DL_GLOBAL
9679 # define LT_DLGLOBAL 0
9683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9684 find out it does not work in some platform. */
9685 #ifndef LT_DLLAZY_OR_NOW
9687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9690 # define LT_DLLAZY_OR_NOW DL_LAZY
9693 # define LT_DLLAZY_OR_NOW RTLD_NOW
9696 # define LT_DLLAZY_OR_NOW DL_NOW
9698 # define LT_DLLAZY_OR_NOW 0
9706 extern "C" void exit (int);
9709 void fnord() { int i=42;}
9712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9713 int status = $lt_dlunknown;
9717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9719 /* dlclose (self); */
9727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728 (eval $ac_link) 2>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9732 (./conftest; exit; ) >&5 2>/dev/null
9735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9740 # compilation failed
9741 lt_cv_dlopen_self=no
9748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9749 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9751 if test "x$lt_cv_dlopen_self" = xyes; then
9752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9753 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9754 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9755 if test "${lt_cv_dlopen_self_static+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 if test "$cross_compiling" = yes; then :
9759 lt_cv_dlopen_self_static=cross
9761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9762 lt_status=$lt_dlunknown
9763 cat > conftest.$ac_ext <<_LT_EOF
9764 #line 9764 "configure"
9765 #include "confdefs.h"
9774 # define LT_DLGLOBAL RTLD_GLOBAL
9777 # define LT_DLGLOBAL DL_GLOBAL
9779 # define LT_DLGLOBAL 0
9783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9784 find out it does not work in some platform. */
9785 #ifndef LT_DLLAZY_OR_NOW
9787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9790 # define LT_DLLAZY_OR_NOW DL_LAZY
9793 # define LT_DLLAZY_OR_NOW RTLD_NOW
9796 # define LT_DLLAZY_OR_NOW DL_NOW
9798 # define LT_DLLAZY_OR_NOW 0
9806 extern "C" void exit (int);
9809 void fnord() { int i=42;}
9812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9813 int status = $lt_dlunknown;
9817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9819 /* dlclose (self); */
9827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828 (eval $ac_link) 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9832 (./conftest; exit; ) >&5 2>/dev/null
9835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9840 # compilation failed
9841 lt_cv_dlopen_self_static=no
9848 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9849 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9852 CPPFLAGS="$save_CPPFLAGS"
9853 LDFLAGS="$save_LDFLAGS"
9858 case $lt_cv_dlopen_self in
9859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9860 *) enable_dlopen_self=unknown ;;
9863 case $lt_cv_dlopen_self_static in
9864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9865 *) enable_dlopen_self_static=unknown ;;
9887 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9888 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9889 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9890 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9891 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9892 echo "$as_me:$LINENO: result: yes" >&5
9893 echo "${ECHO_T}yes" >&6
9895 # FIXME - insert some real tests, host_os isn't really good enough
9898 if test -n "$STRIP" ; then
9899 striplib="$STRIP -x"
9900 old_striplib="$STRIP -S"
9901 echo "$as_me:$LINENO: result: yes" >&5
9902 echo "${ECHO_T}yes" >&6
9904 echo "$as_me:$LINENO: result: no" >&5
9905 echo "${ECHO_T}no" >&6
9909 echo "$as_me:$LINENO: result: no" >&5
9910 echo "${ECHO_T}no" >&6
9926 # Report which library types will actually be built
9927 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9928 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9929 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9930 echo "${ECHO_T}$can_build_shared" >&6
9932 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9933 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9934 test "$can_build_shared" = "no" && enable_shared=no
9936 # On AIX, shared libraries and static libraries use the same namespace, and
9937 # are all built from PIC.
9940 test "$enable_shared" = yes && enable_static=no
9941 if test -n "$RANLIB"; then
9942 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9943 postinstall_cmds='$RANLIB $lib'
9948 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9949 test "$enable_shared" = yes && enable_static=no
9953 echo "$as_me:$LINENO: result: $enable_shared" >&5
9954 echo "${ECHO_T}$enable_shared" >&6
9956 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9957 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9958 # Make sure either enable_shared or enable_static is yes.
9959 test "$enable_shared" = yes || enable_static=yes
9960 echo "$as_me:$LINENO: result: $enable_static" >&5
9961 echo "${ECHO_T}$enable_static" >&6
9968 ac_cpp='$CPP $CPPFLAGS'
9969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9987 ac_config_commands="$ac_config_commands libtool"
9998 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9999 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10000 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10001 if test "${enable_maintainer_mode+set}" = set; then
10002 enableval="$enable_maintainer_mode"
10003 USE_MAINTAINER_MODE=$enableval
10005 USE_MAINTAINER_MODE=no
10007 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10008 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10011 if test $USE_MAINTAINER_MODE = yes; then
10012 MAINTAINER_MODE_TRUE=
10013 MAINTAINER_MODE_FALSE='#'
10015 MAINTAINER_MODE_TRUE='#'
10016 MAINTAINER_MODE_FALSE=
10019 MAINT=$MAINTAINER_MODE_TRUE
10023 # We need gfortran to compile parts of the library
10024 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10025 #AC_PROG_FC(gfortran)
10027 ac_ext=${FC_SRCEXT-f}
10028 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10029 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10030 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10031 if test -n "$ac_tool_prefix"; then
10032 for ac_prog in gfortran
10034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10036 echo "$as_me:$LINENO: checking for $ac_word" >&5
10037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10038 if test "${ac_cv_prog_FC+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 if test -n "$FC"; then
10042 ac_cv_prog_FC="$FC" # Let the user override the test.
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10051 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 if test -n "$FC"; then
10062 echo "$as_me:$LINENO: result: $FC" >&5
10063 echo "${ECHO_T}$FC" >&6
10065 echo "$as_me:$LINENO: result: no" >&5
10066 echo "${ECHO_T}no" >&6
10069 test -n "$FC" && break
10072 if test -z "$FC"; then
10074 for ac_prog in gfortran
10076 # Extract the first word of "$ac_prog", so it can be a program name with args.
10077 set dummy $ac_prog; ac_word=$2
10078 echo "$as_me:$LINENO: checking for $ac_word" >&5
10079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10080 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 if test -n "$ac_ct_FC"; then
10084 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093 ac_cv_prog_ac_ct_FC="$ac_prog"
10094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10103 if test -n "$ac_ct_FC"; then
10104 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10105 echo "${ECHO_T}$ac_ct_FC" >&6
10107 echo "$as_me:$LINENO: result: no" >&5
10108 echo "${ECHO_T}no" >&6
10111 test -n "$ac_ct_FC" && break
10118 # Provide some information about the compiler.
10119 echo "$as_me:10119:" \
10120 "checking for Fortran compiler version" >&5
10121 ac_compiler=`set X $ac_compile; echo $2`
10122 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10123 (eval $ac_compiler --version </dev/null >&5) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }
10127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10128 (eval $ac_compiler -v </dev/null >&5) 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }
10132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10133 (eval $ac_compiler -V </dev/null >&5) 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }
10139 # If we don't use `.F' as extension, the preprocessor is not run on the
10140 # input file. (Note that this only needs to work for GNU compilers.)
10141 ac_save_ext=$ac_ext
10143 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10144 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10145 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_fc_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest.$ac_objext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_compiler_gnu=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10186 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10189 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10190 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10191 ac_ext=$ac_save_ext
10192 ac_test_FFLAGS=${FCFLAGS+set}
10193 ac_save_FFLAGS=$FCFLAGS
10195 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10196 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10197 if test "${ac_cv_prog_fc_g+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 cat >conftest.$ac_ext <<_ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_fc_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_prog_fc_g=yes
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10239 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10240 if test "$ac_test_FFLAGS" = set; then
10241 FCFLAGS=$ac_save_FFLAGS
10242 elif test $ac_cv_prog_fc_g = yes; then
10243 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10249 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10257 ac_cpp='$CPP $CPPFLAGS'
10258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10263 ac_ext=${FC_SRCEXT-f}
10264 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10265 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10266 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10267 if test -n "$ac_tool_prefix"; then
10268 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10272 echo "$as_me:$LINENO: checking for $ac_word" >&5
10273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10274 if test "${ac_cv_prog_FC+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 if test -n "$FC"; then
10278 ac_cv_prog_FC="$FC" # Let the user override the test.
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 if test -n "$FC"; then
10298 echo "$as_me:$LINENO: result: $FC" >&5
10299 echo "${ECHO_T}$FC" >&6
10301 echo "$as_me:$LINENO: result: no" >&5
10302 echo "${ECHO_T}no" >&6
10305 test -n "$FC" && break
10308 if test -z "$FC"; then
10310 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10312 # Extract the first word of "$ac_prog", so it can be a program name with args.
10313 set dummy $ac_prog; ac_word=$2
10314 echo "$as_me:$LINENO: checking for $ac_word" >&5
10315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10316 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 if test -n "$ac_ct_FC"; then
10320 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329 ac_cv_prog_ac_ct_FC="$ac_prog"
10330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10339 if test -n "$ac_ct_FC"; then
10340 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10341 echo "${ECHO_T}$ac_ct_FC" >&6
10343 echo "$as_me:$LINENO: result: no" >&5
10344 echo "${ECHO_T}no" >&6
10347 test -n "$ac_ct_FC" && break
10354 # Provide some information about the compiler.
10355 echo "$as_me:10355:" \
10356 "checking for Fortran compiler version" >&5
10357 ac_compiler=`set X $ac_compile; echo $2`
10358 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10359 (eval $ac_compiler --version </dev/null >&5) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }
10363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10364 (eval $ac_compiler -v </dev/null >&5) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }
10368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10369 (eval $ac_compiler -V </dev/null >&5) 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }
10375 # If we don't use `.F' as extension, the preprocessor is not run on the
10376 # input file. (Note that this only needs to work for GNU compilers.)
10377 ac_save_ext=$ac_ext
10379 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10380 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10381 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 cat >conftest.$ac_ext <<_ACEOF
10392 rm -f conftest.$ac_objext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394 (eval $ac_compile) 2>conftest.er1
10396 grep -v '^ *+' conftest.er1 >conftest.err
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_fc_werror_flag"
10402 || test ! -s conftest.err'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; } &&
10408 { ac_try='test -s conftest.$ac_objext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_compiler_gnu=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10422 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10425 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10426 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10427 ac_ext=$ac_save_ext
10428 ac_test_FFLAGS=${FCFLAGS+set}
10429 ac_save_FFLAGS=$FCFLAGS
10431 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10432 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10433 if test "${ac_cv_prog_fc_g+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_fc_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_cv_prog_fc_g=yes
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10474 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10475 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10476 if test "$ac_test_FFLAGS" = set; then
10477 FCFLAGS=$ac_save_FFLAGS
10478 elif test $ac_cv_prog_fc_g = yes; then
10479 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10485 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10493 ac_cpp='$CPP $CPPFLAGS'
10494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10498 if test -z "$FC" || test "X$FC" = "Xno"; then
10504 ac_ext=${FC_SRCEXT-f}
10505 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10506 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10507 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10510 archive_cmds_need_lc_FC=no
10511 allow_undefined_flag_FC=
10512 always_export_symbols_FC=no
10513 archive_expsym_cmds_FC=
10514 export_dynamic_flag_spec_FC=
10515 hardcode_direct_FC=no
10516 hardcode_direct_absolute_FC=no
10517 hardcode_libdir_flag_spec_FC=
10518 hardcode_libdir_flag_spec_ld_FC=
10519 hardcode_libdir_separator_FC=
10520 hardcode_minus_L_FC=no
10521 hardcode_automatic_FC=no
10522 inherit_rpath_FC=no
10524 module_expsym_cmds_FC=
10525 link_all_deplibs_FC=unknown
10526 old_archive_cmds_FC=$old_archive_cmds
10527 no_undefined_flag_FC=
10528 whole_archive_flag_spec_FC=
10529 enable_shared_with_static_runtimes_FC=no
10531 # Source file extension for fc test sources.
10532 ac_ext=${ac_fc_srcext-f}
10534 # Object file extension for compiled fc test sources.
10538 # No sense in running all these tests if we already determined that
10539 # the FC compiler isn't working. Some variables (like enable_shared)
10540 # are currently assumed to apply to all compilers on this platform,
10541 # and will be corrupted by setting them based on a non-working compiler.
10542 if test "$_lt_disable_FC" != yes; then
10543 # Code to be used in simple compile tests
10544 lt_simple_compile_test_code="\
10550 # Code to be used in simple link tests
10551 lt_simple_link_test_code="\
10556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10563 # If no C compiler was specified, use CC.
10566 # If no C compiler flags were specified, use CFLAGS.
10567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10569 # Allow CC to be a program name with arguments.
10573 # save warnings/boilerplate of simple test code
10574 ac_outfile=conftest.$ac_objext
10575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10577 _lt_compiler_boilerplate=`cat conftest.err`
10580 ac_outfile=conftest.$ac_objext
10581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10583 _lt_linker_boilerplate=`cat conftest.err`
10587 # Allow CC to be a program name with arguments.
10592 for cc_temp in $compiler""; do
10594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10600 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10603 if test -n "$compiler"; then
10604 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10605 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10606 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10607 echo "${ECHO_T}$can_build_shared" >&6
10609 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10610 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10611 test "$can_build_shared" = "no" && enable_shared=no
10613 # On AIX, shared libraries and static libraries use the same namespace, and
10614 # are all built from PIC.
10617 test "$enable_shared" = yes && enable_static=no
10618 if test -n "$RANLIB"; then
10619 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10620 postinstall_cmds='$RANLIB $lib'
10624 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10625 test "$enable_shared" = yes && enable_static=no
10629 echo "$as_me:$LINENO: result: $enable_shared" >&5
10630 echo "${ECHO_T}$enable_shared" >&6
10632 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10633 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10634 # Make sure either enable_shared or enable_static is yes.
10635 test "$enable_shared" = yes || enable_static=yes
10636 echo "$as_me:$LINENO: result: $enable_static" >&5
10637 echo "${ECHO_T}$enable_static" >&6
10639 GCC_FC="$ac_cv_fc_compiler_gnu"
10643 ## There is no encapsulation within the following macros, do not change
10644 ## the running order or otherwise move them around unless you know exactly
10645 ## what you are doing...
10646 # Dependencies to place before and after the object being linked:
10648 postdep_objects_FC=
10651 compiler_lib_search_path_FC=
10653 cat > conftest.$ac_ext <<_LT_EOF
10662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663 (eval $ac_compile) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; then
10667 # Parse the compiler output and extract the necessary
10668 # objects, libraries and library flags.
10670 # Sentinel used to keep track of whether or not we are before
10671 # the conftest object file.
10672 pre_test_object_deps_done=no
10674 # The `*' in the case matches for architectures that use `case' in
10675 # $output_verbose_cmd can trigger glob expansion during the loop
10676 # eval without this substitution.
10677 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10679 for p in `eval $output_verbose_link_cmd`; do
10683 # Some compilers place space between "-{L,R}" and the path.
10684 # Remove the space.
10685 if test $p = "-L" ||
10686 test $p = "-R"; then
10693 if test "$pre_test_object_deps_done" = no; then
10696 # Internal compiler library paths should come after those
10697 # provided the user. The postdeps already come after the
10698 # user supplied libs so there is no need to process them.
10699 if test -z "$compiler_lib_search_path_FC"; then
10700 compiler_lib_search_path_FC="${prev}${p}"
10702 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10705 # The "-l" case would never come before the object being
10706 # linked, so don't bother handling this case.
10709 if test -z "$postdeps_FC"; then
10710 postdeps_FC="${prev}${p}"
10712 postdeps_FC="${postdeps_FC} ${prev}${p}"
10718 # This assumes that the test object file only shows up
10719 # once in the compiler output.
10720 if test "$p" = "conftest.$objext"; then
10721 pre_test_object_deps_done=yes
10725 if test "$pre_test_object_deps_done" = no; then
10726 if test -z "$predep_objects_FC"; then
10727 predep_objects_FC="$p"
10729 predep_objects_FC="$predep_objects_FC $p"
10732 if test -z "$postdep_objects_FC"; then
10733 postdep_objects_FC="$p"
10735 postdep_objects_FC="$postdep_objects_FC $p"
10740 *) ;; # Ignore the rest.
10748 echo "libtool.m4: error: problem compiling FC test program"
10751 $RM -f confest.$objext
10753 # PORTME: override above test on systems where it is broken
10756 case " $postdeps_FC " in
10757 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10785 lt_prog_compiler_wl_FC=
10786 lt_prog_compiler_pic_FC=
10787 lt_prog_compiler_static_FC=
10789 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10790 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10792 if test "$GCC" = yes; then
10793 lt_prog_compiler_wl_FC='-Wl,'
10794 lt_prog_compiler_static_FC='-static'
10798 # All AIX code is PIC.
10799 if test "$host_cpu" = ia64; then
10800 # AIX 5 now supports IA64 processor
10801 lt_prog_compiler_static_FC='-Bstatic'
10806 if test "$host_cpu" = m68k; then
10807 # FIXME: we need at least 68020 code to build shared libraries, but
10808 # adding the `-m68020' flag to GCC prevents building anything better,
10810 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10814 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10815 # PIC is the default for these OSes.
10818 mingw* | cygwin* | pw32* | os2*)
10819 # This hack is so that the source file can tell whether it is being
10820 # built for inclusion in a dll (and should export symbols for example).
10821 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10822 # (--disable-auto-import) libraries
10823 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10826 darwin* | rhapsody*)
10827 # PIC is the default on this platform
10828 # Common symbols not allowed in MH_DYLIB files
10829 lt_prog_compiler_pic_FC='-fno-common'
10833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10834 # not for PA HP-UX.
10840 lt_prog_compiler_pic_FC='-fPIC'
10846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10847 # Instead, we relocate shared libraries at runtime.
10851 # Just because we use GCC doesn't mean we suddenly get shared libraries
10852 # on systems that don't support them.
10853 lt_prog_compiler_can_build_shared_FC=no
10858 # QNX uses GNU C++, but need to define -shared option too, otherwise
10859 # it will coredump.
10860 lt_prog_compiler_pic_FC='-fPIC -shared'
10864 if test -d /usr/nec; then
10865 lt_prog_compiler_pic_FC=-Kconform_pic
10870 lt_prog_compiler_pic_FC='-fPIC'
10874 # PORTME Check for flag to pass linker flags through the system compiler.
10877 lt_prog_compiler_wl_FC='-Wl,'
10878 if test "$host_cpu" = ia64; then
10879 # AIX 5 now supports IA64 processor
10880 lt_prog_compiler_static_FC='-Bstatic'
10882 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10886 # PIC is the default on this platform
10887 # Common symbols not allowed in MH_DYLIB files
10888 case $cc_basename in
10890 lt_prog_compiler_pic_FC='-qnocommon'
10891 lt_prog_compiler_wl_FC='-Wl,'
10896 mingw* | cygwin* | pw32* | os2*)
10897 # This hack is so that the source file can tell whether it is being
10898 # built for inclusion in a dll (and should export symbols for example).
10899 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10902 hpux9* | hpux10* | hpux11*)
10903 lt_prog_compiler_wl_FC='-Wl,'
10904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10905 # not for PA HP-UX.
10911 lt_prog_compiler_pic_FC='+Z'
10914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10915 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10918 irix5* | irix6* | nonstopux*)
10919 lt_prog_compiler_wl_FC='-Wl,'
10920 # PIC (with -KPIC) is the default.
10921 lt_prog_compiler_static_FC='-non_shared'
10924 linux* | k*bsd*-gnu)
10925 case $cc_basename in
10927 lt_prog_compiler_wl_FC='-Wl,'
10928 lt_prog_compiler_pic_FC='-KPIC'
10929 lt_prog_compiler_static_FC='-static'
10931 pgcc* | pgf77* | pgf90* | pgf95*)
10932 # Portland Group compilers (*not* the Pentium gcc compiler,
10933 # which looks to be a dead project)
10934 lt_prog_compiler_wl_FC='-Wl,'
10935 lt_prog_compiler_pic_FC='-fpic'
10936 lt_prog_compiler_static_FC='-Bstatic'
10939 lt_prog_compiler_wl_FC='-Wl,'
10940 # All Alpha code is PIC.
10941 lt_prog_compiler_static_FC='-non_shared'
10944 case `$CC -V 2>&1 | sed 5q` in
10947 lt_prog_compiler_pic_FC='-KPIC'
10948 lt_prog_compiler_static_FC='-Bstatic'
10949 lt_prog_compiler_wl_FC='-Wl,'
10952 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10953 lt_prog_compiler_pic_FC='-KPIC'
10954 lt_prog_compiler_static_FC='-Bstatic'
10955 lt_prog_compiler_wl_FC=''
10963 lt_prog_compiler_pic_FC='-KPIC'
10964 lt_prog_compiler_static_FC='-Bstatic'
10968 # QNX uses GNU C++, but need to define -shared option too, otherwise
10969 # it will coredump.
10970 lt_prog_compiler_pic_FC='-fPIC -shared'
10973 osf3* | osf4* | osf5*)
10974 lt_prog_compiler_wl_FC='-Wl,'
10975 # All OSF/1 code is PIC.
10976 lt_prog_compiler_static_FC='-non_shared'
10980 lt_prog_compiler_static_FC='-non_shared'
10984 lt_prog_compiler_pic_FC='-KPIC'
10985 lt_prog_compiler_static_FC='-Bstatic'
10986 case $cc_basename in
10987 f77* | f90* | f95*)
10988 lt_prog_compiler_wl_FC='-Qoption ld ';;
10990 lt_prog_compiler_wl_FC='-Wl,';;
10995 lt_prog_compiler_wl_FC='-Qoption ld '
10996 lt_prog_compiler_pic_FC='-PIC'
10997 lt_prog_compiler_static_FC='-Bstatic'
11000 sysv4 | sysv4.2uw2* | sysv4.3*)
11001 lt_prog_compiler_wl_FC='-Wl,'
11002 lt_prog_compiler_pic_FC='-KPIC'
11003 lt_prog_compiler_static_FC='-Bstatic'
11007 if test -d /usr/nec ;then
11008 lt_prog_compiler_pic_FC='-Kconform_pic'
11009 lt_prog_compiler_static_FC='-Bstatic'
11013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11014 lt_prog_compiler_wl_FC='-Wl,'
11015 lt_prog_compiler_pic_FC='-KPIC'
11016 lt_prog_compiler_static_FC='-Bstatic'
11020 lt_prog_compiler_wl_FC='-Wl,'
11021 lt_prog_compiler_can_build_shared_FC=no
11025 lt_prog_compiler_pic_FC='-pic'
11026 lt_prog_compiler_static_FC='-Bstatic'
11030 lt_prog_compiler_can_build_shared_FC=no
11036 # For platforms which do not support PIC, -DPIC is meaningless:
11038 lt_prog_compiler_pic_FC=
11041 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11044 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11045 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11050 # Check to make sure the PIC flag actually works.
11052 if test -n "$lt_prog_compiler_pic_FC"; then
11053 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11055 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 lt_prog_compiler_pic_works_FC=no
11059 ac_outfile=conftest.$ac_objext
11060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11061 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11062 # Insert the option either (1) after the last *FLAGS variable, or
11063 # (2) before a word containing "conftest.", or (3) at the end.
11064 # Note that $ac_compile itself does not contain backslashes and begins
11065 # with a dollar sign (not a hyphen), so the echo should work correctly.
11066 # The option is referenced via a variable to avoid confusing sed.
11067 lt_compile=`echo "$ac_compile" | $SED \
11068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11070 -e 's:$: $lt_compiler_flag:'`
11071 (eval echo "\"\$as_me:11071: $lt_compile\"" >&5)
11072 (eval "$lt_compile" 2>conftest.err)
11074 cat conftest.err >&5
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 if (exit $ac_status) && test -s "$ac_outfile"; then
11077 # The compiler can only warn and ignore the option if not recognized
11078 # So say no if there are warnings other than the usual output.
11079 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11082 lt_prog_compiler_pic_works_FC=yes
11088 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11089 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11091 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11092 case $lt_prog_compiler_pic_FC in
11094 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11097 lt_prog_compiler_pic_FC=
11098 lt_prog_compiler_can_build_shared_FC=no
11106 # Check to make sure the static flag actually works.
11108 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11109 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11110 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11111 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 lt_prog_compiler_static_works_FC=no
11115 save_LDFLAGS="$LDFLAGS"
11116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11117 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11119 # The linker can only warn and ignore the option if not recognized
11120 # So say no if there are warnings
11121 if test -s conftest.err; then
11122 # Append any errors to the config.log.
11123 cat conftest.err 1>&5
11124 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11126 if diff conftest.exp conftest.er2 >/dev/null; then
11127 lt_prog_compiler_static_works_FC=yes
11130 lt_prog_compiler_static_works_FC=yes
11134 LDFLAGS="$save_LDFLAGS"
11137 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11138 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11140 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11143 lt_prog_compiler_static_FC=
11149 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11151 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 lt_cv_prog_compiler_c_o_FC=no
11155 $RM -r conftest 2>/dev/null
11159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11161 lt_compiler_flag="-o out/conftest2.$ac_objext"
11162 # Insert the option either (1) after the last *FLAGS variable, or
11163 # (2) before a word containing "conftest.", or (3) at the end.
11164 # Note that $ac_compile itself does not contain backslashes and begins
11165 # with a dollar sign (not a hyphen), so the echo should work correctly.
11166 lt_compile=`echo "$ac_compile" | $SED \
11167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11169 -e 's:$: $lt_compiler_flag:'`
11170 (eval echo "\"\$as_me:11170: $lt_compile\"" >&5)
11171 (eval "$lt_compile" 2>out/conftest.err)
11173 cat out/conftest.err >&5
11174 echo "$as_me:11174: \$? = $ac_status" >&5
11175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11177 # The compiler can only warn and ignore the option if not recognized
11178 # So say no if there are warnings
11179 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11182 lt_cv_prog_compiler_c_o_FC=yes
11187 # SGI C++ compiler will create directory out/ii_files/ for
11188 # template instantiation
11189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11190 $RM out/* && rmdir out
11196 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11201 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11202 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11203 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 lt_cv_prog_compiler_c_o_FC=no
11207 $RM -r conftest 2>/dev/null
11211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11213 lt_compiler_flag="-o out/conftest2.$ac_objext"
11214 # Insert the option either (1) after the last *FLAGS variable, or
11215 # (2) before a word containing "conftest.", or (3) at the end.
11216 # Note that $ac_compile itself does not contain backslashes and begins
11217 # with a dollar sign (not a hyphen), so the echo should work correctly.
11218 lt_compile=`echo "$ac_compile" | $SED \
11219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11221 -e 's:$: $lt_compiler_flag:'`
11222 (eval echo "\"\$as_me:11222: $lt_compile\"" >&5)
11223 (eval "$lt_compile" 2>out/conftest.err)
11225 cat out/conftest.err >&5
11226 echo "$as_me:11226: \$? = $ac_status" >&5
11227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11229 # The compiler can only warn and ignore the option if not recognized
11230 # So say no if there are warnings
11231 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11234 lt_cv_prog_compiler_c_o_FC=yes
11239 # SGI C++ compiler will create directory out/ii_files/ for
11240 # template instantiation
11241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11242 $RM out/* && rmdir out
11248 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11249 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11254 hard_links="nottested"
11255 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11256 # do not overwrite the value of need_locks provided by the user
11257 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11258 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11263 ln conftest.a conftest.b 2>&5 || hard_links=no
11264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11265 echo "$as_me:$LINENO: result: $hard_links" >&5
11266 echo "${ECHO_T}$hard_links" >&6
11267 if test "$hard_links" = no; then
11268 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11269 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11278 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11282 allow_undefined_flag_FC=
11283 always_export_symbols_FC=no
11285 archive_expsym_cmds_FC=
11286 compiler_needs_object_FC=no
11287 enable_shared_with_static_runtimes_FC=no
11288 export_dynamic_flag_spec_FC=
11289 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11290 hardcode_automatic_FC=no
11291 hardcode_direct_FC=no
11292 hardcode_direct_absolute_FC=no
11293 hardcode_libdir_flag_spec_FC=
11294 hardcode_libdir_flag_spec_ld_FC=
11295 hardcode_libdir_separator_FC=
11296 hardcode_minus_L_FC=no
11297 hardcode_shlibpath_var_FC=unsupported
11298 inherit_rpath_FC=no
11299 link_all_deplibs_FC=unknown
11301 module_expsym_cmds_FC=
11302 old_archive_from_new_cmds_FC=
11303 old_archive_from_expsyms_cmds_FC=
11304 thread_safe_flag_spec_FC=
11305 whole_archive_flag_spec_FC=
11306 # include_expsyms should be a list of space-separated symbols to be *always*
11307 # included in the symbol list
11308 include_expsyms_FC=
11309 # exclude_expsyms can be an extended regexp of symbols to exclude
11310 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11312 # as well as any symbol that contains `d'.
11313 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11315 # platforms (ab)use it in PIC code, but their linkers get confused if
11316 # the symbol is explicitly referenced. Since portable code cannot
11317 # rely on this symbol name, it's probably fine to never include it in
11318 # preloaded symbol tables.
11319 extract_expsyms_cmds=
11322 cygwin* | mingw* | pw32*)
11323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11324 # When not using gcc, we currently assume that we are using
11325 # Microsoft Visual C++.
11326 if test "$GCC" != yes; then
11331 # we just hope/assume this is gcc and not c89 (= MSVC++)
11340 if test "$with_gnu_ld" = yes; then
11341 # If archive_cmds runs LD, not CC, wlarc should be empty
11344 # Set some defaults for GNU ld with shared library support. These
11345 # are reset later if shared libraries are not supported. Putting them
11346 # here allows them to be overridden if necessary.
11347 runpath_var=LD_RUN_PATH
11348 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11349 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11350 # ancient GNU ld didn't support --whole-archive et. al.
11351 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11352 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11354 whole_archive_flag_spec_FC=
11356 supports_anon_versioning=no
11357 case `$LD -v 2>&1` in
11358 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11359 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11360 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11361 *\ 2.11.*) ;; # other 2.11 versions
11362 *) supports_anon_versioning=yes ;;
11365 # See if GNU ld supports shared libraries.
11368 # On AIX/PPC, the GNU linker is very broken
11369 if test "$host_cpu" != ia64; then
11373 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11374 *** to be unable to reliably create shared libraries on AIX.
11375 *** Therefore, libtool is disabling shared libraries support. If you
11376 *** really care for shared libraries, you may want to modify your PATH
11377 *** so that a non-GNU linker is found, and then restart.
11384 if test "$host_cpu" = m68k; then
11385 archive_cmds_FC='$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)'
11386 hardcode_libdir_flag_spec_FC='-L$libdir'
11387 hardcode_minus_L_FC=yes
11390 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11391 # that the semantics of dynamic libraries on AmigaOS, at least up
11392 # to version 4, is to share data among multiple programs linked
11393 # with the same dynamic library. Since this doesn't match the
11394 # behavior of shared libraries on other platforms, we can't use
11400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11401 allow_undefined_flag_FC=unsupported
11402 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11403 # support --undefined. This deserves some investigation. FIXME
11404 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11410 cygwin* | mingw* | pw32*)
11411 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11412 # as there is no search path for DLLs.
11413 hardcode_libdir_flag_spec_FC='-L$libdir'
11414 allow_undefined_flag_FC=unsupported
11415 always_export_symbols_FC=no
11416 enable_shared_with_static_runtimes_FC=yes
11417 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11419 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11420 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11421 # If the export-symbols file already is a .def file (1st line
11422 # is EXPORTS), use it as is; otherwise, prepend...
11423 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11424 cp $export_symbols $output_objdir/$soname.def;
11426 echo EXPORTS > $output_objdir/$soname.def;
11427 cat $export_symbols >> $output_objdir/$soname.def;
11429 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11436 hardcode_direct_FC=no
11437 hardcode_shlibpath_var_FC=no
11438 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11439 export_dynamic_flag_spec_FC='${wl}-E'
11440 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11441 # Instead, shared libraries are loaded at an image base (0x10000000 by
11442 # default) and relocated if they conflict, which is a slow very memory
11443 # consuming and fragmenting process. To avoid this, we pick a random,
11444 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11445 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11446 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11447 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11450 gnu* | linux* | tpf* | k*bsd*-gnu)
11452 if test "$host_os" = linux-dietlibc; then
11453 case $cc_basename in
11454 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11457 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11458 && test "$tmp_diet" = no
11461 case $cc_basename,$host_cpu in
11462 pgcc*) # Portland Group C compiler
11463 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11464 tmp_addflag=' $pic_flag'
11466 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11467 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11468 tmp_addflag=' $pic_flag -Mnomain' ;;
11469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11470 tmp_addflag=' -i_dynamic' ;;
11471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11472 tmp_addflag=' -i_dynamic -nofor_main' ;;
11473 ifc* | ifort*) # Intel Fortran compiler
11474 tmp_addflag=' -nofor_main' ;;
11476 case `$CC -V 2>&1 | sed 5q` in
11477 *Sun\ C*) # Sun C 5.9
11478 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11479 compiler_needs_object_FC=yes
11480 tmp_sharedflag='-G' ;;
11481 *Sun\ F*) # Sun Fortran 8.3
11482 tmp_sharedflag='-G' ;;
11484 tmp_sharedflag='-shared' ;;
11486 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11488 if test "x$supports_anon_versioning" = xyes; then
11489 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11491 echo "local: *; };" >> $output_objdir/$libname.ver~
11492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11501 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11504 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11505 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11510 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11515 *** create shared libraries on Solaris systems. Therefore, libtool
11516 *** is disabling shared libraries support. We urge you to upgrade GNU
11517 *** binutils to release 2.9.1 or newer. Another option is to modify
11518 *** your PATH or compiler configuration so that the native linker is
11519 *** used, and then restart.
11522 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11523 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11524 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11531 case `$LD -v 2>&1` in
11532 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11536 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11537 *** reliably create shared libraries on SCO systems. Therefore, libtool
11538 *** is disabling shared libraries support. We urge you to upgrade GNU
11539 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11540 *** your PATH or compiler configuration so that the native linker is
11541 *** used, and then restart.
11546 # For security reasons, it is highly recommended that you always
11547 # use absolute paths for naming shared libraries, and exclude the
11548 # DT_RUNPATH tag from executables and libraries. But doing so
11549 # requires that you compile everything twice, which is a pain.
11550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11551 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11552 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11553 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11562 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11564 hardcode_direct_FC=yes
11565 hardcode_shlibpath_var_FC=no
11569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11570 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11571 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11578 if test "$ld_shlibs_FC" = no; then
11580 hardcode_libdir_flag_spec_FC=
11581 export_dynamic_flag_spec_FC=
11582 whole_archive_flag_spec_FC=
11585 # PORTME fill in a description of your system's linker (not GNU ld)
11588 allow_undefined_flag_FC=unsupported
11589 always_export_symbols_FC=yes
11590 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11591 # Note: this linker hardcodes the directories in LIBPATH if there
11592 # are no directories specified by -L.
11593 hardcode_minus_L_FC=yes
11594 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11595 # Neither direct hardcoding nor static linking is supported with a
11597 hardcode_direct_FC=unsupported
11602 if test "$host_cpu" = ia64; then
11603 # On IA64, the linker does run time linking by default, so we don't
11604 # have to do anything special.
11605 aix_use_runtimelinking=no
11606 exp_sym_flag='-Bexport'
11609 # If we're using GNU nm, then we don't want the "-C" option.
11610 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11611 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11612 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11614 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11616 aix_use_runtimelinking=no
11618 # Test if we are trying to use run time linking or normal
11619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11620 # need to do runtime linking.
11621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11622 for ld_flag in $LDFLAGS; do
11623 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11624 aix_use_runtimelinking=yes
11631 exp_sym_flag='-bexport'
11632 no_entry_flag='-bnoentry'
11635 # When large executables or shared objects are built, AIX ld can
11636 # have problems creating the table of contents. If linking a library
11637 # or program results in "error TOC overflow" add -mminimal-toc to
11638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11642 hardcode_direct_FC=yes
11643 hardcode_direct_absolute_FC=yes
11644 hardcode_libdir_separator_FC=':'
11645 link_all_deplibs_FC=yes
11646 file_list_spec_FC='${wl}-f,'
11648 if test "$GCC" = yes; then
11649 case $host_os in aix4.[012]|aix4.[012].*)
11650 # We only want to do this on AIX 4.2 and lower, the check
11651 # below for broken collect2 doesn't work under 4.3+
11652 collect2name=`${CC} -print-prog-name=collect2`
11653 if test -f "$collect2name" &&
11654 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11656 # We have reworked collect2
11659 # We have old collect2
11660 hardcode_direct_FC=unsupported
11661 # It fails to find uninstalled libraries when the uninstalled
11662 # path is not listed in the libpath. Setting hardcode_minus_L
11663 # to unsupported forces relinking
11664 hardcode_minus_L_FC=yes
11665 hardcode_libdir_flag_spec_FC='-L$libdir'
11666 hardcode_libdir_separator_FC=
11670 shared_flag='-shared'
11671 if test "$aix_use_runtimelinking" = yes; then
11672 shared_flag="$shared_flag "'${wl}-G'
11676 if test "$host_cpu" = ia64; then
11677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11678 # chokes on -Wl,-G. The following line is correct:
11681 if test "$aix_use_runtimelinking" = yes; then
11682 shared_flag='${wl}-G'
11684 shared_flag='${wl}-bM:SRE'
11689 # It seems that -bexpall does not export symbols beginning with
11690 # underscore (_), so it is better to generate a list of symbols to export.
11691 always_export_symbols_FC=yes
11692 if test "$aix_use_runtimelinking" = yes; then
11693 # Warning - without using the other runtime loading flags (-brtl),
11694 # -berok will link without error, but may produce a broken library.
11695 allow_undefined_flag_FC='-berok'
11696 # Determine the default libpath from the value encoded in an
11697 # empty executable.
11698 cat >conftest.$ac_ext <<_ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705 (eval $ac_link) 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_fc_werror_flag"
11713 || test ! -s conftest.err'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11726 lt_aix_libpath_sed='
11727 /Import File Strings/,/^$/ {
11733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11734 # Check for a 64-bit object if we didn't find anything.
11735 if test -z "$aix_libpath"; then
11736 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11743 rm -f conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11747 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11748 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11750 if test "$host_cpu" = ia64; then
11751 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11752 allow_undefined_flag_FC="-z nodefs"
11753 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11755 # Determine the default libpath from the value encoded in an
11756 # empty executable.
11757 cat >conftest.$ac_ext <<_ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>conftest.er1
11766 grep -v '^ *+' conftest.er1 >conftest.err
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -z "$ac_fc_werror_flag"
11772 || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11785 lt_aix_libpath_sed='
11786 /Import File Strings/,/^$/ {
11792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11793 # Check for a 64-bit object if we didn't find anything.
11794 if test -z "$aix_libpath"; then
11795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11802 rm -f conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11806 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11807 # Warning - without using the other run time loading flags,
11808 # -berok will link without error, but may produce a broken library.
11809 no_undefined_flag_FC=' ${wl}-bernotok'
11810 allow_undefined_flag_FC=' ${wl}-berok'
11811 # Exported symbols can be pulled into shared objects from archives
11812 whole_archive_flag_spec_FC='$convenience'
11813 archive_cmds_need_lc_FC=yes
11814 # This is similar to how AIX traditionally builds its shared libraries.
11815 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11821 if test "$host_cpu" = m68k; then
11822 archive_cmds_FC='$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)'
11823 hardcode_libdir_flag_spec_FC='-L$libdir'
11824 hardcode_minus_L_FC=yes
11826 # see comment about different semantics on the GNU ld section
11831 export_dynamic_flag_spec_FC=-rdynamic
11834 cygwin* | mingw* | pw32*)
11835 # When not using gcc, we currently assume that we are using
11836 # Microsoft Visual C++.
11837 # hardcode_libdir_flag_spec is actually meaningless, as there is
11838 # no search path for DLLs.
11839 hardcode_libdir_flag_spec_FC=' '
11840 allow_undefined_flag_FC=unsupported
11841 # Tell ltmain to make .lib files, not .a files.
11843 # Tell ltmain to make .dll files, not .so files.
11845 # FIXME: Setting linknames here is a bad hack.
11846 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11847 # The linker will automatically build a .lib file if we build a DLL.
11848 old_archive_from_new_cmds_FC='true'
11849 # FIXME: Should let the user specify the lib program.
11850 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11851 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11852 enable_shared_with_static_runtimes_FC=yes
11855 darwin* | rhapsody*)
11857 rhapsody* | darwin1.[012])
11858 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11861 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11863 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11866 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11871 archive_cmds_need_lc_FC=no
11872 hardcode_direct_FC=no
11873 hardcode_automatic_FC=yes
11874 hardcode_shlibpath_var_FC=unsupported
11875 whole_archive_flag_spec_FC=''
11876 link_all_deplibs_FC=yes
11877 if test "$GCC" = yes ; then
11878 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 lt_cv_apple_cc_single_mod=no
11882 if test -z "${LT_MULTI_MODULE}"; then
11883 # By default we will add the -single_module flag. You can override
11884 # by either setting the environment variable LT_MULTI_MODULE
11885 # non-empty at configure time, or by adding -multi-module to the
11887 echo "int foo(void){return 1;}" > conftest.c
11888 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11889 -dynamiclib ${wl}-single_module conftest.c
11890 if test -f libconftest.dylib; then
11891 lt_cv_apple_cc_single_mod=yes
11892 rm libconftest.dylib
11894 rm conftest.$ac_ext
11898 output_verbose_link_cmd=echo
11899 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11900 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11901 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11903 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11904 archive_expsym_cmds_FC='sed "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}'
11906 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11907 module_expsym_cmds_FC='sed -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}'
11909 case $cc_basename in
11911 output_verbose_link_cmd=echo
11912 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11913 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11914 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11915 archive_expsym_cmds_FC='sed "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}'
11916 module_expsym_cmds_FC='sed "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}'
11926 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11927 hardcode_libdir_flag_spec_FC='-L$libdir'
11928 hardcode_shlibpath_var_FC=no
11935 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11936 # support. Future versions do this automatically, but an explicit c++rt0.o
11937 # does not break anything, and helps significantly (at the cost of a little
11940 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11941 hardcode_libdir_flag_spec_FC='-R$libdir'
11942 hardcode_direct_FC=yes
11943 hardcode_shlibpath_var_FC=no
11946 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11948 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11949 hardcode_direct_FC=yes
11950 hardcode_minus_L_FC=yes
11951 hardcode_shlibpath_var_FC=no
11954 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11955 freebsd* | dragonfly*)
11956 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11957 hardcode_libdir_flag_spec_FC='-R$libdir'
11958 hardcode_direct_FC=yes
11959 hardcode_shlibpath_var_FC=no
11963 if test "$GCC" = yes; then
11964 archive_cmds_FC='$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'
11966 archive_cmds_FC='$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'
11968 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11969 hardcode_libdir_separator_FC=:
11970 hardcode_direct_FC=yes
11972 # hardcode_minus_L: Not really in the search PATH,
11973 # but as the default location of the library.
11974 hardcode_minus_L_FC=yes
11975 export_dynamic_flag_spec_FC='${wl}-E'
11979 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11980 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11982 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11984 if test "$with_gnu_ld" = no; then
11985 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11986 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
11987 hardcode_libdir_separator_FC=:
11988 hardcode_direct_FC=yes
11989 hardcode_direct_absolute_FC=yes
11990 export_dynamic_flag_spec_FC='${wl}-E'
11991 # hardcode_minus_L: Not really in the search PATH,
11992 # but as the default location of the library.
11993 hardcode_minus_L_FC=yes
11998 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12001 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12004 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12007 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12013 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12016 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12019 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12023 if test "$with_gnu_ld" = no; then
12024 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12025 hardcode_libdir_separator_FC=:
12029 hardcode_direct_FC=no
12030 hardcode_shlibpath_var_FC=no
12033 hardcode_direct_FC=yes
12034 hardcode_direct_absolute_FC=yes
12035 export_dynamic_flag_spec_FC='${wl}-E'
12037 # hardcode_minus_L: Not really in the search PATH,
12038 # but as the default location of the library.
12039 hardcode_minus_L_FC=yes
12045 irix5* | irix6* | nonstopux*)
12046 if test "$GCC" = yes; then
12047 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12048 # Try to use the -exported_symbol ld option, if it does not
12049 # work, assume that -exports_file does not work either and
12050 # implicitly export all symbols.
12051 save_LDFLAGS="$LDFLAGS"
12052 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12053 cat >conftest.$ac_ext <<_ACEOF
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>conftest.er1
12060 grep -v '^ *+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_fc_werror_flag"
12066 || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12085 rm -f conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LDFLAGS="$save_LDFLAGS"
12089 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12090 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12092 archive_cmds_need_lc_FC='no'
12093 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12094 hardcode_libdir_separator_FC=:
12095 inherit_rpath_FC=yes
12096 link_all_deplibs_FC=yes
12100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12101 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12103 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12105 hardcode_libdir_flag_spec_FC='-R$libdir'
12106 hardcode_direct_FC=yes
12107 hardcode_shlibpath_var_FC=no
12111 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12112 hardcode_direct_FC=yes
12113 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12114 hardcode_libdir_separator_FC=:
12115 hardcode_shlibpath_var_FC=no
12122 hardcode_direct_FC=yes
12123 hardcode_shlibpath_var_FC=no
12124 hardcode_direct_absolute_FC=yes
12125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12126 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12127 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12128 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12129 export_dynamic_flag_spec_FC='${wl}-E'
12132 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12133 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12134 hardcode_libdir_flag_spec_FC='-R$libdir'
12137 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12138 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12145 hardcode_libdir_flag_spec_FC='-L$libdir'
12146 hardcode_minus_L_FC=yes
12147 allow_undefined_flag_FC=unsupported
12148 archive_cmds_FC='$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'
12149 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12153 if test "$GCC" = yes; then
12154 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12155 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12157 allow_undefined_flag_FC=' -expect_unresolved \*'
12158 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12160 archive_cmds_need_lc_FC='no'
12161 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12162 hardcode_libdir_separator_FC=:
12165 osf4* | osf5*) # as osf3* with the addition of -msym flag
12166 if test "$GCC" = yes; then
12167 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12168 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12169 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12171 allow_undefined_flag_FC=' -expect_unresolved \*'
12172 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12173 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12174 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12176 # Both c and cxx compiler support -rpath directly
12177 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12179 archive_cmds_need_lc_FC='no'
12180 hardcode_libdir_separator_FC=:
12184 no_undefined_flag_FC=' -z defs'
12185 if test "$GCC" = yes; then
12187 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12189 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12191 case `$CC -V 2>&1` in
12194 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12195 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12196 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12200 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12201 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12202 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12206 hardcode_libdir_flag_spec_FC='-R$libdir'
12207 hardcode_shlibpath_var_FC=no
12209 solaris2.[0-5] | solaris2.[0-5].*) ;;
12211 # The compiler driver will combine and reorder linker options,
12212 # but understands `-z linker_flag'. GCC discards it without `$wl',
12213 # but is careful enough not to reorder.
12214 # Supported since Solaris 2.6 (maybe 2.5.1?)
12215 if test "$GCC" = yes; then
12216 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12218 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12222 link_all_deplibs_FC=yes
12226 if test "x$host_vendor" = xsequent; then
12227 # Use $CC to link under sequent, because it throws in some extra .o
12228 # files that make .init and .fini sections work.
12229 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12231 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12233 hardcode_libdir_flag_spec_FC='-L$libdir'
12234 hardcode_direct_FC=yes
12235 hardcode_minus_L_FC=yes
12236 hardcode_shlibpath_var_FC=no
12240 case $host_vendor in
12242 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12243 hardcode_direct_FC=yes # is this really true???
12246 ## LD is ld it makes a PLAMLIB
12247 ## CC just makes a GrossModule.
12248 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12249 reload_cmds_FC='$CC -r -o $output$reload_objs'
12250 hardcode_direct_FC=no
12253 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12254 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12257 runpath_var='LD_RUN_PATH'
12258 hardcode_shlibpath_var_FC=no
12262 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12263 hardcode_shlibpath_var_FC=no
12264 export_dynamic_flag_spec_FC='-Bexport'
12268 if test -d /usr/nec; then
12269 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12270 hardcode_shlibpath_var_FC=no
12271 runpath_var=LD_RUN_PATH
12272 hardcode_runpath_var=yes
12277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12278 no_undefined_flag_FC='${wl}-z,text'
12279 archive_cmds_need_lc_FC=no
12280 hardcode_shlibpath_var_FC=no
12281 runpath_var='LD_RUN_PATH'
12283 if test "$GCC" = yes; then
12284 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12292 sysv5* | sco3.2v5* | sco5v6*)
12293 # Note: We can NOT use -z defs as we might desire, because we do not
12294 # link with -lc, and that would cause any symbols used from libc to
12295 # always be unresolved, which means just about no library would
12296 # ever link correctly. If we're not using GNU ld we use -z text
12297 # though, which does catch some bad symbols but isn't as heavy-handed
12299 no_undefined_flag_FC='${wl}-z,text'
12300 allow_undefined_flag_FC='${wl}-z,nodefs'
12301 archive_cmds_need_lc_FC=no
12302 hardcode_shlibpath_var_FC=no
12303 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12304 hardcode_libdir_separator_FC=':'
12305 link_all_deplibs_FC=yes
12306 export_dynamic_flag_spec_FC='${wl}-Bexport'
12307 runpath_var='LD_RUN_PATH'
12309 if test "$GCC" = yes; then
12310 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12319 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_libdir_flag_spec_FC='-L$libdir'
12321 hardcode_shlibpath_var_FC=no
12329 if test x$host_vendor = xsni; then
12331 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12332 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12338 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12339 echo "${ECHO_T}$ld_shlibs_FC" >&6
12340 test "$ld_shlibs_FC" = no && can_build_shared=no
12342 with_gnu_ld_FC=$with_gnu_ld
12350 # Do we need to explicitly link libc?
12352 case "x$archive_cmds_need_lc_FC" in
12354 # Assume -lc should be added
12355 archive_cmds_need_lc_FC=yes
12357 if test "$enable_shared" = yes && test "$GCC" = yes; then
12358 case $archive_cmds_FC in
12360 # FIXME: we may have to deal with multi-command sequences.
12363 # Test whether the compiler implicitly links with -lc since on some
12364 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12365 # to ld, don't add -lc before -lgcc.
12366 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12367 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12372 (eval $ac_compile) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } 2>conftest.err; then
12378 libobjs=conftest.$ac_objext
12380 wl=$lt_prog_compiler_wl_FC
12381 pic_flag=$lt_prog_compiler_pic_FC
12387 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12388 allow_undefined_flag_FC=
12389 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12390 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }
12395 archive_cmds_need_lc_FC=no
12397 archive_cmds_need_lc_FC=yes
12399 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12401 cat conftest.err 1>&5
12404 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12405 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12475 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12476 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12477 withGCC=$ac_cv_fc_compiler_gnu
12478 library_names_spec=
12479 libname_spec='lib$name'
12483 postuninstall_cmds=
12487 shlibpath_overrides_runpath=unknown
12489 dynamic_linker="$host_os ld.so"
12490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12491 need_lib_prefix=unknown
12492 hardcode_into_libs=no
12494 # when you set need_version to no, make sure it does not cause -set_version
12495 # flags to be left without arguments
12496 need_version=unknown
12501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12502 shlibpath_var=LIBPATH
12504 # AIX 3 has no versioning support, so we append a major version to the name.
12505 soname_spec='${libname}${release}${shared_ext}$major'
12512 hardcode_into_libs=yes
12513 if test "$host_cpu" = ia64; then
12514 # AIX 5 supports IA64
12515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12516 shlibpath_var=LD_LIBRARY_PATH
12518 # With GCC up to 2.95.x, collect2 would create an import file
12519 # for dependence libraries. The import file would start with
12520 # the line `#! .'. This would cause the generated library to
12521 # depend on `.', always an invalid library. This was fixed in
12522 # development snapshots of GCC prior to 3.0.
12524 aix4 | aix4.[01] | aix4.[01].*)
12525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12527 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12530 can_build_shared=no
12534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12535 # soname into executable. Probably we can add versioning support to
12536 # collect2, so additional links can be useful in future.
12537 if test "$aix_use_runtimelinking" = yes; then
12538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12539 # instead of lib<name>.a to let people know that these are not
12540 # typical AIX shared libraries.
12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12543 # We preserve .a as extension for shared libraries through AIX4.2
12544 # and later when we are not doing run time linking.
12545 library_names_spec='${libname}${release}.a $libname.a'
12546 soname_spec='${libname}${release}${shared_ext}$major'
12548 shlibpath_var=LIBPATH
12553 if test "$host_cpu" = m68k; then
12554 library_names_spec='$libname.ixlibrary $libname.a'
12555 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12556 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'
12563 library_names_spec='${libname}${shared_ext}'
12564 dynamic_linker="$host_os ld.so"
12565 shlibpath_var=LIBRARY_PATH
12571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572 soname_spec='${libname}${release}${shared_ext}$major'
12573 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12574 shlibpath_var=LD_LIBRARY_PATH
12575 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12576 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12577 # the default ld.so.conf also contains /usr/contrib/lib and
12578 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12579 # libtool to hard-code these into programs
12582 cygwin* | mingw* | pw32*)
12583 version_type=windows
12588 case $withGCC,$host_os in
12589 yes,cygwin* | yes,mingw* | yes,pw32*)
12590 library_names_spec='$libname.dll.a'
12591 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12592 postinstall_cmds='base_file=`basename \${file}`~
12593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12594 dldir=$destdir/`dirname \$dlpath`~
12595 test -d \$dldir || mkdir -p \$dldir~
12596 $install_prog $dir/$dlname \$dldir/$dlname~
12597 chmod a+x \$dldir/$dlname~
12598 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12599 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12602 dlpath=$dir/\$dldll~
12604 shlibpath_overrides_runpath=yes
12608 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12609 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12610 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12613 # MinGW DLLs use traditional 'lib' prefix
12614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12615 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12616 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12617 # It is most probably a Windows format PATH printed by
12618 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12619 # path with ; separators, and with drive letters. We can handle the
12620 # drive letters (cygwin fileutils understands them), so leave them,
12621 # especially as we might pass files found there to a mingw objdump,
12622 # which wouldn't understand a cygwinified path. Ahh.
12623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12629 # pw32 DLLs use 'pw' prefix rather than 'lib'
12630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12636 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12639 dynamic_linker='Win32 ld.exe'
12640 # FIXME: first we should search . and the directory the executable is in
12644 darwin* | rhapsody*)
12645 dynamic_linker="$host_os dyld"
12646 version_type=darwin
12649 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12650 soname_spec='${libname}${release}${major}$shared_ext'
12651 shlibpath_overrides_runpath=yes
12652 shlibpath_var=DYLD_LIBRARY_PATH
12653 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12663 soname_spec='${libname}${release}${shared_ext}$major'
12664 shlibpath_var=LD_LIBRARY_PATH
12671 freebsd* | dragonfly*)
12672 # DragonFly does not have aout. When/if they implement a new
12673 # versioning mechanism, adjust this.
12674 if test -x /usr/bin/objformat; then
12675 objformat=`/usr/bin/objformat`
12678 freebsd[123]*) objformat=aout ;;
12679 *) objformat=elf ;;
12682 version_type=freebsd-$objformat
12683 case $version_type in
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12694 shlibpath_var=LD_LIBRARY_PATH
12697 shlibpath_overrides_runpath=yes
12699 freebsd3.[01]* | freebsdelf3.[01]*)
12700 shlibpath_overrides_runpath=yes
12701 hardcode_into_libs=yes
12703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12705 shlibpath_overrides_runpath=no
12706 hardcode_into_libs=yes
12708 *) # from 4.6 on, and DragonFly
12709 shlibpath_overrides_runpath=yes
12710 hardcode_into_libs=yes
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12720 soname_spec='${libname}${release}${shared_ext}$major'
12721 shlibpath_var=LD_LIBRARY_PATH
12722 hardcode_into_libs=yes
12725 hpux9* | hpux10* | hpux11*)
12726 # Give a soname corresponding to the major version so that dld.sl refuses to
12727 # link against other versions.
12734 hardcode_into_libs=yes
12735 dynamic_linker="$host_os dld.so"
12736 shlibpath_var=LD_LIBRARY_PATH
12737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 if test "X$HPUX_IA64_MODE" = X32; then
12741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12749 hardcode_into_libs=yes
12750 dynamic_linker="$host_os dld.sl"
12751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12760 dynamic_linker="$host_os dld.sl"
12761 shlibpath_var=SHLIB_PATH
12762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12767 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12768 postinstall_cmds='chmod 555 $lib'
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12776 soname_spec='${libname}${release}${shared_ext}$major'
12777 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12778 shlibpath_var=LD_LIBRARY_PATH
12779 shlibpath_overrides_runpath=no
12780 hardcode_into_libs=yes
12783 irix5* | irix6* | nonstopux*)
12785 nonstopux*) version_type=nonstopux ;;
12787 if test "$lt_cv_prog_gnu_ld" = yes; then
12795 soname_spec='${libname}${release}${shared_ext}$major'
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12798 irix5* | nonstopux*)
12799 libsuff= shlibsuff=
12802 case $LD in # libtool.m4 will add one of these switches to LD
12803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12804 libsuff= shlibsuff= libmagic=32-bit;;
12805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12806 libsuff=32 shlibsuff=N32 libmagic=N32;;
12807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12808 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12809 *) libsuff= shlibsuff= libmagic=never-match;;
12813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12814 shlibpath_overrides_runpath=no
12815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12817 hardcode_into_libs=yes
12820 # No shared lib support for Linux oldld, aout, or coff.
12821 linux*oldld* | linux*aout* | linux*coff*)
12825 # This must be Linux ELF.
12826 linux* | k*bsd*-gnu)
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12833 shlibpath_var=LD_LIBRARY_PATH
12834 shlibpath_overrides_runpath=no
12835 # Some binutils ld are patched to set DT_RUNPATH
12836 save_LDFLAGS=$LDFLAGS
12837 save_libdir=$libdir
12838 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12839 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12840 cat >conftest.$ac_ext <<_ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_fc_werror_flag"
12855 || test ! -s conftest.err'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest$ac_exeext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12868 shlibpath_overrides_runpath=yes
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12876 rm -f conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
12878 LDFLAGS=$save_LDFLAGS
12879 libdir=$save_libdir
12881 # This implies no fast_install, which is unacceptable.
12882 # Some rework will be needed to allow for fast_install
12883 # before this can be enabled.
12884 hardcode_into_libs=yes
12886 # Append ld.so.conf contents to the search path
12887 if test -f /etc/ld.so.conf; then
12888 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12892 # We used to test for /lib/ld.so.1 and disable shared libraries on
12893 # powerpc, because MkLinux only supported shared libraries with the
12894 # GNU dynamic linker. Since this was broken with cross compilers,
12895 # most powerpc-linux boxes support dynamic linking these days and
12896 # people can always --disable-shared, the test was removed, and we
12897 # assume the GNU/Linux dynamic linker is in use.
12898 dynamic_linker='GNU/Linux ld.so'
12905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12908 dynamic_linker='NetBSD (a.out) ld.so'
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 dynamic_linker='NetBSD ld.elf_so'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=yes
12916 hardcode_into_libs=yes
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 shlibpath_overrides_runpath=yes
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 shlibpath_overrides_runpath=no
12934 hardcode_into_libs=yes
12935 dynamic_linker='ldqnx.so'
12940 sys_lib_dlsearch_path_spec="/usr/lib"
12942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12945 *) need_version=no ;;
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12952 openbsd2.[89] | openbsd2.[89].*)
12953 shlibpath_overrides_runpath=no
12956 shlibpath_overrides_runpath=yes
12960 shlibpath_overrides_runpath=yes
12965 libname_spec='$name'
12968 library_names_spec='$libname${shared_ext} $libname.a'
12969 dynamic_linker='OS/2 ld.exe'
12970 shlibpath_var=LIBPATH
12973 osf3* | osf4* | osf5*)
12977 soname_spec='${libname}${release}${shared_ext}$major'
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979 shlibpath_var=LD_LIBRARY_PATH
12980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12993 soname_spec='${libname}${release}${shared_ext}$major'
12994 shlibpath_var=LD_LIBRARY_PATH
12995 shlibpath_overrides_runpath=yes
12996 hardcode_into_libs=yes
12997 # ldd complains unless libraries are executable
12998 postinstall_cmds='chmod +x $lib'
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13004 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath=yes
13007 if test "$with_gnu_ld" = yes; then
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13016 soname_spec='${libname}${release}${shared_ext}$major'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 case $host_vendor in
13020 shlibpath_overrides_runpath=no
13022 runpath_var=LD_RUN_PATH
13030 shlibpath_overrides_runpath=no
13031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13037 if test -d /usr/nec ;then
13039 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13040 soname_spec='$libname${shared_ext}.$major'
13041 shlibpath_var=LD_LIBRARY_PATH
13045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13046 version_type=freebsd-elf
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13050 soname_spec='${libname}${release}${shared_ext}$major'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 shlibpath_overrides_runpath=yes
13053 hardcode_into_libs=yes
13054 if test "$with_gnu_ld" = yes; then
13055 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13057 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13060 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13064 sys_lib_dlsearch_path_spec='/usr/lib'
13068 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13072 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073 shlibpath_var=LD_LIBRARY_PATH
13074 shlibpath_overrides_runpath=no
13075 hardcode_into_libs=yes
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081 soname_spec='${libname}${release}${shared_ext}$major'
13082 shlibpath_var=LD_LIBRARY_PATH
13089 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13090 echo "${ECHO_T}$dynamic_linker" >&6
13091 test "$dynamic_linker" = no && can_build_shared=no
13093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13094 if test "$GCC" = yes; then
13095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13133 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13134 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13135 hardcode_action_FC=
13136 if test -n "$hardcode_libdir_flag_spec_FC" ||
13137 test -n "$runpath_var_FC" ||
13138 test "X$hardcode_automatic_FC" = "Xyes" ; then
13140 # We can hardcode non-existent directories.
13141 if test "$hardcode_direct_FC" != no &&
13142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13143 # have to relink, otherwise we might link with an installed library
13144 # when we should be linking with a yet-to-be-installed one
13145 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13146 test "$hardcode_minus_L_FC" != no; then
13147 # Linking always hardcodes the temporary library directory.
13148 hardcode_action_FC=relink
13150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13151 hardcode_action_FC=immediate
13154 # We cannot hardcode anything, or else we can only hardcode existing
13156 hardcode_action_FC=unsupported
13158 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13159 echo "${ECHO_T}$hardcode_action_FC" >&6
13161 if test "$hardcode_action_FC" = relink ||
13162 test "$inherit_rpath_FC" = yes; then
13163 # Fast installation is not supported
13164 enable_fast_install=no
13165 elif test "$shlibpath_overrides_runpath" = yes ||
13166 test "$enable_shared" = no; then
13167 # Fast installation is not necessary
13168 enable_fast_install=needless
13177 fi # test -n "$compiler"
13180 fi # test "$_lt_disable_FC" != yes
13183 ac_cpp='$CPP $CPPFLAGS'
13184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13189 FCFLAGS="$FCFLAGS -Wall"
13191 # For libtool versioning info, format is CURRENT:REVISION:AGE
13192 libtool_VERSION=1:0:0
13195 # Check header files.
13196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13198 if test "${ac_cv_header_stdc+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 cat >conftest.$ac_ext <<_ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 #include <stdlib.h>
13208 #include <stdarg.h>
13209 #include <string.h>
13220 rm -f conftest.$ac_objext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_c_werror_flag"
13230 || test ! -s conftest.err'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; } &&
13236 { ac_try='test -s conftest.$ac_objext'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 ac_cv_header_stdc=yes
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_cv_header_stdc=no
13249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13251 if test $ac_cv_header_stdc = yes; then
13252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 #include <string.h>
13262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263 $EGREP "memchr" >/dev/null 2>&1; then
13266 ac_cv_header_stdc=no
13272 if test $ac_cv_header_stdc = yes; then
13273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13280 #include <stdlib.h>
13283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13284 $EGREP "free" >/dev/null 2>&1; then
13287 ac_cv_header_stdc=no
13293 if test $ac_cv_header_stdc = yes; then
13294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13295 if test "$cross_compiling" = yes; then
13298 cat >conftest.$ac_ext <<_ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13305 #if ((' ' & 0x0FF) == 0x020)
13306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13309 # define ISLOWER(c) \
13310 (('a' <= (c) && (c) <= 'i') \
13311 || ('j' <= (c) && (c) <= 'r') \
13312 || ('s' <= (c) && (c) <= 'z'))
13313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13321 for (i = 0; i < 256; i++)
13322 if (XOR (islower (i), ISLOWER (i))
13323 || toupper (i) != TOUPPER (i))
13328 rm -f conftest$ac_exeext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330 (eval $ac_link) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13341 echo "$as_me: program exited with status $ac_status" >&5
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ( exit $ac_status )
13346 ac_cv_header_stdc=no
13348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13352 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13354 if test $ac_cv_header_stdc = yes; then
13356 cat >>confdefs.h <<\_ACEOF
13357 #define STDC_HEADERS 1
13362 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13363 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13364 if test "${ac_cv_header_time+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 #include <sys/types.h>
13374 #include <sys/time.h>
13380 if ((struct tm *) 0)
13386 rm -f conftest.$ac_objext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388 (eval $ac_compile) 2>conftest.er1
13390 grep -v '^ *+' conftest.er1 >conftest.err
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -z "$ac_c_werror_flag"
13396 || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest.$ac_objext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_header_time=yes
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13413 ac_cv_header_time=no
13415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13417 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13418 echo "${ECHO_T}$ac_cv_header_time" >&6
13419 if test $ac_cv_header_time = yes; then
13421 cat >>confdefs.h <<\_ACEOF
13422 #define TIME_WITH_SYS_TIME 1
13431 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
13433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13435 echo "$as_me:$LINENO: checking for $ac_header" >&5
13436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13443 # Is the header compilable?
13444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13446 cat >conftest.$ac_ext <<_ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 $ac_includes_default
13453 #include <$ac_header>
13455 rm -f conftest.$ac_objext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13457 (eval $ac_compile) 2>conftest.er1
13459 grep -v '^ *+' conftest.er1 >conftest.err
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } &&
13464 { ac_try='test -z "$ac_c_werror_flag"
13465 || test ! -s conftest.err'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest.$ac_objext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_header_compiler=yes
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_header_compiler=no
13484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 echo "${ECHO_T}$ac_header_compiler" >&6
13488 # Is the header present?
13489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <$ac_header>
13499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } >/dev/null; then
13507 if test -s conftest.err; then
13508 ac_cpp_err=$ac_c_preproc_warn_flag
13509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13516 if test -z "$ac_cpp_err"; then
13517 ac_header_preproc=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_header_preproc=no
13524 rm -f conftest.err conftest.$ac_ext
13525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13535 ac_header_preproc=yes
13538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13552 ## ----------------------------------------------------- ##
13553 ## Report this to the GNU OpenMP Runtime Library lists. ##
13554 ## ----------------------------------------------------- ##
13557 sed "s/^/$as_me: WARNING: /" >&2
13560 echo "$as_me:$LINENO: checking for $ac_header" >&5
13561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 eval "$as_ac_Header=\$ac_header_preproc"
13567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13583 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13585 acx_cv_header_stdint=stddef.h
13586 acx_cv_header_stdint_kind="(already complete)"
13587 for i in stdint.h $inttype_headers; do
13588 unset ac_cv_type_uintptr_t
13589 unset ac_cv_type_uintmax_t
13590 unset ac_cv_type_int_least32_t
13591 unset ac_cv_type_int_fast32_t
13592 unset ac_cv_type_uint64_t
13593 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13594 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13595 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13596 if test "${ac_cv_type_uintmax_t+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 cat >conftest.$ac_ext <<_ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 #include <sys/types.h>
13611 if ((uintmax_t *) 0)
13613 if (sizeof (uintmax_t))
13619 rm -f conftest.$ac_objext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13621 (eval $ac_compile) 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag"
13629 || test ! -s conftest.err'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest.$ac_objext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_type_uintmax_t=yes
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ac_cv_type_uintmax_t=no
13648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13650 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13651 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13652 if test $ac_cv_type_uintmax_t = yes; then
13653 acx_cv_header_stdint=$i
13658 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13659 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13660 if test "${ac_cv_type_uintptr_t+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 cat >conftest.$ac_ext <<_ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13669 #include <sys/types.h>
13675 if ((uintptr_t *) 0)
13677 if (sizeof (uintptr_t))
13683 rm -f conftest.$ac_objext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685 (eval $ac_compile) 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_c_werror_flag"
13693 || test ! -s conftest.err'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; } &&
13699 { ac_try='test -s conftest.$ac_objext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_type_uintptr_t=yes
13707 echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13710 ac_cv_type_uintptr_t=no
13712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13714 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13715 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13716 if test $ac_cv_type_uintptr_t = yes; then
13719 acx_cv_header_stdint_kind="(mostly complete)"
13722 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13723 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13724 if test "${ac_cv_type_int_least32_t+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <sys/types.h>
13739 if ((int_least32_t *) 0)
13741 if (sizeof (int_least32_t))
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1 >conftest.err
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_c_werror_flag"
13757 || test ! -s conftest.err'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest.$ac_objext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_cv_type_int_least32_t=yes
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13774 ac_cv_type_int_least32_t=no
13776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13779 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13780 if test $ac_cv_type_int_least32_t = yes; then
13783 acx_cv_header_stdint_kind="(mostly complete)"
13786 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13787 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13788 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 cat >conftest.$ac_ext <<_ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <sys/types.h>
13803 if ((int_fast32_t *) 0)
13805 if (sizeof (int_fast32_t))
13811 rm -f conftest.$ac_objext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813 (eval $ac_compile) 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -z "$ac_c_werror_flag"
13821 || test ! -s conftest.err'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest.$ac_objext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_type_int_fast32_t=yes
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_cv_type_int_fast32_t=no
13840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13842 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13843 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13844 if test $ac_cv_type_int_fast32_t = yes; then
13847 acx_cv_header_stdint_kind="(mostly complete)"
13850 echo "$as_me:$LINENO: checking for uint64_t" >&5
13851 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13852 if test "${ac_cv_type_uint64_t+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 cat >conftest.$ac_ext <<_ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 #include <sys/types.h>
13867 if ((uint64_t *) 0)
13869 if (sizeof (uint64_t))
13875 rm -f conftest.$ac_objext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877 (eval $ac_compile) 2>conftest.er1
13879 grep -v '^ *+' conftest.er1 >conftest.err
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_c_werror_flag"
13885 || test ! -s conftest.err'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest.$ac_objext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_cv_type_uint64_t=yes
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 ac_cv_type_uint64_t=no
13904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13906 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13907 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13908 if test $ac_cv_type_uint64_t = yes; then
13911 acx_cv_header_stdint_kind="(lacks uint64_t)"
13916 if test "$acx_cv_header_stdint" = stddef.h; then
13917 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13918 for i in stdint.h $inttype_headers; do
13919 unset ac_cv_type_uintptr_t
13920 unset ac_cv_type_uint32_t
13921 unset ac_cv_type_uint64_t
13922 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13923 echo "$as_me:$LINENO: checking for uint32_t" >&5
13924 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13925 if test "${ac_cv_type_uint32_t+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 cat >conftest.$ac_ext <<_ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 #include <sys/types.h>
13940 if ((uint32_t *) 0)
13942 if (sizeof (uint32_t))
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950 (eval $ac_compile) 2>conftest.er1
13952 grep -v '^ *+' conftest.er1 >conftest.err
13954 cat conftest.err >&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } &&
13957 { ac_try='test -z "$ac_c_werror_flag"
13958 || test ! -s conftest.err'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; } &&
13964 { ac_try='test -s conftest.$ac_objext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_cv_type_uint32_t=yes
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ac_cv_type_uint32_t=no
13977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13979 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13980 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13981 if test $ac_cv_type_uint32_t = yes; then
13982 acx_cv_header_stdint=$i
13987 echo "$as_me:$LINENO: checking for uint64_t" >&5
13988 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13989 if test "${ac_cv_type_uint64_t+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 cat >conftest.$ac_ext <<_ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 #include <sys/types.h>
14004 if ((uint64_t *) 0)
14006 if (sizeof (uint64_t))
14012 rm -f conftest.$ac_objext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14014 (eval $ac_compile) 2>conftest.er1
14016 grep -v '^ *+' conftest.er1 >conftest.err
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -z "$ac_c_werror_flag"
14022 || test ! -s conftest.err'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; } &&
14028 { ac_try='test -s conftest.$ac_objext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_type_uint64_t=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_type_uint64_t=no
14041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14043 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14044 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14046 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14047 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14048 if test "${ac_cv_type_uintptr_t+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 cat >conftest.$ac_ext <<_ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 #include <sys/types.h>
14063 if ((uintptr_t *) 0)
14065 if (sizeof (uintptr_t))
14071 rm -f conftest.$ac_objext
14072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073 (eval $ac_compile) 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -z "$ac_c_werror_flag"
14081 || test ! -s conftest.err'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; } &&
14087 { ac_try='test -s conftest.$ac_objext'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 ac_cv_type_uintptr_t=yes
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ac_cv_type_uintptr_t=no
14100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14102 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14103 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14108 if test "$acx_cv_header_stdint" = stddef.h; then
14109 acx_cv_header_stdint_kind="(u_intXX_t style)"
14110 for i in sys/types.h $inttype_headers; do
14111 unset ac_cv_type_u_int32_t
14112 unset ac_cv_type_u_int64_t
14113 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14114 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14115 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14116 if test "${ac_cv_type_u_int32_t+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14125 #include <sys/types.h>
14131 if ((u_int32_t *) 0)
14133 if (sizeof (u_int32_t))
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest.$ac_objext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_type_u_int32_t=yes
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_cv_type_u_int32_t=no
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14171 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14172 if test $ac_cv_type_u_int32_t = yes; then
14173 acx_cv_header_stdint=$i
14178 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14179 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14180 if test "${ac_cv_type_u_int64_t+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 #include <sys/types.h>
14195 if ((u_int64_t *) 0)
14197 if (sizeof (u_int64_t))
14203 rm -f conftest.$ac_objext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205 (eval $ac_compile) 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest.$ac_objext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 ac_cv_type_u_int64_t=yes
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 ac_cv_type_u_int64_t=no
14232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14234 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14235 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14240 if test "$acx_cv_header_stdint" = stddef.h; then
14241 acx_cv_header_stdint_kind="(using manual detection)"
14244 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14245 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14246 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14247 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14248 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14250 # ----------------- Summarize what we found so far
14252 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14253 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14255 case `$as_basename gstdint.h ||
14256 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14257 Xgstdint.h : 'X\(//\)$' \| \
14258 Xgstdint.h : 'X\(/\)$' \| \
14259 . : '\(.\)' 2>/dev/null ||
14261 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14262 /^X\/\(\/\/\)$/{ s//\1/; q; }
14263 /^X\/\(\/\).*/{ s//\1/; q; }
14265 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14266 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14267 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14268 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14272 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14273 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14275 # ----------------- done included file, check C basic types --------
14277 # Lacking an uintptr_t? Test size of void *
14278 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14279 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14280 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14281 if test "${ac_cv_type_void_p+set}" = set; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 cat >conftest.$ac_ext <<_ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 $ac_includes_default
14296 if (sizeof (void *))
14302 rm -f conftest.$ac_objext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14304 (eval $ac_compile) 2>conftest.er1
14306 grep -v '^ *+' conftest.er1 >conftest.err
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -z "$ac_c_werror_flag"
14312 || test ! -s conftest.err'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest.$ac_objext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_cv_type_void_p=yes
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 ac_cv_type_void_p=no
14331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14333 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14334 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14336 echo "$as_me:$LINENO: checking size of void *" >&5
14337 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14338 if test "${ac_cv_sizeof_void_p+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 if test "$ac_cv_type_void_p" = yes; then
14342 # The cast to unsigned long works around a bug in the HP C Compiler
14343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14345 # This bug is HP SR number 8606223364.
14346 if test "$cross_compiling" = yes; then
14347 # Depending upon the size, compute the lo and hi bounds.
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 $ac_includes_default
14358 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367 (eval $ac_compile) 2>conftest.er1
14369 grep -v '^ *+' conftest.er1 >conftest.err
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } &&
14374 { ac_try='test -z "$ac_c_werror_flag"
14375 || test ! -s conftest.err'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14389 cat >conftest.$ac_ext <<_ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 $ac_includes_default
14399 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag"
14416 || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest.$ac_objext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_hi=$ac_mid; break
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_lo=`expr $ac_mid + 1`
14434 if test $ac_lo -le $ac_mid; then
14438 ac_mid=`expr 2 '*' $ac_mid + 1`
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14443 echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14446 cat >conftest.$ac_ext <<_ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 $ac_includes_default
14456 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14463 rm -f conftest.$ac_objext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465 (eval $ac_compile) 2>conftest.er1
14467 grep -v '^ *+' conftest.er1 >conftest.err
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -z "$ac_c_werror_flag"
14473 || test ! -s conftest.err'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14487 cat >conftest.$ac_ext <<_ACEOF
14490 cat confdefs.h >>conftest.$ac_ext
14491 cat >>conftest.$ac_ext <<_ACEOF
14492 /* end confdefs.h. */
14493 $ac_includes_default
14497 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14504 rm -f conftest.$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506 (eval $ac_compile) 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag"
14514 || test ! -s conftest.err'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; } &&
14520 { ac_try='test -s conftest.$ac_objext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14526 ac_lo=$ac_mid; break
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 ac_hi=`expr '(' $ac_mid ')' - 1`
14532 if test $ac_mid -le $ac_hi; then
14536 ac_mid=`expr 2 '*' $ac_mid`
14538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14549 # Binary search between lo and hi bounds.
14550 while test "x$ac_lo" != "x$ac_hi"; do
14551 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14552 cat >conftest.$ac_ext <<_ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 $ac_includes_default
14562 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>conftest.er1
14573 grep -v '^ *+' conftest.er1 >conftest.err
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -z "$ac_c_werror_flag"
14579 || test ! -s conftest.err'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; } &&
14585 { ac_try='test -s conftest.$ac_objext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_lo=`expr '(' $ac_mid ')' + 1`
14598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14601 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14602 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14603 See \`config.log' for more details." >&5
14604 echo "$as_me: error: cannot compute sizeof (void *), 77
14605 See \`config.log' for more details." >&2;}
14606 { (exit 1); exit 1; }; } ;;
14609 if test "$cross_compiling" = yes; then
14610 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14611 See \`config.log' for more details." >&5
14612 echo "$as_me: error: cannot run test program while cross compiling
14613 See \`config.log' for more details." >&2;}
14614 { (exit 1); exit 1; }; }
14616 cat >conftest.$ac_ext <<_ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 $ac_includes_default
14623 long longval () { return (long) (sizeof (void *)); }
14624 unsigned long ulongval () { return (long) (sizeof (void *)); }
14626 #include <stdlib.h>
14631 FILE *f = fopen ("conftest.val", "w");
14634 if (((long) (sizeof (void *))) < 0)
14636 long i = longval ();
14637 if (i != ((long) (sizeof (void *))))
14639 fprintf (f, "%ld\n", i);
14643 unsigned long i = ulongval ();
14644 if (i != ((long) (sizeof (void *))))
14646 fprintf (f, "%lu\n", i);
14648 exit (ferror (f) || fclose (f) != 0);
14654 rm -f conftest$ac_exeext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14656 (eval $ac_link) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_cv_sizeof_void_p=`cat conftest.val`
14667 echo "$as_me: program exited with status $ac_status" >&5
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ( exit $ac_status )
14672 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14673 See \`config.log' for more details." >&5
14674 echo "$as_me: error: cannot compute sizeof (void *), 77
14675 See \`config.log' for more details." >&2;}
14676 { (exit 1); exit 1; }; }
14678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14683 ac_cv_sizeof_void_p=0
14686 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14687 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14688 cat >>confdefs.h <<_ACEOF
14689 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14695 # Lacking an uint64_t? Test size of long
14696 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14697 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14698 echo $ECHO_N "checking for long... $ECHO_C" >&6
14699 if test "${ac_cv_type_long+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 $ac_includes_default
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag"
14730 || test ! -s conftest.err'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_type_long=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14752 echo "${ECHO_T}$ac_cv_type_long" >&6
14754 echo "$as_me:$LINENO: checking size of long" >&5
14755 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14756 if test "${ac_cv_sizeof_long+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 if test "$ac_cv_type_long" = yes; then
14760 # The cast to unsigned long works around a bug in the HP C Compiler
14761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14763 # This bug is HP SR number 8606223364.
14764 if test "$cross_compiling" = yes; then
14765 # Depending upon the size, compute the lo and hi bounds.
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 $ac_includes_default
14776 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>conftest.er1
14787 grep -v '^ *+' conftest.er1 >conftest.err
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag"
14793 || test ! -s conftest.err'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; } &&
14799 { ac_try='test -s conftest.$ac_objext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14807 cat >conftest.$ac_ext <<_ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 $ac_includes_default
14817 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14824 rm -f conftest.$ac_objext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>conftest.er1
14828 grep -v '^ *+' conftest.er1 >conftest.err
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag"
14834 || test ! -s conftest.err'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_hi=$ac_mid; break
14848 echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 ac_lo=`expr $ac_mid + 1`
14852 if test $ac_lo -le $ac_mid; then
14856 ac_mid=`expr 2 '*' $ac_mid + 1`
14858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 cat >conftest.$ac_ext <<_ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 $ac_includes_default
14874 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 $ac_includes_default
14915 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest.$ac_objext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_lo=$ac_mid; break
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ac_hi=`expr '(' $ac_mid ')' - 1`
14950 if test $ac_mid -le $ac_hi; then
14954 ac_mid=`expr 2 '*' $ac_mid`
14956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14967 # Binary search between lo and hi bounds.
14968 while test "x$ac_lo" != "x$ac_hi"; do
14969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14976 $ac_includes_default
14980 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14987 rm -f conftest.$ac_objext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14989 (eval $ac_compile) 2>conftest.er1
14991 grep -v '^ *+' conftest.er1 >conftest.err
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_c_werror_flag"
14997 || test ! -s conftest.err'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } &&
15003 { ac_try='test -s conftest.$ac_objext'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15014 ac_lo=`expr '(' $ac_mid ')' + 1`
15016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15019 ?*) ac_cv_sizeof_long=$ac_lo;;
15020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15021 See \`config.log' for more details." >&5
15022 echo "$as_me: error: cannot compute sizeof (long), 77
15023 See \`config.log' for more details." >&2;}
15024 { (exit 1); exit 1; }; } ;;
15027 if test "$cross_compiling" = yes; then
15028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15029 See \`config.log' for more details." >&5
15030 echo "$as_me: error: cannot run test program while cross compiling
15031 See \`config.log' for more details." >&2;}
15032 { (exit 1); exit 1; }; }
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 $ac_includes_default
15041 long longval () { return (long) (sizeof (long)); }
15042 unsigned long ulongval () { return (long) (sizeof (long)); }
15044 #include <stdlib.h>
15049 FILE *f = fopen ("conftest.val", "w");
15052 if (((long) (sizeof (long))) < 0)
15054 long i = longval ();
15055 if (i != ((long) (sizeof (long))))
15057 fprintf (f, "%ld\n", i);
15061 unsigned long i = ulongval ();
15062 if (i != ((long) (sizeof (long))))
15064 fprintf (f, "%lu\n", i);
15066 exit (ferror (f) || fclose (f) != 0);
15072 rm -f conftest$ac_exeext
15073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15074 (eval $ac_link) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_cv_sizeof_long=`cat conftest.val`
15085 echo "$as_me: program exited with status $ac_status" >&5
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 ( exit $ac_status )
15090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15091 See \`config.log' for more details." >&5
15092 echo "$as_me: error: cannot compute sizeof (long), 77
15093 See \`config.log' for more details." >&2;}
15094 { (exit 1); exit 1; }; }
15096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15101 ac_cv_sizeof_long=0
15104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15105 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15106 cat >>confdefs.h <<_ACEOF
15107 #define SIZEOF_LONG $ac_cv_sizeof_long
15113 if test $acx_cv_header_stdint = stddef.h; then
15114 # Lacking a good header? Test size of everything and deduce all types.
15115 echo "$as_me:$LINENO: checking for int" >&5
15116 echo $ECHO_N "checking for int... $ECHO_C" >&6
15117 if test "${ac_cv_type_int+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 $ac_includes_default
15138 rm -f conftest.$ac_objext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15169 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15170 echo "${ECHO_T}$ac_cv_type_int" >&6
15172 echo "$as_me:$LINENO: checking size of int" >&5
15173 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15174 if test "${ac_cv_sizeof_int+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 if test "$ac_cv_type_int" = yes; then
15178 # The cast to unsigned long works around a bug in the HP C Compiler
15179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15181 # This bug is HP SR number 8606223364.
15182 if test "$cross_compiling" = yes; then
15183 # Depending upon the size, compute the lo and hi bounds.
15184 cat >conftest.$ac_ext <<_ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 $ac_includes_default
15194 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15201 rm -f conftest.$ac_objext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203 (eval $ac_compile) 2>conftest.er1
15205 grep -v '^ *+' conftest.er1 >conftest.err
15207 cat conftest.err >&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } &&
15210 { ac_try='test -z "$ac_c_werror_flag"
15211 || test ! -s conftest.err'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; } &&
15217 { ac_try='test -s conftest.$ac_objext'
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 $ac_includes_default
15235 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>conftest.er1
15246 grep -v '^ *+' conftest.er1 >conftest.err
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag"
15252 || test ! -s conftest.err'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest.$ac_objext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_hi=$ac_mid; break
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 ac_lo=`expr $ac_mid + 1`
15270 if test $ac_lo -le $ac_mid; then
15274 ac_mid=`expr 2 '*' $ac_mid + 1`
15276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 cat >conftest.$ac_ext <<_ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 $ac_includes_default
15292 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>conftest.er1
15303 grep -v '^ *+' conftest.er1 >conftest.err
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -z "$ac_c_werror_flag"
15309 || test ! -s conftest.err'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; } &&
15315 { ac_try='test -s conftest.$ac_objext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15323 cat >conftest.$ac_ext <<_ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15333 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag"
15350 || test ! -s conftest.err'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest.$ac_objext'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_lo=$ac_mid; break
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_hi=`expr '(' $ac_mid ')' - 1`
15368 if test $ac_mid -le $ac_hi; then
15372 ac_mid=`expr 2 '*' $ac_mid`
15374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15385 # Binary search between lo and hi bounds.
15386 while test "x$ac_lo" != "x$ac_hi"; do
15387 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15388 cat >conftest.$ac_ext <<_ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15394 $ac_includes_default
15398 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15405 rm -f conftest.$ac_objext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407 (eval $ac_compile) 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -z "$ac_c_werror_flag"
15415 || test ! -s conftest.err'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; } &&
15421 { ac_try='test -s conftest.$ac_objext'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_lo=`expr '(' $ac_mid ')' + 1`
15434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15437 ?*) ac_cv_sizeof_int=$ac_lo;;
15438 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15439 See \`config.log' for more details." >&5
15440 echo "$as_me: error: cannot compute sizeof (int), 77
15441 See \`config.log' for more details." >&2;}
15442 { (exit 1); exit 1; }; } ;;
15445 if test "$cross_compiling" = yes; then
15446 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15447 See \`config.log' for more details." >&5
15448 echo "$as_me: error: cannot run test program while cross compiling
15449 See \`config.log' for more details." >&2;}
15450 { (exit 1); exit 1; }; }
15452 cat >conftest.$ac_ext <<_ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 $ac_includes_default
15459 long longval () { return (long) (sizeof (int)); }
15460 unsigned long ulongval () { return (long) (sizeof (int)); }
15462 #include <stdlib.h>
15467 FILE *f = fopen ("conftest.val", "w");
15470 if (((long) (sizeof (int))) < 0)
15472 long i = longval ();
15473 if (i != ((long) (sizeof (int))))
15475 fprintf (f, "%ld\n", i);
15479 unsigned long i = ulongval ();
15480 if (i != ((long) (sizeof (int))))
15482 fprintf (f, "%lu\n", i);
15484 exit (ferror (f) || fclose (f) != 0);
15490 rm -f conftest$ac_exeext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15492 (eval $ac_link) 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_cv_sizeof_int=`cat conftest.val`
15503 echo "$as_me: program exited with status $ac_status" >&5
15504 echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15507 ( exit $ac_status )
15508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15509 See \`config.log' for more details." >&5
15510 echo "$as_me: error: cannot compute sizeof (int), 77
15511 See \`config.log' for more details." >&2;}
15512 { (exit 1); exit 1; }; }
15514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15522 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15523 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15524 cat >>confdefs.h <<_ACEOF
15525 #define SIZEOF_INT $ac_cv_sizeof_int
15529 echo "$as_me:$LINENO: checking for short" >&5
15530 echo $ECHO_N "checking for short... $ECHO_C" >&6
15531 if test "${ac_cv_type_short+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 $ac_includes_default
15546 if (sizeof (short))
15552 rm -f conftest.$ac_objext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554 (eval $ac_compile) 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag"
15562 || test ! -s conftest.err'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest.$ac_objext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_cv_type_short=yes
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_cv_type_short=no
15581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15583 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15584 echo "${ECHO_T}$ac_cv_type_short" >&6
15586 echo "$as_me:$LINENO: checking size of short" >&5
15587 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15588 if test "${ac_cv_sizeof_short+set}" = set; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 if test "$ac_cv_type_short" = yes; then
15592 # The cast to unsigned long works around a bug in the HP C Compiler
15593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15595 # This bug is HP SR number 8606223364.
15596 if test "$cross_compiling" = yes; then
15597 # Depending upon the size, compute the lo and hi bounds.
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 $ac_includes_default
15608 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15615 rm -f conftest.$ac_objext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617 (eval $ac_compile) 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag"
15625 || test ! -s conftest.err'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15639 cat >conftest.$ac_ext <<_ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 $ac_includes_default
15649 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15656 rm -f conftest.$ac_objext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658 (eval $ac_compile) 2>conftest.er1
15660 grep -v '^ *+' conftest.er1 >conftest.err
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag"
15666 || test ! -s conftest.err'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try='test -s conftest.$ac_objext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 ac_hi=$ac_mid; break
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_lo=`expr $ac_mid + 1`
15684 if test $ac_lo -le $ac_mid; then
15688 ac_mid=`expr 2 '*' $ac_mid + 1`
15690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15706 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15713 rm -f conftest.$ac_objext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15715 (eval $ac_compile) 2>conftest.er1
15717 grep -v '^ *+' conftest.er1 >conftest.err
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_c_werror_flag"
15723 || test ! -s conftest.err'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest.$ac_objext'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15737 cat >conftest.$ac_ext <<_ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15743 $ac_includes_default
15747 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15754 rm -f conftest.$ac_objext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756 (eval $ac_compile) 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -z "$ac_c_werror_flag"
15764 || test ! -s conftest.err'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; } &&
15770 { ac_try='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_lo=$ac_mid; break
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_hi=`expr '(' $ac_mid ')' - 1`
15782 if test $ac_mid -le $ac_hi; then
15786 ac_mid=`expr 2 '*' $ac_mid`
15788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15799 # Binary search between lo and hi bounds.
15800 while test "x$ac_lo" != "x$ac_hi"; do
15801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15802 cat >conftest.$ac_ext <<_ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 $ac_includes_default
15812 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15819 rm -f conftest.$ac_objext
15820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821 (eval $ac_compile) 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } &&
15828 { ac_try='test -z "$ac_c_werror_flag"
15829 || test ! -s conftest.err'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try='test -s conftest.$ac_objext'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15846 ac_lo=`expr '(' $ac_mid ')' + 1`
15848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15851 ?*) ac_cv_sizeof_short=$ac_lo;;
15852 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15853 See \`config.log' for more details." >&5
15854 echo "$as_me: error: cannot compute sizeof (short), 77
15855 See \`config.log' for more details." >&2;}
15856 { (exit 1); exit 1; }; } ;;
15859 if test "$cross_compiling" = yes; then
15860 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15861 See \`config.log' for more details." >&5
15862 echo "$as_me: error: cannot run test program while cross compiling
15863 See \`config.log' for more details." >&2;}
15864 { (exit 1); exit 1; }; }
15866 cat >conftest.$ac_ext <<_ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 $ac_includes_default
15873 long longval () { return (long) (sizeof (short)); }
15874 unsigned long ulongval () { return (long) (sizeof (short)); }
15876 #include <stdlib.h>
15881 FILE *f = fopen ("conftest.val", "w");
15884 if (((long) (sizeof (short))) < 0)
15886 long i = longval ();
15887 if (i != ((long) (sizeof (short))))
15889 fprintf (f, "%ld\n", i);
15893 unsigned long i = ulongval ();
15894 if (i != ((long) (sizeof (short))))
15896 fprintf (f, "%lu\n", i);
15898 exit (ferror (f) || fclose (f) != 0);
15904 rm -f conftest$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906 (eval $ac_link) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_cv_sizeof_short=`cat conftest.val`
15917 echo "$as_me: program exited with status $ac_status" >&5
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ( exit $ac_status )
15922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15923 See \`config.log' for more details." >&5
15924 echo "$as_me: error: cannot compute sizeof (short), 77
15925 See \`config.log' for more details." >&2;}
15926 { (exit 1); exit 1; }; }
15928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15933 ac_cv_sizeof_short=0
15936 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15937 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15938 cat >>confdefs.h <<_ACEOF
15939 #define SIZEOF_SHORT $ac_cv_sizeof_short
15943 echo "$as_me:$LINENO: checking for char" >&5
15944 echo $ECHO_N "checking for char... $ECHO_C" >&6
15945 if test "${ac_cv_type_char+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $ac_includes_default
15966 rm -f conftest.$ac_objext
15967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15968 (eval $ac_compile) 2>conftest.er1
15970 grep -v '^ *+' conftest.er1 >conftest.err
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -z "$ac_c_werror_flag"
15976 || test ! -s conftest.err'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; } &&
15982 { ac_try='test -s conftest.$ac_objext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_cv_type_char=yes
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15997 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15998 echo "${ECHO_T}$ac_cv_type_char" >&6
16000 echo "$as_me:$LINENO: checking size of char" >&5
16001 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16002 if test "${ac_cv_sizeof_char+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 if test "$ac_cv_type_char" = yes; then
16006 # The cast to unsigned long works around a bug in the HP C Compiler
16007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16009 # This bug is HP SR number 8606223364.
16010 if test "$cross_compiling" = yes; then
16011 # Depending upon the size, compute the lo and hi bounds.
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 $ac_includes_default
16022 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031 (eval $ac_compile) 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag"
16039 || test ! -s conftest.err'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16053 cat >conftest.$ac_ext <<_ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 $ac_includes_default
16063 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16070 rm -f conftest.$ac_objext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072 (eval $ac_compile) 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_hi=$ac_mid; break
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_lo=`expr $ac_mid + 1`
16098 if test $ac_lo -le $ac_mid; then
16102 ac_mid=`expr 2 '*' $ac_mid + 1`
16104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 cat >conftest.$ac_ext <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 $ac_includes_default
16120 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16127 rm -f conftest.$ac_objext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129 (eval $ac_compile) 2>conftest.er1
16131 grep -v '^ *+' conftest.er1 >conftest.err
16133 cat conftest.err >&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } &&
16136 { ac_try='test -z "$ac_c_werror_flag"
16137 || test ! -s conftest.err'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; } &&
16143 { ac_try='test -s conftest.$ac_objext'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; }; then
16151 cat >conftest.$ac_ext <<_ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 $ac_includes_default
16161 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16168 rm -f conftest.$ac_objext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170 (eval $ac_compile) 2>conftest.er1
16172 grep -v '^ *+' conftest.er1 >conftest.err
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -z "$ac_c_werror_flag"
16178 || test ! -s conftest.err'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; } &&
16184 { ac_try='test -s conftest.$ac_objext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_lo=$ac_mid; break
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ac_hi=`expr '(' $ac_mid ')' - 1`
16196 if test $ac_mid -le $ac_hi; then
16200 ac_mid=`expr 2 '*' $ac_mid`
16202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213 # Binary search between lo and hi bounds.
16214 while test "x$ac_lo" != "x$ac_hi"; do
16215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16216 cat >conftest.$ac_ext <<_ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 $ac_includes_default
16226 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16233 rm -f conftest.$ac_objext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16235 (eval $ac_compile) 2>conftest.er1
16237 grep -v '^ *+' conftest.er1 >conftest.err
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_c_werror_flag"
16243 || test ! -s conftest.err'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest.$ac_objext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_lo=`expr '(' $ac_mid ')' + 1`
16262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16265 ?*) ac_cv_sizeof_char=$ac_lo;;
16266 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16267 See \`config.log' for more details." >&5
16268 echo "$as_me: error: cannot compute sizeof (char), 77
16269 See \`config.log' for more details." >&2;}
16270 { (exit 1); exit 1; }; } ;;
16273 if test "$cross_compiling" = yes; then
16274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16275 See \`config.log' for more details." >&5
16276 echo "$as_me: error: cannot run test program while cross compiling
16277 See \`config.log' for more details." >&2;}
16278 { (exit 1); exit 1; }; }
16280 cat >conftest.$ac_ext <<_ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 $ac_includes_default
16287 long longval () { return (long) (sizeof (char)); }
16288 unsigned long ulongval () { return (long) (sizeof (char)); }
16290 #include <stdlib.h>
16295 FILE *f = fopen ("conftest.val", "w");
16298 if (((long) (sizeof (char))) < 0)
16300 long i = longval ();
16301 if (i != ((long) (sizeof (char))))
16303 fprintf (f, "%ld\n", i);
16307 unsigned long i = ulongval ();
16308 if (i != ((long) (sizeof (char))))
16310 fprintf (f, "%lu\n", i);
16312 exit (ferror (f) || fclose (f) != 0);
16318 rm -f conftest$ac_exeext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16320 (eval $ac_link) 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_sizeof_char=`cat conftest.val`
16331 echo "$as_me: program exited with status $ac_status" >&5
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ( exit $ac_status )
16336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16337 See \`config.log' for more details." >&5
16338 echo "$as_me: error: cannot compute sizeof (char), 77
16339 See \`config.log' for more details." >&2;}
16340 { (exit 1); exit 1; }; }
16342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16347 ac_cv_sizeof_char=0
16350 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16351 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16352 cat >>confdefs.h <<_ACEOF
16353 #define SIZEOF_CHAR $ac_cv_sizeof_char
16358 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16359 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16360 case "$ac_cv_sizeof_char" in
16361 1) acx_cv_type_int8_t=char ;;
16362 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16363 echo "$as_me: error: no 8-bit type" >&2;}
16364 { (exit please report a bug); exit please report a bug; }; }
16366 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16367 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16369 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16370 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16371 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16372 2:*) acx_cv_type_int16_t=int ;;
16373 *:2) acx_cv_type_int16_t=short ;;
16374 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16375 echo "$as_me: error: no 16-bit type" >&2;}
16376 { (exit please report a bug); exit please report a bug; }; }
16378 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16379 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16381 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16382 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16383 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16384 4:*) acx_cv_type_int32_t=int ;;
16385 *:4) acx_cv_type_int32_t=long ;;
16386 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16387 echo "$as_me: error: no 32-bit type" >&2;}
16388 { (exit please report a bug); exit please report a bug; }; }
16390 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16391 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16394 # These tests are here to make the output prettier
16396 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16397 case "$ac_cv_sizeof_long" in
16398 8) acx_cv_type_int64_t=long ;;
16400 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16401 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16402 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16403 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16406 # Now we can use the above types
16408 if test "$ac_cv_type_uintptr_t" != yes; then
16409 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16410 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16411 case $ac_cv_sizeof_void_p in
16412 2) acx_cv_type_intptr_t=int16_t ;;
16413 4) acx_cv_type_intptr_t=int32_t ;;
16414 8) acx_cv_type_intptr_t=int64_t ;;
16415 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16416 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16417 { (exit please report a bug); exit please report a bug; }; }
16419 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16420 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16423 # ----------------- done all checks, emit header -------------
16424 ac_config_commands="$ac_config_commands gstdint.h"
16429 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16430 # In case the pthread.h system header is not found, this test will fail.
16432 CFLAGS="$CFLAGS -pthread"
16433 cat >conftest.$ac_ext <<_ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 #include <pthread.h>
16440 void *g(void *d) { return NULL; }
16444 pthread_t t; pthread_create(&t,NULL,g,NULL);
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451 (eval $ac_link) 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -z "$ac_c_werror_flag"
16459 || test ! -s conftest.err'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; } &&
16465 { ac_try='test -s conftest$ac_exeext'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }; then
16471 XPCFLAGS=" -Wc,-pthread"
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16476 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16477 cat >conftest.$ac_ext <<_ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 #include <pthread.h>
16484 void *g(void *d) { return NULL; }
16488 pthread_t t; pthread_create(&t,NULL,g,NULL);
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16495 (eval $ac_link) 2>conftest.er1
16497 grep -v '^ *+' conftest.er1 >conftest.err
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
16502 { ac_try='test -z "$ac_c_werror_flag"
16503 || test ! -s conftest.err'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; } &&
16509 { ac_try='test -s conftest$ac_exeext'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16520 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16521 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16522 { (exit 1); exit 1; }; }
16524 rm -f conftest.err conftest.$ac_objext \
16525 conftest$ac_exeext conftest.$ac_ext
16527 rm -f conftest.err conftest.$ac_objext \
16528 conftest$ac_exeext conftest.$ac_ext
16530 # Check for functions needed.
16533 for ac_func in getloadavg clock_gettime
16535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16536 echo "$as_me:$LINENO: checking for $ac_func" >&5
16537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16538 if eval "test \"\${$as_ac_var+set}\" = set"; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 cat >conftest.$ac_ext <<_ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16549 #define $ac_func innocuous_$ac_func
16551 /* System header to define __stub macros and hopefully few prototypes,
16552 which can conflict with char $ac_func (); below.
16553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16554 <limits.h> exists even on freestanding compilers. */
16557 # include <limits.h>
16559 # include <assert.h>
16564 /* Override any gcc2 internal prototype to avoid an error. */
16569 /* We use char because int might match the return type of a gcc2
16570 builtin and then its argument prototype would still apply. */
16572 /* The GNU C library defines this for functions which it implements
16573 to always fail with ENOSYS. Some functions are actually named
16574 something starting with __ and the normal name is an alias. */
16575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16578 char (*f) () = $ac_func;
16587 return f != $ac_func;
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>conftest.er1
16596 grep -v '^ *+' conftest.er1 >conftest.err
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -z "$ac_c_werror_flag"
16602 || test ! -s conftest.err'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest$ac_exeext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 eval "$as_ac_var=yes"
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 eval "$as_ac_var=no"
16621 rm -f conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16626 if test `eval echo '${'$as_ac_var'}'` = yes; then
16627 cat >>confdefs.h <<_ACEOF
16628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16635 # Check for broken semaphore implementation on darwin.
16636 # sem_init returns: sem_init error: Function not implemented.
16640 cat >>confdefs.h <<\_ACEOF
16641 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16647 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16648 if test "${enable_linux_futex+set}" = set; then
16649 enableval="$enable_linux_futex"
16651 case "$enableval" in
16653 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16654 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16655 { (exit 1); exit 1; }; } ;;
16659 enable_linux_futex=default
16664 case "$enable_linux_futex" in
16666 # If headers don't have gettid/futex syscalls definition, then
16667 # default to no, otherwise there will be compile time failures.
16668 # Otherwise, default to yes. If we don't detect we are
16669 # compiled/linked against NPTL and not cross-compiling, check
16670 # if programs are run by default against NPTL and if not, issue
16672 enable_linux_futex=no
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 #include <sys/syscall.h>
16684 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691 (eval $ac_link) 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } &&
16698 { ac_try='test -z "$ac_c_werror_flag"
16699 || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest$ac_exeext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16712 LIBS="-lpthread $LIBS"
16713 cat >conftest.$ac_ext <<_ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 #ifndef _GNU_SOURCE
16720 #define _GNU_SOURCE 1
16722 #include <pthread.h>
16723 pthread_t th; void *status;
16727 pthread_tryjoin_np (th, &status);
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734 (eval $ac_link) 2>conftest.er1
16736 grep -v '^ *+' conftest.er1 >conftest.err
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -z "$ac_c_werror_flag"
16742 || test ! -s conftest.err'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; } &&
16748 { ac_try='test -s conftest$ac_exeext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 enable_linux_futex=yes
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 if test x$cross_compiling = xno; then
16760 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16761 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16762 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16763 If so, please configure with --disable-linux-futex" >&5
16764 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16765 If so, please configure with --disable-linux-futex" >&2;}
16768 enable_linux_futex=yes
16770 rm -f conftest.err conftest.$ac_objext \
16771 conftest$ac_exeext conftest.$ac_ext
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16778 rm -f conftest.err conftest.$ac_objext \
16779 conftest$ac_exeext conftest.$ac_ext
16782 cat >conftest.$ac_ext <<_ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 #include <sys/syscall.h>
16793 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>conftest.er1
16802 grep -v '^ *+' conftest.er1 >conftest.err
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
16807 { ac_try='test -z "$ac_c_werror_flag"
16808 || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16826 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16827 { (exit 1); exit 1; }; }
16829 rm -f conftest.err conftest.$ac_objext \
16830 conftest$ac_exeext conftest.$ac_ext
16835 enable_linux_futex=no
16838 if test x$enable_linux_futex = xyes; then
16843 # Check for pthread_{,attr_}[sg]etaffinity_np.
16844 cat >conftest.$ac_ext <<_ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 #define _GNU_SOURCE
16851 #include <pthread.h>
16856 pthread_attr_t attr;
16857 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16858 if (CPU_ISSET (0, &cpuset))
16859 CPU_SET (1, &cpuset);
16861 CPU_ZERO (&cpuset);
16862 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16863 pthread_attr_init (&attr);
16864 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16865 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872 (eval $ac_link) 2>conftest.er1
16874 grep -v '^ *+' conftest.er1 >conftest.err
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } &&
16879 { ac_try='test -z "$ac_c_werror_flag"
16880 || test ! -s conftest.err'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try='test -s conftest$ac_exeext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16893 cat >>confdefs.h <<\_ACEOF
16894 #define HAVE_PTHREAD_AFFINITY_NP 1
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16902 rm -f conftest.err conftest.$ac_objext \
16903 conftest$ac_exeext conftest.$ac_ext
16905 # At least for glibc, clock_gettime is in librt. But don't pull that
16906 # in if it still doesn't give us the function we want.
16907 if test $ac_cv_func_clock_gettime = no; then
16908 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16909 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16910 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 ac_check_lib_save_LIBS=$LIBS
16915 cat >conftest.$ac_ext <<_ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h. */
16922 /* Override any gcc2 internal prototype to avoid an error. */
16926 /* We use char because int might match the return type of a gcc2
16927 builtin and then its argument prototype would still apply. */
16928 char clock_gettime ();
16937 rm -f conftest.$ac_objext conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939 (eval $ac_link) 2>conftest.er1
16941 grep -v '^ *+' conftest.er1 >conftest.err
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_lib_rt_clock_gettime=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_cv_lib_rt_clock_gettime=no
16966 rm -f conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16968 LIBS=$ac_check_lib_save_LIBS
16970 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
16971 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
16972 if test $ac_cv_lib_rt_clock_gettime = yes; then
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_CLOCK_GETTIME 1
16983 # See if we support thread-local storage.
16985 # Check whether --enable-tls or --disable-tls was given.
16986 if test "${enable_tls+set}" = set; then
16987 enableval="$enable_tls"
16989 case "$enableval" in
16991 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16992 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16993 { (exit 1); exit 1; }; } ;;
17000 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17001 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17002 if test "${gcc_cv_have_tls+set}" = set; then
17003 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 if test "$cross_compiling" = yes; then
17007 cat >conftest.$ac_ext <<_ACEOF
17008 __thread int a; int b; int main() { return a = b; }
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012 (eval $ac_link) 2>conftest.er1
17014 grep -v '^ *+' conftest.er1 >conftest.err
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag"
17020 || test ! -s conftest.err'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest$ac_exeext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 gcc_cv_have_tls=yes
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17039 rm -f conftest.err conftest.$ac_objext \
17040 conftest$ac_exeext conftest.$ac_ext
17044 cat >conftest.$ac_ext <<_ACEOF
17045 __thread int a; int b; int main() { return a = b; }
17047 rm -f conftest$ac_exeext
17048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17049 (eval $ac_link) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 chktls_save_LDFLAGS="$LDFLAGS"
17059 LDFLAGS="-static $LDFLAGS"
17060 cat >conftest.$ac_ext <<_ACEOF
17061 int main() { return 0; }
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17065 (eval $ac_link) 2>conftest.er1
17067 grep -v '^ *+' conftest.er1 >conftest.err
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_c_werror_flag"
17073 || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 if test "$cross_compiling" = yes; then
17086 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17087 See \`config.log' for more details." >&5
17088 echo "$as_me: error: cannot run test program while cross compiling
17089 See \`config.log' for more details." >&2;}
17090 { (exit 1); exit 1; }; }
17092 cat >conftest.$ac_ext <<_ACEOF
17093 __thread int a; int b; int main() { return a = b; }
17095 rm -f conftest$ac_exeext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17097 (eval $ac_link) 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17106 gcc_cv_have_tls=yes
17108 echo "$as_me: program exited with status $ac_status" >&5
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ( exit $ac_status )
17115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 gcc_cv_have_tls=yes
17123 rm -f conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125 LDFLAGS="$chktls_save_LDFLAGS"
17126 if test $gcc_cv_have_tls = yes; then
17127 chktls_save_CFLAGS="$CFLAGS"
17128 thread_CFLAGS=failed
17129 for flag in '' '-pthread' '-lpthread'; do
17130 CFLAGS="$flag $chktls_save_CFLAGS"
17131 cat >conftest.$ac_ext <<_ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17137 #include <pthread.h>
17138 void *g(void *d) { return NULL; }
17142 pthread_t t; pthread_create(&t,NULL,g,NULL);
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17149 (eval $ac_link) 2>conftest.er1
17151 grep -v '^ *+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag"
17157 || test ! -s conftest.err'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest$ac_exeext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 thread_CFLAGS="$flag"
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17175 rm -f conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17177 if test "X$thread_CFLAGS" != Xfailed; then
17181 CFLAGS="$chktls_save_CFLAGS"
17182 if test "X$thread_CFLAGS" != Xfailed; then
17183 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17184 if test "$cross_compiling" = yes; then
17185 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17186 See \`config.log' for more details." >&5
17187 echo "$as_me: error: cannot run test program while cross compiling
17188 See \`config.log' for more details." >&2;}
17189 { (exit 1); exit 1; }; }
17191 cat >conftest.$ac_ext <<_ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 #include <pthread.h>
17199 static int *a_in_other_thread;
17201 thread_func (void *arg)
17203 a_in_other_thread = &a;
17210 void *thread_retval;
17211 int *a_in_main_thread;
17212 if (pthread_create (&thread, (pthread_attr_t *)0,
17213 thread_func, (void *)0))
17215 a_in_main_thread = &a;
17216 if (pthread_join (thread, &thread_retval))
17218 return (a_in_other_thread == a_in_main_thread);
17223 rm -f conftest$ac_exeext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225 (eval $ac_link) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 gcc_cv_have_tls=yes
17236 echo "$as_me: program exited with status $ac_status" >&5
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 ( exit $ac_status )
17243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17245 CFLAGS="$chktls_save_CFLAGS"
17249 echo "$as_me: program exited with status $ac_status" >&5
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ( exit $ac_status )
17256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17259 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17260 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17261 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17263 cat >>confdefs.h <<\_ACEOF
17269 # See what sort of export controls are availible.
17271 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17272 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17273 if test "${have_attribute_visibility+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 save_CFLAGS="$CFLAGS"
17278 CFLAGS="$CFLAGS -Werror"
17279 cat >conftest.$ac_ext <<_ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 void __attribute__((visibility("hidden"))) foo(void) { }
17294 rm -f conftest.$ac_objext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296 (eval $ac_compile) 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
17303 { ac_try='test -z "$ac_c_werror_flag"
17304 || test ! -s conftest.err'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest.$ac_objext'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17316 have_attribute_visibility=yes
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 have_attribute_visibility=no
17323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324 CFLAGS="$save_CFLAGS"
17326 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17327 echo "${ECHO_T}$have_attribute_visibility" >&6
17328 if test $have_attribute_visibility = yes; then
17330 cat >>confdefs.h <<\_ACEOF
17331 #define HAVE_ATTRIBUTE_VISIBILITY 1
17336 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17337 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17338 if test "${have_attribute_dllexport+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 save_CFLAGS="$CFLAGS"
17343 CFLAGS="$CFLAGS -Werror"
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 void __attribute__((dllexport)) foo(void) { }
17359 rm -f conftest.$ac_objext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17361 (eval $ac_compile) 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -z "$ac_c_werror_flag"
17369 || test ! -s conftest.err'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest.$ac_objext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 have_attribute_dllexport=yes
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 have_attribute_dllexport=no
17388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17389 CFLAGS="$save_CFLAGS"
17391 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17392 echo "${ECHO_T}$have_attribute_dllexport" >&6
17393 if test $have_attribute_dllexport = yes; then
17395 cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17401 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17402 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17403 if test "${have_attribute_alias+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17415 extern void bar(void) __attribute__((alias("foo")));
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426 (eval $ac_link) 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest$ac_exeext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 have_attribute_alias=yes
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 have_attribute_alias=no
17453 rm -f conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17456 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17457 echo "${ECHO_T}$have_attribute_alias" >&6
17458 if test $have_attribute_alias = yes; then
17460 cat >>confdefs.h <<\_ACEOF
17461 #define HAVE_ATTRIBUTE_ALIAS 1
17467 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17468 if test "${with_gnu_ld+set}" = set; then
17469 withval="$with_gnu_ld"
17470 test "$withval" = no || with_gnu_ld=yes
17475 if test "$GCC" = yes; then
17476 # Check if gcc -print-prog-name=ld gives a path.
17477 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17478 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17481 # gcc leaves a trailing carriage return which upsets mingw
17482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17487 # Accept absolute paths.
17489 re_direlt='/[^/][^/]*/\.\./'
17490 # Canonicalize the pathname of ld
17491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17495 test -z "$LD" && LD="$ac_prog"
17498 # If it fails, then pretend we aren't using GCC.
17502 # If it is relative, then search for the first ld in PATH.
17503 with_gnu_ld=unknown
17506 elif test "$with_gnu_ld" = yes; then
17507 echo "$as_me:$LINENO: checking for GNU ld" >&5
17508 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17510 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17511 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17513 if test "${lt_cv_path_LD+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 if test -z "$LD"; then
17517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17518 for ac_dir in $PATH; do
17520 test -z "$ac_dir" && ac_dir=.
17521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17522 lt_cv_path_LD="$ac_dir/$ac_prog"
17523 # Check to see if the program is GNU ld. I'd rather use --version,
17524 # but apparently some variants of GNU ld only accept -v.
17525 # Break only if it was the GNU/non-GNU ld that we prefer.
17526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17527 *GNU* | *'with BFD'*)
17528 test "$with_gnu_ld" != no && break
17531 test "$with_gnu_ld" != yes && break
17538 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17542 LD="$lt_cv_path_LD"
17543 if test -n "$LD"; then
17544 echo "$as_me:$LINENO: result: $LD" >&5
17545 echo "${ECHO_T}$LD" >&6
17547 echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6
17550 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17551 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17552 { (exit 1); exit 1; }; }
17553 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17554 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17555 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17559 case `$LD -v 2>&1 </dev/null` in
17560 *GNU* | *'with BFD'*)
17561 lt_cv_prog_gnu_ld=yes
17564 lt_cv_prog_gnu_ld=no
17568 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17569 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17570 with_gnu_ld=$lt_cv_prog_gnu_ld
17578 # If we're not using GNU ld, then there's no point in even trying these
17579 # tests. Check for that first. We should have already tested for gld
17580 # by now (in libtool), but require it now just to be safe...
17581 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17582 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17586 # The name set by libtool depends on the version of libtool. Shame on us
17587 # for depending on an impl detail, but c'est la vie. Older versions used
17588 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17589 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17590 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17591 # set (hence we're using an older libtool), then set it.
17592 if test x${with_gnu_ld+set} != xset; then
17593 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17594 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17597 with_gnu_ld=$ac_cv_prog_gnu_ld
17601 # Start by getting the version number. I think the libtool test already
17602 # does some of this, but throws away the result.
17604 ldver=`$LD --version 2>/dev/null | head -1 | \
17605 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17607 libgomp_gnu_ld_version=`echo $ldver | \
17608 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17610 # Set --gc-sections.
17611 if test "$with_gnu_ld" = "notbroken"; then
17612 # GNU ld it is! Joy and bunny rabbits!
17614 # All these tests are for C++; save the language and the compiler flags.
17615 # Need to do this so that g++ won't try to link in libstdc++
17616 ac_test_CFLAGS="${CFLAGS+set}"
17617 ac_save_CFLAGS="$CFLAGS"
17618 CFLAGS='-x c++ -Wl,--gc-sections'
17620 # Check for -Wl,--gc-sections
17621 # XXX This test is broken at the moment, as symbols required for linking
17622 # are now in libsupc++ (not built yet). In addition, this test has
17623 # cored on solaris in the past. In addition, --gc-sections doesn't
17624 # really work at the moment (keeps on discarding used sections, first
17625 # .eh_frame and now some of the glibc sections for iconv).
17626 # Bzzzzt. Thanks for playing, maybe next time.
17627 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17628 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17629 if test "$cross_compiling" = yes; then
17630 ac_sectionLDflags=yes
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17647 rm -f conftest$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649 (eval $ac_link) 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_sectionLDflags=yes
17660 echo "$as_me: program exited with status $ac_status" >&5
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ( exit $ac_status )
17665 ac_sectionLDflags=no
17667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17669 if test "$ac_test_CFLAGS" = set; then
17670 CFLAGS="$ac_save_CFLAGS"
17672 # this is the suspicious part
17675 if test "$ac_sectionLDflags" = "yes"; then
17676 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17678 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17679 echo "${ECHO_T}$ac_sectionLDflags" >&6
17682 # Set linker optimization flags.
17683 if test x"$with_gnu_ld" = x"yes"; then
17684 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17692 # Check whether --enable-symvers or --disable-symvers was given.
17693 if test "${enable_symvers+set}" = set; then
17694 enableval="$enable_symvers"
17696 case "$enableval" in
17698 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17699 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17700 { (exit 1); exit 1; }; } ;;
17708 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17709 # don't know enough about $LD to do tricks...
17711 # FIXME The following test is too strict, in theory.
17712 if test $enable_shared = no ||
17714 test x$libgomp_gnu_ld_version = x; then
17718 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17719 if test $enable_symvers != no; then
17720 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17721 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17722 ac_save_CFLAGS="$CFLAGS"
17724 cat >conftest.$ac_ext <<_ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17739 rm -f conftest.$ac_objext conftest$ac_exeext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741 (eval $ac_link) 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest$ac_exeext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 libgomp_shared_libgcc=yes
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 libgomp_shared_libgcc=no
17768 rm -f conftest.err conftest.$ac_objext \
17769 conftest$ac_exeext conftest.$ac_ext
17770 CFLAGS="$ac_save_CFLAGS"
17771 if test $libgomp_shared_libgcc = no; then
17772 cat > conftest.c <<EOF
17773 int main (void) { return 0; }
17775 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17776 -shared -shared-libgcc -o conftest.so \
17777 conftest.c -v 2>&1 >/dev/null \
17778 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17779 rm -f conftest.c conftest.so
17780 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17781 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17782 cat >conftest.$ac_ext <<_ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17799 (eval $ac_link) 2>conftest.er1
17801 grep -v '^ *+' conftest.er1 >conftest.err
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } &&
17806 { ac_try='test -z "$ac_c_werror_flag"
17807 || test ! -s conftest.err'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
17813 { ac_try='test -s conftest$ac_exeext'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 libgomp_shared_libgcc=yes
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17825 rm -f conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
17827 CFLAGS="$ac_save_CFLAGS"
17830 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17831 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17834 # For GNU ld, we need at least this version. The format is described in
17835 # LIBGOMP_CHECK_LINKER_FEATURES above.
17836 libgomp_min_gnu_ld_version=21400
17837 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17839 # Check to see if unspecified "yes" value can win, given results above.
17840 # Change "yes" into either "no" or a style name.
17841 if test $enable_symvers = yes; then
17842 if test $with_gnu_ld = yes &&
17843 test $libgomp_shared_libgcc = yes;
17845 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17848 # The right tools, the right setup, but too old. Fallbacks?
17849 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17850 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17851 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17852 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17853 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17854 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17855 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17856 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17857 if test $libgomp_gnu_ld_version -ge 21200 ; then
17858 # Globbing fix is present, proper block support is not.
17859 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17860 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17864 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17865 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17870 # just fail for now
17871 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17872 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17874 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17875 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17876 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17877 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17878 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17885 if test $enable_symvers != no; then
17886 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17887 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17889 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17890 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17893 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17894 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17897 # Get target configury.
17898 . ${srcdir}/configure.tgt
17899 CFLAGS="$save_CFLAGS $XCFLAGS"
17901 # Check for __sync_val_compare_and_swap, but only after the target has
17902 # had a chance to set XCFLAGS.
17904 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17905 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17906 if test "${have_sync_builtins+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17920 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17927 (eval $ac_link) 2>conftest.er1
17929 grep -v '^ *+' conftest.er1 >conftest.err
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag"
17935 || test ! -s conftest.err'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest$ac_exeext'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 have_sync_builtins=yes
17949 echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17952 have_sync_builtins=no
17954 rm -f conftest.err conftest.$ac_objext \
17955 conftest$ac_exeext conftest.$ac_ext
17957 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
17958 echo "${ECHO_T}$have_sync_builtins" >&6
17959 if test $have_sync_builtins = yes; then
17961 cat >>confdefs.h <<\_ACEOF
17962 #define HAVE_SYNC_BUILTINS 1
17967 XCFLAGS="$XCFLAGS$XPCFLAGS"
17973 # Cleanup and exit.
17974 CFLAGS="$save_CFLAGS"
17975 cat >confcache <<\_ACEOF
17976 # This file is a shell script that caches the results of configure
17977 # tests run on this system so they can be shared between configure
17978 # scripts and configure runs, see configure's option --config-cache.
17979 # It is not useful on other systems. If it contains results you don't
17980 # want to keep, you may remove or edit it.
17982 # config.status only pays attention to the cache file if you give it
17983 # the --recheck option to rerun configure.
17985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17987 # following values.
17991 # The following way of writing the cache mishandles newlines in values,
17992 # but we know of no workaround that is simple, portable, and efficient.
17993 # So, don't put newlines in cache variables' values.
17994 # Ultrix sh set writes to stderr and can't be redirected directly,
17995 # and sets the high bit in the cache file unless we assign to the vars.
17998 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18000 # `set' does not quote correctly, so add quotes (double-quote
18001 # substitution turns \\\\ into \\, and sed turns \\ into \).
18004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18007 # `set' quotes correctly as required by POSIX, so do not add quotes.
18009 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18018 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18020 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18021 if test -w $cache_file; then
18022 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18023 cat confcache >$cache_file
18025 echo "not updating unwritable cache $cache_file"
18030 if test ${multilib} = yes; then
18031 multilib_arg="--enable-multilib"
18036 # Set up the set of libraries that we need to link against for libgomp.
18037 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18038 # which will force linkage against -lpthread (or equivalent for the system).
18039 # That's not 100% ideal, but about the best we can do easily.
18040 if test $enable_shared = yes; then
18041 link_gomp="-lgomp %{static: $LIBS}"
18043 link_gomp="-lgomp $LIBS"
18049 if test "$ac_cv_fc_compiler_gnu" = yes; then
18051 USE_FORTRAN_FALSE='#'
18053 USE_FORTRAN_TRUE='#'
18058 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18059 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18060 # the underscore here and update the PREREQ. If it doesn't, then we'll
18061 # need to copy this macro to our acinclude.m4.
18062 save_CFLAGS="$CFLAGS"
18063 for i in $config_path; do
18064 if test -f $srcdir/config/$i/omp-lock.h; then
18065 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18070 if test "$cross_compiling" = yes; then
18071 # Depending upon the size, compute the lo and hi bounds.
18072 cat >conftest.$ac_ext <<_ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h. */
18082 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18089 rm -f conftest.$ac_objext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18091 (eval $ac_compile) 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } &&
18098 { ac_try='test -z "$ac_c_werror_flag"
18099 || test ! -s conftest.err'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try='test -s conftest.$ac_objext'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18113 cat >conftest.$ac_ext <<_ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18123 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18130 rm -f conftest.$ac_objext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132 (eval $ac_compile) 2>conftest.er1
18134 grep -v '^ *+' conftest.er1 >conftest.err
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try='test -z "$ac_c_werror_flag"
18140 || test ! -s conftest.err'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest.$ac_objext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 ac_hi=$ac_mid; break
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18157 ac_lo=`expr $ac_mid + 1`
18158 if test $ac_lo -le $ac_mid; then
18162 ac_mid=`expr 2 '*' $ac_mid + 1`
18164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18180 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18187 rm -f conftest.$ac_objext
18188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189 (eval $ac_compile) 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -z "$ac_c_werror_flag"
18197 || test ! -s conftest.err'
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; } &&
18203 { ac_try='test -s conftest.$ac_objext'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18221 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18228 rm -f conftest.$ac_objext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230 (eval $ac_compile) 2>conftest.er1
18232 grep -v '^ *+' conftest.er1 >conftest.err
18234 cat conftest.err >&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } &&
18237 { ac_try='test -z "$ac_c_werror_flag"
18238 || test ! -s conftest.err'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest.$ac_objext'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 ac_lo=$ac_mid; break
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 ac_hi=`expr '(' $ac_mid ')' - 1`
18256 if test $ac_mid -le $ac_hi; then
18260 ac_mid=`expr 2 '*' $ac_mid`
18262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18265 echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18273 # Binary search between lo and hi bounds.
18274 while test "x$ac_lo" != "x$ac_hi"; do
18275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18276 cat >conftest.$ac_ext <<_ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18286 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18293 rm -f conftest.$ac_objext
18294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18295 (eval $ac_compile) 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag"
18303 || test ! -s conftest.err'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest.$ac_objext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18320 ac_lo=`expr '(' $ac_mid ')' + 1`
18322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18325 ?*) OMP_LOCK_SIZE=$ac_lo;;
18326 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18327 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18328 { (exit 1); exit 1; }; } ;;
18331 if test "$cross_compiling" = yes; then
18332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18333 See \`config.log' for more details." >&5
18334 echo "$as_me: error: cannot run test program while cross compiling
18335 See \`config.log' for more details." >&2;}
18336 { (exit 1); exit 1; }; }
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18345 long longval () { return sizeof (omp_lock_t); }
18346 unsigned long ulongval () { return sizeof (omp_lock_t); }
18348 #include <stdlib.h>
18353 FILE *f = fopen ("conftest.val", "w");
18356 if ((sizeof (omp_lock_t)) < 0)
18358 long i = longval ();
18359 if (i != (sizeof (omp_lock_t)))
18361 fprintf (f, "%ld\n", i);
18365 unsigned long i = ulongval ();
18366 if (i != (sizeof (omp_lock_t)))
18368 fprintf (f, "%lu\n", i);
18370 exit (ferror (f) || fclose (f) != 0);
18376 rm -f conftest$ac_exeext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378 (eval $ac_link) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 OMP_LOCK_SIZE=`cat conftest.val`
18389 echo "$as_me: program exited with status $ac_status" >&5
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ( exit $ac_status )
18394 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18395 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18396 { (exit 1); exit 1; }; }
18398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18402 if test "$cross_compiling" = yes; then
18403 # Depending upon the size, compute the lo and hi bounds.
18404 cat >conftest.$ac_ext <<_ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18414 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18421 rm -f conftest.$ac_objext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423 (eval $ac_compile) 2>conftest.er1
18425 grep -v '^ *+' conftest.er1 >conftest.err
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest.$ac_objext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18445 cat >conftest.$ac_ext <<_ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18455 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18462 rm -f conftest.$ac_objext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464 (eval $ac_compile) 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_c_werror_flag"
18472 || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest.$ac_objext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_hi=$ac_mid; break
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_lo=`expr $ac_mid + 1`
18490 if test $ac_lo -le $ac_mid; then
18494 ac_mid=`expr 2 '*' $ac_mid + 1`
18496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 cat >conftest.$ac_ext <<_ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18512 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18519 rm -f conftest.$ac_objext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521 (eval $ac_compile) 2>conftest.er1
18523 grep -v '^ *+' conftest.er1 >conftest.err
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } &&
18528 { ac_try='test -z "$ac_c_werror_flag"
18529 || test ! -s conftest.err'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest.$ac_objext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18543 cat >conftest.$ac_ext <<_ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18553 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18560 rm -f conftest.$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562 (eval $ac_compile) 2>conftest.er1
18564 grep -v '^ *+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag"
18570 || test ! -s conftest.err'
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest.$ac_objext'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 ac_lo=$ac_mid; break
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 ac_hi=`expr '(' $ac_mid ')' - 1`
18588 if test $ac_mid -le $ac_hi; then
18592 ac_mid=`expr 2 '*' $ac_mid`
18594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18597 echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18605 # Binary search between lo and hi bounds.
18606 while test "x$ac_lo" != "x$ac_hi"; do
18607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18608 cat >conftest.$ac_ext <<_ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18618 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627 (eval $ac_compile) 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
18634 { ac_try='test -z "$ac_c_werror_flag"
18635 || test ! -s conftest.err'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 ac_lo=`expr '(' $ac_mid ')' + 1`
18654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18657 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18661 if test "$cross_compiling" = yes; then
18662 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18663 See \`config.log' for more details." >&5
18664 echo "$as_me: error: cannot run test program while cross compiling
18665 See \`config.log' for more details." >&2;}
18666 { (exit 1); exit 1; }; }
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18675 long longval () { return __alignof (omp_lock_t); }
18676 unsigned long ulongval () { return __alignof (omp_lock_t); }
18678 #include <stdlib.h>
18683 FILE *f = fopen ("conftest.val", "w");
18686 if ((__alignof (omp_lock_t)) < 0)
18688 long i = longval ();
18689 if (i != (__alignof (omp_lock_t)))
18691 fprintf (f, "%ld\n", i);
18695 unsigned long i = ulongval ();
18696 if (i != (__alignof (omp_lock_t)))
18698 fprintf (f, "%lu\n", i);
18700 exit (ferror (f) || fclose (f) != 0);
18706 rm -f conftest$ac_exeext
18707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18708 (eval $ac_link) 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 OMP_LOCK_ALIGN=`cat conftest.val`
18719 echo "$as_me: program exited with status $ac_status" >&5
18720 echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18728 if test "$cross_compiling" = yes; then
18729 # Depending upon the size, compute the lo and hi bounds.
18730 cat >conftest.$ac_ext <<_ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18740 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18747 rm -f conftest.$ac_objext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18749 (eval $ac_compile) 2>conftest.er1
18751 grep -v '^ *+' conftest.er1 >conftest.err
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } &&
18756 { ac_try='test -z "$ac_c_werror_flag"
18757 || test ! -s conftest.err'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest.$ac_objext'
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18781 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18788 rm -f conftest.$ac_objext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest.$ac_objext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_hi=$ac_mid; break
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ac_lo=`expr $ac_mid + 1`
18816 if test $ac_lo -le $ac_mid; then
18820 ac_mid=`expr 2 '*' $ac_mid + 1`
18822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18825 echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 cat >conftest.$ac_ext <<_ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18838 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18845 rm -f conftest.$ac_objext
18846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847 (eval $ac_compile) 2>conftest.er1
18849 grep -v '^ *+' conftest.er1 >conftest.err
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } &&
18854 { ac_try='test -z "$ac_c_werror_flag"
18855 || test ! -s conftest.err'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest.$ac_objext'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18869 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18879 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18886 rm -f conftest.$ac_objext
18887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888 (eval $ac_compile) 2>conftest.er1
18890 grep -v '^ *+' conftest.er1 >conftest.err
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } &&
18895 { ac_try='test -z "$ac_c_werror_flag"
18896 || test ! -s conftest.err'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; } &&
18902 { ac_try='test -s conftest.$ac_objext'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; }; then
18908 ac_lo=$ac_mid; break
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_hi=`expr '(' $ac_mid ')' - 1`
18914 if test $ac_mid -le $ac_hi; then
18918 ac_mid=`expr 2 '*' $ac_mid`
18920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18923 echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18931 # Binary search between lo and hi bounds.
18932 while test "x$ac_lo" != "x$ac_hi"; do
18933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18944 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>conftest.er1
18955 grep -v '^ *+' conftest.er1 >conftest.err
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -z "$ac_c_werror_flag"
18961 || test ! -s conftest.err'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest.$ac_objext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_lo=`expr '(' $ac_mid ')' + 1`
18980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18983 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
18987 if test "$cross_compiling" = yes; then
18988 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18989 See \`config.log' for more details." >&5
18990 echo "$as_me: error: cannot run test program while cross compiling
18991 See \`config.log' for more details." >&2;}
18992 { (exit 1); exit 1; }; }
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19001 long longval () { return sizeof (omp_nest_lock_t); }
19002 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19004 #include <stdlib.h>
19009 FILE *f = fopen ("conftest.val", "w");
19012 if ((sizeof (omp_nest_lock_t)) < 0)
19014 long i = longval ();
19015 if (i != (sizeof (omp_nest_lock_t)))
19017 fprintf (f, "%ld\n", i);
19021 unsigned long i = ulongval ();
19022 if (i != (sizeof (omp_nest_lock_t)))
19024 fprintf (f, "%lu\n", i);
19026 exit (ferror (f) || fclose (f) != 0);
19032 rm -f conftest$ac_exeext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19034 (eval $ac_link) 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19045 echo "$as_me: program exited with status $ac_status" >&5
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19054 if test "$cross_compiling" = yes; then
19055 # Depending upon the size, compute the lo and hi bounds.
19056 cat >conftest.$ac_ext <<_ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19066 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19073 rm -f conftest.$ac_objext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19075 (eval $ac_compile) 2>conftest.er1
19077 grep -v '^ *+' conftest.er1 >conftest.err
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag"
19083 || test ! -s conftest.err'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest.$ac_objext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19097 cat >conftest.$ac_ext <<_ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19107 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19114 rm -f conftest.$ac_objext
19115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19116 (eval $ac_compile) 2>conftest.er1
19118 grep -v '^ *+' conftest.er1 >conftest.err
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -z "$ac_c_werror_flag"
19124 || test ! -s conftest.err'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest.$ac_objext'
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; }; then
19136 ac_hi=$ac_mid; break
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 ac_lo=`expr $ac_mid + 1`
19142 if test $ac_lo -le $ac_mid; then
19146 ac_mid=`expr 2 '*' $ac_mid + 1`
19148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19164 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19171 rm -f conftest.$ac_objext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19173 (eval $ac_compile) 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try='test -z "$ac_c_werror_flag"
19181 || test ! -s conftest.err'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19195 cat >conftest.$ac_ext <<_ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19205 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19212 rm -f conftest.$ac_objext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19214 (eval $ac_compile) 2>conftest.er1
19216 grep -v '^ *+' conftest.er1 >conftest.err
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try='test -z "$ac_c_werror_flag"
19222 || test ! -s conftest.err'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest.$ac_objext'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19234 ac_lo=$ac_mid; break
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 ac_hi=`expr '(' $ac_mid ')' - 1`
19240 if test $ac_mid -le $ac_hi; then
19244 ac_mid=`expr 2 '*' $ac_mid`
19246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19249 echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19257 # Binary search between lo and hi bounds.
19258 while test "x$ac_lo" != "x$ac_hi"; do
19259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19270 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19277 rm -f conftest.$ac_objext
19278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19279 (eval $ac_compile) 2>conftest.er1
19281 grep -v '^ *+' conftest.er1 >conftest.err
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { ac_try='test -z "$ac_c_werror_flag"
19287 || test ! -s conftest.err'
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; } &&
19293 { ac_try='test -s conftest.$ac_objext'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 ac_lo=`expr '(' $ac_mid ')' + 1`
19306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19309 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19313 if test "$cross_compiling" = yes; then
19314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19315 See \`config.log' for more details." >&5
19316 echo "$as_me: error: cannot run test program while cross compiling
19317 See \`config.log' for more details." >&2;}
19318 { (exit 1); exit 1; }; }
19320 cat >conftest.$ac_ext <<_ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19327 long longval () { return __alignof (omp_nest_lock_t); }
19328 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19330 #include <stdlib.h>
19335 FILE *f = fopen ("conftest.val", "w");
19338 if ((__alignof (omp_nest_lock_t)) < 0)
19340 long i = longval ();
19341 if (i != (__alignof (omp_nest_lock_t)))
19343 fprintf (f, "%ld\n", i);
19347 unsigned long i = ulongval ();
19348 if (i != (__alignof (omp_nest_lock_t)))
19350 fprintf (f, "%lu\n", i);
19352 exit (ferror (f) || fclose (f) != 0);
19358 rm -f conftest$ac_exeext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360 (eval $ac_link) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19371 echo "$as_me: program exited with status $ac_status" >&5
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19381 # If the lock fits in an integer, then arrange for Fortran to use that
19382 # integer. If it doesn't, then arrange for Fortran to use a pointer.
19383 # Except that we don't have a way at present to multi-lib the installed
19384 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19386 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19387 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19388 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19391 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19392 OMP_NEST_LOCK_KIND=8
19401 CFLAGS="$save_CFLAGS"
19403 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19405 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19407 cat >confcache <<\_ACEOF
19408 # This file is a shell script that caches the results of configure
19409 # tests run on this system so they can be shared between configure
19410 # scripts and configure runs, see configure's option --config-cache.
19411 # It is not useful on other systems. If it contains results you don't
19412 # want to keep, you may remove or edit it.
19414 # config.status only pays attention to the cache file if you give it
19415 # the --recheck option to rerun configure.
19417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19419 # following values.
19423 # The following way of writing the cache mishandles newlines in values,
19424 # but we know of no workaround that is simple, portable, and efficient.
19425 # So, don't put newlines in cache variables' values.
19426 # Ultrix sh set writes to stderr and can't be redirected directly,
19427 # and sets the high bit in the cache file unless we assign to the vars.
19430 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19432 # `set' does not quote correctly, so add quotes (double-quote
19433 # substitution turns \\\\ into \\, and sed turns \\ into \).
19436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19439 # `set' quotes correctly as required by POSIX, so do not add quotes.
19441 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19450 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19452 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19453 if test -w $cache_file; then
19454 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19455 cat confcache >$cache_file
19457 echo "not updating unwritable cache $cache_file"
19462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19463 # Let make expand exec_prefix.
19464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19466 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19467 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19468 # trailing colons and then remove the whole line if VPATH becomes empty
19469 # (actually we leave an empty line to preserve line numbers).
19470 if test "x$srcdir" = x.; then
19471 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19472 s/:*\$(srcdir):*/:/;
19473 s/:*\${srcdir}:*/:/;
19475 s/^\([^=]*=[ ]*\):*/\1/;
19481 DEFS=-DHAVE_CONFIG_H
19485 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19486 # 1. Remove the extension, and $U if already installed.
19487 ac_i=`echo "$ac_i" |
19488 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19490 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19491 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19493 LIBOBJS=$ac_libobjs
19495 LTLIBOBJS=$ac_ltlibobjs
19498 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19499 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19500 Usually this means the macro was only invoked conditionally." >&5
19501 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19502 Usually this means the macro was only invoked conditionally." >&2;}
19503 { (exit 1); exit 1; }; }
19505 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19506 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19507 Usually this means the macro was only invoked conditionally." >&5
19508 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19509 Usually this means the macro was only invoked conditionally." >&2;}
19510 { (exit 1); exit 1; }; }
19512 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19513 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19514 Usually this means the macro was only invoked conditionally." >&5
19515 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19516 Usually this means the macro was only invoked conditionally." >&2;}
19517 { (exit 1); exit 1; }; }
19519 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19520 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19521 Usually this means the macro was only invoked conditionally." >&5
19522 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19523 Usually this means the macro was only invoked conditionally." >&2;}
19524 { (exit 1); exit 1; }; }
19526 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19527 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19528 Usually this means the macro was only invoked conditionally." >&5
19529 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19530 Usually this means the macro was only invoked conditionally." >&2;}
19531 { (exit 1); exit 1; }; }
19533 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19534 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19535 Usually this means the macro was only invoked conditionally." >&5
19536 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19537 Usually this means the macro was only invoked conditionally." >&2;}
19538 { (exit 1); exit 1; }; }
19540 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19541 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19542 Usually this means the macro was only invoked conditionally." >&5
19543 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19544 Usually this means the macro was only invoked conditionally." >&2;}
19545 { (exit 1); exit 1; }; }
19548 : ${CONFIG_STATUS=./config.status}
19549 ac_clean_files_save=$ac_clean_files
19550 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19551 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19552 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19553 cat >$CONFIG_STATUS <<_ACEOF
19555 # Generated by $as_me.
19556 # Run this file to recreate the current configuration.
19557 # Compiler output produced by configure, useful for debugging
19558 # configure, is in config.log if it exists.
19561 ac_cs_recheck=false
19563 SHELL=\${CONFIG_SHELL-$SHELL}
19566 cat >>$CONFIG_STATUS <<\_ACEOF
19567 ## --------------------- ##
19568 ## M4sh Initialization. ##
19569 ## --------------------- ##
19571 # Be Bourne compatible
19572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19575 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19576 # is contrary to our usage. Disable this feature.
19577 alias -g '${1+"$@"}'='"$@"'
19578 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19581 DUALCASE=1; export DUALCASE # for MKS sh
19583 # Support unset when possible.
19584 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19591 # Work around bugs in pre-3.0 UWIN ksh.
19592 $as_unset ENV MAIL MAILPATH
19599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19601 LC_TELEPHONE LC_TIME
19603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19604 eval $as_var=C; export $as_var
19610 # Required to use basename.
19611 if expr a : '\(a\)' >/dev/null 2>&1; then
19617 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19618 as_basename=basename
19624 # Name of the executable.
19625 as_me=`$as_basename "$0" ||
19626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19627 X"$0" : 'X\(//\)$' \| \
19628 X"$0" : 'X\(/\)$' \| \
19629 . : '\(.\)' 2>/dev/null ||
19631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19632 /^X\/\(\/\/\)$/{ s//\1/; q; }
19633 /^X\/\(\/\).*/{ s//\1/; q; }
19637 # PATH needs CR, and LINENO needs CR and PATH.
19638 # Avoid depending upon Character Ranges.
19639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19642 as_cr_digits='0123456789'
19643 as_cr_alnum=$as_cr_Letters$as_cr_digits
19645 # The user is always right.
19646 if test "${PATH_SEPARATOR+set}" != set; then
19647 echo "#! /bin/sh" >conf$$.sh
19648 echo "exit 0" >>conf$$.sh
19650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19659 as_lineno_1=$LINENO
19660 as_lineno_2=$LINENO
19661 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19662 test "x$as_lineno_1" != "x$as_lineno_2" &&
19663 test "x$as_lineno_3" = "x$as_lineno_2" || {
19664 # Find who we are. Look in the path if we contain no path at all
19667 *[\\/]* ) as_myself=$0 ;;
19668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669 for as_dir in $PATH
19672 test -z "$as_dir" && as_dir=.
19673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19678 # We did not find ourselves, most probably we were run as `sh COMMAND'
19679 # in which case we are not to be found in the path.
19680 if test "x$as_myself" = x; then
19683 if test ! -f "$as_myself"; then
19684 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19685 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19686 { (exit 1); exit 1; }; }
19688 case $CONFIG_SHELL in
19690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19691 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19694 test -z "$as_dir" && as_dir=.
19695 for as_base in sh bash ksh sh5; do
19698 if ("$as_dir/$as_base" -c '
19699 as_lineno_1=$LINENO
19700 as_lineno_2=$LINENO
19701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19702 test "x$as_lineno_1" != "x$as_lineno_2" &&
19703 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19704 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19705 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19706 CONFIG_SHELL=$as_dir/$as_base
19707 export CONFIG_SHELL
19708 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19717 # uniformly replaced by the line number. The first 'sed' inserts a
19718 # line-number line before each line; the second 'sed' does the real
19719 # work. The second script uses 'N' to pair each line-number line
19720 # with the numbered line, and appends trailing '-' during
19721 # substitution so that $LINENO is not a special case at line end.
19722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19723 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19724 sed '=' <$as_myself |
19729 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19732 s,^['$as_cr_digits']*\n,,
19733 ' >$as_me.lineno &&
19734 chmod +x $as_me.lineno ||
19735 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19736 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19737 { (exit 1); exit 1; }; }
19739 # Don't try to exec as it changes $[0], causing all sort of problems
19740 # (the dirname of $[0] is not the place where we might find the
19741 # original and so on. Autoconf is especially sensible to this).
19743 # Exit status is that of the last command.
19748 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19749 *c*,-n*) ECHO_N= ECHO_C='
19751 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19752 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19755 if expr a : '\(a\)' >/dev/null 2>&1; then
19761 rm -f conf$$ conf$$.exe conf$$.file
19763 if ln -s conf$$.file conf$$ 2>/dev/null; then
19764 # We could just check for DJGPP; but this test a) works b) is more generic
19765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19766 if test -f conf$$.exe; then
19767 # Don't use ln at all; we don't have any links
19772 elif ln conf$$.file conf$$ 2>/dev/null; then
19777 rm -f conf$$ conf$$.exe conf$$.file
19779 if mkdir -p . 2>/dev/null; then
19782 test -d ./-p && rmdir ./-p
19786 as_executable_p="test -f"
19788 # Sed expression to map a string onto a valid CPP name.
19789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19791 # Sed expression to map a string onto a valid variable name.
19792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19796 # We need space, tab and new line, in precisely that order.
19806 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19807 # report actual input values of CONFIG_FILES etc. instead of their
19808 # values after options handling. Logging --version etc. is OK.
19812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19813 ## Running $as_me. ##
19818 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19819 generated by GNU Autoconf 2.59. Invocation command line was
19821 CONFIG_FILES = $CONFIG_FILES
19822 CONFIG_HEADERS = $CONFIG_HEADERS
19823 CONFIG_LINKS = $CONFIG_LINKS
19824 CONFIG_COMMANDS = $CONFIG_COMMANDS
19828 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19832 # Files that config.status was made for.
19833 if test -n "$ac_config_files"; then
19834 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19837 if test -n "$ac_config_headers"; then
19838 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19841 if test -n "$ac_config_links"; then
19842 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19845 if test -n "$ac_config_commands"; then
19846 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19849 cat >>$CONFIG_STATUS <<\_ACEOF
19852 \`$as_me' instantiates files from templates according to the
19853 current configuration.
19855 Usage: $0 [OPTIONS] [FILE]...
19857 -h, --help print this help, then exit
19858 -V, --version print version number, then exit
19859 -q, --quiet do not print progress messages
19860 -d, --debug don't remove temporary files
19861 --recheck update $as_me by reconfiguring in the same conditions
19862 --file=FILE[:TEMPLATE]
19863 instantiate the configuration file FILE
19864 --header=FILE[:TEMPLATE]
19865 instantiate the configuration header FILE
19867 Configuration files:
19870 Configuration headers:
19873 Configuration commands:
19876 Report bugs to <bug-autoconf@gnu.org>."
19879 cat >>$CONFIG_STATUS <<_ACEOF
19881 GNU OpenMP Runtime Library config.status 1.0
19882 configured by $0, generated by GNU Autoconf 2.59,
19883 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19885 Copyright (C) 2003 Free Software Foundation, Inc.
19886 This config.status script is free software; the Free Software Foundation
19887 gives unlimited permission to copy, distribute and modify it."
19892 cat >>$CONFIG_STATUS <<\_ACEOF
19893 # If no file are specified by the user, then we need to provide default
19894 # value. By we need to know if files were specified by the user.
19900 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19901 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19909 *) # This is not an option, so the user has probably given explicit
19912 ac_need_defaults=false;;
19916 # Handling of the options.
19918 cat >>$CONFIG_STATUS <<\_ACEOF
19919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19921 --version | --vers* | -V )
19922 echo "$ac_cs_version"; exit 0 ;;
19924 # Conflict between --help and --header
19925 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19926 Try \`$0 --help' for more information." >&5
19927 echo "$as_me: error: ambiguous option: $1
19928 Try \`$0 --help' for more information." >&2;}
19929 { (exit 1); exit 1; }; };;
19930 --help | --hel | -h )
19931 echo "$ac_cs_usage"; exit 0 ;;
19932 --debug | --d* | -d )
19934 --file | --fil | --fi | --f )
19936 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19937 ac_need_defaults=false;;
19938 --header | --heade | --head | --hea )
19940 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19941 ac_need_defaults=false;;
19942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19946 # This is an error.
19947 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19948 Try \`$0 --help' for more information." >&5
19949 echo "$as_me: error: unrecognized option: $1
19950 Try \`$0 --help' for more information." >&2;}
19951 { (exit 1); exit 1; }; } ;;
19953 *) ac_config_targets="$ac_config_targets $1" ;;
19959 ac_configure_extra_args=
19961 if $ac_cs_silent; then
19963 ac_configure_extra_args="$ac_configure_extra_args --silent"
19967 cat >>$CONFIG_STATUS <<_ACEOF
19968 if \$ac_cs_recheck; then
19969 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19970 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19975 cat >>$CONFIG_STATUS <<_ACEOF
19977 # INIT-COMMANDS section.
19984 with_multisubdir="$with_multisubdir"
19985 with_multisrctop="$with_multisrctop"
19986 with_target_subdir="$with_target_subdir"
19987 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19988 multi_basedir="$multi_basedir"
19989 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19994 # The HP-UX ksh and POSIX shell print the target directory to stdout
19995 # if CDPATH is set.
19996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19998 sed_quote_subst='$sed_quote_subst'
19999 double_quote_subst='$double_quote_subst'
20000 delay_variable_subst='$delay_variable_subst'
20001 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20002 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20003 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20004 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20005 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20006 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20007 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20008 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20009 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20010 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20011 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20012 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20013 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20014 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20015 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20016 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20017 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20018 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20019 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20020 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20021 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20022 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20023 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20024 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20025 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20026 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20027 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20028 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20029 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20030 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20031 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20032 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20033 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20034 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20035 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20036 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20037 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20038 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20039 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20040 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20041 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20042 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20043 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20044 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20045 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20046 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20047 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20048 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20049 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20050 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20051 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20052 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20053 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20054 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20055 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20056 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20057 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20058 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20059 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20060 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20061 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20062 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20063 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20064 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20065 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20066 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20067 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20068 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20069 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20070 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20071 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20072 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20073 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20074 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20075 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20076 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20077 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20078 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20079 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20080 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20081 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20082 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20083 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20084 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20085 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20086 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20087 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20088 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20089 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20090 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20091 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20092 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20093 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20094 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20095 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20096 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20097 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20098 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20099 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20100 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20101 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20102 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20103 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20104 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20105 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20106 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20107 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20108 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20109 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20110 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20111 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20112 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20113 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20114 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20115 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20116 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20117 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20118 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20119 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20120 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20121 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20122 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20123 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20124 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20125 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20126 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20127 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20128 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20129 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20130 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20131 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20132 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20133 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20134 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20135 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20136 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20137 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20138 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20139 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20140 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20141 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20142 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20143 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20144 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20145 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20146 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20147 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20148 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20149 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20150 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20151 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20152 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20153 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20154 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20155 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20156 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20157 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20158 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20159 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20160 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20161 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20162 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20165 LTCFLAGS='$LTCFLAGS'
20166 compiler='$compiler_DEFAULT'
20168 # Quote evaled strings.
20179 deplibs_check_method \
20188 lt_cv_sys_global_symbol_pipe \
20189 lt_cv_sys_global_symbol_to_cdecl \
20190 lt_cv_sys_global_symbol_to_c_name_address \
20193 lt_prog_compiler_no_builtin_flag \
20194 lt_prog_compiler_wl \
20195 lt_prog_compiler_pic \
20196 lt_prog_compiler_static \
20197 lt_cv_prog_compiler_c_o \
20200 export_dynamic_flag_spec \
20201 whole_archive_flag_spec \
20202 compiler_needs_object \
20204 allow_undefined_flag \
20205 no_undefined_flag \
20206 hardcode_libdir_flag_spec \
20207 hardcode_libdir_flag_spec_ld \
20208 hardcode_libdir_separator \
20213 variables_saved_for_relink \
20215 library_names_spec \
20224 compiler_lib_search_path \
20227 lt_prog_compiler_no_builtin_flag_FC \
20228 lt_prog_compiler_wl_FC \
20229 lt_prog_compiler_pic_FC \
20230 lt_prog_compiler_static_FC \
20231 lt_cv_prog_compiler_c_o_FC \
20232 export_dynamic_flag_spec_FC \
20233 whole_archive_flag_spec_FC \
20234 compiler_needs_object_FC \
20236 allow_undefined_flag_FC \
20237 no_undefined_flag_FC \
20238 hardcode_libdir_flag_spec_FC \
20239 hardcode_libdir_flag_spec_ld_FC \
20240 hardcode_libdir_separator_FC \
20241 fix_srcfile_path_FC \
20242 exclude_expsyms_FC \
20243 include_expsyms_FC \
20244 file_list_spec_FC \
20245 predep_objects_FC \
20246 postdep_objects_FC \
20249 compiler_lib_search_path_FC; do
20250 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20251 *[\\\\\\\`\\"\\\$]*)
20252 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20255 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20260 # Double-quote double-evaled strings.
20261 for var in reload_cmds \
20262 old_postinstall_cmds \
20263 old_postuninstall_cmds \
20265 extract_expsyms_cmds \
20266 old_archive_from_new_cmds \
20267 old_archive_from_expsyms_cmds \
20269 archive_expsym_cmds \
20271 module_expsym_cmds \
20272 export_symbols_cmds \
20275 postuninstall_cmds \
20277 sys_lib_search_path_spec \
20278 sys_lib_dlsearch_path_spec \
20279 old_archive_cmds_FC \
20280 old_archive_from_new_cmds_FC \
20281 old_archive_from_expsyms_cmds_FC \
20283 archive_expsym_cmds_FC \
20285 module_expsym_cmds_FC \
20286 export_symbols_cmds_FC \
20287 prelink_cmds_FC; do
20288 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20289 *[\\\\\\\`\\"\\\$]*)
20290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20298 # Fix-up fallback echo if it was mangled by the above quoting rules.
20300 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20304 ac_aux_dir='$ac_aux_dir'
20305 xsi_shell='$xsi_shell'
20306 lt_shell_append='$lt_shell_append'
20308 # See if we are running on zsh, and set the options which allow our
20309 # commands through without removal of \ escapes INIT.
20310 if test -n "\${ZSH_VERSION+set}" ; then
20311 setopt NO_GLOB_SUBST
20317 TIMESTAMP='$TIMESTAMP'
20328 acx_cv_header_stdint="$acx_cv_header_stdint"
20329 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20330 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20331 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20332 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20333 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20334 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20335 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20336 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20337 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20338 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20339 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20340 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20341 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20348 cat >>$CONFIG_STATUS <<\_ACEOF
20349 for ac_config_target in $ac_config_targets
20351 case "$ac_config_target" in
20352 # Handling of arguments.
20353 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20354 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20355 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20356 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20357 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20358 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20359 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20360 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20361 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20362 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20363 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20364 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20365 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20366 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20367 { (exit 1); exit 1; }; };;
20371 # If the user did not use the arguments to specify the items to instantiate,
20372 # then the envvar interface is used. Set only those that are not.
20373 # We use the long form for the default assignment because of an extremely
20374 # bizarre bug on SunOS 4.1.3.
20375 if $ac_need_defaults; then
20376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20378 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20381 # Have a temporary directory for convenience. Make it in the build tree
20382 # simply because there is no reason to put it here, and in addition,
20383 # creating and moving files from /tmp can sometimes cause problems.
20384 # Create a temporary directory, and hook for its removal unless debugging.
20387 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20388 trap '{ (exit 1); exit 1; }' 1 2 13 15
20391 # Create a (secure) tmp directory for tmp files.
20394 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20395 test -n "$tmp" && test -d "$tmp"
20398 tmp=./confstat$$-$RANDOM
20399 (umask 077 && mkdir $tmp)
20402 echo "$me: cannot create a temporary directory in ." >&2
20403 { (exit 1); exit 1; }
20408 cat >>$CONFIG_STATUS <<_ACEOF
20411 # CONFIG_FILES section.
20414 # No need to generate the scripts if there are no CONFIG_FILES.
20415 # This happens for instance when ./config.status config.h
20416 if test -n "\$CONFIG_FILES"; then
20417 # Protect against being on the right side of a sed subst in config.status.
20418 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20419 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20420 s,@SHELL@,$SHELL,;t t
20421 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20422 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20423 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20424 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20425 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20426 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20427 s,@exec_prefix@,$exec_prefix,;t t
20428 s,@prefix@,$prefix,;t t
20429 s,@program_transform_name@,$program_transform_name,;t t
20430 s,@bindir@,$bindir,;t t
20431 s,@sbindir@,$sbindir,;t t
20432 s,@libexecdir@,$libexecdir,;t t
20433 s,@datadir@,$datadir,;t t
20434 s,@sysconfdir@,$sysconfdir,;t t
20435 s,@sharedstatedir@,$sharedstatedir,;t t
20436 s,@localstatedir@,$localstatedir,;t t
20437 s,@libdir@,$libdir,;t t
20438 s,@includedir@,$includedir,;t t
20439 s,@oldincludedir@,$oldincludedir,;t t
20440 s,@infodir@,$infodir,;t t
20441 s,@mandir@,$mandir,;t t
20442 s,@build_alias@,$build_alias,;t t
20443 s,@host_alias@,$host_alias,;t t
20444 s,@target_alias@,$target_alias,;t t
20445 s,@DEFS@,$DEFS,;t t
20446 s,@ECHO_C@,$ECHO_C,;t t
20447 s,@ECHO_N@,$ECHO_N,;t t
20448 s,@ECHO_T@,$ECHO_T,;t t
20449 s,@LIBS@,$LIBS,;t t
20450 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20451 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20452 s,@build@,$build,;t t
20453 s,@build_cpu@,$build_cpu,;t t
20454 s,@build_vendor@,$build_vendor,;t t
20455 s,@build_os@,$build_os,;t t
20456 s,@host@,$host,;t t
20457 s,@host_cpu@,$host_cpu,;t t
20458 s,@host_vendor@,$host_vendor,;t t
20459 s,@host_os@,$host_os,;t t
20460 s,@target@,$target,;t t
20461 s,@target_cpu@,$target_cpu,;t t
20462 s,@target_vendor@,$target_vendor,;t t
20463 s,@target_os@,$target_os,;t t
20464 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20465 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20466 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20467 s,@CYGPATH_W@,$CYGPATH_W,;t t
20468 s,@PACKAGE@,$PACKAGE,;t t
20469 s,@VERSION@,$VERSION,;t t
20470 s,@ACLOCAL@,$ACLOCAL,;t t
20471 s,@AUTOCONF@,$AUTOCONF,;t t
20472 s,@AUTOMAKE@,$AUTOMAKE,;t t
20473 s,@AUTOHEADER@,$AUTOHEADER,;t t
20474 s,@MAKEINFO@,$MAKEINFO,;t t
20475 s,@install_sh@,$install_sh,;t t
20476 s,@STRIP@,$STRIP,;t t
20477 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20478 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20479 s,@mkdir_p@,$mkdir_p,;t t
20481 s,@SET_MAKE@,$SET_MAKE,;t t
20482 s,@am__leading_dot@,$am__leading_dot,;t t
20483 s,@AMTAR@,$AMTAR,;t t
20484 s,@am__tar@,$am__tar,;t t
20485 s,@am__untar@,$am__untar,;t t
20486 s,@multi_basedir@,$multi_basedir,;t t
20487 s,@toolexecdir@,$toolexecdir,;t t
20488 s,@toolexeclibdir@,$toolexeclibdir,;t t
20490 s,@ac_ct_CC@,$ac_ct_CC,;t t
20491 s,@EXEEXT@,$EXEEXT,;t t
20492 s,@OBJEXT@,$OBJEXT,;t t
20493 s,@DEPDIR@,$DEPDIR,;t t
20494 s,@am__include@,$am__include,;t t
20495 s,@am__quote@,$am__quote,;t t
20496 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20497 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20498 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20499 s,@CCDEPMODE@,$CCDEPMODE,;t t
20500 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20501 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20502 s,@CFLAGS@,$CFLAGS,;t t
20504 s,@ac_ct_AR@,$ac_ct_AR,;t t
20505 s,@RANLIB@,$RANLIB,;t t
20506 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20507 s,@PERL@,$PERL,;t t
20508 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20509 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20510 s,@LIBTOOL@,$LIBTOOL,;t t
20512 s,@EGREP@,$EGREP,;t t
20513 s,@FGREP@,$FGREP,;t t
20514 s,@GREP@,$GREP,;t t
20516 s,@DUMPBIN@,$DUMPBIN,;t t
20517 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20519 s,@LN_S@,$LN_S,;t t
20520 s,@lt_ECHO@,$lt_ECHO,;t t
20522 s,@CPPFLAGS@,$CPPFLAGS,;t t
20523 s,@enable_shared@,$enable_shared,;t t
20524 s,@enable_static@,$enable_static,;t t
20525 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20526 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20527 s,@MAINT@,$MAINT,;t t
20529 s,@FCFLAGS@,$FCFLAGS,;t t
20530 s,@LDFLAGS@,$LDFLAGS,;t t
20531 s,@ac_ct_FC@,$ac_ct_FC,;t t
20532 s,@libtool_VERSION@,$libtool_VERSION,;t t
20533 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20534 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20535 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20536 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20537 s,@config_path@,$config_path,;t t
20538 s,@XCFLAGS@,$XCFLAGS,;t t
20539 s,@XLDFLAGS@,$XLDFLAGS,;t t
20540 s,@link_gomp@,$link_gomp,;t t
20541 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20542 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20543 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20544 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20545 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20546 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20547 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20548 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20549 s,@LIBOBJS@,$LIBOBJS,;t t
20550 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20555 cat >>$CONFIG_STATUS <<\_ACEOF
20556 # Split the substitutions into bite-sized pieces for seds with
20557 # small command number limits, like on Digital OSF/1 and HP-UX.
20558 ac_max_sed_lines=48
20559 ac_sed_frag=1 # Number of current file.
20560 ac_beg=1 # First line for current file.
20561 ac_end=$ac_max_sed_lines # Line after last line for current file.
20564 while $ac_more_lines; do
20565 if test $ac_beg -gt 1; then
20566 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20568 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20570 if test ! -s $tmp/subs.frag; then
20571 ac_more_lines=false
20573 # The purpose of the label and of the branching condition is to
20574 # speed up the sed processing (if there are no `@' at all, there
20575 # is no need to browse any of the substitutions).
20576 # These are the two extra sed commands mentioned above.
20578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20579 if test -z "$ac_sed_cmds"; then
20580 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20582 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20584 ac_sed_frag=`expr $ac_sed_frag + 1`
20586 ac_end=`expr $ac_end + $ac_max_sed_lines`
20589 if test -z "$ac_sed_cmds"; then
20592 fi # test -n "$CONFIG_FILES"
20595 cat >>$CONFIG_STATUS <<\_ACEOF
20596 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20599 - | *:- | *:-:* ) # input from stdin
20601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20605 * ) ac_file_in=$ac_file.in ;;
20608 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20609 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20611 X"$ac_file" : 'X\(//\)[^/]' \| \
20612 X"$ac_file" : 'X\(//\)$' \| \
20613 X"$ac_file" : 'X\(/\)' \| \
20614 . : '\(.\)' 2>/dev/null ||
20616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20618 /^X\(\/\/\)$/{ s//\1/; q; }
20619 /^X\(\/\).*/{ s//\1/; q; }
20621 { if $as_mkdir_p; then
20626 while test ! -d "$as_dir"; do
20627 as_dirs="$as_dir $as_dirs"
20628 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20630 X"$as_dir" : 'X\(//\)[^/]' \| \
20631 X"$as_dir" : 'X\(//\)$' \| \
20632 X"$as_dir" : 'X\(/\)' \| \
20633 . : '\(.\)' 2>/dev/null ||
20635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20637 /^X\(\/\/\)$/{ s//\1/; q; }
20638 /^X\(\/\).*/{ s//\1/; q; }
20641 test ! -n "$as_dirs" || mkdir $as_dirs
20642 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20644 { (exit 1); exit 1; }; }; }
20648 if test "$ac_dir" != .; then
20649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20650 # A "../" for each directory in $ac_dir_suffix.
20651 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20653 ac_dir_suffix= ac_top_builddir=
20657 .) # No --srcdir option. We are building in place.
20659 if test -z "$ac_top_builddir"; then
20662 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20664 [\\/]* | ?:[\\/]* ) # Absolute path.
20665 ac_srcdir=$srcdir$ac_dir_suffix;
20666 ac_top_srcdir=$srcdir ;;
20667 *) # Relative path.
20668 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20669 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20672 # Do not use `cd foo && pwd` to compute absolute paths, because
20673 # the directories may not exist.
20675 .) ac_abs_builddir="$ac_dir";;
20678 .) ac_abs_builddir=`pwd`;;
20679 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20680 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20683 case $ac_abs_builddir in
20684 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20686 case ${ac_top_builddir}. in
20687 .) ac_abs_top_builddir=$ac_abs_builddir;;
20688 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20689 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20692 case $ac_abs_builddir in
20693 .) ac_abs_srcdir=$ac_srcdir;;
20696 .) ac_abs_srcdir=$ac_abs_builddir;;
20697 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20698 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20701 case $ac_abs_builddir in
20702 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20704 case $ac_top_srcdir in
20705 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20706 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20707 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20714 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20717 if test x"$ac_file" != x-; then
20718 { echo "$as_me:$LINENO: creating $ac_file" >&5
20719 echo "$as_me: creating $ac_file" >&6;}
20722 # Let's still pretend it is `configure' which instantiates (i.e., don't
20723 # use $as_me), people would be surprised to read:
20724 # /* config.h. Generated by config.status. */
20725 if test x"$ac_file" = x-; then
20728 configure_input="$ac_file. "
20730 configure_input=$configure_input"Generated from `echo $ac_file_in |
20731 sed 's,.*/,,'` by configure."
20733 # First look for the input files in the build tree, otherwise in the
20735 ac_file_inputs=`IFS=:
20736 for f in $ac_file_in; do
20738 -) echo $tmp/stdin ;;
20740 # Absolute (can't be DOS-style, as IFS=:)
20741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20742 echo "$as_me: error: cannot find input file: $f" >&2;}
20743 { (exit 1); exit 1; }; }
20746 if test -f "$f"; then
20749 elif test -f "$srcdir/$f"; then
20754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20755 echo "$as_me: error: cannot find input file: $f" >&2;}
20756 { (exit 1); exit 1; }; }
20759 done` || { (exit 1); exit 1; }
20761 cat >>$CONFIG_STATUS <<_ACEOF
20765 cat >>$CONFIG_STATUS <<\_ACEOF
20767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20768 s,@configure_input@,$configure_input,;t t
20769 s,@srcdir@,$ac_srcdir,;t t
20770 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20771 s,@top_srcdir@,$ac_top_srcdir,;t t
20772 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20773 s,@builddir@,$ac_builddir,;t t
20774 s,@abs_builddir@,$ac_abs_builddir,;t t
20775 s,@top_builddir@,$ac_top_builddir,;t t
20776 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20777 s,@INSTALL@,$ac_INSTALL,;t t
20778 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20780 if test x"$ac_file" != x-; then
20781 mv $tmp/out $ac_file
20789 cat >>$CONFIG_STATUS <<\_ACEOF
20792 # CONFIG_HEADER section.
20795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20798 # ac_d sets the value in "#define NAME VALUE" lines.
20799 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20800 ac_dB='[ ].*$,\1#\2'
20803 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20804 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20805 ac_uB='$,\1#\2define\3'
20809 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20812 - | *:- | *:-:* ) # input from stdin
20814 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20816 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20818 * ) ac_file_in=$ac_file.in ;;
20821 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20822 echo "$as_me: creating $ac_file" >&6;}
20824 # First look for the input files in the build tree, otherwise in the
20826 ac_file_inputs=`IFS=:
20827 for f in $ac_file_in; do
20829 -) echo $tmp/stdin ;;
20831 # Absolute (can't be DOS-style, as IFS=:)
20832 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20833 echo "$as_me: error: cannot find input file: $f" >&2;}
20834 { (exit 1); exit 1; }; }
20835 # Do quote $f, to prevent DOS paths from being IFS'd.
20838 if test -f "$f"; then
20841 elif test -f "$srcdir/$f"; then
20846 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20847 echo "$as_me: error: cannot find input file: $f" >&2;}
20848 { (exit 1); exit 1; }; }
20851 done` || { (exit 1); exit 1; }
20852 # Remove the trailing spaces.
20853 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20857 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20858 # `conftest.undefs', that substitutes the proper values into
20859 # config.h.in to produce config.h. The first handles `#define'
20860 # templates, and the second `#undef' templates.
20861 # And first: Protect against being on the right side of a sed subst in
20862 # config.status. Protect against being in an unquoted here document
20863 # in config.status.
20864 rm -f conftest.defines conftest.undefs
20865 # Using a here document instead of a string reduces the quoting nightmare.
20866 # Putting comments in sed scripts is not portable.
20868 # `end' is used to avoid that the second main sed command (meant for
20869 # 0-ary CPP macros) applies to n-ary macro definitions.
20870 # See the Autoconf documentation for `clear'.
20871 cat >confdef2sed.sed <<\_ACEOF
20876 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20878 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20881 # If some macros were called several times there might be several times
20882 # the same #defines, which is useless. Nevertheless, we may not want to
20883 # sort them, since we want the *last* AC-DEFINE to be honored.
20884 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20885 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20886 rm -f confdef2sed.sed
20888 # This sed command replaces #undef with comments. This is necessary, for
20889 # example, in the case of _POSIX_SOURCE, which is predefined and required
20890 # on some systems where configure will not decide to define it.
20891 cat >>conftest.undefs <<\_ACEOF
20892 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20895 # Break up conftest.defines because some shells have a limit on the size
20896 # of here documents, and old seds have small limits too (100 cmds).
20897 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20898 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20899 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20900 echo ' :' >>$CONFIG_STATUS
20901 rm -f conftest.tail
20902 while grep . conftest.defines >/dev/null
20904 # Write a limited-size here document to $tmp/defines.sed.
20905 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20906 # Speed up: don't consider the non `#define' lines.
20907 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20908 # Work around the forget-to-reset-the-flag bug.
20909 echo 't clr' >>$CONFIG_STATUS
20910 echo ': clr' >>$CONFIG_STATUS
20911 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20913 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20915 mv $tmp/out $tmp/in
20917 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20918 rm -f conftest.defines
20919 mv conftest.tail conftest.defines
20921 rm -f conftest.defines
20922 echo ' fi # grep' >>$CONFIG_STATUS
20923 echo >>$CONFIG_STATUS
20925 # Break up conftest.undefs because some shells have a limit on the size
20926 # of here documents, and old seds have small limits too (100 cmds).
20927 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20928 rm -f conftest.tail
20929 while grep . conftest.undefs >/dev/null
20931 # Write a limited-size here document to $tmp/undefs.sed.
20932 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20933 # Speed up: don't consider the non `#undef'
20934 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20935 # Work around the forget-to-reset-the-flag bug.
20936 echo 't clr' >>$CONFIG_STATUS
20937 echo ': clr' >>$CONFIG_STATUS
20938 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20940 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20942 mv $tmp/out $tmp/in
20944 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20945 rm -f conftest.undefs
20946 mv conftest.tail conftest.undefs
20948 rm -f conftest.undefs
20950 cat >>$CONFIG_STATUS <<\_ACEOF
20951 # Let's still pretend it is `configure' which instantiates (i.e., don't
20952 # use $as_me), people would be surprised to read:
20953 # /* config.h. Generated by config.status. */
20954 if test x"$ac_file" = x-; then
20955 echo "/* Generated by configure. */" >$tmp/config.h
20957 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20959 cat $tmp/in >>$tmp/config.h
20961 if test x"$ac_file" != x-; then
20962 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20963 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20964 echo "$as_me: $ac_file is unchanged" >&6;}
20966 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20968 X"$ac_file" : 'X\(//\)[^/]' \| \
20969 X"$ac_file" : 'X\(//\)$' \| \
20970 X"$ac_file" : 'X\(/\)' \| \
20971 . : '\(.\)' 2>/dev/null ||
20973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20975 /^X\(\/\/\)$/{ s//\1/; q; }
20976 /^X\(\/\).*/{ s//\1/; q; }
20978 { if $as_mkdir_p; then
20983 while test ! -d "$as_dir"; do
20984 as_dirs="$as_dir $as_dirs"
20985 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20987 X"$as_dir" : 'X\(//\)[^/]' \| \
20988 X"$as_dir" : 'X\(//\)$' \| \
20989 X"$as_dir" : 'X\(/\)' \| \
20990 . : '\(.\)' 2>/dev/null ||
20992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20994 /^X\(\/\/\)$/{ s//\1/; q; }
20995 /^X\(\/\).*/{ s//\1/; q; }
20998 test ! -n "$as_dirs" || mkdir $as_dirs
20999 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21001 { (exit 1); exit 1; }; }; }
21004 mv $tmp/config.h $ac_file
21008 rm -f $tmp/config.h
21010 # Compute $ac_file's index in $config_headers.
21012 for _am_header in $config_headers :; do
21013 case $_am_header in
21014 $ac_file | $ac_file:* )
21017 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21020 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21021 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21022 X$ac_file : 'X\(//\)[^/]' \| \
21023 X$ac_file : 'X\(//\)$' \| \
21024 X$ac_file : 'X\(/\)' \| \
21025 . : '\(.\)' 2>/dev/null ||
21027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21029 /^X\(\/\/\)$/{ s//\1/; q; }
21030 /^X\(\/\).*/{ s//\1/; q; }
21031 s/.*/./; q'`/stamp-h$_am_stamp_count
21034 cat >>$CONFIG_STATUS <<\_ACEOF
21037 # CONFIG_COMMANDS section.
21039 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21040 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21041 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21042 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21043 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21044 X"$ac_dest" : 'X\(//\)[^/]' \| \
21045 X"$ac_dest" : 'X\(//\)$' \| \
21046 X"$ac_dest" : 'X\(/\)' \| \
21047 . : '\(.\)' 2>/dev/null ||
21049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21051 /^X\(\/\/\)$/{ s//\1/; q; }
21052 /^X\(\/\).*/{ s//\1/; q; }
21054 { if $as_mkdir_p; then
21059 while test ! -d "$as_dir"; do
21060 as_dirs="$as_dir $as_dirs"
21061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063 X"$as_dir" : 'X\(//\)[^/]' \| \
21064 X"$as_dir" : 'X\(//\)$' \| \
21065 X"$as_dir" : 'X\(/\)' \| \
21066 . : '\(.\)' 2>/dev/null ||
21068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21070 /^X\(\/\/\)$/{ s//\1/; q; }
21071 /^X\(\/\).*/{ s//\1/; q; }
21074 test ! -n "$as_dirs" || mkdir $as_dirs
21075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21076 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21077 { (exit 1); exit 1; }; }; }
21081 if test "$ac_dir" != .; then
21082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21083 # A "../" for each directory in $ac_dir_suffix.
21084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21086 ac_dir_suffix= ac_top_builddir=
21090 .) # No --srcdir option. We are building in place.
21092 if test -z "$ac_top_builddir"; then
21095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21097 [\\/]* | ?:[\\/]* ) # Absolute path.
21098 ac_srcdir=$srcdir$ac_dir_suffix;
21099 ac_top_srcdir=$srcdir ;;
21100 *) # Relative path.
21101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21105 # Do not use `cd foo && pwd` to compute absolute paths, because
21106 # the directories may not exist.
21108 .) ac_abs_builddir="$ac_dir";;
21111 .) ac_abs_builddir=`pwd`;;
21112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21116 case $ac_abs_builddir in
21117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21119 case ${ac_top_builddir}. in
21120 .) ac_abs_top_builddir=$ac_abs_builddir;;
21121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21125 case $ac_abs_builddir in
21126 .) ac_abs_srcdir=$ac_srcdir;;
21129 .) ac_abs_srcdir=$ac_abs_builddir;;
21130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21134 case $ac_abs_builddir in
21135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21137 case $ac_top_srcdir in
21138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21145 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21146 echo "$as_me: executing $ac_dest commands" >&6;}
21149 # Only add multilib support code if we just rebuilt the top-level
21151 case " $CONFIG_FILES " in
21153 ac_file=Makefile . ${multi_basedir}/config-ml.in
21156 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21157 # Strip MF so we end up with the name of the file.
21158 mf=`echo "$mf" | sed -e 's/:.*$//'`
21159 # Check whether this is an Automake generated Makefile or not.
21160 # We used to match only the files named `Makefile.in', but
21161 # some people rename them; so instead we look at the file content.
21162 # Grep'ing the first line is not enough: some people post-process
21163 # each Makefile.in and add a new line on top of each file to say so.
21164 # So let's grep whole file.
21165 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21166 dirpart=`(dirname "$mf") 2>/dev/null ||
21167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21168 X"$mf" : 'X\(//\)[^/]' \| \
21169 X"$mf" : 'X\(//\)$' \| \
21170 X"$mf" : 'X\(/\)' \| \
21171 . : '\(.\)' 2>/dev/null ||
21173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21175 /^X\(\/\/\)$/{ s//\1/; q; }
21176 /^X\(\/\).*/{ s//\1/; q; }
21181 # Extract the definition of DEPDIR, am__include, and am__quote
21182 # from the Makefile without running `make'.
21183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21184 test -z "$DEPDIR" && continue
21185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21186 test -z "am__include" && continue
21187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21188 # When using ansi2knr, U may be empty or an underscore; expand it
21189 U=`sed -n 's/^U = //p' < "$mf"`
21190 # Find all dependency output files, they are included files with
21191 # $(DEPDIR) in their names. We invoke sed twice because it is the
21192 # simplest approach to changing $(DEPDIR) to its actual value in the
21194 for file in `sed -n "
21195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21197 # Make sure the directory exists.
21198 test -f "$dirpart/$file" && continue
21199 fdir=`(dirname "$file") 2>/dev/null ||
21200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21201 X"$file" : 'X\(//\)[^/]' \| \
21202 X"$file" : 'X\(//\)$' \| \
21203 X"$file" : 'X\(/\)' \| \
21204 . : '\(.\)' 2>/dev/null ||
21206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21208 /^X\(\/\/\)$/{ s//\1/; q; }
21209 /^X\(\/\).*/{ s//\1/; q; }
21211 { if $as_mkdir_p; then
21212 mkdir -p $dirpart/$fdir
21214 as_dir=$dirpart/$fdir
21216 while test ! -d "$as_dir"; do
21217 as_dirs="$as_dir $as_dirs"
21218 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21220 X"$as_dir" : 'X\(//\)[^/]' \| \
21221 X"$as_dir" : 'X\(//\)$' \| \
21222 X"$as_dir" : 'X\(/\)' \| \
21223 . : '\(.\)' 2>/dev/null ||
21225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21227 /^X\(\/\/\)$/{ s//\1/; q; }
21228 /^X\(\/\).*/{ s//\1/; q; }
21231 test ! -n "$as_dirs" || mkdir $as_dirs
21232 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21233 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21234 { (exit 1); exit 1; }; }; }
21236 # echo "creating $dirpart/$file"
21237 echo '# dummy' > "$dirpart/$file"
21243 # See if we are running on zsh, and set the options which allow our
21244 # commands through without removal of \ escapes.
21245 if test -n "${ZSH_VERSION+set}" ; then
21246 setopt NO_GLOB_SUBST
21249 cfgfile="${ofile}T"
21250 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21253 cat <<_LT_EOF >> "$cfgfile"
21256 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21257 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21259 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21261 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21262 # 2006, 2007 Free Software Foundation, Inc.
21264 # This file is part of GNU Libtool:
21265 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21267 # This program is free software; you can redistribute it and/or modify
21268 # it under the terms of the GNU General Public License as published by
21269 # the Free Software Foundation; either version 2 of the License, or
21270 # (at your option) any later version.
21272 # This program is distributed in the hope that it will be useful, but
21273 # WITHOUT ANY WARRANTY; without even the implied warranty of
21274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21275 # General Public License for more details.
21277 # You should have received a copy of the GNU General Public License
21278 # along with this program; if not, a copy can be downloaded from
21279 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21280 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21281 # MA 02110-1301, USA.
21283 # As a special exception to the GNU General Public License, if you
21284 # distribute this file as part of a program that contains a
21285 # configuration script generated by Autoconf, you may include it under
21286 # the same distribution terms that you use for the rest of that program.
21289 # The names of the tagged configurations supported by this script.
21290 available_tags="FC "
21292 # ### BEGIN LIBTOOL CONFIG
21294 # Which release of libtool.m4 was used?
21295 macro_version=$macro_version
21296 macro_revision=$macro_revision
21298 # Whether or not to build shared libraries.
21299 build_libtool_libs=$enable_shared
21301 # Whether or not to build static libraries.
21302 build_old_libs=$enable_static
21304 # What type of objects to build.
21307 # Whether or not to optimize for fast installation.
21308 fast_install=$enable_fast_install
21311 host_alias=$host_alias
21315 # The build system.
21316 build_alias=$build_alias
21320 # A sed program that does not truncate output.
21323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21324 Xsed="\$SED -e 1s/^X//"
21326 # A grep program that handles long lines.
21332 # A literal string matcher.
21335 # A BSD- or MS-compatible name lister.
21338 # Whether we need soft or hard links.
21341 # What is the maximum length of a command?
21342 max_cmd_len=$max_cmd_len
21344 # Object file suffix (normally "o").
21347 # Executable file suffix (normally "").
21350 # whether the shell understands "unset".
21353 # turn spaces into newlines.
21356 # turn newlines into spaces.
21359 # How to create reloadable object files.
21360 reload_flag=$lt_reload_flag
21361 reload_cmds=$lt_reload_cmds
21363 # Method to check whether dependent libraries are shared objects.
21364 deplibs_check_method=$lt_deplibs_check_method
21366 # Command to use when deplibs_check_method == "file_magic".
21367 file_magic_cmd=$lt_file_magic_cmd
21371 AR_FLAGS=$lt_AR_FLAGS
21373 # A symbol stripping program.
21376 # Commands used to install an old-style archive.
21378 old_postinstall_cmds=$lt_old_postinstall_cmds
21379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21384 # LTCC compiler flags.
21385 LTCFLAGS=$lt_CFLAGS
21387 # Take the output of nm and produce a listing of raw symbols and C names.
21388 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21390 # Transform the output of nm in a proper C declaration.
21391 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21393 # Transform the output of nm in a C name address pair.
21394 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21396 # The name of the directory that contains temporary libtool files.
21399 # Shell to use when invoking shell scripts.
21402 # An echo program that does not interpret backslashes.
21405 # Used to examine libraries when file_magic_cmd begins with "file".
21406 MAGIC_CMD=$MAGIC_CMD
21408 # Must we lock files when doing compilation?
21409 need_locks=$lt_need_locks
21411 # Old archive suffix (normally "a").
21414 # Shared library suffix (normally ".so").
21415 shrext_cmds=$lt_shrext_cmds
21417 # The commands to extract the exported symbol list from a shared archive.
21418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21420 # Variables whose values should be saved in libtool wrapper scripts and
21421 # restored at link time.
21422 variables_saved_for_relink=$lt_variables_saved_for_relink
21424 # Do we need the "lib" prefix for modules?
21425 need_lib_prefix=$need_lib_prefix
21427 # Do we need a version for libraries?
21428 need_version=$need_version
21430 # Library versioning type.
21431 version_type=$version_type
21433 # Shared library runtime path variable.
21434 runpath_var=$runpath_var
21436 # Shared library path variable.
21437 shlibpath_var=$shlibpath_var
21439 # Is shlibpath searched before the hard-coded library search path?
21440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21442 # Format of library name prefix.
21443 libname_spec=$lt_libname_spec
21445 # List of archive names. First name is the real one, the rest are links.
21446 # The last name is the one that the linker finds with -lNAME
21447 library_names_spec=$lt_library_names_spec
21449 # The coded name of the library, if different from the real name.
21450 soname_spec=$lt_soname_spec
21452 # Command to use after installation of a shared archive.
21453 postinstall_cmds=$lt_postinstall_cmds
21455 # Command to use after uninstallation of a shared archive.
21456 postuninstall_cmds=$lt_postuninstall_cmds
21458 # Commands used to finish a libtool library installation in a directory.
21459 finish_cmds=$lt_finish_cmds
21461 # As "finish_cmds", except a single script fragment to be evaled but
21463 finish_eval=$lt_finish_eval
21465 # Whether we should hardcode library paths into libraries.
21466 hardcode_into_libs=$hardcode_into_libs
21468 # Compile-time system search path for libraries.
21469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21471 # Run-time system search path for libraries.
21472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21474 # Whether dlopen is supported.
21475 dlopen_support=$enable_dlopen
21477 # Whether dlopen of programs is supported.
21478 dlopen_self=$enable_dlopen_self
21480 # Whether dlopen of statically linked programs is supported.
21481 dlopen_self_static=$enable_dlopen_self_static
21483 # Commands to strip libraries.
21484 old_striplib=$lt_old_striplib
21485 striplib=$lt_striplib
21488 # The linker used to build libraries.
21491 # Commands used to build an old-style archive.
21492 old_archive_cmds=$lt_old_archive_cmds
21494 # A language specific compiler.
21497 # Is the compiler the GNU compiler?
21500 # Compiler flag to turn off builtin functions.
21501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21503 # How to pass a linker flag through the compiler.
21504 wl=$lt_lt_prog_compiler_wl
21506 # Additional compiler flags for building library objects.
21507 pic_flag=$lt_lt_prog_compiler_pic
21509 # Compiler flag to prevent dynamic linking.
21510 link_static_flag=$lt_lt_prog_compiler_static
21512 # Does compiler simultaneously support -c and -o options?
21513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21515 # Whether or not to add -lc for building shared libraries.
21516 build_libtool_need_lc=$archive_cmds_need_lc
21518 # Whether or not to disallow shared libs when runtime libs are static.
21519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21521 # Compiler flag to allow reflexive dlopens.
21522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21524 # Compiler flag to generate shared objects directly from archives.
21525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21527 # Whether the compiler copes with passing no objects directly.
21528 compiler_needs_object=$lt_compiler_needs_object
21530 # Create an old-style archive from a shared archive.
21531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21533 # Create a temporary old-style archive to link instead of a shared archive.
21534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21536 # Commands used to build a shared archive.
21537 archive_cmds=$lt_archive_cmds
21538 archive_expsym_cmds=$lt_archive_expsym_cmds
21540 # Commands used to build a loadable module if different from building
21541 # a shared archive.
21542 module_cmds=$lt_module_cmds
21543 module_expsym_cmds=$lt_module_expsym_cmds
21545 # Whether we are building with GNU ld or not.
21546 with_gnu_ld=$lt_with_gnu_ld
21548 # Flag that allows shared libraries with undefined symbols to be built.
21549 allow_undefined_flag=$lt_allow_undefined_flag
21551 # Flag that enforces no undefined symbols.
21552 no_undefined_flag=$lt_no_undefined_flag
21554 # Flag to hardcode \$libdir into a binary during linking.
21555 # This must work even if \$libdir does not exist
21556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21558 # If ld is used when linking, flag to hardcode \$libdir into a binary
21559 # during linking. This must work even if \$libdir does not exist.
21560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21562 # Whether we need a single "-rpath" flag with a separated argument.
21563 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21566 # DIR into the resulting binary.
21567 hardcode_direct=$hardcode_direct
21569 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21570 # DIR into the resulting binary and the resulting library dependency is
21571 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21572 # library is relocated.
21573 hardcode_direct_absolute=$hardcode_direct_absolute
21575 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21576 # into the resulting binary.
21577 hardcode_minus_L=$hardcode_minus_L
21579 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21580 # into the resulting binary.
21581 hardcode_shlibpath_var=$hardcode_shlibpath_var
21583 # Set to "yes" if building a shared library automatically hardcodes DIR
21584 # into the library and all subsequent libraries and executables linked
21586 hardcode_automatic=$hardcode_automatic
21588 # Set to yes if linker adds runtime paths of dependent libraries
21589 # to runtime path list.
21590 inherit_rpath=$inherit_rpath
21592 # Whether libtool must link a program against all its dependency libraries.
21593 link_all_deplibs=$link_all_deplibs
21595 # Fix the shell variable \$srcfile for the compiler.
21596 fix_srcfile_path=$lt_fix_srcfile_path
21598 # Set to "yes" if exported symbols are required.
21599 always_export_symbols=$always_export_symbols
21601 # The commands to list exported symbols.
21602 export_symbols_cmds=$lt_export_symbols_cmds
21604 # Symbols that should not be listed in the preloaded symbols.
21605 exclude_expsyms=$lt_exclude_expsyms
21607 # Symbols that must always be exported.
21608 include_expsyms=$lt_include_expsyms
21610 # Commands necessary for linking programs (against libraries) with templates.
21611 prelink_cmds=$lt_prelink_cmds
21613 # Specify filename containing input files.
21614 file_list_spec=$lt_file_list_spec
21616 # How to hardcode a shared library path into an executable.
21617 hardcode_action=$hardcode_action
21619 # Dependencies to place before and after the objects being linked to
21620 # create a shared library.
21621 predep_objects=$lt_predep_objects
21622 postdep_objects=$lt_postdep_objects
21623 predeps=$lt_predeps
21624 postdeps=$lt_postdeps
21626 # The library search path used internally by the compiler when linking
21627 # a shared library.
21628 compiler_lib_search_path=$lt_compiler_lib_search_path
21630 # ### END LIBTOOL CONFIG
21636 cat <<\_LT_EOF >> "$cfgfile"
21637 # AIX sometimes has problems with the GCC collect2 program. For some
21638 # reason, if we set the COLLECT_NAMES environment variable, the problems
21639 # vanish in a puff of smoke.
21640 if test "X${COLLECT_NAMES+set}" != Xset; then
21642 export COLLECT_NAMES
21649 ltmain="$ac_aux_dir/ltmain.sh"
21652 # We use sed instead of cat because bash on DJGPP gets confused if
21653 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21654 # text mode, it properly converts lines to CR/LF. This bash problem
21655 # is reportedly fixed, but why not run on old versions too?
21656 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21657 || (rm -f "$cfgfile"; exit 1)
21661 cat << \_LT_EOF >> "$cfgfile"
21662 # func_dirname file append nondir_replacement
21663 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21664 # otherwise set result to NONDIR_REPLACEMENT.
21668 */*) func_dirname_result="${1%/*}${2}" ;;
21669 * ) func_dirname_result="${3}" ;;
21673 # func_basename file
21676 func_basename_result="${1##*/}"
21679 # func_stripname prefix suffix name
21680 # strip PREFIX and SUFFIX off of NAME.
21681 # PREFIX and SUFFIX must not contain globbing or regex special
21682 # characters, hashes, percent signs, but SUFFIX may contain a leading
21683 # dot (in which case that matches only a dot).
21686 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21687 # positional parameters, so assign one to ordinary parameter first.
21688 func_stripname_result=${3}
21689 func_stripname_result=${func_stripname_result#"${1}"}
21690 func_stripname_result=${func_stripname_result%"${2}"}
21696 func_opt_split_opt=${1%%=*}
21697 func_opt_split_arg=${1#*=}
21704 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21705 *) func_lo2o_result=${1} ;;
21710 *) # Bourne compatible functions.
21711 cat << \_LT_EOF >> "$cfgfile"
21712 # func_dirname file append nondir_replacement
21713 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21714 # otherwise set result to NONDIR_REPLACEMENT.
21717 # Extract subdirectory from the argument.
21718 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21719 if test "X$func_dirname_result" = "X${1}"; then
21720 func_dirname_result="${3}"
21722 func_dirname_result="$func_dirname_result${2}"
21726 # func_basename file
21729 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21732 # func_stripname prefix suffix name
21733 # strip PREFIX and SUFFIX off of NAME.
21734 # PREFIX and SUFFIX must not contain globbing or regex special
21735 # characters, hashes, percent signs, but SUFFIX may contain a leading
21736 # dot (in which case that matches only a dot).
21737 # func_strip_suffix prefix name
21741 .*) func_stripname_result=`$ECHO "X${3}" \
21742 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21743 *) func_stripname_result=`$ECHO "X${3}" \
21744 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21749 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21750 my_sed_long_arg='1s/^-[^=]*=//'
21755 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21756 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21762 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21767 case $lt_shell_append in
21769 cat << \_LT_EOF >> "$cfgfile"
21771 # func_append var value
21772 # Append VALUE to the end of shell variable VAR.
21780 cat << \_LT_EOF >> "$cfgfile"
21782 # func_append var value
21783 # Append VALUE to the end of shell variable VAR.
21793 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21794 || (rm -f "$cfgfile"; exit 1)
21796 mv -f "$cfgfile" "$ofile" ||
21797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21801 cat <<_LT_EOF >> "$ofile"
21803 # ### BEGIN LIBTOOL TAG CONFIG: FC
21805 # The linker used to build libraries.
21808 # Commands used to build an old-style archive.
21809 old_archive_cmds=$lt_old_archive_cmds_FC
21811 # A language specific compiler.
21814 # Is the compiler the GNU compiler?
21817 # Compiler flag to turn off builtin functions.
21818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21820 # How to pass a linker flag through the compiler.
21821 wl=$lt_lt_prog_compiler_wl_FC
21823 # Additional compiler flags for building library objects.
21824 pic_flag=$lt_lt_prog_compiler_pic_FC
21826 # Compiler flag to prevent dynamic linking.
21827 link_static_flag=$lt_lt_prog_compiler_static_FC
21829 # Does compiler simultaneously support -c and -o options?
21830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21832 # Whether or not to add -lc for building shared libraries.
21833 build_libtool_need_lc=$archive_cmds_need_lc_FC
21835 # Whether or not to disallow shared libs when runtime libs are static.
21836 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21838 # Compiler flag to allow reflexive dlopens.
21839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21841 # Compiler flag to generate shared objects directly from archives.
21842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21844 # Whether the compiler copes with passing no objects directly.
21845 compiler_needs_object=$lt_compiler_needs_object_FC
21847 # Create an old-style archive from a shared archive.
21848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21850 # Create a temporary old-style archive to link instead of a shared archive.
21851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21853 # Commands used to build a shared archive.
21854 archive_cmds=$lt_archive_cmds_FC
21855 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21857 # Commands used to build a loadable module if different from building
21858 # a shared archive.
21859 module_cmds=$lt_module_cmds_FC
21860 module_expsym_cmds=$lt_module_expsym_cmds_FC
21862 # Whether we are building with GNU ld or not.
21863 with_gnu_ld=$lt_with_gnu_ld_FC
21865 # Flag that allows shared libraries with undefined symbols to be built.
21866 allow_undefined_flag=$lt_allow_undefined_flag_FC
21868 # Flag that enforces no undefined symbols.
21869 no_undefined_flag=$lt_no_undefined_flag_FC
21871 # Flag to hardcode \$libdir into a binary during linking.
21872 # This must work even if \$libdir does not exist
21873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21875 # If ld is used when linking, flag to hardcode \$libdir into a binary
21876 # during linking. This must work even if \$libdir does not exist.
21877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21879 # Whether we need a single "-rpath" flag with a separated argument.
21880 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21882 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21883 # DIR into the resulting binary.
21884 hardcode_direct=$hardcode_direct_FC
21886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21887 # DIR into the resulting binary and the resulting library dependency is
21888 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21889 # library is relocated.
21890 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21892 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21893 # into the resulting binary.
21894 hardcode_minus_L=$hardcode_minus_L_FC
21896 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21897 # into the resulting binary.
21898 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21900 # Set to "yes" if building a shared library automatically hardcodes DIR
21901 # into the library and all subsequent libraries and executables linked
21903 hardcode_automatic=$hardcode_automatic_FC
21905 # Set to yes if linker adds runtime paths of dependent libraries
21906 # to runtime path list.
21907 inherit_rpath=$inherit_rpath_FC
21909 # Whether libtool must link a program against all its dependency libraries.
21910 link_all_deplibs=$link_all_deplibs_FC
21912 # Fix the shell variable \$srcfile for the compiler.
21913 fix_srcfile_path=$lt_fix_srcfile_path_FC
21915 # Set to "yes" if exported symbols are required.
21916 always_export_symbols=$always_export_symbols_FC
21918 # The commands to list exported symbols.
21919 export_symbols_cmds=$lt_export_symbols_cmds_FC
21921 # Symbols that should not be listed in the preloaded symbols.
21922 exclude_expsyms=$lt_exclude_expsyms_FC
21924 # Symbols that must always be exported.
21925 include_expsyms=$lt_include_expsyms_FC
21927 # Commands necessary for linking programs (against libraries) with templates.
21928 prelink_cmds=$lt_prelink_cmds_FC
21930 # Specify filename containing input files.
21931 file_list_spec=$lt_file_list_spec_FC
21933 # How to hardcode a shared library path into an executable.
21934 hardcode_action=$hardcode_action_FC
21936 # Dependencies to place before and after the objects being linked to
21937 # create a shared library.
21938 predep_objects=$lt_predep_objects_FC
21939 postdep_objects=$lt_postdep_objects_FC
21940 predeps=$lt_predeps_FC
21941 postdeps=$lt_postdeps_FC
21943 # The library search path used internally by the compiler when linking
21944 # a shared library.
21945 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
21947 # ### END LIBTOOL TAG CONFIG: FC
21952 if test "$GCC" = yes; then
21953 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
21955 echo "/* generated for $CC */" > tmp-stdint.h
21958 sed 's/^ *//' >> tmp-stdint.h <<EOF
21960 #ifndef GCC_GENERATED_STDINT_H
21961 #define GCC_GENERATED_STDINT_H 1
21963 #include <sys/types.h>
21966 if test "$acx_cv_header_stdint" != stdint.h; then
21967 echo "#include <stddef.h>" >> tmp-stdint.h
21969 if test "$acx_cv_header_stdint" != stddef.h; then
21970 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
21973 sed 's/^ *//' >> tmp-stdint.h <<EOF
21974 /* glibc uses these symbols as guards to prevent redefinitions. */
21975 #ifdef __int8_t_defined
21980 #ifdef __uint32_t_defined
21986 # ----------------- done header, emit basic int types -------------
21987 if test "$acx_cv_header_stdint" = stddef.h; then
21988 sed 's/^ *//' >> tmp-stdint.h <<EOF
21992 #ifndef __uint8_t_defined
21993 #define __uint8_t_defined
21994 typedef unsigned $acx_cv_type_int8_t uint8_t;
22000 #ifndef __uint16_t_defined
22001 #define __uint16_t_defined
22002 typedef unsigned $acx_cv_type_int16_t uint16_t;
22008 #ifndef __uint32_t_defined
22009 #define __uint32_t_defined
22010 typedef unsigned $acx_cv_type_int32_t uint32_t;
22016 #ifndef __int8_t_defined
22017 #define __int8_t_defined
22018 typedef $acx_cv_type_int8_t int8_t;
22024 #ifndef __int16_t_defined
22025 #define __int16_t_defined
22026 typedef $acx_cv_type_int16_t int16_t;
22032 #ifndef __int32_t_defined
22033 #define __int32_t_defined
22034 typedef $acx_cv_type_int32_t int32_t;
22038 elif test "$ac_cv_type_u_int32_t" = yes; then
22039 sed 's/^ *//' >> tmp-stdint.h <<EOF
22041 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22054 #ifndef __uint8_t_defined
22055 #define __uint8_t_defined
22056 typedef u_int8_t uint8_t;
22062 #ifndef __uint16_t_defined
22063 #define __uint16_t_defined
22064 typedef u_int16_t uint16_t;
22070 #ifndef __uint32_t_defined
22071 #define __uint32_t_defined
22072 typedef u_int32_t uint32_t;
22077 sed 's/^ *//' >> tmp-stdint.h <<EOF
22079 /* Some systems have guard macros to prevent redefinitions, define them. */
22101 # ------------- done basic int types, emit int64_t types ------------
22102 if test "$ac_cv_type_uint64_t" = yes; then
22103 sed 's/^ *//' >> tmp-stdint.h <<EOF
22105 /* system headers have good uint64_t and int64_t */
22113 elif test "$ac_cv_type_u_int64_t" = yes; then
22114 sed 's/^ *//' >> tmp-stdint.h <<EOF
22116 /* system headers have an u_int64_t (and int64_t) */
22122 #ifndef __uint64_t_defined
22123 #define __uint64_t_defined
22124 typedef u_int64_t uint64_t;
22128 elif test -n "$acx_cv_type_int64_t"; then
22129 sed 's/^ *//' >> tmp-stdint.h <<EOF
22131 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22134 typedef $acx_cv_type_int64_t int64_t;
22138 #ifndef __uint64_t_defined
22139 #define __uint64_t_defined
22140 typedef unsigned $acx_cv_type_int64_t uint64_t;
22145 sed 's/^ *//' >> tmp-stdint.h <<EOF
22147 /* some common heuristics for int64_t, using compiler-specific tests */
22148 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22151 #ifndef __int64_t_defined
22152 typedef long long int64_t;
22157 typedef unsigned long long uint64_t;
22160 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22161 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22162 does not implement __extension__. But that compiler doesn't define
22164 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22165 # define __extension__
22170 __extension__ typedef long long int64_t;
22174 __extension__ typedef unsigned long long uint64_t;
22177 #elif !defined __STRICT_ANSI__
22178 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22182 typedef __int64 int64_t;
22186 typedef unsigned __int64 uint64_t;
22188 # endif /* compiler */
22190 #endif /* ANSI version */
22194 # ------------- done int64_t types, emit intptr types ------------
22195 if test "$ac_cv_type_uintptr_t" != yes; then
22196 sed 's/^ *//' >> tmp-stdint.h <<EOF
22198 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22199 #ifndef __uintptr_t_defined
22200 typedef u$acx_cv_type_intptr_t uintptr_t;
22202 #ifndef __intptr_t_defined
22203 typedef $acx_cv_type_intptr_t intptr_t;
22208 # ------------- done intptr types, emit int_least types ------------
22209 if test "$ac_cv_type_int_least32_t" != yes; then
22210 sed 's/^ *//' >> tmp-stdint.h <<EOF
22212 /* Define int_least types */
22213 typedef int8_t int_least8_t;
22214 typedef int16_t int_least16_t;
22215 typedef int32_t int_least32_t;
22217 typedef int64_t int_least64_t;
22220 typedef uint8_t uint_least8_t;
22221 typedef uint16_t uint_least16_t;
22222 typedef uint32_t uint_least32_t;
22224 typedef uint64_t uint_least64_t;
22229 # ------------- done intptr types, emit int_fast types ------------
22230 if test "$ac_cv_type_int_fast32_t" != yes; then
22231 sed 's/^ *//' >> tmp-stdint.h <<EOF
22233 /* Define int_fast types. short is often slow */
22234 typedef int8_t int_fast8_t;
22235 typedef int int_fast16_t;
22236 typedef int32_t int_fast32_t;
22238 typedef int64_t int_fast64_t;
22241 typedef uint8_t uint_fast8_t;
22242 typedef unsigned int uint_fast16_t;
22243 typedef uint32_t uint_fast32_t;
22245 typedef uint64_t uint_fast64_t;
22250 if test "$ac_cv_type_uintmax_t" != yes; then
22251 sed 's/^ *//' >> tmp-stdint.h <<EOF
22253 /* Define intmax based on what we found */
22255 typedef int64_t intmax_t;
22257 typedef long intmax_t;
22260 typedef uint64_t uintmax_t;
22262 typedef unsigned long uintmax_t;
22267 sed 's/^ *//' >> tmp-stdint.h <<EOF
22269 #endif /* GCC_GENERATED_STDINT_H */
22272 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22275 mv -f tmp-stdint.h gstdint.h
22283 cat >>$CONFIG_STATUS <<\_ACEOF
22285 { (exit 0); exit 0; }
22287 chmod +x $CONFIG_STATUS
22288 ac_clean_files=$ac_clean_files_save
22291 # configure is writing to config.log, and then calls config.status.
22292 # config.status does its own redirection, appending to config.log.
22293 # Unfortunately, on DOS this fails, as config.log is still kept open
22294 # by configure, so config.status won't be able to write to it; its
22295 # output is simply discarded. So we exec the FD to /dev/null,
22296 # effectively closing config.log, so it can be properly (re)opened and
22297 # appended to by config.status. When coming back to configure, we
22298 # need to make the FD available again.
22299 if test "$no_create" != yes; then
22301 ac_config_status_args=
22302 test "$silent" = yes &&
22303 ac_config_status_args="$ac_config_status_args --quiet"
22305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22308 # would make configure fail if this is the last instruction.
22309 $ac_cs_success || { (exit 1); exit 1; }