2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjpeg-turbo 1.3.1.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME='libjpeg-turbo'
423 PACKAGE_TARNAME='libjpeg-turbo'
424 PACKAGE_VERSION='1.3.1'
425 PACKAGE_STRING='libjpeg-turbo 1.3.1'
428 ac_default_prefix=/opt/libjpeg-turbo
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CCAS CCASFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL JPEG_LIB_VERSION JPEG_LIB_VERSION_DECIMAL SO_MAJOR_VERSION SO_MINOR_VERSION LIBTOOL_CURRENT SO_AGE MEM_SRCDST_FUNCTIONS VERSION_SCRIPT_TRUE VERSION_SCRIPT_FALSE VERSION_SCRIPT_FLAG WITH_ARITH_ENC_TRUE WITH_ARITH_ENC_FALSE WITH_ARITH_DEC_TRUE WITH_ARITH_DEC_FALSE WITH_ARITH_TRUE WITH_ARITH_FALSE JAVAC JAVACFLAGS JAR JAVA JNI_CFLAGS WITH_JAVA_TRUE WITH_JAVA_FALSE WITH_JAVA JAVA_RPM_CONTENTS_1 JAVA_RPM_CONTENTS_2 NASM NAFLAGS WITH_SIMD_TRUE WITH_SIMD_FALSE WITH_SSE_FLOAT_DCT_TRUE WITH_SSE_FLOAT_DCT_FALSE SIMD_I386_TRUE SIMD_I386_FALSE SIMD_X86_64_TRUE SIMD_X86_64_FALSE SIMD_ARM_TRUE SIMD_ARM_FALSE X86_64_TRUE X86_64_FALSE WITH_TURBOJPEG_TRUE WITH_TURBOJPEG_FALSE PKGNAME RPMARCH RPM_CONFIG_ARGS DEBARCH BUILD LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CCAS_set=${CCAS+set}
928 ac_env_CCAS_value=$CCAS
929 ac_cv_env_CCAS_set=${CCAS+set}
930 ac_cv_env_CCAS_value=$CCAS
931 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
932 ac_env_CCASFLAGS_value=$CCASFLAGS
933 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
934 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
935 ac_env_CXX_set=${CXX+set}
936 ac_env_CXX_value=$CXX
937 ac_cv_env_CXX_set=${CXX+set}
938 ac_cv_env_CXX_value=$CXX
939 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_env_CXXFLAGS_value=$CXXFLAGS
941 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
942 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
943 ac_env_CXXCPP_set=${CXXCPP+set}
944 ac_env_CXXCPP_value=$CXXCPP
945 ac_cv_env_CXXCPP_set=${CXXCPP+set}
946 ac_cv_env_CXXCPP_value=$CXXCPP
947 ac_env_F77_set=${F77+set}
948 ac_env_F77_value=$F77
949 ac_cv_env_F77_set=${F77+set}
950 ac_cv_env_F77_value=$F77
951 ac_env_FFLAGS_set=${FFLAGS+set}
952 ac_env_FFLAGS_value=$FFLAGS
953 ac_cv_env_FFLAGS_set=${FFLAGS+set}
954 ac_cv_env_FFLAGS_value=$FFLAGS
955 ac_env_JPEG_LIB_VERSION_set=${JPEG_LIB_VERSION+set}
956 ac_env_JPEG_LIB_VERSION_value=$JPEG_LIB_VERSION
957 ac_cv_env_JPEG_LIB_VERSION_set=${JPEG_LIB_VERSION+set}
958 ac_cv_env_JPEG_LIB_VERSION_value=$JPEG_LIB_VERSION
959 ac_env_SO_MAJOR_VERSION_set=${SO_MAJOR_VERSION+set}
960 ac_env_SO_MAJOR_VERSION_value=$SO_MAJOR_VERSION
961 ac_cv_env_SO_MAJOR_VERSION_set=${SO_MAJOR_VERSION+set}
962 ac_cv_env_SO_MAJOR_VERSION_value=$SO_MAJOR_VERSION
963 ac_env_SO_MINOR_VERSION_set=${SO_MINOR_VERSION+set}
964 ac_env_SO_MINOR_VERSION_value=$SO_MINOR_VERSION
965 ac_cv_env_SO_MINOR_VERSION_set=${SO_MINOR_VERSION+set}
966 ac_cv_env_SO_MINOR_VERSION_value=$SO_MINOR_VERSION
967 ac_env_JAVAC_set=${JAVAC+set}
968 ac_env_JAVAC_value=$JAVAC
969 ac_cv_env_JAVAC_set=${JAVAC+set}
970 ac_cv_env_JAVAC_value=$JAVAC
971 ac_env_JAVACFLAGS_set=${JAVACFLAGS+set}
972 ac_env_JAVACFLAGS_value=$JAVACFLAGS
973 ac_cv_env_JAVACFLAGS_set=${JAVACFLAGS+set}
974 ac_cv_env_JAVACFLAGS_value=$JAVACFLAGS
975 ac_env_JAR_set=${JAR+set}
976 ac_env_JAR_value=$JAR
977 ac_cv_env_JAR_set=${JAR+set}
978 ac_cv_env_JAR_value=$JAR
979 ac_env_JAVA_set=${JAVA+set}
980 ac_env_JAVA_value=$JAVA
981 ac_cv_env_JAVA_set=${JAVA+set}
982 ac_cv_env_JAVA_value=$JAVA
983 ac_env_JNI_CFLAGS_set=${JNI_CFLAGS+set}
984 ac_env_JNI_CFLAGS_value=$JNI_CFLAGS
985 ac_cv_env_JNI_CFLAGS_set=${JNI_CFLAGS+set}
986 ac_cv_env_JNI_CFLAGS_value=$JNI_CFLAGS
987 ac_env_PKGNAME_set=${PKGNAME+set}
988 ac_env_PKGNAME_value=$PKGNAME
989 ac_cv_env_PKGNAME_set=${PKGNAME+set}
990 ac_cv_env_PKGNAME_value=$PKGNAME
993 # Report the --help message.
995 if test "$ac_init_help" = "long"; then
996 # Omit some internal or obsolete options to make the list less imposing.
997 # This message is too long to be a string in the A/UX 3.1 sh.
999 \`configure' configures libjpeg-turbo 1.3.1 to adapt to many kinds of systems.
1001 Usage: $0 [OPTION]... [VAR=VALUE]...
1003 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1004 VAR=VALUE. See below for descriptions of some of the useful variables.
1006 Defaults for the options are specified in brackets.
1009 -h, --help display this help and exit
1010 --help=short display options specific to this package
1011 --help=recursive display the short help of all the included packages
1012 -V, --version display version information and exit
1013 -q, --quiet, --silent do not print \`checking...' messages
1014 --cache-file=FILE cache test results in FILE [disabled]
1015 -C, --config-cache alias for \`--cache-file=config.cache'
1016 -n, --no-create do not create output files
1017 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1022 Installation directories:
1023 --prefix=PREFIX install architecture-independent files in PREFIX
1024 [$ac_default_prefix]
1025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1028 By default, \`make install' will install all the files in
1029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1031 for instance \`--prefix=\$HOME'.
1033 For better control, use the options below.
1035 Fine tuning of the installation directories:
1036 --bindir=DIR user executables [EPREFIX/bin]
1037 --sbindir=DIR system admin executables [EPREFIX/sbin]
1038 --libexecdir=DIR program executables [EPREFIX/libexec]
1039 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1040 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1041 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1042 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1043 --libdir=DIR object code libraries [EPREFIX/lib]
1044 --includedir=DIR C header files [PREFIX/include]
1045 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1046 --infodir=DIR info documentation [PREFIX/info]
1047 --mandir=DIR man documentation [PREFIX/man]
1053 --program-prefix=PREFIX prepend PREFIX to installed program names
1054 --program-suffix=SUFFIX append SUFFIX to installed program names
1055 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1058 --build=BUILD configure for building on BUILD [guessed]
1059 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1063 if test -n "$ac_init_help"; then
1064 case $ac_init_help in
1065 short | recursive ) echo "Configuration of libjpeg-turbo 1.3.1:";;
1070 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1071 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1072 --disable-dependency-tracking speeds up one-time build
1073 --enable-dependency-tracking do not reject slow dependency extractors
1074 --enable-shared[=PKGS]
1075 build shared libraries [default=yes]
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-fast-install[=PKGS]
1079 optimize for fast installation [default=yes]
1080 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --disable-ld-version-script
1082 Disable linker version script for libjpeg-turbo
1083 (default is to use linker version script if the
1087 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1088 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1089 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1090 --with-pic try to use only PIC/non-PIC objects [default=use
1093 include additional configurations [automatic]
1094 --with-jpeg7 Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo
1095 backward incompatible with libjpeg v6b.)
1096 --with-jpeg8 Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo
1097 backward incompatible with libjpeg v6b.)
1098 --without-mem-srcdst Do not include in-memory source/destination manager
1099 functions when emulating the libjpeg v6b or v7
1101 --without-arith-enc Do not include arithmetic encoding support
1102 --without-arith-dec Do not include arithmetic decoding support
1103 --without-turbojpeg Do not include the TurboJPEG wrapper library and
1104 associated test programs
1105 --with-java Build Java wrapper for the TurboJPEG library
1106 --with-gas-preprocessor Force using gas-preprocessor.pl on ARM.
1107 --without-simd Do not include SIMD extensions
1109 Some influential environment variables:
1110 CC C compiler command
1111 CFLAGS C compiler flags
1112 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1113 nonstandard directory <lib dir>
1114 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1115 headers in a nonstandard directory <include dir>
1117 CCAS assembler compiler command (defaults to CC)
1118 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1119 CXX C++ compiler command
1120 CXXFLAGS C++ compiler flags
1121 CXXCPP C++ preprocessor
1122 F77 Fortran 77 compiler command
1123 FFLAGS Fortran 77 compiler flags
1125 libjpeg API version (62, 70, or 80)
1127 Major version of the libjpeg-turbo shared library (default is
1128 determined by the API version)
1130 Minor version of the libjpeg-turbo shared library (default is
1131 determined by the API version)
1132 JAVAC Java compiler command (default: javac)
1133 JAVACFLAGS Java compiler flags
1134 JAR Java archive command (default: jar)
1135 JAVA Java runtime command (default: java)
1136 JNI_CFLAGS C compiler flags needed to include jni.h (default:
1137 -I/System/Library/Frameworks/JavaVM.framework/Headers on OS X,
1138 '-I/usr/java/include -I/usr/java/include/solaris' on Solaris,
1139 and '-I/usr/java/default/include
1140 -I/usr/java/default/include/linux' on Linux)
1141 PKGNAME distribution package name (default: libjpeg-turbo)
1143 Use these variables to override the choices made by `configure' or to help
1144 it to find libraries and programs with nonstandard names/locations.
1149 if test "$ac_init_help" = "recursive"; then
1150 # If there are subdirs, report their specific --help.
1152 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1153 test -d $ac_dir || continue
1156 if test "$ac_dir" != .; then
1157 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1158 # A "../" for each directory in $ac_dir_suffix.
1159 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1161 ac_dir_suffix= ac_top_builddir=
1165 .) # No --srcdir option. We are building in place.
1167 if test -z "$ac_top_builddir"; then
1170 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1172 [\\/]* | ?:[\\/]* ) # Absolute path.
1173 ac_srcdir=$srcdir$ac_dir_suffix;
1174 ac_top_srcdir=$srcdir ;;
1176 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1177 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1180 # Do not use `cd foo && pwd` to compute absolute paths, because
1181 # the directories may not exist.
1183 .) ac_abs_builddir="$ac_dir";;
1186 .) ac_abs_builddir=`pwd`;;
1187 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1188 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1191 case $ac_abs_builddir in
1192 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1194 case ${ac_top_builddir}. in
1195 .) ac_abs_top_builddir=$ac_abs_builddir;;
1196 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1197 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1200 case $ac_abs_builddir in
1201 .) ac_abs_srcdir=$ac_srcdir;;
1204 .) ac_abs_srcdir=$ac_abs_builddir;;
1205 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1206 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1209 case $ac_abs_builddir in
1210 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1212 case $ac_top_srcdir in
1213 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1214 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1215 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1220 # Check for guested configure; otherwise get Cygnus style configure.
1221 if test -f $ac_srcdir/configure.gnu; then
1223 $SHELL $ac_srcdir/configure.gnu --help=recursive
1224 elif test -f $ac_srcdir/configure; then
1226 $SHELL $ac_srcdir/configure --help=recursive
1227 elif test -f $ac_srcdir/configure.ac ||
1228 test -f $ac_srcdir/configure.in; then
1230 $ac_configure --help
1232 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1238 test -n "$ac_init_help" && exit 0
1239 if $ac_init_version; then
1241 libjpeg-turbo configure 1.3.1
1242 generated by GNU Autoconf 2.59
1244 Copyright (C) 2003 Free Software Foundation, Inc.
1245 This configure script is free software; the Free Software Foundation
1246 gives unlimited permission to copy, distribute and modify it.
1252 This file contains any messages produced by compilers while
1253 running configure, to aid debugging if configure makes a mistake.
1255 It was created by libjpeg-turbo $as_me 1.3.1, which was
1256 generated by GNU Autoconf 2.59. Invocation command line was
1267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1276 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1277 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1280 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1281 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1282 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1290 test -z "$as_dir" && as_dir=.
1291 echo "PATH: $as_dir"
1306 # Keep a trace of the command line.
1307 # Strip out --no-create and --no-recursion so they do not pile up.
1308 # Strip out --silent because we don't want to record it for future runs.
1309 # Also quote any args containing shell meta-characters.
1310 # Make two passes to allow for proper duplicate-argument suppression.
1315 ac_must_keep_next=false
1321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323 | -silent | --silent | --silen | --sile | --sil)
1325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1329 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1331 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332 if test $ac_must_keep_next = true; then
1333 ac_must_keep_next=false # Got value, back to normal.
1336 *=* | --config-cache | -C | -disable-* | --disable-* \
1337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339 | -with-* | --with-* | -without-* | --without-* | --x)
1340 case "$ac_configure_args0 " in
1341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1344 -* ) ac_must_keep_next=true ;;
1347 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348 # Get rid of the leading space.
1354 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1357 # When interrupted or exit'd, cleanup temporary files, and complete
1358 # config.log. We remove comments because anyway the quotes in there
1359 # would cause problems or look ugly.
1360 # WARNING: Be sure not to use single quotes in there, as some shells,
1361 # such as our DU 5.0 friend, will then `close' the trap.
1362 trap 'exit_status=$?
1363 # Save into config.log some information that might help in debugging.
1368 ## ---------------- ##
1369 ## Cache variables. ##
1370 ## ---------------- ##
1373 # The following way of writing the cache mishandles newlines in values,
1376 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1379 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1384 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1391 ## ----------------- ##
1392 ## Output variables. ##
1393 ## ----------------- ##
1396 for ac_var in $ac_subst_vars
1398 eval ac_val=$`echo $ac_var`
1399 echo "$ac_var='"'"'$ac_val'"'"'"
1403 if test -n "$ac_subst_files"; then
1410 for ac_var in $ac_subst_files
1412 eval ac_val=$`echo $ac_var`
1413 echo "$ac_var='"'"'$ac_val'"'"'"
1418 if test -s confdefs.h; then
1425 sed "/^$/d" confdefs.h | sort
1428 test "$ac_signal" != 0 &&
1429 echo "$as_me: caught signal $ac_signal"
1430 echo "$as_me: exit $exit_status"
1432 rm -f core *.core &&
1433 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1436 for ac_signal in 1 2 13 15; do
1437 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1442 rm -rf conftest* confdefs.h
1443 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1446 # Predefined preprocessor variables.
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_NAME "$PACKAGE_NAME"
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_STRING "$PACKAGE_STRING"
1468 cat >>confdefs.h <<_ACEOF
1469 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1473 # Let the site file select an alternate cache file if it wants to.
1474 # Prefer explicitly selected file to automatically selected ones.
1475 if test -z "$CONFIG_SITE"; then
1476 if test "x$prefix" != xNONE; then
1477 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1479 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1482 for ac_site_file in $CONFIG_SITE; do
1483 if test -r "$ac_site_file"; then
1484 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485 echo "$as_me: loading site script $ac_site_file" >&6;}
1486 sed 's/^/| /' "$ac_site_file" >&5
1491 if test -r "$cache_file"; then
1492 # Some versions of bash will fail to source /dev/null (special
1493 # files actually), so we avoid doing that.
1494 if test -f "$cache_file"; then
1495 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496 echo "$as_me: loading cache $cache_file" >&6;}
1498 [\\/]* | ?:[\\/]* ) . $cache_file;;
1499 *) . ./$cache_file;;
1503 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504 echo "$as_me: creating cache $cache_file" >&6;}
1508 # Check that the precious variables saved in the cache have kept the same
1510 ac_cache_corrupted=false
1511 for ac_var in `(set) 2>&1 |
1512 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514 eval ac_new_set=\$ac_env_${ac_var}_set
1515 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516 eval ac_new_val="\$ac_env_${ac_var}_value"
1517 case $ac_old_set,$ac_new_set in
1519 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521 ac_cache_corrupted=: ;;
1523 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525 ac_cache_corrupted=: ;;
1528 if test "x$ac_old_val" != "x$ac_new_val"; then
1529 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1532 echo "$as_me: former value: $ac_old_val" >&2;}
1533 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1534 echo "$as_me: current value: $ac_new_val" >&2;}
1535 ac_cache_corrupted=:
1538 # Pass precious variables to config.status.
1539 if test "$ac_new_set" = set; then
1541 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 *) ac_arg=$ac_var=$ac_new_val ;;
1545 case " $ac_configure_args " in
1546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1547 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1551 if $ac_cache_corrupted; then
1552 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556 { (exit 1); exit 1; }; }
1560 ac_cpp='$CPP $CPPFLAGS'
1561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1591 BUILD=`date +%Y%m%d`
1593 am__api_version="1.9"
1595 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1596 if test -f $ac_dir/install-sh; then
1598 ac_install_sh="$ac_aux_dir/install-sh -c"
1600 elif test -f $ac_dir/install.sh; then
1602 ac_install_sh="$ac_aux_dir/install.sh -c"
1604 elif test -f $ac_dir/shtool; then
1606 ac_install_sh="$ac_aux_dir/shtool install -c"
1610 if test -z "$ac_aux_dir"; then
1611 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1612 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1613 { (exit 1); exit 1; }; }
1615 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1616 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1617 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619 # Find a good install program. We prefer a C program (faster),
1620 # so one script is as good as another. But avoid the broken or
1621 # incompatible versions:
1622 # SysV /etc/install, /usr/sbin/install
1623 # SunOS /usr/etc/install
1624 # IRIX /sbin/install
1626 # AmigaOS /C/install, which installs bootblocks on floppy discs
1627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1630 # OS/2's system install, which has a completely different semantic
1631 # ./install, which can be erroneously created by make from ./install.sh.
1632 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1633 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1634 if test -z "$INSTALL"; then
1635 if test "${ac_cv_path_install+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 # Account for people who put trailing slashes in PATH elements.
1645 ./ | .// | /cC/* | \
1646 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1647 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1650 # OSF1 and SCO ODT 3.0 have their own names for install.
1651 # Don't use installbsd from OSF since it installs stuff as root
1653 for ac_prog in ginstall scoinst install; do
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1656 if test $ac_prog = install &&
1657 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658 # AIX install. It has an incompatible calling convention.
1660 elif test $ac_prog = install &&
1661 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1662 # program-specific install script used by HP pwplus--don't use.
1665 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1677 if test "${ac_cv_path_install+set}" = set; then
1678 INSTALL=$ac_cv_path_install
1680 # As a last resort, use the slow shell script. We don't cache a
1681 # path for INSTALL within a source directory, because that will
1682 # break other packages using the cache if that directory is
1683 # removed, or if the path is relative.
1684 INSTALL=$ac_install_sh
1687 echo "$as_me:$LINENO: result: $INSTALL" >&5
1688 echo "${ECHO_T}$INSTALL" >&6
1690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1691 # It thinks the first close brace ends the variable substitution.
1692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1698 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1699 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1702 echo timestamp > conftest.file
1703 # Do `set' in a subshell so we don't clobber the current shell's
1704 # arguments. Must try -L first in case configure is actually a
1705 # symlink; some systems play weird games with the mod time of symlinks
1706 # (eg FreeBSD returns the mod time of the symlink's containing
1709 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1710 if test "$*" = "X"; then
1712 set X `ls -t $srcdir/configure conftest.file`
1715 if test "$*" != "X $srcdir/configure conftest.file" \
1716 && test "$*" != "X conftest.file $srcdir/configure"; then
1718 # If neither matched, then we have a broken ls. This can happen
1719 # if, for instance, CONFIG_SHELL is bash and it inherits a
1720 # broken ls alias from the environment. This has actually
1721 # happened. Such a system could not be considered "sane".
1722 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1723 alias in your environment" >&5
1724 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1725 alias in your environment" >&2;}
1726 { (exit 1); exit 1; }; }
1729 test "$2" = conftest.file
1735 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1736 Check your system clock" >&5
1737 echo "$as_me: error: newly created file is older than distributed files!
1738 Check your system clock" >&2;}
1739 { (exit 1); exit 1; }; }
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1743 test "$program_prefix" != NONE &&
1744 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1745 # Use a double $ so make ignores it.
1746 test "$program_suffix" != NONE &&
1747 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1748 # Double any \ or $. echo might interpret backslashes.
1749 # By default was `s,x,x', remove it if useless.
1750 cat <<\_ACEOF >conftest.sed
1751 s/[\\$]/&&/g;s/;s,x,x,$//
1753 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1756 # expand $ac_aux_dir to an absolute path
1757 am_aux_dir=`cd $ac_aux_dir && pwd`
1759 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1760 # Use eval to expand $SHELL
1761 if eval "$MISSING --run true"; then
1762 am_missing_run="$MISSING --run "
1765 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1766 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1769 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1770 # We used to keeping the `.' as first argument, in order to
1771 # allow $(mkdir_p) to be used without argument. As in
1772 # $(mkdir_p) $(somedir)
1773 # where $(somedir) is conditionally defined. However this is wrong
1775 # 1. if the package is installed by a user who cannot write `.'
1776 # make install will fail,
1777 # 2. the above comment should most certainly read
1778 # $(mkdir_p) $(DESTDIR)$(somedir)
1779 # so it does not work when $(somedir) is undefined and
1780 # $(DESTDIR) is not.
1781 # To support the latter case, we have to write
1782 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1783 # so the `.' trick is pointless.
1784 mkdir_p='mkdir -p --'
1786 # On NextStep and OpenStep, the `mkdir' command does not
1787 # recognize any option. It will interpret all options as
1788 # directories to create, and then abort because `.' already
1790 for d in ./-p ./--version;
1792 test -d $d && rmdir $d
1794 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1795 if test -f "$ac_aux_dir/mkinstalldirs"; then
1796 mkdir_p='$(mkinstalldirs)'
1798 mkdir_p='$(install_sh) -d'
1802 for ac_prog in gawk mawk nawk awk
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_AWK+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 if test -n "$AWK"; then
1812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_AWK="$ac_prog"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 if test -n "$AWK"; then
1832 echo "$as_me:$LINENO: result: $AWK" >&5
1833 echo "${ECHO_T}$AWK" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1839 test -n "$AWK" && break
1842 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1843 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1845 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 cat >conftest.make <<\_ACEOF
1850 @echo 'ac_maketemp="$(MAKE)"'
1852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1853 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1854 if test -n "$ac_maketemp"; then
1855 eval ac_cv_prog_make_${ac_make}_set=yes
1857 eval ac_cv_prog_make_${ac_make}_set=no
1861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 SET_MAKE="MAKE=${MAKE-make}"
1871 rm -rf .tst 2>/dev/null
1872 mkdir .tst 2>/dev/null
1873 if test -d .tst; then
1878 rmdir .tst 2>/dev/null
1880 # test to see if srcdir already configured
1881 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1882 test -f $srcdir/config.status; then
1883 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1884 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1885 { (exit 1); exit 1; }; }
1888 # test whether we have cygpath
1889 if test -z "$CYGPATH_W"; then
1890 if (cygpath --version) >/dev/null 2>/dev/null; then
1891 CYGPATH_W='cygpath -w'
1898 # Define the identity of the package.
1899 PACKAGE='libjpeg-turbo'
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE "$PACKAGE"
1908 cat >>confdefs.h <<_ACEOF
1909 #define VERSION "$VERSION"
1912 # Some tools Automake needs.
1914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1928 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1930 # Installed binaries are usually stripped using `strip' when the user
1931 # run `make install-strip'. However `strip' might not be the right
1932 # tool to use in cross-compilation environments, therefore Automake
1933 # will honor the `STRIP' environment variable to overrule this program.
1934 if test "$cross_compiling" != no; then
1935 if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_STRIP+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$STRIP"; then
1944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 STRIP=$ac_cv_prog_STRIP
1963 if test -n "$STRIP"; then
1964 echo "$as_me:$LINENO: result: $STRIP" >&5
1965 echo "${ECHO_T}$STRIP" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1972 if test -z "$ac_cv_prog_STRIP"; then
1974 # Extract the first word of "strip", so it can be a program name with args.
1975 set dummy strip; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$ac_ct_STRIP"; then
1982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_ac_ct_STRIP="strip"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2002 if test -n "$ac_ct_STRIP"; then
2003 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2004 echo "${ECHO_T}$ac_ct_STRIP" >&6
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2012 STRIP="$ac_cv_prog_STRIP"
2016 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2018 # We need awk for the "check" target. The system "awk" is bad on
2020 # Always define AMTAR for backward compatibility.
2022 AMTAR=${AMTAR-"${am_missing_run}tar"}
2024 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2032 # Always build with prototypes
2034 cat >>confdefs.h <<\_ACEOF
2035 #define HAVE_PROTOTYPES 1
2041 # Checks for programs.
2042 SAVED_CFLAGS=${CFLAGS}
2043 SAVED_CPPFLAGS=${CPPFLAGS}
2044 DEPDIR="${am__leading_dot}deps"
2046 ac_config_commands="$ac_config_commands depfiles"
2049 am_make=${MAKE-make}
2050 cat > confinc << 'END'
2055 # If we don't find an include directive, just comment out the code.
2056 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2057 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2061 # First try GNU make style include.
2062 echo "include confinc" > confmf
2063 # We grep out `Entering directory' and `Leaving directory'
2064 # messages which can occur if `w' ends up in MAKEFLAGS.
2065 # In particular we don't look at `^make:' because GNU make might
2066 # be invoked under some other name (usually "gmake"), in which
2067 # case it prints its new name instead of `make'.
2068 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2073 # Now try BSD make style include.
2074 if test "$am__include" = "#"; then
2075 echo '.include "confinc"' > confmf
2076 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2077 am__include=.include
2084 echo "$as_me:$LINENO: result: $_am_result" >&5
2085 echo "${ECHO_T}$_am_result" >&6
2086 rm -f confinc confmf
2088 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2089 if test "${enable_dependency_tracking+set}" = set; then
2090 enableval="$enable_dependency_tracking"
2093 if test "x$enable_dependency_tracking" != xno; then
2094 am_depcomp="$ac_aux_dir/depcomp"
2099 if test "x$enable_dependency_tracking" != xno; then
2110 ac_cpp='$CPP $CPPFLAGS'
2111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114 if test -n "$ac_tool_prefix"; then
2115 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC="$CC" # Let the user override the test.
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 if test -n "$CC"; then
2143 echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2151 if test -z "$ac_cv_prog_CC"; then
2153 # Extract the first word of "gcc", so it can be a program name with args.
2154 set dummy gcc; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_ac_ct_CC="gcc"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180 if test -n "$ac_ct_CC"; then
2181 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182 echo "${ECHO_T}$ac_ct_CC" >&6
2184 echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2193 if test -z "$CC"; then
2194 if test -n "$ac_tool_prefix"; then
2195 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2196 set dummy ${ac_tool_prefix}cc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 if test -n "$CC"; then
2203 ac_cv_prog_CC="$CC" # Let the user override the test.
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212 ac_cv_prog_CC="${ac_tool_prefix}cc"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 if test -n "$CC"; then
2223 echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6
2226 echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2231 if test -z "$ac_cv_prog_CC"; then
2233 # Extract the first word of "cc", so it can be a program name with args.
2234 set dummy cc; ac_word=$2
2235 echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 if test -n "$ac_ct_CC"; then
2241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250 ac_cv_prog_ac_ct_CC="cc"
2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2260 if test -n "$ac_ct_CC"; then
2261 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2262 echo "${ECHO_T}$ac_ct_CC" >&6
2264 echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2274 if test -z "$CC"; then
2275 # Extract the first word of "cc", so it can be a program name with args.
2276 set dummy cc; ac_word=$2
2277 echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294 ac_prog_rejected=yes
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 if test $ac_prog_rejected = yes; then
2305 # We found a bogon in the path, so make sure we never use it.
2306 set dummy $ac_cv_prog_CC
2308 if test $# != 0; then
2309 # We chose a different compiler from the bogus one.
2310 # However, it has the same basename, so the bogon will be chosen
2311 # first if we set CC to just the basename; use the full file name.
2313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2319 if test -n "$CC"; then
2320 echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2328 if test -z "$CC"; then
2329 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 if test -n "$CC"; then
2360 echo "$as_me:$LINENO: result: $CC" >&5
2361 echo "${ECHO_T}$CC" >&6
2363 echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2367 test -n "$CC" && break
2370 if test -z "$CC"; then
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375 set dummy $ac_prog; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 if test -n "$ac_ct_CC"; then
2382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_ac_ct_CC="$ac_prog"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403 echo "${ECHO_T}$ac_ct_CC" >&6
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2409 test -n "$ac_ct_CC" && break
2418 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2419 See \`config.log' for more details." >&5
2420 echo "$as_me: error: no acceptable C compiler found in \$PATH
2421 See \`config.log' for more details." >&2;}
2422 { (exit 1); exit 1; }; }
2424 # Provide some information about the compiler.
2425 echo "$as_me:$LINENO:" \
2426 "checking for C compiler version" >&5
2427 ac_compiler=`set X $ac_compile; echo $2`
2428 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2429 (eval $ac_compiler --version </dev/null >&5) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2434 (eval $ac_compiler -v </dev/null >&5) 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2439 (eval $ac_compiler -V </dev/null >&5) 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }
2444 cat >conftest.$ac_ext <<_ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2459 ac_clean_files_save=$ac_clean_files
2460 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2461 # Try to create an executable without -o first, disregard a.out.
2462 # It will help us diagnose broken compilers, and finding out an intuition
2464 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2465 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2466 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2468 (eval $ac_link_default) 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 # Find the output, starting from the most likely. This scheme is
2473 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2476 # Be careful to initialize this variable, since it used to be cached.
2477 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2479 # b.out is created by i960 compilers.
2480 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2482 test -f "$ac_file" || continue
2484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2487 # This is the source file.
2490 # We found the default executable, but exeext='' is most
2494 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2495 # FIXME: I believe we export ac_cv_exeext for Libtool,
2496 # but it would be cool to find out if it's true. Does anybody
2497 # maintain Libtool? --akim.
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: C compiler cannot create executables
2511 See \`config.log' for more details." >&2;}
2512 { (exit 77); exit 77; }; }
2515 ac_exeext=$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_file" >&5
2517 echo "${ECHO_T}$ac_file" >&6
2519 # Check the compiler produces executables we can run. If not, either
2520 # the compiler is broken, or we cross compile.
2521 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2522 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2523 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2524 # If not cross compiling, check that we can run a simple program.
2525 if test "$cross_compiling" != yes; then
2526 if { ac_try='./$ac_file'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2534 if test "$cross_compiling" = maybe; then
2537 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2538 If you meant to cross compile, use \`--host'.
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot run C compiled programs.
2541 If you meant to cross compile, use \`--host'.
2542 See \`config.log' for more details." >&2;}
2543 { (exit 1); exit 1; }; }
2547 echo "$as_me:$LINENO: result: yes" >&5
2548 echo "${ECHO_T}yes" >&6
2550 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2551 ac_clean_files=$ac_clean_files_save
2552 # Check the compiler produces executables we can run. If not, either
2553 # the compiler is broken, or we cross compile.
2554 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2555 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2556 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2557 echo "${ECHO_T}$cross_compiling" >&6
2559 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2560 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2562 (eval $ac_link) 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; then
2566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2568 # work properly (i.e., refer to `conftest.exe'), while it won't with
2570 for ac_file in conftest.exe conftest conftest.*; do
2571 test -f "$ac_file" || continue
2573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2574 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2588 rm -f conftest$ac_cv_exeext
2589 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2590 echo "${ECHO_T}$ac_cv_exeext" >&6
2592 rm -f conftest.$ac_ext
2593 EXEEXT=$ac_cv_exeext
2595 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2597 if test "${ac_cv_objext+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.o conftest.obj
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; then
2621 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2632 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2633 See \`config.log' for more details." >&5
2634 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2635 See \`config.log' for more details." >&2;}
2636 { (exit 1); exit 1; }; }
2639 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2641 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2642 echo "${ECHO_T}$ac_cv_objext" >&6
2643 OBJEXT=$ac_cv_objext
2645 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2646 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2647 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2668 rm -f conftest.$ac_objext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670 (eval $ac_compile) 2>conftest.er1
2672 grep -v '^ *+' conftest.er1 >conftest.err
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest.$ac_objext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2701 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2702 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2703 GCC=`test $ac_compiler_gnu = yes && echo yes`
2704 ac_test_CFLAGS=${CFLAGS+set}
2705 ac_save_CFLAGS=$CFLAGS
2707 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2708 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2709 if test "${ac_cv_prog_cc_g+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.$ac_ext <<_ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2760 if test "$ac_test_CFLAGS" = set; then
2761 CFLAGS=$ac_save_CFLAGS
2762 elif test $ac_cv_prog_cc_g = yes; then
2763 if test "$GCC" = yes; then
2769 if test "$GCC" = yes; then
2775 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2776 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2777 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 ac_cv_prog_cc_stdc=no
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2790 #include <sys/types.h>
2791 #include <sys/stat.h>
2792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2793 struct buf { int x; };
2794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2795 static char *e (p, i)
2801 static char *f (char * (*g) (char **, int), char **p, ...)
2806 s = g (p, va_arg (v,int));
2811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2812 function prototypes and stuff, but not '\xHH' hex character constants.
2813 These don't provoke an error unfortunately, instead are silently treated
2814 as 'x'. The following induces an error, until -std1 is added to get
2815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2816 array size at least. It's necessary to write '\x00'==0 to get something
2817 that's true only with -std1. */
2818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2820 int test (int i, double x);
2821 struct s1 {int (*f) (int a);};
2822 struct s2 {int (*f) (double a);};
2823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2829 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2834 # Don't try gcc -ansi; that turns off useful extensions and
2835 # breaks some systems' header files.
2836 # AIX -qlanglvl=ansi
2837 # Ultrix and OSF/1 -std1
2838 # HP-UX 10.20 and later -Ae
2839 # HP-UX older versions -Aa -D_HPUX_SOURCE
2840 # SVR4 -Xc -D__EXTENSIONS__
2841 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2843 CC="$ac_save_CC $ac_arg"
2844 rm -f conftest.$ac_objext
2845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846 (eval $ac_compile) 2>conftest.er1
2848 grep -v '^ *+' conftest.er1 >conftest.err
2850 cat conftest.err >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 { ac_try='test -z "$ac_c_werror_flag"
2854 || test ! -s conftest.err'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 ac_cv_prog_cc_stdc=$ac_arg
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2873 rm -f conftest.err conftest.$ac_objext
2875 rm -f conftest.$ac_ext conftest.$ac_objext
2880 case "x$ac_cv_prog_cc_stdc" in
2882 echo "$as_me:$LINENO: result: none needed" >&5
2883 echo "${ECHO_T}none needed" >&6 ;;
2885 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2886 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2887 CC="$CC $ac_cv_prog_cc_stdc" ;;
2890 # Some people use a C++ compiler to compile C. Since we use `exit',
2891 # in C++ we need to declare it. In case someone uses the same compiler
2892 # for both compiling C and C++ we need to have the C++ compiler decide
2893 # the declaration of exit, since it's the most demanding environment.
2894 cat >conftest.$ac_ext <<_ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901 (eval $ac_compile) 2>conftest.er1
2903 grep -v '^ *+' conftest.er1 >conftest.err
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -z "$ac_c_werror_flag"
2909 || test ! -s conftest.err'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 for ac_declaration in \
2923 'extern "C" void std::exit (int) throw (); using std::exit;' \
2924 'extern "C" void std::exit (int); using std::exit;' \
2925 'extern "C" void exit (int) throw ();' \
2926 'extern "C" void exit (int);' \
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2945 rm -f conftest.$ac_objext
2946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2947 (eval $ac_compile) 2>conftest.er1
2949 grep -v '^ *+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -z "$ac_c_werror_flag"
2955 || test ! -s conftest.err'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2990 rm -f conftest.$ac_objext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2992 (eval $ac_compile) 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try='test -z "$ac_c_werror_flag"
3000 || test ! -s conftest.err'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021 if test -n "$ac_declaration"; then
3022 echo '#ifdef __cplusplus' >>confdefs.h
3023 echo $ac_declaration >>confdefs.h
3024 echo '#endif' >>confdefs.h
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 depcc="$CC" am_compiler_list=
3041 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3042 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3043 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3047 # We make a subdir and do the tests there. Otherwise we can end up
3048 # making bogus files that we don't know about and never remove. For
3049 # instance it was reported that on HP-UX the gcc test will end up
3050 # making a dummy file named `D' -- because `-MD' means `put the output
3053 # Copy depcomp to subdir because otherwise we won't find it if we're
3054 # using a relative directory.
3055 cp "$am_depcomp" conftest.dir
3057 # We will build objects and dependencies in a subdirectory because
3058 # it helps to detect inapplicable dependency modes. For instance
3059 # both Tru64's cc and ICC support -MD to output dependencies as a
3060 # side effect of compilation, but ICC will put the dependencies in
3061 # the current directory while Tru64 will put them in the object
3065 am_cv_CC_dependencies_compiler_type=none
3066 if test "$am_compiler_list" = ""; then
3067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3069 for depmode in $am_compiler_list; do
3070 # Setup a source with many dependencies, because some compilers
3071 # like to wrap large dependency lists on column 80 (with \), and
3072 # we should not choose a depcomp mode which is confused by this.
3074 # We need to recreate these files for each test, as the compiler may
3075 # overwrite some of them when testing with obscure command lines.
3076 # This happens at least with the AIX C compiler.
3078 for i in 1 2 3 4 5 6; do
3079 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3080 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3081 # Solaris 8's {/usr,}/bin/sh.
3082 touch sub/conftst$i.h
3084 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3088 # after this tag, mechanisms are not by side-effect, so they'll
3089 # only be used when explicitly requested
3090 if test "x$enable_dependency_tracking" = xyes; then
3098 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3099 # mode. It turns out that the SunPro C++ compiler does not properly
3100 # handle `-M -o', and we need to detect this.
3101 if depmode=$depmode \
3102 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3104 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3105 >/dev/null 2>conftest.err &&
3106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3107 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3109 # icc doesn't choke on unknown options, it will just issue warnings
3110 # or remarks (even with -Werror). So we grep stderr for any message
3111 # that says an option was ignored or not supported.
3112 # When given -MP, icc 7.0 and 7.1 complain thusly:
3113 # icc: Command line warning: ignoring option '-M'; no argument required
3114 # The diagnosis changed in icc 8.0:
3115 # icc: Command line remark: option '-MP' not supported
3116 if (grep 'ignoring option' conftest.err ||
3117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3118 am_cv_CC_dependencies_compiler_type=$depmode
3127 am_cv_CC_dependencies_compiler_type=none
3131 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3132 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3133 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3138 test "x$enable_dependency_tracking" != xno \
3139 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3141 am__fastdepCC_FALSE='#'
3143 am__fastdepCC_TRUE='#'
3144 am__fastdepCC_FALSE=
3149 ac_cpp='$CPP $CPPFLAGS'
3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3154 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3155 # On Suns, sometimes $CPP names a directory.
3156 if test -n "$CPP" && test -d "$CPP"; then
3159 if test -z "$CPP"; then
3160 if test "${ac_cv_prog_CPP+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 # Double quotes because CPP needs to be expanded
3164 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3167 for ac_c_preproc_warn_flag in '' yes
3169 # Use a header file that comes with gcc, so configuring glibc
3170 # with a fresh cross-compiler works.
3171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3172 # <limits.h> exists even on freestanding compilers.
3173 # On the NeXT, cc -E runs the code through the compiler's parser,
3174 # not just through cpp. "Syntax error" is here to catch this case.
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3182 # include <limits.h>
3184 # include <assert.h>
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev/null; then
3196 if test -s conftest.err; then
3197 ac_cpp_err=$ac_c_preproc_warn_flag
3198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205 if test -z "$ac_cpp_err"; then
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 # Broken: fails on valid input.
3214 rm -f conftest.err conftest.$ac_ext
3216 # OK, works on sane cases. Now check whether non-existent headers
3217 # can be detected and how.
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 #include <ac_nonexistent.h>
3226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } >/dev/null; then
3234 if test -s conftest.err; then
3235 ac_cpp_err=$ac_c_preproc_warn_flag
3236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 if test -z "$ac_cpp_err"; then
3244 # Broken: success on invalid input.
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3250 # Passes both tests.
3254 rm -f conftest.err conftest.$ac_ext
3257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3258 rm -f conftest.err conftest.$ac_ext
3259 if $ac_preproc_ok; then
3271 echo "$as_me:$LINENO: result: $CPP" >&5
3272 echo "${ECHO_T}$CPP" >&6
3274 for ac_c_preproc_warn_flag in '' yes
3276 # Use a header file that comes with gcc, so configuring glibc
3277 # with a fresh cross-compiler works.
3278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3279 # <limits.h> exists even on freestanding compilers.
3280 # On the NeXT, cc -E runs the code through the compiler's parser,
3281 # not just through cpp. "Syntax error" is here to catch this case.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3289 # include <limits.h>
3291 # include <assert.h>
3295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 # Broken: fails on valid input.
3321 rm -f conftest.err conftest.$ac_ext
3323 # OK, works on sane cases. Now check whether non-existent headers
3324 # can be detected and how.
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #include <ac_nonexistent.h>
3333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null; then
3341 if test -s conftest.err; then
3342 ac_cpp_err=$ac_c_preproc_warn_flag
3343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3350 if test -z "$ac_cpp_err"; then
3351 # Broken: success on invalid input.
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 # Passes both tests.
3361 rm -f conftest.err conftest.$ac_ext
3364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3365 rm -f conftest.err conftest.$ac_ext
3366 if $ac_preproc_ok; then
3369 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3370 See \`config.log' for more details." >&5
3371 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3372 See \`config.log' for more details." >&2;}
3373 { (exit 1); exit 1; }; }
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_CC+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 if test -n "$CC"; then
3416 echo "$as_me:$LINENO: result: $CC" >&5
3417 echo "${ECHO_T}$CC" >&6
3419 echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3424 if test -z "$ac_cv_prog_CC"; then
3426 # Extract the first word of "gcc", so it can be a program name with args.
3427 set dummy gcc; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_ac_ct_CC="gcc"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3453 if test -n "$ac_ct_CC"; then
3454 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3455 echo "${ECHO_T}$ac_ct_CC" >&6
3457 echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_prog_CC+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_CC="${ac_tool_prefix}cc"
3486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 if test -n "$CC"; then
3496 echo "$as_me:$LINENO: result: $CC" >&5
3497 echo "${ECHO_T}$CC" >&6
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3504 if test -z "$ac_cv_prog_CC"; then
3506 # Extract the first word of "cc", so it can be a program name with args.
3507 set dummy cc; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_ac_ct_CC="cc"
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3535 echo "${ECHO_T}$ac_ct_CC" >&6
3537 echo "$as_me:$LINENO: result: no" >&5
3538 echo "${ECHO_T}no" >&6
3547 if test -z "$CC"; then
3548 # Extract the first word of "cc", so it can be a program name with args.
3549 set dummy cc; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_prog_CC+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3567 ac_prog_rejected=yes
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 if test $ac_prog_rejected = yes; then
3578 # We found a bogon in the path, so make sure we never use it.
3579 set dummy $ac_cv_prog_CC
3581 if test $# != 0; then
3582 # We chose a different compiler from the bogus one.
3583 # However, it has the same basename, so the bogon will be chosen
3584 # first if we set CC to just the basename; use the full file name.
3586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3592 if test -n "$CC"; then
3593 echo "$as_me:$LINENO: result: $CC" >&5
3594 echo "${ECHO_T}$CC" >&6
3596 echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 echo "$as_me:$LINENO: checking for $ac_word" >&5
3608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609 if test "${ac_cv_prog_CC+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 if test -n "$CC"; then
3633 echo "$as_me:$LINENO: result: $CC" >&5
3634 echo "${ECHO_T}$CC" >&6
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3640 test -n "$CC" && break
3643 if test -z "$CC"; then
3647 # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 echo "$as_me:$LINENO: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 if test -n "$ac_ct_CC"; then
3655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_ac_ct_CC="$ac_prog"
3665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3676 echo "${ECHO_T}$ac_ct_CC" >&6
3678 echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3682 test -n "$ac_ct_CC" && break
3691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3692 See \`config.log' for more details." >&5
3693 echo "$as_me: error: no acceptable C compiler found in \$PATH
3694 See \`config.log' for more details." >&2;}
3695 { (exit 1); exit 1; }; }
3697 # Provide some information about the compiler.
3698 echo "$as_me:$LINENO:" \
3699 "checking for C compiler version" >&5
3700 ac_compiler=`set X $ac_compile; echo $2`
3701 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3702 (eval $ac_compiler --version </dev/null >&5) 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }
3706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3707 (eval $ac_compiler -v </dev/null >&5) 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }
3711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3712 (eval $ac_compiler -V </dev/null >&5) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }
3717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 cat >conftest.$ac_ext <<_ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3740 rm -f conftest.$ac_objext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742 (eval $ac_compile) 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -z "$ac_c_werror_flag"
3750 || test ! -s conftest.err'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; } &&
3756 { ac_try='test -s conftest.$ac_objext'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3773 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3775 GCC=`test $ac_compiler_gnu = yes && echo yes`
3776 ac_test_CFLAGS=${CFLAGS+set}
3777 ac_save_CFLAGS=$CFLAGS
3779 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3781 if test "${ac_cv_prog_cc_g+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3799 rm -f conftest.$ac_objext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>conftest.er1
3803 grep -v '^ *+' conftest.er1 >conftest.err
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3832 if test "$ac_test_CFLAGS" = set; then
3833 CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835 if test "$GCC" = yes; then
3841 if test "$GCC" = yes; then
3847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_cv_prog_cc_stdc=no
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3862 #include <sys/types.h>
3863 #include <sys/stat.h>
3864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3865 struct buf { int x; };
3866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3867 static char *e (p, i)
3873 static char *f (char * (*g) (char **, int), char **p, ...)
3878 s = g (p, va_arg (v,int));
3883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3884 function prototypes and stuff, but not '\xHH' hex character constants.
3885 These don't provoke an error unfortunately, instead are silently treated
3886 as 'x'. The following induces an error, until -std1 is added to get
3887 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3888 array size at least. It's necessary to write '\x00'==0 to get something
3889 that's true only with -std1. */
3890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3906 # Don't try gcc -ansi; that turns off useful extensions and
3907 # breaks some systems' header files.
3908 # AIX -qlanglvl=ansi
3909 # Ultrix and OSF/1 -std1
3910 # HP-UX 10.20 and later -Ae
3911 # HP-UX older versions -Aa -D_HPUX_SOURCE
3912 # SVR4 -Xc -D__EXTENSIONS__
3913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3915 CC="$ac_save_CC $ac_arg"
3916 rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try='test -z "$ac_c_werror_flag"
3926 || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_prog_cc_stdc=$ac_arg
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3945 rm -f conftest.err conftest.$ac_objext
3947 rm -f conftest.$ac_ext conftest.$ac_objext
3952 case "x$ac_cv_prog_cc_stdc" in
3954 echo "$as_me:$LINENO: result: none needed" >&5
3955 echo "${ECHO_T}none needed" >&6 ;;
3957 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3959 CC="$CC $ac_cv_prog_cc_stdc" ;;
3962 # Some people use a C++ compiler to compile C. Since we use `exit',
3963 # in C++ we need to declare it. In case someone uses the same compiler
3964 # for both compiling C and C++ we need to have the C++ compiler decide
3965 # the declaration of exit, since it's the most demanding environment.
3966 cat >conftest.$ac_ext <<_ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_c_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 for ac_declaration in \
3995 'extern "C" void std::exit (int) throw (); using std::exit;' \
3996 'extern "C" void std::exit (int); using std::exit;' \
3997 'extern "C" void exit (int) throw ();' \
3998 'extern "C" void exit (int);' \
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_c_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 if test -n "$ac_declaration"; then
4094 echo '#ifdef __cplusplus' >>confdefs.h
4095 echo $ac_declaration >>confdefs.h
4096 echo '#endif' >>confdefs.h
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 depcc="$CC" am_compiler_list=
4113 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4114 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4115 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119 # We make a subdir and do the tests there. Otherwise we can end up
4120 # making bogus files that we don't know about and never remove. For
4121 # instance it was reported that on HP-UX the gcc test will end up
4122 # making a dummy file named `D' -- because `-MD' means `put the output
4125 # Copy depcomp to subdir because otherwise we won't find it if we're
4126 # using a relative directory.
4127 cp "$am_depcomp" conftest.dir
4129 # We will build objects and dependencies in a subdirectory because
4130 # it helps to detect inapplicable dependency modes. For instance
4131 # both Tru64's cc and ICC support -MD to output dependencies as a
4132 # side effect of compilation, but ICC will put the dependencies in
4133 # the current directory while Tru64 will put them in the object
4137 am_cv_CC_dependencies_compiler_type=none
4138 if test "$am_compiler_list" = ""; then
4139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4141 for depmode in $am_compiler_list; do
4142 # Setup a source with many dependencies, because some compilers
4143 # like to wrap large dependency lists on column 80 (with \), and
4144 # we should not choose a depcomp mode which is confused by this.
4146 # We need to recreate these files for each test, as the compiler may
4147 # overwrite some of them when testing with obscure command lines.
4148 # This happens at least with the AIX C compiler.
4150 for i in 1 2 3 4 5 6; do
4151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4153 # Solaris 8's {/usr,}/bin/sh.
4154 touch sub/conftst$i.h
4156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160 # after this tag, mechanisms are not by side-effect, so they'll
4161 # only be used when explicitly requested
4162 if test "x$enable_dependency_tracking" = xyes; then
4170 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4171 # mode. It turns out that the SunPro C++ compiler does not properly
4172 # handle `-M -o', and we need to detect this.
4173 if depmode=$depmode \
4174 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4176 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4177 >/dev/null 2>conftest.err &&
4178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4179 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4181 # icc doesn't choke on unknown options, it will just issue warnings
4182 # or remarks (even with -Werror). So we grep stderr for any message
4183 # that says an option was ignored or not supported.
4184 # When given -MP, icc 7.0 and 7.1 complain thusly:
4185 # icc: Command line warning: ignoring option '-M'; no argument required
4186 # The diagnosis changed in icc 8.0:
4187 # icc: Command line remark: option '-MP' not supported
4188 if (grep 'ignoring option' conftest.err ||
4189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4190 am_cv_CC_dependencies_compiler_type=$depmode
4199 am_cv_CC_dependencies_compiler_type=none
4203 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4204 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4205 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4210 test "x$enable_dependency_tracking" != xno \
4211 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4213 am__fastdepCC_FALSE='#'
4215 am__fastdepCC_TRUE='#'
4216 am__fastdepCC_FALSE=
4221 # By default we simply use the C compiler to build assembly code.
4223 test "${CCAS+set}" = set || CCAS=$CC
4224 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4228 if test "x$CC" != xcc; then
4229 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4230 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4232 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4233 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4235 set dummy $CC; ac_cc=`echo $2 |
4236 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4237 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4255 # Make sure it works both with $CC and with simple cc.
4256 # We do the test twice because some compilers refuse to overwrite an
4257 # existing .o file with -o, though they will create one.
4258 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4259 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); };
4270 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4271 if test "x$CC" != xcc; then
4272 # Test first that cc exists at all.
4273 if { ac_try='cc -c conftest.$ac_ext >&5'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4280 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); };
4294 # cc exists but doesn't like -o.
4295 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4300 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4305 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4306 echo "$as_me:$LINENO: result: yes" >&5
4307 echo "${ECHO_T}yes" >&6
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4312 cat >>confdefs.h <<\_ACEOF
4313 #define NO_MINUS_C_MINUS_O 1
4318 # FIXME: we rely on the cache variable name because
4319 # there is no other way.
4321 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4322 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4323 # Losing compiler, so override with the script.
4324 # FIXME: It is wrong to rewrite CC.
4325 # But if we don't then we get into trouble of one sort or another.
4326 # A longer-term fix would be to have automake use am__CC in this case,
4327 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4328 CC="$am_aux_dir/compile $CC"
4331 # Find a good install program. We prefer a C program (faster),
4332 # so one script is as good as another. But avoid the broken or
4333 # incompatible versions:
4334 # SysV /etc/install, /usr/sbin/install
4335 # SunOS /usr/etc/install
4336 # IRIX /sbin/install
4338 # AmigaOS /C/install, which installs bootblocks on floppy discs
4339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4342 # OS/2's system install, which has a completely different semantic
4343 # ./install, which can be erroneously created by make from ./install.sh.
4344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4346 if test -z "$INSTALL"; then
4347 if test "${ac_cv_path_install+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 # Account for people who put trailing slashes in PATH elements.
4357 ./ | .// | /cC/* | \
4358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4359 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4362 # OSF1 and SCO ODT 3.0 have their own names for install.
4363 # Don't use installbsd from OSF since it installs stuff as root
4365 for ac_prog in ginstall scoinst install; do
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4368 if test $ac_prog = install &&
4369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4370 # AIX install. It has an incompatible calling convention.
4372 elif test $ac_prog = install &&
4373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4374 # program-specific install script used by HP pwplus--don't use.
4377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4389 if test "${ac_cv_path_install+set}" = set; then
4390 INSTALL=$ac_cv_path_install
4392 # As a last resort, use the slow shell script. We don't cache a
4393 # path for INSTALL within a source directory, because that will
4394 # break other packages using the cache if that directory is
4395 # removed, or if the path is relative.
4396 INSTALL=$ac_install_sh
4399 echo "$as_me:$LINENO: result: $INSTALL" >&5
4400 echo "${ECHO_T}$INSTALL" >&6
4402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4403 # It thinks the first close brace ends the variable substitution.
4404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4410 # Check whether --enable-shared or --disable-shared was given.
4411 if test "${enable_shared+set}" = set; then
4412 enableval="$enable_shared"
4413 p=${PACKAGE-default}
4415 yes) enable_shared=yes ;;
4416 no) enable_shared=no ;;
4419 # Look at the argument we got. We use all the common list separators.
4420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4421 for pkg in $enableval; do
4423 if test "X$pkg" = "X$p"; then
4434 # Check whether --enable-static or --disable-static was given.
4435 if test "${enable_static+set}" = set; then
4436 enableval="$enable_static"
4437 p=${PACKAGE-default}
4439 yes) enable_static=yes ;;
4440 no) enable_static=no ;;
4443 # Look at the argument we got. We use all the common list separators.
4444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4445 for pkg in $enableval; do
4447 if test "X$pkg" = "X$p"; then
4458 # Check whether --enable-fast-install or --disable-fast-install was given.
4459 if test "${enable_fast_install+set}" = set; then
4460 enableval="$enable_fast_install"
4461 p=${PACKAGE-default}
4463 yes) enable_fast_install=yes ;;
4464 no) enable_fast_install=no ;;
4466 enable_fast_install=no
4467 # Look at the argument we got. We use all the common list separators.
4468 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4469 for pkg in $enableval; do
4471 if test "X$pkg" = "X$p"; then
4472 enable_fast_install=yes
4479 enable_fast_install=yes
4482 # Make sure we can run config.sub.
4483 $ac_config_sub sun4 >/dev/null 2>&1 ||
4484 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4485 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4486 { (exit 1); exit 1; }; }
4488 echo "$as_me:$LINENO: checking build system type" >&5
4489 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4490 if test "${ac_cv_build+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 ac_cv_build_alias=$build_alias
4494 test -z "$ac_cv_build_alias" &&
4495 ac_cv_build_alias=`$ac_config_guess`
4496 test -z "$ac_cv_build_alias" &&
4497 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4498 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4499 { (exit 1); exit 1; }; }
4500 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4501 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4502 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4503 { (exit 1); exit 1; }; }
4506 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4507 echo "${ECHO_T}$ac_cv_build" >&6
4509 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4510 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4511 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4514 echo "$as_me:$LINENO: checking host system type" >&5
4515 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4516 if test "${ac_cv_host+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_host_alias=$host_alias
4520 test -z "$ac_cv_host_alias" &&
4521 ac_cv_host_alias=$ac_cv_build_alias
4522 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4523 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4524 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4525 { (exit 1); exit 1; }; }
4528 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4529 echo "${ECHO_T}$ac_cv_host" >&6
4531 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4532 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4533 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4536 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4537 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4538 if test "${lt_cv_path_SED+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 # Loop through the user's path and test for sed and gsed.
4542 # Then use that list of sed's as ones to test for truncation.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for lt_ac_prog in sed gsed; do
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4551 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4558 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4559 # along with /bin/sed that truncates output.
4560 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4561 test ! -f $lt_ac_sed && break
4562 cat /dev/null > conftest.in
4564 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4565 # Check for GNU sed and select it if it is found.
4566 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4567 lt_cv_path_SED=$lt_ac_sed
4571 cat conftest.in conftest.in >conftest.tmp
4572 mv conftest.tmp conftest.in
4573 cp conftest.in conftest.nl
4575 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4576 cmp -s conftest.out conftest.nl || break
4577 # 10000 chars as input seems more than enough
4578 test $lt_ac_count -gt 10 && break
4579 lt_ac_count=`expr $lt_ac_count + 1`
4580 if test $lt_ac_count -gt $lt_ac_max; then
4581 lt_ac_max=$lt_ac_count
4582 lt_cv_path_SED=$lt_ac_sed
4590 echo "$as_me:$LINENO: result: $SED" >&5
4591 echo "${ECHO_T}$SED" >&6
4593 echo "$as_me:$LINENO: checking for egrep" >&5
4594 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4595 if test "${ac_cv_prog_egrep+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4599 then ac_cv_prog_egrep='grep -E'
4600 else ac_cv_prog_egrep='egrep'
4603 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4604 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4605 EGREP=$ac_cv_prog_egrep
4609 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4610 if test "${with_gnu_ld+set}" = set; then
4611 withval="$with_gnu_ld"
4612 test "$withval" = no || with_gnu_ld=yes
4617 if test "$GCC" = yes; then
4618 # Check if gcc -print-prog-name=ld gives a path.
4619 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4620 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4623 # gcc leaves a trailing carriage return which upsets mingw
4624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4629 # Accept absolute paths.
4631 re_direlt='/[^/][^/]*/\.\./'
4632 # Canonicalize the pathname of ld
4633 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4634 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4635 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4637 test -z "$LD" && LD="$ac_prog"
4640 # If it fails, then pretend we aren't using GCC.
4644 # If it is relative, then search for the first ld in PATH.
4648 elif test "$with_gnu_ld" = yes; then
4649 echo "$as_me:$LINENO: checking for GNU ld" >&5
4650 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4652 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4653 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4655 if test "${lt_cv_path_LD+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -z "$LD"; then
4659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4660 for ac_dir in $PATH; do
4662 test -z "$ac_dir" && ac_dir=.
4663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4664 lt_cv_path_LD="$ac_dir/$ac_prog"
4665 # Check to see if the program is GNU ld. I'd rather use --version,
4666 # but apparently some GNU ld's only accept -v.
4667 # Break only if it was the GNU/non-GNU ld that we prefer.
4668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4669 *GNU* | *'with BFD'*)
4670 test "$with_gnu_ld" != no && break
4673 test "$with_gnu_ld" != yes && break
4680 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4685 if test -n "$LD"; then
4686 echo "$as_me:$LINENO: result: $LD" >&5
4687 echo "${ECHO_T}$LD" >&6
4689 echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6
4692 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4693 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4694 { (exit 1); exit 1; }; }
4695 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4696 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4697 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4701 case `$LD -v 2>&1 </dev/null` in
4702 *GNU* | *'with BFD'*)
4703 lt_cv_prog_gnu_ld=yes
4706 lt_cv_prog_gnu_ld=no
4710 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4711 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4712 with_gnu_ld=$lt_cv_prog_gnu_ld
4715 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4716 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4717 if test "${lt_cv_ld_reload_flag+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 lt_cv_ld_reload_flag='-r'
4722 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4723 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4724 reload_flag=$lt_cv_ld_reload_flag
4725 case $reload_flag in
4727 *) reload_flag=" $reload_flag" ;;
4729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4731 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4732 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4733 if test "${lt_cv_path_NM+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if test -n "$NM"; then
4737 # Let the user override the test.
4740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4741 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4743 test -z "$ac_dir" && ac_dir=.
4744 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4746 # Check to see if the nm accepts a BSD-compat flag.
4747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4748 # nm: unknown option "B" ignored
4749 # Tru64's nm complains that /dev/null is an invalid object file
4750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4751 */dev/null* | *'Invalid file or object type'*)
4752 lt_cv_path_NM="$tmp_nm -B"
4756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4758 lt_cv_path_NM="$tmp_nm -p"
4762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4763 continue # so that we can try to find one that supports BSD flags
4770 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4773 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4774 echo "${ECHO_T}$lt_cv_path_NM" >&6
4777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4780 if test "$LN_S" = "ln -s"; then
4781 echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6
4784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4785 echo "${ECHO_T}no, using $LN_S" >&6
4788 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4789 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4790 if test "${lt_cv_deplibs_check_method+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 lt_cv_file_magic_cmd='$MAGIC_CMD'
4794 lt_cv_file_magic_test_file=
4795 lt_cv_deplibs_check_method='unknown'
4796 # Need to set the preceding variable on all platforms that support
4797 # interlibrary dependencies.
4798 # 'none' -- dependencies not supported.
4799 # `unknown' -- same as none, but documents that we really don't know.
4800 # 'pass_all' -- all dependencies passed with no checks.
4801 # 'test_compile' -- check by making test program.
4802 # 'file_magic [[regex]]' -- check by looking for files in library path
4803 # which responds to the $file_magic_cmd with a given extended regex.
4804 # If you have `file' or equivalent on your system and you're not sure
4805 # whether `pass_all' will *always* work, you probably want this one.
4809 lt_cv_deplibs_check_method=pass_all
4813 lt_cv_deplibs_check_method=pass_all
4817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4818 lt_cv_file_magic_cmd='/usr/bin/file -L'
4819 lt_cv_file_magic_test_file=/shlib/libc.so
4823 # func_win32_libid is a shell function defined in ltmain.sh
4824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4825 lt_cv_file_magic_cmd='func_win32_libid'
4829 # Base MSYS/MinGW do not provide the 'file' command needed by
4830 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4831 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4832 lt_cv_file_magic_cmd='$OBJDUMP -f'
4835 darwin* | rhapsody*)
4836 lt_cv_deplibs_check_method=pass_all
4839 freebsd* | kfreebsd*-gnu)
4840 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4843 # Not sure whether the presence of OpenBSD here was a mistake.
4844 # Let's accept both of them until this is cleared up.
4845 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4846 lt_cv_file_magic_cmd=/usr/bin/file
4847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4851 lt_cv_deplibs_check_method=pass_all
4856 lt_cv_deplibs_check_method=pass_all
4859 hpux10.20* | hpux11*)
4860 lt_cv_file_magic_cmd=/usr/bin/file
4863 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4864 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4867 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]'
4868 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4871 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4872 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4877 irix5* | irix6* | nonstopux*)
4879 *-32|*"-32 ") libmagic=32-bit;;
4880 *-n32|*"-n32 ") libmagic=N32;;
4881 *-64|*"-64 ") libmagic=64-bit;;
4882 *) libmagic=never-match;;
4884 lt_cv_deplibs_check_method=pass_all
4887 # This must be Linux ELF.
4890 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4891 lt_cv_deplibs_check_method=pass_all ;;
4893 # glibc up to 2.1.1 does not perform some relocations on ARM
4894 # this will be overridden with pass_all, but let us keep it just in case
4895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4897 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4898 lt_cv_deplibs_check_method=pass_all
4902 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4911 lt_cv_file_magic_cmd=/usr/bin/file
4912 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4916 lt_cv_deplibs_check_method=unknown
4920 lt_cv_file_magic_cmd=/usr/bin/file
4921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4925 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4929 osf3* | osf4* | osf5*)
4930 lt_cv_deplibs_check_method=pass_all
4934 lt_cv_deplibs_check_method=pass_all
4938 lt_cv_deplibs_check_method=pass_all
4941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4942 case $host_vendor in
4944 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]'
4945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4948 lt_cv_deplibs_check_method=pass_all
4951 lt_cv_file_magic_cmd='/bin/file'
4952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4955 lt_cv_file_magic_cmd='/bin/file'
4956 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4957 lt_cv_file_magic_test_file=/lib/libc.so
4960 lt_cv_deplibs_check_method=pass_all
4965 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4966 lt_cv_deplibs_check_method=pass_all
4971 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4972 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4973 file_magic_cmd=$lt_cv_file_magic_cmd
4974 deplibs_check_method=$lt_cv_deplibs_check_method
4975 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4980 # If no C compiler was specified, use CC.
4983 # Allow CC to be a program name with arguments.
4987 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4988 if test "${enable_libtool_lock+set}" = set; then
4989 enableval="$enable_libtool_lock"
4992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4994 # Some flags need to be propagated to the compiler or linker for good
4998 # Find out which ABI we are using.
4999 echo 'int i;' > conftest.$ac_ext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001 (eval $ac_compile) 2>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; then
5005 case `/usr/bin/file conftest.$ac_objext` in
5017 # Find out which ABI we are using.
5018 echo '#line 5018 "configure"' > conftest.$ac_ext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; then
5024 if test "$lt_cv_prog_gnu_ld" = yes; then
5025 case `/usr/bin/file conftest.$ac_objext` in
5027 LD="${LD-ld} -melf32bsmip"
5030 LD="${LD-ld} -melf32bmipn32"
5033 LD="${LD-ld} -melf64bmip"
5037 case `/usr/bin/file conftest.$ac_objext` in
5053 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5054 # Find out which ABI we are using.
5055 echo 'int i;' > conftest.$ac_ext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; then
5061 case "`/usr/bin/file conftest.o`" in
5065 LD="${LD-ld} -m elf_i386"
5067 ppc64-*linux*|powerpc64-*linux*)
5068 LD="${LD-ld} -m elf32ppclinux"
5071 LD="${LD-ld} -m elf_s390"
5074 LD="${LD-ld} -m elf32_sparc"
5081 LD="${LD-ld} -m elf_x86_64"
5083 ppc*-*linux*|powerpc*-*linux*)
5084 LD="${LD-ld} -m elf64ppc"
5087 LD="${LD-ld} -m elf64_s390"
5090 LD="${LD-ld} -m elf64_sparc"
5100 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5101 SAVE_CFLAGS="$CFLAGS"
5102 CFLAGS="$CFLAGS -belf"
5103 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5104 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5105 if test "${lt_cv_cc_needs_belf+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114 cat >conftest.$ac_ext <<_ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5129 rm -f conftest.$ac_objext conftest$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>conftest.er1
5133 grep -v '^ *+' conftest.er1 >conftest.err
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest$ac_exeext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 lt_cv_cc_needs_belf=yes
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 lt_cv_cc_needs_belf=no
5158 rm -f conftest.err conftest.$ac_objext \
5159 conftest$ac_exeext conftest.$ac_ext
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5168 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5169 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5170 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5171 CFLAGS="$SAVE_CFLAGS"
5177 need_locks="$enable_libtool_lock"
5181 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5182 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5183 if test "${ac_cv_header_stdc+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5205 rm -f conftest.$ac_objext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207 (eval $ac_compile) 2>conftest.er1
5209 grep -v '^ *+' conftest.er1 >conftest.err
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -z "$ac_c_werror_flag"
5215 || test ! -s conftest.err'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try='test -s conftest.$ac_objext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 ac_cv_header_stdc=yes
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 ac_cv_header_stdc=no
5234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236 if test $ac_cv_header_stdc = yes; then
5237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5248 $EGREP "memchr" >/dev/null 2>&1; then
5251 ac_cv_header_stdc=no
5257 if test $ac_cv_header_stdc = yes; then
5258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5269 $EGREP "free" >/dev/null 2>&1; then
5272 ac_cv_header_stdc=no
5278 if test $ac_cv_header_stdc = yes; then
5279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5280 if test "$cross_compiling" = yes; then
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5290 #if ((' ' & 0x0FF) == 0x020)
5291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5294 # define ISLOWER(c) \
5295 (('a' <= (c) && (c) <= 'i') \
5296 || ('j' <= (c) && (c) <= 'r') \
5297 || ('s' <= (c) && (c) <= 'z'))
5298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5306 for (i = 0; i < 256; i++)
5307 if (XOR (islower (i), ISLOWER (i))
5308 || toupper (i) != TOUPPER (i))
5313 rm -f conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5326 echo "$as_me: program exited with status $ac_status" >&5
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5331 ac_cv_header_stdc=no
5333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5337 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5338 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5339 if test $ac_cv_header_stdc = yes; then
5341 cat >>confdefs.h <<\_ACEOF
5342 #define STDC_HEADERS 1
5347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5358 inttypes.h stdint.h unistd.h
5360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5361 echo "$as_me:$LINENO: checking for $ac_header" >&5
5362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 $ac_includes_default
5374 #include <$ac_header>
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_c_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest.$ac_objext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 eval "$as_ac_Header=yes"
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 eval "$as_ac_Header=no"
5405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5410 cat >>confdefs.h <<_ACEOF
5411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5420 for ac_header in dlfcn.h
5422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424 echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5432 # Is the header compilable?
5433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5435 cat >conftest.$ac_ext <<_ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5442 #include <$ac_header>
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -z "$ac_c_werror_flag"
5454 || test ! -s conftest.err'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; } &&
5460 { ac_try='test -s conftest.$ac_objext'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5466 ac_header_compiler=yes
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5471 ac_header_compiler=no
5473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5475 echo "${ECHO_T}$ac_header_compiler" >&6
5477 # Is the header present?
5478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5480 cat >conftest.$ac_ext <<_ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <$ac_header>
5488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_c_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5505 if test -z "$ac_cpp_err"; then
5506 ac_header_preproc=yes
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 ac_header_preproc=no
5513 rm -f conftest.err conftest.$ac_ext
5514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5515 echo "${ECHO_T}$ac_header_preproc" >&6
5517 # So? What about this header?
5518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5524 ac_header_preproc=yes
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5541 ## ---------------------------------------- ##
5542 ## Report this to the libjpeg-turbo lists. ##
5543 ## ---------------------------------------- ##
5546 sed "s/^/$as_me: WARNING: /" >&2
5549 echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 eval "$as_ac_Header=\$ac_header_preproc"
5556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5561 cat >>confdefs.h <<_ACEOF
5562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5570 ac_cpp='$CXXCPP $CPPFLAGS'
5571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5574 if test -n "$ac_tool_prefix"; then
5575 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5579 echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581 if test "${ac_cv_prog_CXX+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 if test -n "$CXX"; then
5585 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 if test -n "$CXX"; then
5605 echo "$as_me:$LINENO: result: $CXX" >&5
5606 echo "${ECHO_T}$CXX" >&6
5608 echo "$as_me:$LINENO: result: no" >&5
5609 echo "${ECHO_T}no" >&6
5612 test -n "$CXX" && break
5615 if test -z "$CXX"; then
5617 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5619 # Extract the first word of "$ac_prog", so it can be a program name with args.
5620 set dummy $ac_prog; ac_word=$2
5621 echo "$as_me:$LINENO: checking for $ac_word" >&5
5622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 if test -n "$ac_ct_CXX"; then
5627 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_ac_ct_CXX="$ac_prog"
5637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5646 if test -n "$ac_ct_CXX"; then
5647 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5648 echo "${ECHO_T}$ac_ct_CXX" >&6
5650 echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6
5654 test -n "$ac_ct_CXX" && break
5656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5662 # Provide some information about the compiler.
5663 echo "$as_me:$LINENO:" \
5664 "checking for C++ compiler version" >&5
5665 ac_compiler=`set X $ac_compile; echo $2`
5666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5667 (eval $ac_compiler --version </dev/null >&5) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }
5671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5672 (eval $ac_compiler -v </dev/null >&5) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }
5676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5677 (eval $ac_compiler -V </dev/null >&5) 2>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }
5682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_cxx_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5738 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5739 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5740 GXX=`test $ac_compiler_gnu = yes && echo yes`
5741 ac_test_CXXFLAGS=${CXXFLAGS+set}
5742 ac_save_CXXFLAGS=$CXXFLAGS
5744 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5745 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5746 if test "${ac_cv_prog_cxx_g+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_cxx_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_cv_prog_cxx_g=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5795 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5796 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5797 if test "$ac_test_CXXFLAGS" = set; then
5798 CXXFLAGS=$ac_save_CXXFLAGS
5799 elif test $ac_cv_prog_cxx_g = yes; then
5800 if test "$GXX" = yes; then
5806 if test "$GXX" = yes; then
5812 for ac_declaration in \
5814 'extern "C" void std::exit (int) throw (); using std::exit;' \
5815 'extern "C" void std::exit (int); using std::exit;' \
5816 'extern "C" void exit (int) throw ();' \
5817 'extern "C" void exit (int);' \
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_cxx_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -z "$ac_cxx_werror_flag"
5891 || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 if test -n "$ac_declaration"; then
5913 echo '#ifdef __cplusplus' >>confdefs.h
5914 echo $ac_declaration >>confdefs.h
5915 echo '#endif' >>confdefs.h
5919 ac_cpp='$CXXCPP $CPPFLAGS'
5920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5924 depcc="$CXX" am_compiler_list=
5926 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5927 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5928 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5932 # We make a subdir and do the tests there. Otherwise we can end up
5933 # making bogus files that we don't know about and never remove. For
5934 # instance it was reported that on HP-UX the gcc test will end up
5935 # making a dummy file named `D' -- because `-MD' means `put the output
5938 # Copy depcomp to subdir because otherwise we won't find it if we're
5939 # using a relative directory.
5940 cp "$am_depcomp" conftest.dir
5942 # We will build objects and dependencies in a subdirectory because
5943 # it helps to detect inapplicable dependency modes. For instance
5944 # both Tru64's cc and ICC support -MD to output dependencies as a
5945 # side effect of compilation, but ICC will put the dependencies in
5946 # the current directory while Tru64 will put them in the object
5950 am_cv_CXX_dependencies_compiler_type=none
5951 if test "$am_compiler_list" = ""; then
5952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5954 for depmode in $am_compiler_list; do
5955 # Setup a source with many dependencies, because some compilers
5956 # like to wrap large dependency lists on column 80 (with \), and
5957 # we should not choose a depcomp mode which is confused by this.
5959 # We need to recreate these files for each test, as the compiler may
5960 # overwrite some of them when testing with obscure command lines.
5961 # This happens at least with the AIX C compiler.
5963 for i in 1 2 3 4 5 6; do
5964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5965 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5966 # Solaris 8's {/usr,}/bin/sh.
5967 touch sub/conftst$i.h
5969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5973 # after this tag, mechanisms are not by side-effect, so they'll
5974 # only be used when explicitly requested
5975 if test "x$enable_dependency_tracking" = xyes; then
5983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5984 # mode. It turns out that the SunPro C++ compiler does not properly
5985 # handle `-M -o', and we need to detect this.
5986 if depmode=$depmode \
5987 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5989 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5990 >/dev/null 2>conftest.err &&
5991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5992 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5994 # icc doesn't choke on unknown options, it will just issue warnings
5995 # or remarks (even with -Werror). So we grep stderr for any message
5996 # that says an option was ignored or not supported.
5997 # When given -MP, icc 7.0 and 7.1 complain thusly:
5998 # icc: Command line warning: ignoring option '-M'; no argument required
5999 # The diagnosis changed in icc 8.0:
6000 # icc: Command line remark: option '-MP' not supported
6001 if (grep 'ignoring option' conftest.err ||
6002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6003 am_cv_CXX_dependencies_compiler_type=$depmode
6012 am_cv_CXX_dependencies_compiler_type=none
6016 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6017 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6018 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6023 test "x$enable_dependency_tracking" != xno \
6024 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6025 am__fastdepCXX_TRUE=
6026 am__fastdepCXX_FALSE='#'
6028 am__fastdepCXX_TRUE='#'
6029 am__fastdepCXX_FALSE=
6034 ac_cpp='$CXXCPP $CPPFLAGS'
6035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6038 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6039 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6040 if test -z "$CXXCPP"; then
6041 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 # Double quotes because CXXCPP needs to be expanded
6045 for CXXCPP in "$CXX -E" "/lib/cpp"
6048 for ac_cxx_preproc_warn_flag in '' yes
6050 # Use a header file that comes with gcc, so configuring glibc
6051 # with a fresh cross-compiler works.
6052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6053 # <limits.h> exists even on freestanding compilers.
6054 # On the NeXT, cc -E runs the code through the compiler's parser,
6055 # not just through cpp. "Syntax error" is here to catch this case.
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6063 # include <limits.h>
6065 # include <assert.h>
6069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6072 grep -v '^ *+' conftest.er1 >conftest.err
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } >/dev/null; then
6077 if test -s conftest.err; then
6078 ac_cpp_err=$ac_cxx_preproc_warn_flag
6079 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6086 if test -z "$ac_cpp_err"; then
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 # Broken: fails on valid input.
6095 rm -f conftest.err conftest.$ac_ext
6097 # OK, works on sane cases. Now check whether non-existent headers
6098 # can be detected and how.
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <ac_nonexistent.h>
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } >/dev/null; then
6115 if test -s conftest.err; then
6116 ac_cpp_err=$ac_cxx_preproc_warn_flag
6117 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6124 if test -z "$ac_cpp_err"; then
6125 # Broken: success on invalid input.
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 # Passes both tests.
6135 rm -f conftest.err conftest.$ac_ext
6138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6139 rm -f conftest.err conftest.$ac_ext
6140 if $ac_preproc_ok; then
6145 ac_cv_prog_CXXCPP=$CXXCPP
6148 CXXCPP=$ac_cv_prog_CXXCPP
6150 ac_cv_prog_CXXCPP=$CXXCPP
6152 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6153 echo "${ECHO_T}$CXXCPP" >&6
6155 for ac_cxx_preproc_warn_flag in '' yes
6157 # Use a header file that comes with gcc, so configuring glibc
6158 # with a fresh cross-compiler works.
6159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160 # <limits.h> exists even on freestanding compilers.
6161 # On the NeXT, cc -E runs the code through the compiler's parser,
6162 # not just through cpp. "Syntax error" is here to catch this case.
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6170 # include <limits.h>
6172 # include <assert.h>
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } >/dev/null; then
6184 if test -s conftest.err; then
6185 ac_cpp_err=$ac_cxx_preproc_warn_flag
6186 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6193 if test -z "$ac_cpp_err"; then
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 # Broken: fails on valid input.
6202 rm -f conftest.err conftest.$ac_ext
6204 # OK, works on sane cases. Now check whether non-existent headers
6205 # can be detected and how.
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 #include <ac_nonexistent.h>
6214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } >/dev/null; then
6222 if test -s conftest.err; then
6223 ac_cpp_err=$ac_cxx_preproc_warn_flag
6224 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6231 if test -z "$ac_cpp_err"; then
6232 # Broken: success on invalid input.
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 # Passes both tests.
6242 rm -f conftest.err conftest.$ac_ext
6245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6246 rm -f conftest.err conftest.$ac_ext
6247 if $ac_preproc_ok; then
6250 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6251 See \`config.log' for more details." >&5
6252 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6253 See \`config.log' for more details." >&2;}
6254 { (exit 1); exit 1; }; }
6258 ac_cpp='$CXXCPP $CPPFLAGS'
6259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6265 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6266 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6268 if test -n "$ac_tool_prefix"; then
6269 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6273 echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6275 if test "${ac_cv_prog_F77+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 if test -n "$F77"; then
6279 ac_cv_prog_F77="$F77" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 if test -n "$F77"; then
6299 echo "$as_me:$LINENO: result: $F77" >&5
6300 echo "${ECHO_T}$F77" >&6
6302 echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6
6306 test -n "$F77" && break
6309 if test -z "$F77"; then
6311 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6313 # Extract the first word of "$ac_prog", so it can be a program name with args.
6314 set dummy $ac_prog; ac_word=$2
6315 echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6317 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 if test -n "$ac_ct_F77"; then
6321 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_ac_ct_F77="$ac_prog"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6340 if test -n "$ac_ct_F77"; then
6341 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6342 echo "${ECHO_T}$ac_ct_F77" >&6
6344 echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6
6348 test -n "$ac_ct_F77" && break
6355 # Provide some information about the compiler.
6356 echo "$as_me:6356:" \
6357 "checking for Fortran 77 compiler version" >&5
6358 ac_compiler=`set X $ac_compile; echo $2`
6359 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6360 (eval $ac_compiler --version </dev/null >&5) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }
6364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6365 (eval $ac_compiler -v </dev/null >&5) 2>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }
6369 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6370 (eval $ac_compiler -V </dev/null >&5) 2>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }
6376 # If we don't use `.F' as extension, the preprocessor is not run on the
6377 # input file. (Note that this only needs to work for GNU compilers.)
6380 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6381 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6382 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 cat >conftest.$ac_ext <<_ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395 (eval $ac_compile) 2>conftest.er1
6397 grep -v '^ *+' conftest.er1 >conftest.err
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_f77_werror_flag"
6403 || test ! -s conftest.err'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; } &&
6409 { ac_try='test -s conftest.$ac_objext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6426 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6427 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6429 ac_test_FFLAGS=${FFLAGS+set}
6430 ac_save_FFLAGS=$FFLAGS
6432 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6433 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6434 if test "${ac_cv_prog_f77_g+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 cat >conftest.$ac_ext <<_ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_f77_werror_flag"
6453 || test ! -s conftest.err'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_cv_prog_f77_g=yes
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6475 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6476 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6477 if test "$ac_test_FFLAGS" = set; then
6478 FFLAGS=$ac_save_FFLAGS
6479 elif test $ac_cv_prog_f77_g = yes; then
6480 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6486 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6493 G77=`test $ac_compiler_gnu = yes && echo yes`
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6504 # find the maximum length of command line arguments
6505 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6506 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6507 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 # On DJGPP, this test can blow up pretty badly due to problems in libc
6516 # (any single argument exceeding 2000 bytes causes a buffer overrun
6517 # during glob expansion). Even if it were fixed, the result of this
6518 # check would be larger than it should be.
6519 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6523 # Under GNU Hurd, this test is not required because there is
6524 # no limit to the length of command line arguments.
6525 # Libtool will interpret -1 as no limit whatsoever
6526 lt_cv_sys_max_cmd_len=-1;
6530 # On Win9x/ME, this test blows up -- it succeeds, but takes
6531 # about 5 minutes as the teststring grows exponentially.
6532 # Worse, since 9x/ME are not pre-emptively multitasking,
6533 # you end up with a "frozen" computer, even though with patience
6534 # the test eventually succeeds (with a max line length of 256k).
6535 # Instead, let's just punt: use the minimum linelength reported by
6536 # all of the supported platforms: 8192 (on NT/2K/XP).
6537 lt_cv_sys_max_cmd_len=8192;
6541 # On AmigaOS with pdksh, this test takes hours, literally.
6542 # So we just punt and use a minimum line length of 8192.
6543 lt_cv_sys_max_cmd_len=8192;
6547 # If test is not a shell built-in, we'll probably end up computing a
6548 # maximum length that is only half of the actual maximum length, but
6550 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6551 = "XX$teststring") >/dev/null 2>&1 &&
6552 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6553 lt_cv_sys_max_cmd_len=$new_result &&
6554 test $i != 17 # 1/2 MB should be enough
6557 teststring=$teststring$teststring
6560 # Add a significant safety factor because C++ compilers can tack on massive
6561 # amounts of additional arguments before passing them to the linker.
6562 # It appears as though 1/2 is a usable value.
6563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6569 if test -n $lt_cv_sys_max_cmd_len ; then
6570 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6571 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6573 echo "$as_me:$LINENO: result: none" >&5
6574 echo "${ECHO_T}none" >&6
6580 # Check for command to grab the raw symbol name followed by C symbol from nm.
6581 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6582 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6583 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 # These are sane defaults that work on at least a few old systems.
6588 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6590 # Character class describing NM global symbol codes.
6591 symcode='[BCDEGRST]'
6593 # Regexp to match symbols that can be accessed directly from C.
6594 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6596 # Transform the above into a raw symbol and a C symbol.
6597 symxfrm='\1 \2\3 \3'
6599 # Transform an extracted symbol line into a proper C declaration
6600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6602 # Transform an extracted symbol line into symbol name and symbol address
6603 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6605 # Define system-specific variables.
6610 cygwin* | mingw* | pw32*)
6611 symcode='[ABCDGISTW]'
6613 hpux*) # Its linker distinguishes data from code symbols
6614 if test "$host_cpu" = ia64; then
6615 symcode='[ABCDEGRST]'
6617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6618 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6621 symcode='[BCDEGRST]'
6624 symcode='[BCDEGQRST]'
6634 # Handle CRLF in mingw tool chain
6638 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6642 # If we're using GNU nm, then use its standard symbol codes.
6643 case `$NM -V 2>&1` in
6644 *GNU* | *'with BFD'*)
6645 symcode='[ABCDGIRSTW]' ;;
6648 # Try without a prefix undercore, then with it.
6649 for ac_symprfx in "" "_"; do
6651 # Write the raw and C identifiers.
6652 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6654 # Check to see that the pipe works correctly.
6658 cat > conftest.$ac_ext <<EOF
6663 void nm_test_func(){}
6667 int main(){nm_test_var='a';nm_test_func();return(0);}
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; then
6675 # Now try to grab the symbols.
6677 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6678 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && test -s "$nlist"; then
6682 # Try sorting and uniquifying the output.
6683 if sort "$nlist" | uniq > "$nlist"T; then
6684 mv -f "$nlist"T "$nlist"
6689 # Make sure that we snagged all the symbols we need.
6690 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6691 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6692 cat <<EOF > conftest.$ac_ext
6698 # Now generate the symbol file.
6699 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6701 cat <<EOF >> conftest.$ac_ext
6702 #if defined (__STDC__) && __STDC__
6703 # define lt_ptr_t void *
6705 # define lt_ptr_t char *
6709 /* The mapping between symbol names and symbols. */
6714 lt_preloaded_symbols[] =
6717 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6718 cat <<\EOF >> conftest.$ac_ext
6726 # Now try linking the two files.
6727 mv conftest.$ac_objext conftstm.$ac_objext
6728 lt_save_LIBS="$LIBS"
6729 lt_save_CFLAGS="$CFLAGS"
6730 LIBS="conftstm.$ac_objext"
6731 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6739 LIBS="$lt_save_LIBS"
6740 CFLAGS="$lt_save_CFLAGS"
6742 echo "cannot find nm_test_func in $nlist" >&5
6745 echo "cannot find nm_test_var in $nlist" >&5
6748 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6751 echo "$progname: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6754 rm -f conftest* conftst*
6756 # Do not use the global_symbol_pipe unless it works.
6757 if test "$pipe_works" = yes; then
6760 lt_cv_sys_global_symbol_pipe=
6766 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6767 lt_cv_sys_global_symbol_to_cdecl=
6769 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6770 echo "$as_me:$LINENO: result: failed" >&5
6771 echo "${ECHO_T}failed" >&6
6773 echo "$as_me:$LINENO: result: ok" >&5
6774 echo "${ECHO_T}ok" >&6
6777 echo "$as_me:$LINENO: checking for objdir" >&5
6778 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6779 if test "${lt_cv_objdir+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 rm -f .libs 2>/dev/null
6783 mkdir .libs 2>/dev/null
6784 if test -d .libs; then
6787 # MS-DOS does not allow filenames that begin with a dot.
6790 rmdir .libs 2>/dev/null
6792 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6793 echo "${ECHO_T}$lt_cv_objdir" >&6
6794 objdir=$lt_cv_objdir
6802 # AIX sometimes has problems with the GCC collect2 program. For some
6803 # reason, if we set the COLLECT_NAMES environment variable, the problems
6804 # vanish in a puff of smoke.
6805 if test "X${COLLECT_NAMES+set}" != Xset; then
6807 export COLLECT_NAMES
6812 # Sed substitution that helps us do robust quoting. It backslashifies
6813 # metacharacters that are still active within double-quoted strings.
6814 Xsed='sed -e s/^X//'
6815 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6817 # Same as above, but do not quote variable references.
6818 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6820 # Sed substitution to delay expansion of an escaped shell variable in a
6821 # double_quote_subst'ed string.
6822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6824 # Sed substitution to avoid accidental globbing in evaled expressions
6825 no_glob_subst='s/\*/\\\*/g'
6831 default_ofile=libtool
6832 can_build_shared=yes
6834 # All known linkers require a `.a' archive for static linking (except M$VC,
6835 # which needs '.lib').
6837 ltmain="$ac_aux_dir/ltmain.sh"
6838 ofile="$default_ofile"
6839 with_gnu_ld="$lt_cv_prog_gnu_ld"
6841 if test -n "$ac_tool_prefix"; then
6842 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}ar; ac_word=$2
6844 echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6846 if test "${ac_cv_prog_AR+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 if test -n "$AR"; then
6850 ac_cv_prog_AR="$AR" # Let the user override the test.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_AR="${ac_tool_prefix}ar"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 if test -n "$AR"; then
6870 echo "$as_me:$LINENO: result: $AR" >&5
6871 echo "${ECHO_T}$AR" >&6
6873 echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6
6878 if test -z "$ac_cv_prog_AR"; then
6880 # Extract the first word of "ar", so it can be a program name with args.
6881 set dummy ar; ac_word=$2
6882 echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6884 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 if test -n "$ac_ct_AR"; then
6888 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_ac_ct_AR="ar"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6908 if test -n "$ac_ct_AR"; then
6909 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6910 echo "${ECHO_T}$ac_ct_AR" >&6
6912 echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6
6921 if test -n "$ac_tool_prefix"; then
6922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6924 echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6926 if test "${ac_cv_prog_RANLIB+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 if test -n "$RANLIB"; then
6930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 RANLIB=$ac_cv_prog_RANLIB
6949 if test -n "$RANLIB"; then
6950 echo "$as_me:$LINENO: result: $RANLIB" >&5
6951 echo "${ECHO_T}$RANLIB" >&6
6953 echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959 ac_ct_RANLIB=$RANLIB
6960 # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 if test -n "$ac_ct_RANLIB"; then
6968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_ac_ct_RANLIB="ranlib"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6990 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6992 echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6
6996 RANLIB=$ac_ct_RANLIB
6998 RANLIB="$ac_cv_prog_RANLIB"
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}strip; ac_word=$2
7004 echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7006 if test "${ac_cv_prog_STRIP+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 if test -n "$STRIP"; then
7010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 STRIP=$ac_cv_prog_STRIP
7029 if test -n "$STRIP"; then
7030 echo "$as_me:$LINENO: result: $STRIP" >&5
7031 echo "${ECHO_T}$STRIP" >&6
7033 echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6
7038 if test -z "$ac_cv_prog_STRIP"; then
7040 # Extract the first word of "strip", so it can be a program name with args.
7041 set dummy strip; ac_word=$2
7042 echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 if test -n "$ac_ct_STRIP"; then
7048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_ac_ct_STRIP="strip"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7068 if test -n "$ac_ct_STRIP"; then
7069 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7070 echo "${ECHO_T}$ac_ct_STRIP" >&6
7072 echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6
7078 STRIP="$ac_cv_prog_STRIP"
7083 old_CFLAGS="$CFLAGS"
7085 # Set sane defaults for various variables
7086 test -z "$AR" && AR=ar
7087 test -z "$AR_FLAGS" && AR_FLAGS=cru
7088 test -z "$AS" && AS=as
7089 test -z "$CC" && CC=cc
7090 test -z "$LTCC" && LTCC=$CC
7091 test -z "$DLLTOOL" && DLLTOOL=dlltool
7092 test -z "$LD" && LD=ld
7093 test -z "$LN_S" && LN_S="ln -s"
7094 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7095 test -z "$NM" && NM=nm
7096 test -z "$SED" && SED=sed
7097 test -z "$OBJDUMP" && OBJDUMP=objdump
7098 test -z "$RANLIB" && RANLIB=:
7099 test -z "$STRIP" && STRIP=:
7100 test -z "$ac_objext" && ac_objext=o
7102 # Determine commands to create old-style static archives.
7103 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7104 old_postinstall_cmds='chmod 644 $oldlib'
7105 old_postuninstall_cmds=
7107 if test -n "$RANLIB"; then
7110 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7113 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7116 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7119 # Only perform the check for file, if the check method requires it
7120 case $deplibs_check_method in
7122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7123 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7124 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7133 lt_save_MAGIC_CMD="$MAGIC_CMD"
7134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7136 for ac_dir in $ac_dummy; do
7138 test -z "$ac_dir" && ac_dir=.
7139 if test -f $ac_dir/${ac_tool_prefix}file; then
7140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7141 if test -n "$file_magic_test_file"; then
7142 case $deplibs_check_method in
7144 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7147 $EGREP "$file_magic_regex" > /dev/null; then
7152 *** Warning: the command libtool uses to detect shared libraries,
7153 *** $file_magic_cmd, produces output that libtool cannot recognize.
7154 *** The result is that libtool may fail to recognize shared libraries
7155 *** as such. This will affect the creation of libtool libraries that
7156 *** depend on shared libraries, but programs linked with such libtool
7157 *** libraries will work regardless of this problem. Nevertheless, you
7158 *** may want to report the problem to your system manager and/or to
7159 *** bug-libtool@gnu.org
7169 MAGIC_CMD="$lt_save_MAGIC_CMD"
7174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175 if test -n "$MAGIC_CMD"; then
7176 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7177 echo "${ECHO_T}$MAGIC_CMD" >&6
7179 echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6
7183 if test -z "$lt_cv_path_MAGIC_CMD"; then
7184 if test -n "$ac_tool_prefix"; then
7185 echo "$as_me:$LINENO: checking for file" >&5
7186 echo $ECHO_N "checking for file... $ECHO_C" >&6
7187 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7195 lt_save_MAGIC_CMD="$MAGIC_CMD"
7196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7198 for ac_dir in $ac_dummy; do
7200 test -z "$ac_dir" && ac_dir=.
7201 if test -f $ac_dir/file; then
7202 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7203 if test -n "$file_magic_test_file"; then
7204 case $deplibs_check_method in
7206 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7209 $EGREP "$file_magic_regex" > /dev/null; then
7214 *** Warning: the command libtool uses to detect shared libraries,
7215 *** $file_magic_cmd, produces output that libtool cannot recognize.
7216 *** The result is that libtool may fail to recognize shared libraries
7217 *** as such. This will affect the creation of libtool libraries that
7218 *** depend on shared libraries, but programs linked with such libtool
7219 *** libraries will work regardless of this problem. Nevertheless, you
7220 *** may want to report the problem to your system manager and/or to
7221 *** bug-libtool@gnu.org
7231 MAGIC_CMD="$lt_save_MAGIC_CMD"
7236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7237 if test -n "$MAGIC_CMD"; then
7238 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7239 echo "${ECHO_T}$MAGIC_CMD" >&6
7241 echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7257 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7258 if test "${enable_libtool_lock+set}" = set; then
7259 enableval="$enable_libtool_lock"
7262 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7265 # Check whether --with-pic or --without-pic was given.
7266 if test "${with_pic+set}" = set; then
7272 test -z "$pic_mode" && pic_mode=default
7274 # Use C for the default configuration in the libtool script
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284 # Source file extension for C test sources.
7287 # Object file extension for compiled C test sources.
7291 # Code to be used in simple compile tests
7292 lt_simple_compile_test_code="int some_variable = 0;\n"
7294 # Code to be used in simple link tests
7295 lt_simple_link_test_code='int main(){return(0);}\n'
7298 # If no C compiler was specified, use CC.
7301 # Allow CC to be a program name with arguments.
7306 # Check for any special shared library compilation flags.
7309 if test "$GCC" = no; then
7312 lt_prog_cc_shlib='-belf'
7316 if test -n "$lt_prog_cc_shlib"; then
7317 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7318 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7319 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7321 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7322 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7323 lt_cv_prog_cc_can_build_shared=no
7329 # Check to make sure the static flag actually works.
7331 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7332 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7333 if test "${lt_prog_compiler_static_works+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 lt_prog_compiler_static_works=no
7337 save_LDFLAGS="$LDFLAGS"
7338 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7339 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7340 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7341 # The compiler can only warn and ignore the option if not recognized
7342 # So say no if there are warnings
7343 if test -s conftest.err; then
7344 # Append any errors to the config.log.
7345 cat conftest.err 1>&5
7347 lt_prog_compiler_static_works=yes
7351 LDFLAGS="$save_LDFLAGS"
7354 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7355 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7357 if test x"$lt_prog_compiler_static_works" = xyes; then
7360 lt_prog_compiler_static=
7366 lt_prog_compiler_no_builtin_flag=
7368 if test "$GCC" = yes; then
7369 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7372 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7373 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7374 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 lt_cv_prog_compiler_rtti_exceptions=no
7378 ac_outfile=conftest.$ac_objext
7379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7380 lt_compiler_flag="-fno-rtti -fno-exceptions"
7381 # Insert the option either (1) after the last *FLAGS variable, or
7382 # (2) before a word containing "conftest.", or (3) at the end.
7383 # Note that $ac_compile itself does not contain backslashes and begins
7384 # with a dollar sign (not a hyphen), so the echo should work correctly.
7385 # The option is referenced via a variable to avoid confusing sed.
7386 lt_compile=`echo "$ac_compile" | $SED \
7387 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7389 -e 's:$: $lt_compiler_flag:'`
7390 (eval echo "\"\$as_me:7390: $lt_compile\"" >&5)
7391 (eval "$lt_compile" 2>conftest.err)
7393 cat conftest.err >&5
7394 echo "$as_me:7394: \$? = $ac_status" >&5
7395 if (exit $ac_status) && test -s "$ac_outfile"; then
7396 # The compiler can only warn and ignore the option if not recognized
7397 # So say no if there are warnings
7398 if test ! -s conftest.err; then
7399 lt_cv_prog_compiler_rtti_exceptions=yes
7405 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7406 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7408 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7409 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7416 lt_prog_compiler_wl=
7417 lt_prog_compiler_pic=
7418 lt_prog_compiler_static=
7420 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7421 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7423 if test "$GCC" = yes; then
7424 lt_prog_compiler_wl='-Wl,'
7425 lt_prog_compiler_static='-static'
7429 # All AIX code is PIC.
7430 if test "$host_cpu" = ia64; then
7431 # AIX 5 now supports IA64 processor
7432 lt_prog_compiler_static='-Bstatic'
7437 # FIXME: we need at least 68020 code to build shared libraries, but
7438 # adding the `-m68020' flag to GCC prevents building anything better,
7440 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7443 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7444 # PIC is the default for these OSes.
7447 mingw* | pw32* | os2*)
7448 # This hack is so that the source file can tell whether it is being
7449 # built for inclusion in a dll (and should export symbols for example).
7450 lt_prog_compiler_pic='-DDLL_EXPORT'
7453 darwin* | rhapsody*)
7454 # PIC is the default on this platform
7455 # Common symbols not allowed in MH_DYLIB files
7456 lt_prog_compiler_pic='-fno-common'
7460 # Just because we use GCC doesn't mean we suddenly get shared libraries
7461 # on systems that don't support them.
7462 lt_prog_compiler_can_build_shared=no
7467 if test -d /usr/nec; then
7468 lt_prog_compiler_pic=-Kconform_pic
7473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7480 lt_prog_compiler_pic='-fPIC'
7486 lt_prog_compiler_pic='-fPIC'
7490 # PORTME Check for flag to pass linker flags through the system compiler.
7493 lt_prog_compiler_wl='-Wl,'
7494 if test "$host_cpu" = ia64; then
7495 # AIX 5 now supports IA64 processor
7496 lt_prog_compiler_static='-Bstatic'
7498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7502 mingw* | pw32* | os2*)
7503 # This hack is so that the source file can tell whether it is being
7504 # built for inclusion in a dll (and should export symbols for example).
7505 lt_prog_compiler_pic='-DDLL_EXPORT'
7508 hpux9* | hpux10* | hpux11*)
7509 lt_prog_compiler_wl='-Wl,'
7510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7517 lt_prog_compiler_pic='+Z'
7520 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7521 lt_prog_compiler_static='${wl}-a ${wl}archive'
7524 irix5* | irix6* | nonstopux*)
7525 lt_prog_compiler_wl='-Wl,'
7526 # PIC (with -KPIC) is the default.
7527 lt_prog_compiler_static='-non_shared'
7531 lt_prog_compiler_pic='-KPIC'
7532 lt_prog_compiler_static='-Bstatic'
7538 lt_prog_compiler_wl='-Wl,'
7539 lt_prog_compiler_pic='-KPIC'
7540 lt_prog_compiler_static='-static'
7543 lt_prog_compiler_wl='-Wl,'
7544 # All Alpha code is PIC.
7545 lt_prog_compiler_static='-non_shared'
7550 osf3* | osf4* | osf5*)
7551 lt_prog_compiler_wl='-Wl,'
7552 # All OSF/1 code is PIC.
7553 lt_prog_compiler_static='-non_shared'
7557 lt_prog_compiler_pic='-Kpic'
7558 lt_prog_compiler_static='-dn'
7562 lt_prog_compiler_wl='-Wl,'
7563 lt_prog_compiler_pic='-KPIC'
7564 lt_prog_compiler_static='-Bstatic'
7568 lt_prog_compiler_wl='-Qoption ld '
7569 lt_prog_compiler_pic='-PIC'
7570 lt_prog_compiler_static='-Bstatic'
7573 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7574 lt_prog_compiler_wl='-Wl,'
7575 lt_prog_compiler_pic='-KPIC'
7576 lt_prog_compiler_static='-Bstatic'
7580 if test -d /usr/nec ;then
7581 lt_prog_compiler_pic='-Kconform_pic'
7582 lt_prog_compiler_static='-Bstatic'
7587 lt_prog_compiler_pic='-pic'
7588 lt_prog_compiler_static='-Bstatic'
7592 lt_prog_compiler_can_build_shared=no
7597 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7598 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7601 # Check to make sure the PIC flag actually works.
7603 if test -n "$lt_prog_compiler_pic"; then
7605 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_pic_works+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 lt_prog_compiler_pic_works=no
7611 ac_outfile=conftest.$ac_objext
7612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7613 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7614 # Insert the option either (1) after the last *FLAGS variable, or
7615 # (2) before a word containing "conftest.", or (3) at the end.
7616 # Note that $ac_compile itself does not contain backslashes and begins
7617 # with a dollar sign (not a hyphen), so the echo should work correctly.
7618 # The option is referenced via a variable to avoid confusing sed.
7619 lt_compile=`echo "$ac_compile" | $SED \
7620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622 -e 's:$: $lt_compiler_flag:'`
7623 (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624 (eval "$lt_compile" 2>conftest.err)
7626 cat conftest.err >&5
7627 echo "$as_me:7627: \$? = $ac_status" >&5
7628 if (exit $ac_status) && test -s "$ac_outfile"; then
7629 # The compiler can only warn and ignore the option if not recognized
7630 # So say no if there are warnings
7631 if test ! -s conftest.err; then
7632 lt_prog_compiler_pic_works=yes
7638 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7639 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7641 if test x"$lt_prog_compiler_pic_works" = xyes; then
7642 case $lt_prog_compiler_pic in
7644 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7647 lt_prog_compiler_pic=
7648 lt_prog_compiler_can_build_shared=no
7653 # For platforms which do not support PIC, -DPIC is meaningless:
7655 lt_prog_compiler_pic=
7658 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7662 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7663 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7664 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 lt_cv_prog_compiler_c_o=no
7668 $rm -r conftest 2>/dev/null
7672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7674 lt_compiler_flag="-o out/conftest2.$ac_objext"
7675 # Insert the option either (1) after the last *FLAGS variable, or
7676 # (2) before a word containing "conftest.", or (3) at the end.
7677 # Note that $ac_compile itself does not contain backslashes and begins
7678 # with a dollar sign (not a hyphen), so the echo should work correctly.
7679 lt_compile=`echo "$ac_compile" | $SED \
7680 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7682 -e 's:$: $lt_compiler_flag:'`
7683 (eval echo "\"\$as_me:7683: $lt_compile\"" >&5)
7684 (eval "$lt_compile" 2>out/conftest.err)
7686 cat out/conftest.err >&5
7687 echo "$as_me:7687: \$? = $ac_status" >&5
7688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7690 # The compiler can only warn and ignore the option if not recognized
7691 # So say no if there are warnings
7692 if test ! -s out/conftest.err; then
7693 lt_cv_prog_compiler_c_o=yes
7698 # SGI C++ compiler will create directory out/ii_files/ for
7699 # template instantiation
7700 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7701 $rm out/* && rmdir out
7707 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7708 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7711 hard_links="nottested"
7712 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7713 # do not overwrite the value of need_locks provided by the user
7714 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7715 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7720 ln conftest.a conftest.b 2>&5 || hard_links=no
7721 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7722 echo "$as_me:$LINENO: result: $hard_links" >&5
7723 echo "${ECHO_T}$hard_links" >&6
7724 if test "$hard_links" = no; then
7725 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7726 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7733 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7734 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7737 allow_undefined_flag=
7738 enable_shared_with_static_runtimes=no
7740 archive_expsym_cmds=
7741 old_archive_From_new_cmds=
7742 old_archive_from_expsyms_cmds=
7743 export_dynamic_flag_spec=
7744 whole_archive_flag_spec=
7745 thread_safe_flag_spec=
7746 hardcode_libdir_flag_spec=
7747 hardcode_libdir_flag_spec_ld=
7748 hardcode_libdir_separator=
7751 hardcode_shlibpath_var=unsupported
7752 link_all_deplibs=unknown
7753 hardcode_automatic=no
7756 always_export_symbols=no
7757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7758 # include_expsyms should be a list of space-separated symbols to be *always*
7759 # included in the symbol list
7761 # exclude_expsyms can be an extended regexp of symbols to exclude
7762 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7764 # as well as any symbol that contains `d'.
7765 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7767 # platforms (ab)use it in PIC code, but their linkers get confused if
7768 # the symbol is explicitly referenced. Since portable code cannot
7769 # rely on this symbol name, it's probably fine to never include it in
7770 # preloaded symbol tables.
7771 extract_expsyms_cmds=
7774 cygwin* | mingw* | pw32*)
7775 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7776 # When not using gcc, we currently assume that we are using
7777 # Microsoft Visual C++.
7778 if test "$GCC" != yes; then
7788 if test "$with_gnu_ld" = yes; then
7789 # If archive_cmds runs LD, not CC, wlarc should be empty
7792 # See if GNU ld supports shared libraries.
7794 aix3* | aix4* | aix5*)
7795 # On AIX/PPC, the GNU linker is very broken
7796 if test "$host_cpu" != ia64; then
7800 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7801 *** to be unable to reliably create shared libraries on AIX.
7802 *** Therefore, libtool is disabling shared libraries support. If you
7803 *** really care for shared libraries, you may want to modify your PATH
7804 *** so that a non-GNU linker is found, and then restart.
7811 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)'
7812 hardcode_libdir_flag_spec='-L$libdir'
7813 hardcode_minus_L=yes
7815 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7816 # that the semantics of dynamic libraries on AmigaOS, at least up
7817 # to version 4, is to share data among multiple programs linked
7818 # with the same dynamic library. Since this doesn't match the
7819 # behavior of shared libraries on other platforms, we can't use
7825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7826 allow_undefined_flag=unsupported
7827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7828 # support --undefined. This deserves some investigation. FIXME
7829 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7835 cygwin* | mingw* | pw32*)
7836 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7837 # as there is no search path for DLLs.
7838 hardcode_libdir_flag_spec='-L$libdir'
7839 allow_undefined_flag=unsupported
7840 always_export_symbols=no
7841 enable_shared_with_static_runtimes=yes
7842 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7844 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7846 # If the export-symbols file already is a .def file (1st line
7847 # is EXPORTS), use it as is; otherwise, prepend...
7848 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7849 cp $export_symbols $output_objdir/$soname.def;
7851 echo EXPORTS > $output_objdir/$soname.def;
7852 cat $export_symbols >> $output_objdir/$soname.def;
7854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7861 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7862 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7871 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7875 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7876 *** create shared libraries on Solaris systems. Therefore, libtool
7877 *** is disabling shared libraries support. We urge you to upgrade GNU
7878 *** binutils to release 2.9.1 or newer. Another option is to modify
7879 *** your PATH or compiler configuration so that the native linker is
7880 *** used, and then restart.
7883 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7895 hardcode_shlibpath_var=no
7899 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7900 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7901 archive_cmds="$tmp_archive_cmds"
7902 supports_anon_versioning=no
7903 case `$LD -v 2>/dev/null` in
7904 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7905 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7906 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7907 *\ 2.11.*) ;; # other 2.11 versions
7908 *) supports_anon_versioning=yes ;;
7910 if test $supports_anon_versioning = yes; then
7911 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7913 $echo "local: *; };" >> $output_objdir/$libname.ver~
7914 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7916 archive_expsym_cmds="$tmp_archive_cmds"
7924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7926 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7933 if test "$ld_shlibs" = yes; then
7934 runpath_var=LD_RUN_PATH
7935 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7936 export_dynamic_flag_spec='${wl}--export-dynamic'
7937 # ancient GNU ld didn't support --whole-archive et. al.
7938 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7939 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7941 whole_archive_flag_spec=
7945 # PORTME fill in a description of your system's linker (not GNU ld)
7948 allow_undefined_flag=unsupported
7949 always_export_symbols=yes
7950 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'
7951 # Note: this linker hardcodes the directories in LIBPATH if there
7952 # are no directories specified by -L.
7953 hardcode_minus_L=yes
7954 if test "$GCC" = yes && test -z "$link_static_flag"; then
7955 # Neither direct hardcoding nor static linking is supported with a
7957 hardcode_direct=unsupported
7962 if test "$host_cpu" = ia64; then
7963 # On IA64, the linker does run time linking by default, so we don't
7964 # have to do anything special.
7965 aix_use_runtimelinking=no
7966 exp_sym_flag='-Bexport'
7969 # If we're using GNU nm, then we don't want the "-C" option.
7970 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7971 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7972 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'
7974 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'
7976 aix_use_runtimelinking=no
7978 # Test if we are trying to use run time linking or normal
7979 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7980 # need to do runtime linking.
7981 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7982 for ld_flag in $LDFLAGS; do
7983 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7984 aix_use_runtimelinking=yes
7990 exp_sym_flag='-bexport'
7991 no_entry_flag='-bnoentry'
7994 # When large executables or shared objects are built, AIX ld can
7995 # have problems creating the table of contents. If linking a library
7996 # or program results in "error TOC overflow" add -mminimal-toc to
7997 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7998 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8002 hardcode_libdir_separator=':'
8003 link_all_deplibs=yes
8005 if test "$GCC" = yes; then
8006 case $host_os in aix4.012|aix4.012.*)
8007 # We only want to do this on AIX 4.2 and lower, the check
8008 # below for broken collect2 doesn't work under 4.3+
8009 collect2name=`${CC} -print-prog-name=collect2`
8010 if test -f "$collect2name" && \
8011 strings "$collect2name" | grep resolve_lib_name >/dev/null
8013 # We have reworked collect2
8016 # We have old collect2
8017 hardcode_direct=unsupported
8018 # It fails to find uninstalled libraries when the uninstalled
8019 # path is not listed in the libpath. Setting hardcode_minus_L
8020 # to unsupported forces relinking
8021 hardcode_minus_L=yes
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_libdir_separator=
8026 shared_flag='-shared'
8029 if test "$host_cpu" = ia64; then
8030 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8031 # chokes on -Wl,-G. The following line is correct:
8034 if test "$aix_use_runtimelinking" = yes; then
8035 shared_flag='${wl}-G'
8037 shared_flag='${wl}-bM:SRE'
8042 # It seems that -bexpall does not export symbols beginning with
8043 # underscore (_), so it is better to generate a list of symbols to export.
8044 always_export_symbols=yes
8045 if test "$aix_use_runtimelinking" = yes; then
8046 # Warning - without using the other runtime loading flags (-brtl),
8047 # -berok will link without error, but may produce a broken library.
8048 allow_undefined_flag='-berok'
8049 # Determine the default libpath from the value encoded in an empty executable.
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>conftest.er1
8069 grep -v '^ *+' conftest.er1 >conftest.err
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag"
8075 || test ! -s conftest.err'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; } &&
8081 { ac_try='test -s conftest$ac_exeext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8090 # Check for a 64-bit object if we didn't find anything.
8091 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8098 rm -f conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8102 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8103 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8105 if test "$host_cpu" = ia64; then
8106 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8107 allow_undefined_flag="-z nodefs"
8108 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8110 # Determine the default libpath from the value encoded in an empty executable.
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8126 rm -f conftest.$ac_objext conftest$ac_exeext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8128 (eval $ac_link) 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag"
8136 || test ! -s conftest.err'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest$ac_exeext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8151 # Check for a 64-bit object if we didn't find anything.
8152 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8159 rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8164 # Warning - without using the other run time loading flags,
8165 # -berok will link without error, but may produce a broken library.
8166 no_undefined_flag=' ${wl}-bernotok'
8167 allow_undefined_flag=' ${wl}-berok'
8168 # -bexpall does not export symbols beginning with underscore (_)
8169 always_export_symbols=yes
8170 # Exported symbols can be pulled into shared objects from archives
8171 whole_archive_flag_spec=' '
8172 archive_cmds_need_lc=yes
8173 # This is similar to how AIX traditionally builds it's shared libraries.
8174 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8180 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)'
8181 hardcode_libdir_flag_spec='-L$libdir'
8182 hardcode_minus_L=yes
8183 # see comment about different semantics on the GNU ld section
8188 export_dynamic_flag_spec=-rdynamic
8191 cygwin* | mingw* | pw32*)
8192 # When not using gcc, we currently assume that we are using
8193 # Microsoft Visual C++.
8194 # hardcode_libdir_flag_spec is actually meaningless, as there is
8195 # no search path for DLLs.
8196 hardcode_libdir_flag_spec=' '
8197 allow_undefined_flag=unsupported
8198 # Tell ltmain to make .lib files, not .a files.
8200 # Tell ltmain to make .dll files, not .so files.
8202 # FIXME: Setting linknames here is a bad hack.
8203 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8204 # The linker will automatically build a .lib file if we build a DLL.
8205 old_archive_From_new_cmds='true'
8206 # FIXME: Should let the user specify the lib program.
8207 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8208 fix_srcfile_path='`cygpath -w "$srcfile"`'
8209 enable_shared_with_static_runtimes=yes
8212 darwin* | rhapsody*)
8213 if test "$GXX" = yes ; then
8214 archive_cmds_need_lc=no
8216 rhapsody* | darwin1.[012])
8217 allow_undefined_flag='-undefined suppress'
8220 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8221 allow_undefined_flag='-flat_namespace -undefined suppress'
8223 case ${MACOSX_DEPLOYMENT_TARGET} in
8225 allow_undefined_flag='-flat_namespace -undefined suppress'
8228 allow_undefined_flag='-undefined dynamic_lookup'
8234 lt_int_apple_cc_single_mod=no
8235 output_verbose_link_cmd='echo'
8236 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8237 lt_int_apple_cc_single_mod=yes
8239 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8240 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8242 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8244 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8246 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8247 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8249 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8251 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8253 hardcode_automatic=yes
8254 hardcode_shlibpath_var=unsupported
8255 whole_archive_flag_spec='-all_load $convenience'
8256 link_all_deplibs=yes
8263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_shlibpath_var=no
8272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8273 # support. Future versions do this automatically, but an explicit c++rt0.o
8274 # does not break anything, and helps significantly (at the cost of a little
8277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8278 hardcode_libdir_flag_spec='-R$libdir'
8280 hardcode_shlibpath_var=no
8283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8287 hardcode_minus_L=yes
8288 hardcode_shlibpath_var=no
8291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8292 freebsd* | kfreebsd*-gnu)
8293 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8294 hardcode_libdir_flag_spec='-R$libdir'
8296 hardcode_shlibpath_var=no
8300 if test "$GCC" = yes; then
8301 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'
8303 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'
8305 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8306 hardcode_libdir_separator=:
8309 # hardcode_minus_L: Not really in the search PATH,
8310 # but as the default location of the library.
8311 hardcode_minus_L=yes
8312 export_dynamic_flag_spec='${wl}-E'
8316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8319 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8322 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8328 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8331 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8335 if test "$with_gnu_ld" = no; then
8338 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8339 hardcode_libdir_flag_spec_ld='+b $libdir'
8340 hardcode_libdir_separator=:
8342 hardcode_shlibpath_var=no
8345 hardcode_libdir_flag_spec='-L$libdir'
8347 hardcode_shlibpath_var=no
8349 # hardcode_minus_L: Not really in the search PATH,
8350 # but as the default location of the library.
8351 hardcode_minus_L=yes
8354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8355 hardcode_libdir_separator=:
8357 export_dynamic_flag_spec='${wl}-E'
8359 # hardcode_minus_L: Not really in the search PATH,
8360 # but as the default location of the library.
8361 hardcode_minus_L=yes
8367 irix5* | irix6* | nonstopux*)
8368 if test "$GCC" = yes; then
8369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8371 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8372 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8375 hardcode_libdir_separator=:
8376 link_all_deplibs=yes
8380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8383 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8385 hardcode_libdir_flag_spec='-R$libdir'
8387 hardcode_shlibpath_var=no
8391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8394 hardcode_libdir_separator=:
8395 hardcode_shlibpath_var=no
8400 hardcode_shlibpath_var=no
8401 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8404 export_dynamic_flag_spec='${wl}-E'
8407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8409 hardcode_libdir_flag_spec='-R$libdir'
8412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8420 hardcode_libdir_flag_spec='-L$libdir'
8421 hardcode_minus_L=yes
8422 allow_undefined_flag=unsupported
8423 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'
8424 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8428 if test "$GCC" = yes; then
8429 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8430 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8432 allow_undefined_flag=' -expect_unresolved \*'
8433 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436 hardcode_libdir_separator=:
8439 osf4* | osf5*) # as osf3* with the addition of -msym flag
8440 if test "$GCC" = yes; then
8441 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8442 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8445 allow_undefined_flag=' -expect_unresolved \*'
8446 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8447 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8448 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8450 # Both c and cxx compiler support -rpath directly
8451 hardcode_libdir_flag_spec='-rpath $libdir'
8453 hardcode_libdir_separator=:
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_shlibpath_var=no
8459 export_dynamic_flag_spec='${wl}-Bexport'
8460 runpath_var=LD_RUN_PATH
8461 hardcode_runpath_var=yes
8465 no_undefined_flag=' -z text'
8466 if test "$GCC" = yes; then
8467 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8469 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8471 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8475 hardcode_libdir_flag_spec='-R$libdir'
8476 hardcode_shlibpath_var=no
8478 solaris2.[0-5] | solaris2.[0-5].*) ;;
8479 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8480 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8482 link_all_deplibs=yes
8486 if test "x$host_vendor" = xsequent; then
8487 # Use $CC to link under sequent, because it throws in some extra .o
8488 # files that make .init and .fini sections work.
8489 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8491 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8493 hardcode_libdir_flag_spec='-L$libdir'
8495 hardcode_minus_L=yes
8496 hardcode_shlibpath_var=no
8500 case $host_vendor in
8502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8503 hardcode_direct=yes # is this really true???
8506 ## LD is ld it makes a PLAMLIB
8507 ## CC just makes a GrossModule.
8508 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8509 reload_cmds='$CC -r -o $output$reload_objs'
8513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8517 runpath_var='LD_RUN_PATH'
8518 hardcode_shlibpath_var=no
8522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8523 hardcode_shlibpath_var=no
8524 export_dynamic_flag_spec='-Bexport'
8528 if test -d /usr/nec; then
8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_shlibpath_var=no
8531 runpath_var=LD_RUN_PATH
8532 hardcode_runpath_var=yes
8538 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_shlibpath_var=no
8542 hardcode_runpath_var=yes
8543 runpath_var=LD_RUN_PATH
8546 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8547 no_undefined_flag='${wl}-z ${wl}text'
8548 if test "$GCC" = yes; then
8549 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8551 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8553 runpath_var='LD_RUN_PATH'
8554 hardcode_shlibpath_var=no
8558 no_undefined_flag=' -z text'
8559 # $CC -shared without GNU ld will not create a library from C++
8560 # object files and a static libstdc++, better avoid it by now
8561 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8564 hardcode_libdir_flag_spec=
8565 hardcode_shlibpath_var=no
8566 runpath_var='LD_RUN_PATH'
8570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_shlibpath_var=no
8581 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8582 echo "${ECHO_T}$ld_shlibs" >&6
8583 test "$ld_shlibs" = no && can_build_shared=no
8585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8586 if test "$GCC" = yes; then
8587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8591 # Do we need to explicitly link libc?
8593 case "x$archive_cmds_need_lc" in
8595 # Assume -lc should be added
8596 archive_cmds_need_lc=yes
8598 if test "$enable_shared" = yes && test "$GCC" = yes; then
8599 case $archive_cmds in
8601 # FIXME: we may have to deal with multi-command sequences.
8604 # Test whether the compiler implicitly links with -lc since on some
8605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8606 # to ld, don't add -lc before -lgcc.
8607 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8613 (eval $ac_compile) 2>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } 2>conftest.err; then
8619 libobjs=conftest.$ac_objext
8621 wl=$lt_prog_compiler_wl
8627 lt_save_allow_undefined_flag=$allow_undefined_flag
8628 allow_undefined_flag=
8629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8630 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }
8635 archive_cmds_need_lc=no
8637 archive_cmds_need_lc=yes
8639 allow_undefined_flag=$lt_save_allow_undefined_flag
8641 cat conftest.err 1>&5
8644 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8645 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8652 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8655 libname_spec='lib$name'
8663 shlibpath_overrides_runpath=unknown
8665 dynamic_linker="$host_os ld.so"
8666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8667 if test "$GCC" = yes; then
8668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8669 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8670 # if the path contains ";" then we assume it to be the separator
8671 # otherwise default to the standard path separator (i.e. ":") - it is
8672 # assumed that no part of a normal pathname contains ";" but that should
8673 # okay in the real world where ";" in dirpaths is itself problematic.
8674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8679 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8681 need_lib_prefix=unknown
8682 hardcode_into_libs=no
8684 # when you set need_version to no, make sure it does not cause -set_version
8685 # flags to be left without arguments
8686 need_version=unknown
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8692 shlibpath_var=LIBPATH
8694 # AIX 3 has no versioning support, so we append a major version to the name.
8695 soname_spec='${libname}${release}${shared_ext}$major'
8702 hardcode_into_libs=yes
8703 if test "$host_cpu" = ia64; then
8704 # AIX 5 supports IA64
8705 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8706 shlibpath_var=LD_LIBRARY_PATH
8708 # With GCC up to 2.95.x, collect2 would create an import file
8709 # for dependence libraries. The import file would start with
8710 # the line `#! .'. This would cause the generated library to
8711 # depend on `.', always an invalid library. This was fixed in
8712 # development snapshots of GCC prior to 3.0.
8714 aix4 | aix4.[01] | aix4.[01].*)
8715 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8717 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8724 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8725 # soname into executable. Probably we can add versioning support to
8726 # collect2, so additional links can be useful in future.
8727 if test "$aix_use_runtimelinking" = yes; then
8728 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8729 # instead of lib<name>.a to let people know that these are not
8730 # typical AIX shared libraries.
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733 # We preserve .a as extension for shared libraries through AIX4.2
8734 # and later when we are not doing run time linking.
8735 library_names_spec='${libname}${release}.a $libname.a'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8738 shlibpath_var=LIBPATH
8743 library_names_spec='$libname.ixlibrary $libname.a'
8744 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8745 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'
8749 library_names_spec='${libname}${shared_ext}'
8750 dynamic_linker="$host_os ld.so"
8751 shlibpath_var=LIBRARY_PATH
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8760 shlibpath_var=LD_LIBRARY_PATH
8761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8763 # the default ld.so.conf also contains /usr/contrib/lib and
8764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8765 # libtool to hard-code these into programs
8768 cygwin* | mingw* | pw32*)
8769 version_type=windows
8774 case $GCC,$host_os in
8775 yes,cygwin* | yes,mingw* | yes,pw32*)
8776 library_names_spec='$libname.dll.a'
8777 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8778 postinstall_cmds='base_file=`basename \${file}`~
8779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8780 dldir=$destdir/`dirname \$dlpath`~
8781 test -d \$dldir || mkdir -p \$dldir~
8782 $install_prog $dir/$dlname \$dldir/$dlname'
8783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8784 dlpath=$dir/\$dldll~
8786 shlibpath_overrides_runpath=yes
8790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8795 # MinGW DLLs use traditional 'lib' prefix
8796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8799 # It is most probably a Windows format PATH printed by
8800 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8801 # path with ; separators, and with drive letters. We can handle the
8802 # drive letters (cygwin fileutils understands them), so leave them,
8803 # especially as we might pass files found there to a mingw objdump,
8804 # which wouldn't understand a cygwinified path. Ahh.
8805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8811 # pw32 DLLs use 'pw' prefix rather than 'lib'
8812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8821 dynamic_linker='Win32 ld.exe'
8822 # FIXME: first we should search . and the directory the executable is in
8826 darwin* | rhapsody*)
8827 dynamic_linker="$host_os dyld"
8831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8832 soname_spec='${libname}${release}${major}$shared_ext'
8833 shlibpath_overrides_runpath=yes
8834 shlibpath_var=DYLD_LIBRARY_PATH
8835 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8837 if test "$GCC" = yes; then
8838 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 shlibpath_var=LD_LIBRARY_PATH
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 shlibpath_overrides_runpath=no
8866 hardcode_into_libs=yes
8867 dynamic_linker='GNU ld.so'
8871 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8872 version_type=freebsd-$objformat
8873 case $version_type in
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8884 shlibpath_var=LD_LIBRARY_PATH
8887 shlibpath_overrides_runpath=yes
8889 freebsd3.01* | freebsdelf3.01*)
8890 shlibpath_overrides_runpath=yes
8891 hardcode_into_libs=yes
8894 shlibpath_overrides_runpath=no
8895 hardcode_into_libs=yes
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 hardcode_into_libs=yes
8910 hpux9* | hpux10* | hpux11*)
8911 # Give a soname corresponding to the major version so that dld.sl refuses to
8912 # link against other versions.
8919 hardcode_into_libs=yes
8920 dynamic_linker="$host_os dld.so"
8921 shlibpath_var=LD_LIBRARY_PATH
8922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 if test "X$HPUX_IA64_MODE" = X32; then
8926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8934 hardcode_into_libs=yes
8935 dynamic_linker="$host_os dld.sl"
8936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8945 dynamic_linker="$host_os dld.sl"
8946 shlibpath_var=SHLIB_PATH
8947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8953 postinstall_cmds='chmod 555 $lib'
8956 irix5* | irix6* | nonstopux*)
8958 nonstopux*) version_type=nonstopux ;;
8960 if test "$lt_cv_prog_gnu_ld" = yes; then
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8971 irix5* | nonstopux*)
8975 case $LD in # libtool.m4 will add one of these switches to LD
8976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8977 libsuff= shlibsuff= libmagic=32-bit;;
8978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8979 libsuff=32 shlibsuff=N32 libmagic=N32;;
8980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8982 *) libsuff= shlibsuff= libmagic=never-match;;
8986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8987 shlibpath_overrides_runpath=no
8988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8990 hardcode_into_libs=yes
8993 # No shared lib support for Linux oldld, aout, or coff.
8994 linux*oldld* | linux*aout* | linux*coff*)
8998 # This must be Linux ELF.
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=no
9008 # This implies no fast_install, which is unacceptable.
9009 # Some rework will be needed to allow for fast_install
9010 # before this can be enabled.
9011 hardcode_into_libs=yes
9013 # find out which ABI we are using
9016 x86_64*|s390x*|powerpc64*)
9017 echo '#line 9017 "configure"' > conftest.$ac_ext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019 (eval $ac_compile) 2>&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; then
9023 case `/usr/bin/file conftest.$ac_objext` in
9026 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9034 # Append ld.so.conf contents to the search path
9035 if test -f /etc/ld.so.conf; then
9036 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9037 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9040 # We used to test for /lib/ld.so.1 and disable shared libraries on
9041 # powerpc, because MkLinux only supported shared libraries with the
9042 # GNU dynamic linker. Since this was broken with cross compilers,
9043 # most powerpc-linux boxes support dynamic linking these days and
9044 # people can always --disable-shared, the test was removed, and we
9045 # assume the GNU/Linux dynamic linker is in use.
9046 dynamic_linker='GNU/Linux ld.so'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=no
9057 hardcode_into_libs=yes
9058 dynamic_linker='GNU ld.so'
9065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068 dynamic_linker='NetBSD (a.out) ld.so'
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 dynamic_linker='NetBSD ld.elf_so'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 hardcode_into_libs=yes
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=yes
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=yes
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9105 openbsd2.[89] | openbsd2.[89].*)
9106 shlibpath_overrides_runpath=no
9109 shlibpath_overrides_runpath=yes
9113 shlibpath_overrides_runpath=yes
9118 libname_spec='$name'
9121 library_names_spec='$libname${shared_ext} $libname.a'
9122 dynamic_linker='OS/2 ld.exe'
9123 shlibpath_var=LIBPATH
9126 osf3* | osf4* | osf5*)
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 shlibpath_var=LD_LIBRARY_PATH
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 shlibpath_overrides_runpath=yes
9152 hardcode_into_libs=yes
9153 # ldd complains unless libraries are executable
9154 postinstall_cmds='chmod +x $lib'
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 shlibpath_overrides_runpath=yes
9163 if test "$with_gnu_ld" = yes; then
9169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 case $host_vendor in
9176 shlibpath_overrides_runpath=no
9178 export_dynamic_flag_spec='${wl}-Blargedynsym'
9179 runpath_var=LD_RUN_PATH
9187 shlibpath_overrides_runpath=no
9188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9194 if test -d /usr/nec ;then
9196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9197 soname_spec='$libname${shared_ext}.$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 shlibpath_var=LD_LIBRARY_PATH
9213 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9214 echo "${ECHO_T}$dynamic_linker" >&6
9215 test "$dynamic_linker" = no && can_build_shared=no
9217 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9218 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9220 if test -n "$hardcode_libdir_flag_spec" || \
9221 test -n "$runpath_var " || \
9222 test "X$hardcode_automatic"="Xyes" ; then
9224 # We can hardcode non-existant directories.
9225 if test "$hardcode_direct" != no &&
9226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9227 # have to relink, otherwise we might link with an installed library
9228 # when we should be linking with a yet-to-be-installed one
9229 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9230 test "$hardcode_minus_L" != no; then
9231 # Linking always hardcodes the temporary library directory.
9232 hardcode_action=relink
9234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9235 hardcode_action=immediate
9238 # We cannot hardcode anything, or else we can only hardcode existing
9240 hardcode_action=unsupported
9242 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9243 echo "${ECHO_T}$hardcode_action" >&6
9245 if test "$hardcode_action" = relink; then
9246 # Fast installation is not supported
9247 enable_fast_install=no
9248 elif test "$shlibpath_overrides_runpath" = yes ||
9249 test "$enable_shared" = no; then
9250 # Fast installation is not necessary
9251 enable_fast_install=needless
9256 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9257 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9258 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9259 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9260 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9261 echo "$as_me:$LINENO: result: yes" >&5
9262 echo "${ECHO_T}yes" >&6
9264 # FIXME - insert some real tests, host_os isn't really good enough
9267 if test -n "$STRIP" ; then
9268 striplib="$STRIP -x"
9269 echo "$as_me:$LINENO: result: yes" >&5
9270 echo "${ECHO_T}yes" >&6
9272 echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9277 echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6
9283 if test "x$enable_dlopen" != xyes; then
9284 enable_dlopen=unknown
9285 enable_dlopen_self=unknown
9286 enable_dlopen_self_static=unknown
9293 lt_cv_dlopen="load_add_on"
9295 lt_cv_dlopen_self=yes
9299 lt_cv_dlopen="LoadLibrary"
9304 lt_cv_dlopen="dlopen"
9309 # if libdl is installed we need to link against it
9310 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9311 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9312 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 ac_check_lib_save_LIBS=$LIBS
9317 cat >conftest.$ac_ext <<_ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9324 /* Override any gcc2 internal prototype to avoid an error. */
9328 /* We use char because int might match the return type of a gcc2
9329 builtin and then its argument prototype would still apply. */
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341 (eval $ac_link) 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag"
9349 || test ! -s conftest.err'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try='test -s conftest$ac_exeext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_cv_lib_dl_dlopen=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_cv_lib_dl_dlopen=no
9368 rm -f conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9372 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9373 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9374 if test $ac_cv_lib_dl_dlopen = yes; then
9375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9380 lt_cv_dlopen_self=yes
9387 echo "$as_me:$LINENO: checking for shl_load" >&5
9388 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9389 if test "${ac_cv_func_shl_load+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 cat >conftest.$ac_ext <<_ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9398 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9400 #define shl_load innocuous_shl_load
9402 /* System header to define __stub macros and hopefully few prototypes,
9403 which can conflict with char shl_load (); below.
9404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9405 <limits.h> exists even on freestanding compilers. */
9408 # include <limits.h>
9410 # include <assert.h>
9415 /* Override any gcc2 internal prototype to avoid an error. */
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9423 /* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
9426 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9429 char (*f) () = shl_load;
9438 return f != shl_load;
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>conftest.er1
9447 grep -v '^ *+' conftest.er1 >conftest.err
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_func_shl_load=yes
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_cv_func_shl_load=no
9472 rm -f conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9475 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9476 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9477 if test $ac_cv_func_shl_load = yes; then
9478 lt_cv_dlopen="shl_load"
9480 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9481 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9482 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 ac_check_lib_save_LIBS=$LIBS
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9494 /* Override any gcc2 internal prototype to avoid an error. */
9498 /* We use char because int might match the return type of a gcc2
9499 builtin and then its argument prototype would still apply. */
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag"
9519 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_cv_lib_dld_shl_load=yes
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ac_cv_lib_dld_shl_load=no
9538 rm -f conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9542 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9543 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9544 if test $ac_cv_lib_dld_shl_load = yes; then
9545 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9547 echo "$as_me:$LINENO: checking for dlopen" >&5
9548 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9549 if test "${ac_cv_func_dlopen+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 cat >conftest.$ac_ext <<_ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9560 #define dlopen innocuous_dlopen
9562 /* System header to define __stub macros and hopefully few prototypes,
9563 which can conflict with char dlopen (); below.
9564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9565 <limits.h> exists even on freestanding compilers. */
9568 # include <limits.h>
9570 # include <assert.h>
9575 /* Override any gcc2 internal prototype to avoid an error. */
9580 /* We use char because int might match the return type of a gcc2
9581 builtin and then its argument prototype would still apply. */
9583 /* The GNU C library defines this for functions which it implements
9584 to always fail with ENOSYS. Some functions are actually named
9585 something starting with __ and the normal name is an alias. */
9586 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9589 char (*f) () = dlopen;
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest$ac_exeext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 ac_cv_func_dlopen=yes
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 ac_cv_func_dlopen=no
9632 rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9635 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9636 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9637 if test $ac_cv_func_dlopen = yes; then
9638 lt_cv_dlopen="dlopen"
9640 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9641 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 ac_check_lib_save_LIBS=$LIBS
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* Override any gcc2 internal prototype to avoid an error. */
9658 /* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671 (eval $ac_link) 2>conftest.er1
9673 grep -v '^ *+' conftest.er1 >conftest.err
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -z "$ac_c_werror_flag"
9679 || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_lib_dl_dlopen=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_lib_dl_dlopen=no
9698 rm -f conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_lib_save_LIBS
9702 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9703 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9704 if test $ac_cv_lib_dl_dlopen = yes; then
9705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9707 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9708 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9709 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 ac_check_lib_save_LIBS=$LIBS
9714 cat >conftest.$ac_ext <<_ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9721 /* Override any gcc2 internal prototype to avoid an error. */
9725 /* We use char because int might match the return type of a gcc2
9726 builtin and then its argument prototype would still apply. */
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>conftest.er1
9740 grep -v '^ *+' conftest.er1 >conftest.err
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -z "$ac_c_werror_flag"
9746 || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest$ac_exeext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_lib_svld_dlopen=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_cv_lib_svld_dlopen=no
9765 rm -f conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 LIBS=$ac_check_lib_save_LIBS
9769 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9770 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9771 if test $ac_cv_lib_svld_dlopen = yes; then
9772 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9774 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9775 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9776 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 ac_check_lib_save_LIBS=$LIBS
9781 cat >conftest.$ac_ext <<_ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9788 /* Override any gcc2 internal prototype to avoid an error. */
9792 /* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_cv_lib_dld_dld_link=yes
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_cv_lib_dld_dld_link=no
9832 rm -f conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_lib_save_LIBS
9836 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9837 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9838 if test $ac_cv_lib_dld_dld_link = yes; then
9839 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9860 if test "x$lt_cv_dlopen" != xno; then
9866 case $lt_cv_dlopen in
9868 save_CPPFLAGS="$CPPFLAGS"
9869 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9871 save_LDFLAGS="$LDFLAGS"
9872 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9875 LIBS="$lt_cv_dlopen_libs $LIBS"
9877 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9878 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9879 if test "${lt_cv_dlopen_self+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 if test "$cross_compiling" = yes; then :
9883 lt_cv_dlopen_self=cross
9885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9886 lt_status=$lt_dlunknown
9887 cat > conftest.$ac_ext <<EOF
9888 #line 9888 "configure"
9889 #include "confdefs.h"
9898 # define LT_DLGLOBAL RTLD_GLOBAL
9901 # define LT_DLGLOBAL DL_GLOBAL
9903 # define LT_DLGLOBAL 0
9907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9908 find out it does not work in some platform. */
9909 #ifndef LT_DLLAZY_OR_NOW
9911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9914 # define LT_DLLAZY_OR_NOW DL_LAZY
9917 # define LT_DLLAZY_OR_NOW RTLD_NOW
9920 # define LT_DLLAZY_OR_NOW DL_NOW
9922 # define LT_DLLAZY_OR_NOW 0
9930 extern "C" void exit (int);
9933 void fnord() { int i=42;}
9936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9937 int status = $lt_dlunknown;
9941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9942 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9943 /* dlclose (self); */
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9954 (./conftest; exit; ) 2>/dev/null
9957 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9958 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9959 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9962 # compilation failed
9963 lt_cv_dlopen_self=no
9970 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9971 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9973 if test "x$lt_cv_dlopen_self" = xyes; then
9974 LDFLAGS="$LDFLAGS $link_static_flag"
9975 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9976 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9977 if test "${lt_cv_dlopen_self_static+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 if test "$cross_compiling" = yes; then :
9981 lt_cv_dlopen_self_static=cross
9983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9984 lt_status=$lt_dlunknown
9985 cat > conftest.$ac_ext <<EOF
9986 #line 9986 "configure"
9987 #include "confdefs.h"
9996 # define LT_DLGLOBAL RTLD_GLOBAL
9999 # define LT_DLGLOBAL DL_GLOBAL
10001 # define LT_DLGLOBAL 0
10005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10006 find out it does not work in some platform. */
10007 #ifndef LT_DLLAZY_OR_NOW
10009 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10012 # define LT_DLLAZY_OR_NOW DL_LAZY
10015 # define LT_DLLAZY_OR_NOW RTLD_NOW
10018 # define LT_DLLAZY_OR_NOW DL_NOW
10020 # define LT_DLLAZY_OR_NOW 0
10028 extern "C" void exit (int);
10031 void fnord() { int i=42;}
10034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10035 int status = $lt_dlunknown;
10039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10040 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10041 /* dlclose (self); */
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10052 (./conftest; exit; ) 2>/dev/null
10054 case x$lt_status in
10055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10057 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10060 # compilation failed
10061 lt_cv_dlopen_self_static=no
10068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10069 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10072 CPPFLAGS="$save_CPPFLAGS"
10073 LDFLAGS="$save_LDFLAGS"
10078 case $lt_cv_dlopen_self in
10079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10080 *) enable_dlopen_self=unknown ;;
10083 case $lt_cv_dlopen_self_static in
10084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10085 *) enable_dlopen_self_static=unknown ;;
10090 # Report which librarie types wil actually be built
10091 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10092 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10093 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10094 echo "${ECHO_T}$can_build_shared" >&6
10096 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10097 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10098 test "$can_build_shared" = "no" && enable_shared=no
10100 # On AIX, shared libraries and static libraries use the same namespace, and
10101 # are all built from PIC.
10104 test "$enable_shared" = yes && enable_static=no
10105 if test -n "$RANLIB"; then
10106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10107 postinstall_cmds='$RANLIB $lib'
10112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10113 test "$enable_shared" = yes && enable_static=no
10116 darwin* | rhapsody*)
10117 if test "$GCC" = yes; then
10118 archive_cmds_need_lc=no
10120 rhapsody* | darwin1.[012])
10121 allow_undefined_flag='-undefined suppress'
10124 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10125 allow_undefined_flag='-flat_namespace -undefined suppress'
10127 case ${MACOSX_DEPLOYMENT_TARGET} in
10129 allow_undefined_flag='-flat_namespace -undefined suppress'
10132 allow_undefined_flag='-undefined dynamic_lookup'
10138 output_verbose_link_cmd='echo'
10139 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10140 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10142 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10143 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10145 hardcode_automatic=yes
10146 hardcode_shlibpath_var=unsupported
10147 whole_archive_flag_spec='-all_load $convenience'
10148 link_all_deplibs=yes
10154 echo "$as_me:$LINENO: result: $enable_shared" >&5
10155 echo "${ECHO_T}$enable_shared" >&6
10157 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10158 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10159 # Make sure either enable_shared or enable_static is yes.
10160 test "$enable_shared" = yes || enable_static=yes
10161 echo "$as_me:$LINENO: result: $enable_static" >&5
10162 echo "${ECHO_T}$enable_static" >&6
10164 # The else clause should only fire when bootstrapping the
10165 # libtool distribution, otherwise you forgot to ship ltmain.sh
10166 # with your package, and you will get complaints that there are
10167 # no rules to generate ltmain.sh.
10168 if test -f "$ltmain"; then
10169 # See if we are running on zsh, and set the options which allow our commands through
10170 # without removal of \ escapes.
10171 if test -n "${ZSH_VERSION+set}" ; then
10172 setopt NO_GLOB_SUBST
10174 # Now quote all the things that may contain metacharacters while being
10175 # careful not to overquote the AC_SUBSTed values. We take copies of the
10176 # variables and quote the copies for generation of the libtool script.
10177 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10179 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10180 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10181 deplibs_check_method reload_flag reload_cmds need_locks \
10182 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10183 lt_cv_sys_global_symbol_to_c_name_address \
10184 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10185 old_postinstall_cmds old_postuninstall_cmds \
10189 lt_prog_compiler_wl \
10190 lt_prog_compiler_pic \
10191 lt_prog_compiler_static \
10192 lt_prog_compiler_no_builtin_flag \
10193 export_dynamic_flag_spec \
10194 thread_safe_flag_spec \
10195 whole_archive_flag_spec \
10196 enable_shared_with_static_runtimes \
10198 old_archive_from_new_cmds \
10203 compiler_lib_search_path \
10205 archive_expsym_cmds \
10207 postuninstall_cmds \
10208 old_archive_from_expsyms_cmds \
10209 allow_undefined_flag \
10210 no_undefined_flag \
10211 export_symbols_cmds \
10212 hardcode_libdir_flag_spec \
10213 hardcode_libdir_flag_spec_ld \
10214 hardcode_libdir_separator \
10215 hardcode_automatic \
10217 module_expsym_cmds \
10218 lt_cv_prog_compiler_c_o \
10220 include_expsyms; do
10223 old_archive_cmds | \
10224 old_archive_from_new_cmds | \
10226 archive_expsym_cmds | \
10228 module_expsym_cmds | \
10229 old_archive_from_expsyms_cmds | \
10230 export_symbols_cmds | \
10231 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10232 postinstall_cmds | postuninstall_cmds | \
10233 old_postinstall_cmds | old_postuninstall_cmds | \
10234 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10235 # Double-quote double-evaled strings.
10236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10245 *'\$0 --fallback-echo"')
10246 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10250 cfgfile="${ofile}T"
10251 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10253 { echo "$as_me:$LINENO: creating $ofile" >&5
10254 echo "$as_me: creating $ofile" >&6;}
10256 cat <<__EOF__ >> "$cfgfile"
10259 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10260 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10261 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10263 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10264 # Free Software Foundation, Inc.
10266 # This file is part of GNU Libtool:
10267 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10269 # This program is free software; you can redistribute it and/or modify
10270 # it under the terms of the GNU General Public License as published by
10271 # the Free Software Foundation; either version 2 of the License, or
10272 # (at your option) any later version.
10274 # This program is distributed in the hope that it will be useful, but
10275 # WITHOUT ANY WARRANTY; without even the implied warranty of
10276 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10277 # General Public License for more details.
10279 # You should have received a copy of the GNU General Public License
10280 # along with this program; if not, write to the Free Software
10281 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10283 # As a special exception to the GNU General Public License, if you
10284 # distribute this file as part of a program that contains a
10285 # configuration script generated by Autoconf, you may include it under
10286 # the same distribution terms that you use for the rest of that program.
10288 # A sed program that does not truncate output.
10291 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10292 Xsed="$SED -e s/^X//"
10294 # The HP-UX ksh and POSIX shell print the target directory to stdout
10295 # if CDPATH is set.
10296 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10298 # The names of the tagged configurations supported by this script.
10301 # ### BEGIN LIBTOOL CONFIG
10303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10305 # Shell to use when invoking shell scripts.
10308 # Whether or not to build shared libraries.
10309 build_libtool_libs=$enable_shared
10311 # Whether or not to build static libraries.
10312 build_old_libs=$enable_static
10314 # Whether or not to add -lc for building shared libraries.
10315 build_libtool_need_lc=$archive_cmds_need_lc
10317 # Whether or not to disallow shared libs when runtime libs are static
10318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10320 # Whether or not to optimize for fast installation.
10321 fast_install=$enable_fast_install
10324 host_alias=$host_alias
10327 # An echo program that does not interpret backslashes.
10332 AR_FLAGS=$lt_AR_FLAGS
10337 # A language-specific compiler.
10340 # Is the compiler the GNU C compiler?
10346 # The linker used to build libraries.
10349 # Whether we need hard or soft links.
10352 # A BSD-compatible nm program.
10355 # A symbol stripping program
10358 # Used to examine libraries when file_magic_cmd begins "file"
10359 MAGIC_CMD=$MAGIC_CMD
10361 # Used on cygwin: DLL creation program.
10364 # Used on cygwin: object dumper.
10367 # Used on cygwin: assembler.
10370 # The name of the directory that contains temporary libtool files.
10373 # How to create reloadable object files.
10374 reload_flag=$lt_reload_flag
10375 reload_cmds=$lt_reload_cmds
10377 # How to pass a linker flag through the compiler.
10378 wl=$lt_lt_prog_compiler_wl
10380 # Object file suffix (normally "o").
10381 objext="$ac_objext"
10383 # Old archive suffix (normally "a").
10386 # Shared library suffix (normally ".so").
10387 shrext_cmds='$shrext_cmds'
10389 # Executable file suffix (normally "").
10392 # Additional compiler flags for building library objects.
10393 pic_flag=$lt_lt_prog_compiler_pic
10396 # What is the maximum length of a command?
10397 max_cmd_len=$lt_cv_sys_max_cmd_len
10399 # Does compiler simultaneously support -c and -o options?
10400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10402 # Must we lock files when doing compilation ?
10403 need_locks=$lt_need_locks
10405 # Do we need the lib prefix for modules?
10406 need_lib_prefix=$need_lib_prefix
10408 # Do we need a version for libraries?
10409 need_version=$need_version
10411 # Whether dlopen is supported.
10412 dlopen_support=$enable_dlopen
10414 # Whether dlopen of programs is supported.
10415 dlopen_self=$enable_dlopen_self
10417 # Whether dlopen of statically linked programs is supported.
10418 dlopen_self_static=$enable_dlopen_self_static
10420 # Compiler flag to prevent dynamic linking.
10421 link_static_flag=$lt_lt_prog_compiler_static
10423 # Compiler flag to turn off builtin functions.
10424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10426 # Compiler flag to allow reflexive dlopens.
10427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10429 # Compiler flag to generate shared objects directly from archives.
10430 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10432 # Compiler flag to generate thread-safe objects.
10433 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10435 # Library versioning type.
10436 version_type=$version_type
10438 # Format of library name prefix.
10439 libname_spec=$lt_libname_spec
10441 # List of archive names. First name is the real one, the rest are links.
10442 # The last name is the one that the linker finds with -lNAME.
10443 library_names_spec=$lt_library_names_spec
10445 # The coded name of the library, if different from the real name.
10446 soname_spec=$lt_soname_spec
10448 # Commands used to build and install an old-style archive.
10450 old_archive_cmds=$lt_old_archive_cmds
10451 old_postinstall_cmds=$lt_old_postinstall_cmds
10452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10454 # Create an old-style archive from a shared archive.
10455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10457 # Create a temporary old-style archive to link instead of a shared archive.
10458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10460 # Commands used to build and install a shared archive.
10461 archive_cmds=$lt_archive_cmds
10462 archive_expsym_cmds=$lt_archive_expsym_cmds
10463 postinstall_cmds=$lt_postinstall_cmds
10464 postuninstall_cmds=$lt_postuninstall_cmds
10466 # Commands used to build a loadable module (assumed same as above if empty)
10467 module_cmds=$lt_module_cmds
10468 module_expsym_cmds=$lt_module_expsym_cmds
10470 # Commands to strip libraries.
10471 old_striplib=$lt_old_striplib
10472 striplib=$lt_striplib
10474 # Dependencies to place before the objects being linked to create a
10476 predep_objects=$lt_predep_objects
10478 # Dependencies to place after the objects being linked to create a
10480 postdep_objects=$lt_postdep_objects
10482 # Dependencies to place before the objects being linked to create a
10484 predeps=$lt_predeps
10486 # Dependencies to place after the objects being linked to create a
10488 postdeps=$lt_postdeps
10490 # The library search path used internally by the compiler when linking
10491 # a shared library.
10492 compiler_lib_search_path=$lt_compiler_lib_search_path
10494 # Method to check whether dependent libraries are shared objects.
10495 deplibs_check_method=$lt_deplibs_check_method
10497 # Command to use when deplibs_check_method == file_magic.
10498 file_magic_cmd=$lt_file_magic_cmd
10500 # Flag that allows shared libraries with undefined symbols to be built.
10501 allow_undefined_flag=$lt_allow_undefined_flag
10503 # Flag that forces no undefined symbols.
10504 no_undefined_flag=$lt_no_undefined_flag
10506 # Commands used to finish a libtool library installation in a directory.
10507 finish_cmds=$lt_finish_cmds
10509 # Same as above, but a single script fragment to be evaled but not shown.
10510 finish_eval=$lt_finish_eval
10512 # Take the output of nm and produce a listing of raw symbols and C names.
10513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10515 # Transform the output of nm in a proper C declaration
10516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10518 # Transform the output of nm in a C name address pair
10519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10521 # This is the shared library runtime path variable.
10522 runpath_var=$runpath_var
10524 # This is the shared library path variable.
10525 shlibpath_var=$shlibpath_var
10527 # Is shlibpath searched before the hard-coded library search path?
10528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10530 # How to hardcode a shared library path into an executable.
10531 hardcode_action=$hardcode_action
10533 # Whether we should hardcode library paths into libraries.
10534 hardcode_into_libs=$hardcode_into_libs
10536 # Flag to hardcode \$libdir into a binary during linking.
10537 # This must work even if \$libdir does not exist.
10538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10540 # If ld is used when linking, flag to hardcode \$libdir into
10541 # a binary during linking. This must work even if \$libdir does
10543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10545 # Whether we need a single -rpath flag with a separated argument.
10546 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10549 # resulting binary.
10550 hardcode_direct=$hardcode_direct
10552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10553 # resulting binary.
10554 hardcode_minus_L=$hardcode_minus_L
10556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10557 # the resulting binary.
10558 hardcode_shlibpath_var=$hardcode_shlibpath_var
10560 # Set to yes if building a shared library automatically hardcodes DIR into the library
10561 # and all subsequent libraries and executables linked against it.
10562 hardcode_automatic=$hardcode_automatic
10564 # Variables whose values should be saved in libtool wrapper scripts and
10565 # restored at relink time.
10566 variables_saved_for_relink="$variables_saved_for_relink"
10568 # Whether libtool must link a program against all its dependency libraries.
10569 link_all_deplibs=$link_all_deplibs
10571 # Compile-time system search path for libraries
10572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10574 # Run-time system search path for libraries
10575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10577 # Fix the shell variable \$srcfile for the compiler.
10578 fix_srcfile_path="$fix_srcfile_path"
10580 # Set to yes if exported symbols are required.
10581 always_export_symbols=$always_export_symbols
10583 # The commands to list exported symbols.
10584 export_symbols_cmds=$lt_export_symbols_cmds
10586 # The commands to extract the exported symbol list from a shared archive.
10587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10589 # Symbols that should not be listed in the preloaded symbols.
10590 exclude_expsyms=$lt_exclude_expsyms
10592 # Symbols that must always be exported.
10593 include_expsyms=$lt_include_expsyms
10595 # ### END LIBTOOL CONFIG
10602 cat <<\EOF >> "$cfgfile"
10604 # AIX sometimes has problems with the GCC collect2 program. For some
10605 # reason, if we set the COLLECT_NAMES environment variable, the problems
10606 # vanish in a puff of smoke.
10607 if test "X${COLLECT_NAMES+set}" != Xset; then
10609 export COLLECT_NAMES
10615 # We use sed instead of cat because bash on DJGPP gets confused if
10616 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10617 # text mode, it properly converts lines to CR/LF. This bash problem
10618 # is reportedly fixed, but why not run on old versions too?
10619 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10621 mv -f "$cfgfile" "$ofile" || \
10622 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10626 # If there is no Makefile yet, we rely on a make rule to execute
10627 # `config.status --recheck' to rerun these tests and create the
10628 # libtool script then.
10629 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10630 if test -f "$ltmain_in"; then
10631 test -f Makefile && make "$ltmain"
10637 ac_cpp='$CPP $CPPFLAGS'
10638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10645 # Check whether --with-tags or --without-tags was given.
10646 if test "${with_tags+set}" = set; then
10647 withval="$with_tags"
10648 tagnames="$withval"
10651 if test -f "$ltmain" && test -n "$tagnames"; then
10652 if test ! -f "${ofile}"; then
10653 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10654 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10657 if test -z "$LTCC"; then
10658 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10659 if test -z "$LTCC"; then
10660 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10661 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10664 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10668 # Extract list of available tagged configurations in $ofile.
10669 # Note that this assumes the entire list is on one line.
10670 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10673 for tagname in $tagnames; do
10675 # Check whether tagname contains only valid characters
10676 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10678 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10679 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10680 { (exit 1); exit 1; }; }
10684 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10686 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10687 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10688 { (exit 1); exit 1; }; }
10691 # Update the list of available tags.
10692 if test -n "$tagname"; then
10693 echo appending configuration tag \"$tagname\" to $ofile
10697 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10699 ac_cpp='$CXXCPP $CPPFLAGS'
10700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10707 archive_cmds_need_lc_CXX=no
10708 allow_undefined_flag_CXX=
10709 always_export_symbols_CXX=no
10710 archive_expsym_cmds_CXX=
10711 export_dynamic_flag_spec_CXX=
10712 hardcode_direct_CXX=no
10713 hardcode_libdir_flag_spec_CXX=
10714 hardcode_libdir_flag_spec_ld_CXX=
10715 hardcode_libdir_separator_CXX=
10716 hardcode_minus_L_CXX=no
10717 hardcode_automatic_CXX=no
10719 module_expsym_cmds_CXX=
10720 link_all_deplibs_CXX=unknown
10721 old_archive_cmds_CXX=$old_archive_cmds
10722 no_undefined_flag_CXX=
10723 whole_archive_flag_spec_CXX=
10724 enable_shared_with_static_runtimes_CXX=no
10726 # Dependencies to place before and after the object being linked:
10727 predep_objects_CXX=
10728 postdep_objects_CXX=
10731 compiler_lib_search_path_CXX=
10733 # Source file extension for C++ test sources.
10736 # Object file extension for compiled C++ test sources.
10740 # Code to be used in simple compile tests
10741 lt_simple_compile_test_code="int some_variable = 0;\n"
10743 # Code to be used in simple link tests
10744 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10746 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10748 # If no C compiler was specified, use CC.
10751 # Allow CC to be a program name with arguments.
10755 # Allow CC to be a program name with arguments.
10760 lt_save_with_gnu_ld=$with_gnu_ld
10761 lt_save_path_LD=$lt_cv_path_LD
10762 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10763 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10765 unset lt_cv_prog_gnu_ld
10767 if test -n "${lt_cv_path_LDCXX+set}"; then
10768 lt_cv_path_LD=$lt_cv_path_LDCXX
10770 unset lt_cv_path_LD
10772 test -z "${LDCXX+set}" || LD=$LDCXX
10776 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10778 # We don't want -fno-exception wen compiling C++ code, so set the
10779 # no_builtin_flag separately
10780 if test "$GXX" = yes; then
10781 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10783 lt_prog_compiler_no_builtin_flag_CXX=
10786 if test "$GXX" = yes; then
10787 # Set up default GNU C++ configuration
10790 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10791 if test "${with_gnu_ld+set}" = set; then
10792 withval="$with_gnu_ld"
10793 test "$withval" = no || with_gnu_ld=yes
10798 if test "$GCC" = yes; then
10799 # Check if gcc -print-prog-name=ld gives a path.
10800 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10801 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10804 # gcc leaves a trailing carriage return which upsets mingw
10805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10810 # Accept absolute paths.
10812 re_direlt='/[^/][^/]*/\.\./'
10813 # Canonicalize the pathname of ld
10814 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10815 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10816 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10818 test -z "$LD" && LD="$ac_prog"
10821 # If it fails, then pretend we aren't using GCC.
10825 # If it is relative, then search for the first ld in PATH.
10826 with_gnu_ld=unknown
10829 elif test "$with_gnu_ld" = yes; then
10830 echo "$as_me:$LINENO: checking for GNU ld" >&5
10831 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10833 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10834 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10836 if test "${lt_cv_path_LD+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 if test -z "$LD"; then
10840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10841 for ac_dir in $PATH; do
10843 test -z "$ac_dir" && ac_dir=.
10844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10845 lt_cv_path_LD="$ac_dir/$ac_prog"
10846 # Check to see if the program is GNU ld. I'd rather use --version,
10847 # but apparently some GNU ld's only accept -v.
10848 # Break only if it was the GNU/non-GNU ld that we prefer.
10849 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10850 *GNU* | *'with BFD'*)
10851 test "$with_gnu_ld" != no && break
10854 test "$with_gnu_ld" != yes && break
10861 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10865 LD="$lt_cv_path_LD"
10866 if test -n "$LD"; then
10867 echo "$as_me:$LINENO: result: $LD" >&5
10868 echo "${ECHO_T}$LD" >&6
10870 echo "$as_me:$LINENO: result: no" >&5
10871 echo "${ECHO_T}no" >&6
10873 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10874 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10875 { (exit 1); exit 1; }; }
10876 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10877 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10878 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10882 case `$LD -v 2>&1 </dev/null` in
10883 *GNU* | *'with BFD'*)
10884 lt_cv_prog_gnu_ld=yes
10887 lt_cv_prog_gnu_ld=no
10891 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10892 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10893 with_gnu_ld=$lt_cv_prog_gnu_ld
10897 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10898 # archiving commands below assume that GNU ld is being used.
10899 if test "$with_gnu_ld" = yes; then
10900 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10901 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10903 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10906 # If archive_cmds runs LD, not CC, wlarc should be empty
10907 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10908 # investigate it a little bit more. (MM)
10911 # ancient GNU ld didn't support --whole-archive et. al.
10912 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10913 grep 'no-whole-archive' > /dev/null; then
10914 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10916 whole_archive_flag_spec_CXX=
10922 # A generic and very simple default shared library creation
10923 # command for GNU C++ for the case where it uses the native
10924 # linker, instead of GNU ld. If possible, this setting should
10925 # overridden to take advantage of the native linker features on
10926 # the platform it is being used on.
10927 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10930 # Commands to make compiler produce verbose output that lists
10931 # what "hidden" libraries, object files and flags are used when
10932 # linking a shared library.
10933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10941 # PORTME: fill in a description of your system's C++ link characteristics
10942 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10947 # FIXME: insert proper C++ library support
10951 if test "$host_cpu" = ia64; then
10952 # On IA64, the linker does run time linking by default, so we don't
10953 # have to do anything special.
10954 aix_use_runtimelinking=no
10955 exp_sym_flag='-Bexport'
10958 aix_use_runtimelinking=no
10960 # Test if we are trying to use run time linking or normal
10961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10962 # need to do runtime linking.
10963 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10964 for ld_flag in $LDFLAGS; do
10967 aix_use_runtimelinking=yes
10974 exp_sym_flag='-bexport'
10975 no_entry_flag='-bnoentry'
10978 # When large executables or shared objects are built, AIX ld can
10979 # have problems creating the table of contents. If linking a library
10980 # or program results in "error TOC overflow" add -mminimal-toc to
10981 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10982 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10984 archive_cmds_CXX=''
10985 hardcode_direct_CXX=yes
10986 hardcode_libdir_separator_CXX=':'
10987 link_all_deplibs_CXX=yes
10989 if test "$GXX" = yes; then
10990 case $host_os in aix4.012|aix4.012.*)
10991 # We only want to do this on AIX 4.2 and lower, the check
10992 # below for broken collect2 doesn't work under 4.3+
10993 collect2name=`${CC} -print-prog-name=collect2`
10994 if test -f "$collect2name" && \
10995 strings "$collect2name" | grep resolve_lib_name >/dev/null
10997 # We have reworked collect2
10998 hardcode_direct_CXX=yes
11000 # We have old collect2
11001 hardcode_direct_CXX=unsupported
11002 # It fails to find uninstalled libraries when the uninstalled
11003 # path is not listed in the libpath. Setting hardcode_minus_L
11004 # to unsupported forces relinking
11005 hardcode_minus_L_CXX=yes
11006 hardcode_libdir_flag_spec_CXX='-L$libdir'
11007 hardcode_libdir_separator_CXX=
11010 shared_flag='-shared'
11013 if test "$host_cpu" = ia64; then
11014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11015 # chokes on -Wl,-G. The following line is correct:
11018 if test "$aix_use_runtimelinking" = yes; then
11019 shared_flag='${wl}-G'
11021 shared_flag='${wl}-bM:SRE'
11026 # It seems that -bexpall does not export symbols beginning with
11027 # underscore (_), so it is better to generate a list of symbols to export.
11028 always_export_symbols_CXX=yes
11029 if test "$aix_use_runtimelinking" = yes; then
11030 # Warning - without using the other runtime loading flags (-brtl),
11031 # -berok will link without error, but may produce a broken library.
11032 allow_undefined_flag_CXX='-berok'
11033 # Determine the default libpath from the value encoded in an empty executable.
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051 (eval $ac_link) 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_cxx_werror_flag"
11059 || test ! -s conftest.err'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; } &&
11065 { ac_try='test -s conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11074 # Check for a 64-bit object if we didn't find anything.
11075 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11082 rm -f conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11086 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11088 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11090 if test "$host_cpu" = ia64; then
11091 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11092 allow_undefined_flag_CXX="-z nodefs"
11093 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11095 # Determine the default libpath from the value encoded in an empty executable.
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11111 rm -f conftest.$ac_objext conftest$ac_exeext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113 (eval $ac_link) 2>conftest.er1
11115 grep -v '^ *+' conftest.er1 >conftest.err
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_cxx_werror_flag"
11121 || test ! -s conftest.err'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try='test -s conftest$ac_exeext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11136 # Check for a 64-bit object if we didn't find anything.
11137 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11144 rm -f conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11148 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11149 # Warning - without using the other run time loading flags,
11150 # -berok will link without error, but may produce a broken library.
11151 no_undefined_flag_CXX=' ${wl}-bernotok'
11152 allow_undefined_flag_CXX=' ${wl}-berok'
11153 # -bexpall does not export symbols beginning with underscore (_)
11154 always_export_symbols_CXX=yes
11155 # Exported symbols can be pulled into shared objects from archives
11156 whole_archive_flag_spec_CXX=' '
11157 archive_cmds_need_lc_CXX=yes
11158 # This is similar to how AIX traditionally builds it's shared libraries.
11159 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11164 case $cc_basename in
11166 # FIXME: insert proper C++ library support
11172 cygwin* | mingw* | pw32*)
11173 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11174 # as there is no search path for DLLs.
11175 hardcode_libdir_flag_spec_CXX='-L$libdir'
11176 allow_undefined_flag_CXX=unsupported
11177 always_export_symbols_CXX=no
11178 enable_shared_with_static_runtimes_CXX=yes
11180 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11181 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11182 # If the export-symbols file already is a .def file (1st line
11183 # is EXPORTS), use it as is; otherwise, prepend...
11184 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11185 cp $export_symbols $output_objdir/$soname.def;
11187 echo EXPORTS > $output_objdir/$soname.def;
11188 cat $export_symbols >> $output_objdir/$soname.def;
11190 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11196 darwin* | rhapsody*)
11197 if test "$GXX" = yes; then
11198 archive_cmds_need_lc_CXX=no
11200 rhapsody* | darwin1.[012])
11201 allow_undefined_flag_CXX='-undefined suppress'
11204 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11205 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11207 case ${MACOSX_DEPLOYMENT_TARGET} in
11209 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11212 allow_undefined_flag_CXX='-undefined dynamic_lookup'
11218 lt_int_apple_cc_single_mod=no
11219 output_verbose_link_cmd='echo'
11220 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11221 lt_int_apple_cc_single_mod=yes
11223 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11224 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11226 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11228 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11230 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11231 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11232 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11234 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11236 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11237 hardcode_direct_CXX=no
11238 hardcode_automatic_CXX=yes
11239 hardcode_shlibpath_var_CXX=unsupported
11240 whole_archive_flag_spec_CXX='-all_load $convenience'
11241 link_all_deplibs_CXX=yes
11248 case $cc_basename in
11250 # FIXME: insert proper C++ library support
11254 # Green Hills C++ Compiler
11255 # FIXME: insert proper C++ library support
11259 # FIXME: insert proper C++ library support
11265 # C++ shared libraries reported to be fairly broken before switch to ELF
11269 archive_cmds_need_lc_CXX=no
11271 freebsd* | kfreebsd*-gnu)
11272 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11279 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11280 hardcode_libdir_separator_CXX=:
11281 export_dynamic_flag_spec_CXX='${wl}-E'
11282 hardcode_direct_CXX=yes
11283 hardcode_minus_L_CXX=yes # Not in the search PATH,
11284 # but as the default
11285 # location of the library.
11287 case $cc_basename in
11289 # FIXME: insert proper C++ library support
11293 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11294 # Commands to make compiler produce verbose output that lists
11295 # what "hidden" libraries, object files and flags are used when
11296 # linking a shared library.
11298 # There doesn't appear to be a way to prevent this compiler from
11299 # explicitly linking system object files so we need to strip them
11300 # from the output so that they don't get included in the library
11302 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11305 if test "$GXX" = yes; then
11306 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11308 # FIXME: insert proper C++ library support
11315 if test $with_gnu_ld = no; then
11316 case "$host_cpu" in
11318 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11319 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11320 hardcode_libdir_separator_CXX=:
11323 hardcode_libdir_flag_spec_CXX='-L$libdir'
11326 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11327 hardcode_libdir_separator_CXX=:
11328 export_dynamic_flag_spec_CXX='${wl}-E'
11332 case "$host_cpu" in
11334 hardcode_direct_CXX=no
11335 hardcode_shlibpath_var_CXX=no
11338 hardcode_direct_CXX=no
11339 hardcode_shlibpath_var_CXX=no
11340 hardcode_minus_L_CXX=yes # Not in the search PATH,
11341 # but as the default
11342 # location of the library.
11345 hardcode_direct_CXX=yes
11346 hardcode_minus_L_CXX=yes # Not in the search PATH,
11347 # but as the default
11348 # location of the library.
11352 case $cc_basename in
11354 # FIXME: insert proper C++ library support
11358 case "$host_cpu" in
11360 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11363 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11366 # Commands to make compiler produce verbose output that lists
11367 # what "hidden" libraries, object files and flags are used when
11368 # linking a shared library.
11370 # There doesn't appear to be a way to prevent this compiler from
11371 # explicitly linking system object files so we need to strip them
11372 # from the output so that they don't get included in the library
11374 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11377 if test "$GXX" = yes; then
11378 if test $with_gnu_ld = no; then
11379 case "$host_cpu" in
11381 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11384 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11389 # FIXME: insert proper C++ library support
11396 case $cc_basename in
11399 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11401 # Archives containing C++ object files must be created using
11402 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11403 # necessary to make sure instantiated templates are included
11405 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11408 if test "$GXX" = yes; then
11409 if test "$with_gnu_ld" = no; then
11410 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11412 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11415 link_all_deplibs_CXX=yes
11418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11419 hardcode_libdir_separator_CXX=:
11422 case $cc_basename in
11424 # Kuck and Associates, Inc. (KAI) C++ Compiler
11426 # KCC will only create a shared library if the output file
11427 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11428 # to its proper name (with version) after linking.
11429 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11430 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11431 # Commands to make compiler produce verbose output that lists
11432 # what "hidden" libraries, object files and flags are used when
11433 # linking a shared library.
11435 # There doesn't appear to be a way to prevent this compiler from
11436 # explicitly linking system object files so we need to strip them
11437 # from the output so that they don't get included in the library
11439 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11441 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11444 # Archives containing C++ object files must be created using
11445 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11446 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11451 archive_cmds_need_lc_CXX=no
11452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11453 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11454 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11455 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11456 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11460 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11463 runpath_var=LD_RUN_PATH
11464 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11465 hardcode_libdir_separator_CXX=:
11467 # Commands to make compiler produce verbose output that lists
11468 # what "hidden" libraries, object files and flags are used when
11469 # linking a shared library.
11471 # There doesn't appear to be a way to prevent this compiler from
11472 # explicitly linking system object files so we need to strip them
11473 # from the output so that they don't get included in the library
11475 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11480 # FIXME: insert proper C++ library support
11484 # FIXME: insert proper C++ library support
11488 case $cc_basename in
11490 # FIXME: insert proper C++ library support
11494 # FIXME: insert proper C++ library support
11500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11501 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11503 hardcode_libdir_flag_spec_CXX='-R$libdir'
11504 hardcode_direct_CXX=yes
11505 hardcode_shlibpath_var_CXX=no
11507 # Workaround some broken pre-1.5 toolchains
11508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11511 case $cc_basename in
11513 # Kuck and Associates, Inc. (KAI) C++ Compiler
11515 # KCC will only create a shared library if the output file
11516 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11517 # to its proper name (with version) after linking.
11518 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11521 hardcode_libdir_separator_CXX=:
11523 # Archives containing C++ object files must be created using
11524 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11525 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11529 # Rational C++ 2.4.1
11530 # FIXME: insert proper C++ library support
11534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11535 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11538 hardcode_libdir_separator_CXX=:
11540 # Commands to make compiler produce verbose output that lists
11541 # what "hidden" libraries, object files and flags are used when
11542 # linking a shared library.
11544 # There doesn't appear to be a way to prevent this compiler from
11545 # explicitly linking system object files so we need to strip them
11546 # from the output so that they don't get included in the library
11548 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11551 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11552 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11553 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11556 hardcode_libdir_separator_CXX=:
11558 # Commands to make compiler produce verbose output that lists
11559 # what "hidden" libraries, object files and flags are used when
11560 # linking a shared library.
11561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11564 # FIXME: insert proper C++ library support
11571 case $cc_basename in
11573 # Kuck and Associates, Inc. (KAI) C++ Compiler
11575 # KCC will only create a shared library if the output file
11576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11577 # to its proper name (with version) after linking.
11578 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11581 hardcode_libdir_separator_CXX=:
11583 # Archives containing C++ object files must be created using
11584 # the KAI C++ compiler.
11585 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11588 # Rational C++ 2.4.1
11589 # FIXME: insert proper C++ library support
11593 allow_undefined_flag_CXX=' -expect_unresolved \*'
11594 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11595 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11596 echo "-hidden">> $lib.exp~
11597 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11600 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11601 hardcode_libdir_separator_CXX=:
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11607 # There doesn't appear to be a way to prevent this compiler from
11608 # explicitly linking system object files so we need to strip them
11609 # from the output so that they don't get included in the library
11611 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11614 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11615 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11616 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11618 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11619 hardcode_libdir_separator_CXX=:
11621 # Commands to make compiler produce verbose output that lists
11622 # what "hidden" libraries, object files and flags are used when
11623 # linking a shared library.
11624 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11627 # FIXME: insert proper C++ library support
11634 # FIXME: insert proper C++ library support
11638 archive_cmds_need_lc_CXX=no
11639 case $cc_basename in
11641 # FIXME: insert proper C++ library support
11645 # FIXME: insert proper C++ library support
11651 case $cc_basename in
11654 # FIXME: insert proper C++ library support
11659 # FIXME: insert proper C++ library support
11663 # FIXME: insert proper C++ library support
11669 case $cc_basename in
11671 # Sun C++ 4.2, 5.x and Centerline C++
11672 no_undefined_flag_CXX=' -zdefs'
11673 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11674 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11675 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11677 hardcode_libdir_flag_spec_CXX='-R$libdir'
11678 hardcode_shlibpath_var_CXX=no
11680 solaris2.0-5 | solaris2.0-5.*) ;;
11682 # The C++ compiler is used as linker so we must use $wl
11683 # flag to pass the commands to the underlying system
11685 # Supported since Solaris 2.6 (maybe 2.5.1?)
11686 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11689 link_all_deplibs_CXX=yes
11691 # Commands to make compiler produce verbose output that lists
11692 # what "hidden" libraries, object files and flags are used when
11693 # linking a shared library.
11695 # There doesn't appear to be a way to prevent this compiler from
11696 # explicitly linking system object files so we need to strip them
11697 # from the output so that they don't get included in the library
11699 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11701 # Archives containing C++ object files must be created using
11702 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11703 # necessary to make sure instantiated templates are included
11705 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11708 # Green Hills C++ Compiler
11709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711 # The C++ compiler must be used to create the archive.
11712 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11715 # GNU C++ compiler with Solaris linker
11716 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11717 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11718 if $CC --version | grep -v '^2\.7' > /dev/null; then
11719 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11720 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11721 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11723 # Commands to make compiler produce verbose output that lists
11724 # what "hidden" libraries, object files and flags are used when
11725 # linking a shared library.
11726 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11728 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11730 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11731 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11732 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11734 # Commands to make compiler produce verbose output that lists
11735 # what "hidden" libraries, object files and flags are used when
11736 # linking a shared library.
11737 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11740 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11745 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11746 archive_cmds_need_lc_CXX=no
11749 case $cc_basename in
11751 # NonStop-UX NCC 3.20
11752 # FIXME: insert proper C++ library support
11756 # FIXME: insert proper C++ library support
11762 # FIXME: insert proper C++ library support
11766 # FIXME: insert proper C++ library support
11770 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11771 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11772 test "$ld_shlibs_CXX" = no && can_build_shared=no
11778 cat > conftest.$ac_ext <<EOF
11782 Foo (void) { a = 0; }
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; then
11793 # Parse the compiler output and extract the necessary
11794 # objects, libraries and library flags.
11796 # Sentinel used to keep track of whether or not we are before
11797 # the conftest object file.
11798 pre_test_object_deps_done=no
11800 # The `*' in the case matches for architectures that use `case' in
11801 # $output_verbose_cmd can trigger glob expansion during the loop
11802 # eval without this substitution.
11803 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11805 for p in `eval $output_verbose_link_cmd`; do
11809 # Some compilers place space between "-{L,R}" and the path.
11810 # Remove the space.
11811 if test $p = "-L" \
11812 || test $p = "-R"; then
11819 if test "$pre_test_object_deps_done" = no; then
11822 # Internal compiler library paths should come after those
11823 # provided the user. The postdeps already come after the
11824 # user supplied libs so there is no need to process them.
11825 if test -z "$compiler_lib_search_path_CXX"; then
11826 compiler_lib_search_path_CXX="${prev}${p}"
11828 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11831 # The "-l" case would never come before the object being
11832 # linked, so don't bother handling this case.
11835 if test -z "$postdeps_CXX"; then
11836 postdeps_CXX="${prev}${p}"
11838 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11844 # This assumes that the test object file only shows up
11845 # once in the compiler output.
11846 if test "$p" = "conftest.$objext"; then
11847 pre_test_object_deps_done=yes
11851 if test "$pre_test_object_deps_done" = no; then
11852 if test -z "$predep_objects_CXX"; then
11853 predep_objects_CXX="$p"
11855 predep_objects_CXX="$predep_objects_CXX $p"
11858 if test -z "$postdep_objects_CXX"; then
11859 postdep_objects_CXX="$p"
11861 postdep_objects_CXX="$postdep_objects_CXX $p"
11866 *) ;; # Ignore the rest.
11874 echo "libtool.m4: error: problem compiling CXX test program"
11877 $rm -f confest.$objext
11879 case " $postdeps_CXX " in
11880 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11883 lt_prog_compiler_wl_CXX=
11884 lt_prog_compiler_pic_CXX=
11885 lt_prog_compiler_static_CXX=
11887 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11888 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11890 # C++ specific cases for pic, static, wl, etc.
11891 if test "$GXX" = yes; then
11892 lt_prog_compiler_wl_CXX='-Wl,'
11893 lt_prog_compiler_static_CXX='-static'
11897 # All AIX code is PIC.
11898 if test "$host_cpu" = ia64; then
11899 # AIX 5 now supports IA64 processor
11900 lt_prog_compiler_static_CXX='-Bstatic'
11904 # FIXME: we need at least 68020 code to build shared libraries, but
11905 # adding the `-m68020' flag to GCC prevents building anything better,
11907 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11909 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11910 # PIC is the default for these OSes.
11912 mingw* | os2* | pw32*)
11913 # This hack is so that the source file can tell whether it is being
11914 # built for inclusion in a dll (and should export symbols for example).
11915 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11917 darwin* | rhapsody*)
11918 # PIC is the default on this platform
11919 # Common symbols not allowed in MH_DYLIB files
11920 lt_prog_compiler_pic_CXX='-fno-common'
11923 # DJGPP does not support shared libraries at all
11924 lt_prog_compiler_pic_CXX=
11927 if test -d /usr/nec; then
11928 lt_prog_compiler_pic_CXX=-Kconform_pic
11932 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11933 # not for PA HP-UX.
11934 case "$host_cpu" in
11938 lt_prog_compiler_pic_CXX='-fPIC'
11943 lt_prog_compiler_pic_CXX='-fPIC'
11949 # All AIX code is PIC.
11950 if test "$host_cpu" = ia64; then
11951 # AIX 5 now supports IA64 processor
11952 lt_prog_compiler_static_CXX='-Bstatic'
11954 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11958 case $cc_basename in
11960 # Green Hills C++ Compiler
11961 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11966 case $cc_basename in
11968 lt_prog_compiler_pic_CXX='-KPIC'
11971 # Green Hills C++ Compiler
11972 lt_prog_compiler_pic_CXX='-pic'
11978 freebsd* | kfreebsd*-gnu)
11979 # FreeBSD uses GNU C++
11981 hpux9* | hpux10* | hpux11*)
11982 case $cc_basename in
11984 lt_prog_compiler_wl_CXX='-Wl,'
11985 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11986 if test "$host_cpu" != ia64; then
11987 lt_prog_compiler_pic_CXX='+Z'
11991 lt_prog_compiler_wl_CXX='-Wl,'
11992 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11993 case "$host_cpu" in
11998 lt_prog_compiler_pic_CXX='+Z'
12006 irix5* | irix6* | nonstopux*)
12007 case $cc_basename in
12009 lt_prog_compiler_wl_CXX='-Wl,'
12010 lt_prog_compiler_static_CXX='-non_shared'
12011 # CC pic flag -KPIC is the default.
12018 case $cc_basename in
12021 lt_prog_compiler_wl_CXX='--backend -Wl,'
12022 lt_prog_compiler_pic_CXX='-fPIC'
12026 lt_prog_compiler_wl_CXX='-Wl,'
12027 lt_prog_compiler_pic_CXX='-KPIC'
12028 lt_prog_compiler_static_CXX='-static'
12032 # Make sure the PIC flag is empty. It appears that all Alpha
12033 # Linux and Compaq Tru64 Unix objects are PIC.
12034 lt_prog_compiler_pic_CXX=
12035 lt_prog_compiler_static_CXX='-non_shared'
12046 case $cc_basename in
12048 lt_prog_compiler_pic_CXX='-W c,exportall'
12056 osf3* | osf4* | osf5*)
12057 case $cc_basename in
12059 lt_prog_compiler_wl_CXX='--backend -Wl,'
12062 # Rational C++ 2.4.1
12063 lt_prog_compiler_pic_CXX='-pic'
12066 # Digital/Compaq C++
12067 lt_prog_compiler_wl_CXX='-Wl,'
12068 # Make sure the PIC flag is empty. It appears that all Alpha
12069 # Linux and Compaq Tru64 Unix objects are PIC.
12070 lt_prog_compiler_pic_CXX=
12071 lt_prog_compiler_static_CXX='-non_shared'
12080 case $cc_basename in
12082 lt_prog_compiler_pic_CXX='-fPIC'
12089 case $cc_basename in
12091 # Sun C++ 4.2, 5.x and Centerline C++
12092 lt_prog_compiler_pic_CXX='-KPIC'
12093 lt_prog_compiler_static_CXX='-Bstatic'
12094 lt_prog_compiler_wl_CXX='-Qoption ld '
12097 # Green Hills C++ Compiler
12098 lt_prog_compiler_pic_CXX='-PIC'
12105 case $cc_basename in
12108 lt_prog_compiler_pic_CXX='-pic'
12109 lt_prog_compiler_static_CXX='-Bstatic'
12113 lt_prog_compiler_pic_CXX='-pic'
12120 case $cc_basename in
12122 # NonStop-UX NCC 3.20
12123 lt_prog_compiler_pic_CXX='-KPIC'
12134 lt_prog_compiler_can_build_shared_CXX=no
12139 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12140 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12143 # Check to make sure the PIC flag actually works.
12145 if test -n "$lt_prog_compiler_pic_CXX"; then
12147 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12148 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12149 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 lt_prog_compiler_pic_works_CXX=no
12153 ac_outfile=conftest.$ac_objext
12154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12155 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12156 # Insert the option either (1) after the last *FLAGS variable, or
12157 # (2) before a word containing "conftest.", or (3) at the end.
12158 # Note that $ac_compile itself does not contain backslashes and begins
12159 # with a dollar sign (not a hyphen), so the echo should work correctly.
12160 # The option is referenced via a variable to avoid confusing sed.
12161 lt_compile=`echo "$ac_compile" | $SED \
12162 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12164 -e 's:$: $lt_compiler_flag:'`
12165 (eval echo "\"\$as_me:12165: $lt_compile\"" >&5)
12166 (eval "$lt_compile" 2>conftest.err)
12168 cat conftest.err >&5
12169 echo "$as_me:12169: \$? = $ac_status" >&5
12170 if (exit $ac_status) && test -s "$ac_outfile"; then
12171 # The compiler can only warn and ignore the option if not recognized
12172 # So say no if there are warnings
12173 if test ! -s conftest.err; then
12174 lt_prog_compiler_pic_works_CXX=yes
12180 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12181 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12183 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12184 case $lt_prog_compiler_pic_CXX in
12186 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12189 lt_prog_compiler_pic_CXX=
12190 lt_prog_compiler_can_build_shared_CXX=no
12195 # For platforms which do not support PIC, -DPIC is meaningless:
12197 lt_prog_compiler_pic_CXX=
12200 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12204 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12206 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 lt_cv_prog_compiler_c_o_CXX=no
12210 $rm -r conftest 2>/dev/null
12214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12216 lt_compiler_flag="-o out/conftest2.$ac_objext"
12217 # Insert the option either (1) after the last *FLAGS variable, or
12218 # (2) before a word containing "conftest.", or (3) at the end.
12219 # Note that $ac_compile itself does not contain backslashes and begins
12220 # with a dollar sign (not a hyphen), so the echo should work correctly.
12221 lt_compile=`echo "$ac_compile" | $SED \
12222 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12224 -e 's:$: $lt_compiler_flag:'`
12225 (eval echo "\"\$as_me:12225: $lt_compile\"" >&5)
12226 (eval "$lt_compile" 2>out/conftest.err)
12228 cat out/conftest.err >&5
12229 echo "$as_me:12229: \$? = $ac_status" >&5
12230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12232 # The compiler can only warn and ignore the option if not recognized
12233 # So say no if there are warnings
12234 if test ! -s out/conftest.err; then
12235 lt_cv_prog_compiler_c_o_CXX=yes
12240 # SGI C++ compiler will create directory out/ii_files/ for
12241 # template instantiation
12242 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12243 $rm out/* && rmdir out
12249 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12250 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12253 hard_links="nottested"
12254 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12255 # do not overwrite the value of need_locks provided by the user
12256 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12257 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12262 ln conftest.a conftest.b 2>&5 || hard_links=no
12263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12264 echo "$as_me:$LINENO: result: $hard_links" >&5
12265 echo "${ECHO_T}$hard_links" >&6
12266 if test "$hard_links" = no; then
12267 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12268 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12275 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12278 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12281 # If we're using GNU nm, then we don't want the "-C" option.
12282 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12283 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12284 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12286 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12290 export_symbols_cmds_CXX="$ltdll_cmds"
12293 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12296 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12300 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12301 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12302 test "$ld_shlibs_CXX" = no && can_build_shared=no
12304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12305 if test "$GCC" = yes; then
12306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12310 # Do we need to explicitly link libc?
12312 case "x$archive_cmds_need_lc_CXX" in
12314 # Assume -lc should be added
12315 archive_cmds_need_lc_CXX=yes
12317 if test "$enable_shared" = yes && test "$GCC" = yes; then
12318 case $archive_cmds_CXX in
12320 # FIXME: we may have to deal with multi-command sequences.
12323 # Test whether the compiler implicitly links with -lc since on some
12324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12325 # to ld, don't add -lc before -lgcc.
12326 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12327 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12332 (eval $ac_compile) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } 2>conftest.err; then
12338 libobjs=conftest.$ac_objext
12340 wl=$lt_prog_compiler_wl_CXX
12346 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12347 allow_undefined_flag_CXX=
12348 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12349 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }
12354 archive_cmds_need_lc_CXX=no
12356 archive_cmds_need_lc_CXX=yes
12358 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12360 cat conftest.err 1>&5
12363 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12364 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12371 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12372 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12373 library_names_spec=
12374 libname_spec='lib$name'
12378 postuninstall_cmds=
12382 shlibpath_overrides_runpath=unknown
12384 dynamic_linker="$host_os ld.so"
12385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12386 if test "$GCC" = yes; then
12387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12388 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12389 # if the path contains ";" then we assume it to be the separator
12390 # otherwise default to the standard path separator (i.e. ":") - it is
12391 # assumed that no part of a normal pathname contains ";" but that should
12392 # okay in the real world where ";" in dirpaths is itself problematic.
12393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12400 need_lib_prefix=unknown
12401 hardcode_into_libs=no
12403 # when you set need_version to no, make sure it does not cause -set_version
12404 # flags to be left without arguments
12405 need_version=unknown
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12411 shlibpath_var=LIBPATH
12413 # AIX 3 has no versioning support, so we append a major version to the name.
12414 soname_spec='${libname}${release}${shared_ext}$major'
12421 hardcode_into_libs=yes
12422 if test "$host_cpu" = ia64; then
12423 # AIX 5 supports IA64
12424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12425 shlibpath_var=LD_LIBRARY_PATH
12427 # With GCC up to 2.95.x, collect2 would create an import file
12428 # for dependence libraries. The import file would start with
12429 # the line `#! .'. This would cause the generated library to
12430 # depend on `.', always an invalid library. This was fixed in
12431 # development snapshots of GCC prior to 3.0.
12433 aix4 | aix4.[01] | aix4.[01].*)
12434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12436 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12439 can_build_shared=no
12443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12444 # soname into executable. Probably we can add versioning support to
12445 # collect2, so additional links can be useful in future.
12446 if test "$aix_use_runtimelinking" = yes; then
12447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12448 # instead of lib<name>.a to let people know that these are not
12449 # typical AIX shared libraries.
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452 # We preserve .a as extension for shared libraries through AIX4.2
12453 # and later when we are not doing run time linking.
12454 library_names_spec='${libname}${release}.a $libname.a'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12457 shlibpath_var=LIBPATH
12462 library_names_spec='$libname.ixlibrary $libname.a'
12463 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12464 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'
12468 library_names_spec='${libname}${shared_ext}'
12469 dynamic_linker="$host_os ld.so"
12470 shlibpath_var=LIBRARY_PATH
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12477 soname_spec='${libname}${release}${shared_ext}$major'
12478 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12479 shlibpath_var=LD_LIBRARY_PATH
12480 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12481 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12482 # the default ld.so.conf also contains /usr/contrib/lib and
12483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12484 # libtool to hard-code these into programs
12487 cygwin* | mingw* | pw32*)
12488 version_type=windows
12493 case $GCC,$host_os in
12494 yes,cygwin* | yes,mingw* | yes,pw32*)
12495 library_names_spec='$libname.dll.a'
12496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12497 postinstall_cmds='base_file=`basename \${file}`~
12498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12499 dldir=$destdir/`dirname \$dlpath`~
12500 test -d \$dldir || mkdir -p \$dldir~
12501 $install_prog $dir/$dlname \$dldir/$dlname'
12502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12503 dlpath=$dir/\$dldll~
12505 shlibpath_overrides_runpath=yes
12509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12510 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12511 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12514 # MinGW DLLs use traditional 'lib' prefix
12515 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12517 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12518 # It is most probably a Windows format PATH printed by
12519 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12520 # path with ; separators, and with drive letters. We can handle the
12521 # drive letters (cygwin fileutils understands them), so leave them,
12522 # especially as we might pass files found there to a mingw objdump,
12523 # which wouldn't understand a cygwinified path. Ahh.
12524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12530 # pw32 DLLs use 'pw' prefix rather than 'lib'
12531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12540 dynamic_linker='Win32 ld.exe'
12541 # FIXME: first we should search . and the directory the executable is in
12545 darwin* | rhapsody*)
12546 dynamic_linker="$host_os dyld"
12547 version_type=darwin
12550 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12551 soname_spec='${libname}${release}${major}$shared_ext'
12552 shlibpath_overrides_runpath=yes
12553 shlibpath_var=DYLD_LIBRARY_PATH
12554 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12555 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12556 if test "$GCC" = yes; then
12557 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12559 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12569 soname_spec='${libname}${release}${shared_ext}$major'
12570 shlibpath_var=LD_LIBRARY_PATH
12581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12582 soname_spec='${libname}${release}${shared_ext}$major'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath=no
12585 hardcode_into_libs=yes
12586 dynamic_linker='GNU ld.so'
12590 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12591 version_type=freebsd-$objformat
12592 case $version_type in
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12603 shlibpath_var=LD_LIBRARY_PATH
12606 shlibpath_overrides_runpath=yes
12608 freebsd3.01* | freebsdelf3.01*)
12609 shlibpath_overrides_runpath=yes
12610 hardcode_into_libs=yes
12613 shlibpath_overrides_runpath=no
12614 hardcode_into_libs=yes
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12624 soname_spec='${libname}${release}${shared_ext}$major'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 hardcode_into_libs=yes
12629 hpux9* | hpux10* | hpux11*)
12630 # Give a soname corresponding to the major version so that dld.sl refuses to
12631 # link against other versions.
12635 case "$host_cpu" in
12638 hardcode_into_libs=yes
12639 dynamic_linker="$host_os dld.so"
12640 shlibpath_var=LD_LIBRARY_PATH
12641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643 soname_spec='${libname}${release}${shared_ext}$major'
12644 if test "X$HPUX_IA64_MODE" = X32; then
12645 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12647 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12653 hardcode_into_libs=yes
12654 dynamic_linker="$host_os dld.sl"
12655 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658 soname_spec='${libname}${release}${shared_ext}$major'
12659 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12664 dynamic_linker="$host_os dld.sl"
12665 shlibpath_var=SHLIB_PATH
12666 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12668 soname_spec='${libname}${release}${shared_ext}$major'
12671 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12672 postinstall_cmds='chmod 555 $lib'
12675 irix5* | irix6* | nonstopux*)
12677 nonstopux*) version_type=nonstopux ;;
12679 if test "$lt_cv_prog_gnu_ld" = yes; then
12687 soname_spec='${libname}${release}${shared_ext}$major'
12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12690 irix5* | nonstopux*)
12691 libsuff= shlibsuff=
12694 case $LD in # libtool.m4 will add one of these switches to LD
12695 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12696 libsuff= shlibsuff= libmagic=32-bit;;
12697 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12698 libsuff=32 shlibsuff=N32 libmagic=N32;;
12699 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12700 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12701 *) libsuff= shlibsuff= libmagic=never-match;;
12705 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12706 shlibpath_overrides_runpath=no
12707 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12708 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12709 hardcode_into_libs=yes
12712 # No shared lib support for Linux oldld, aout, or coff.
12713 linux*oldld* | linux*aout* | linux*coff*)
12717 # This must be Linux ELF.
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12725 shlibpath_var=LD_LIBRARY_PATH
12726 shlibpath_overrides_runpath=no
12727 # This implies no fast_install, which is unacceptable.
12728 # Some rework will be needed to allow for fast_install
12729 # before this can be enabled.
12730 hardcode_into_libs=yes
12732 # find out which ABI we are using
12734 case "$host_cpu" in
12735 x86_64*|s390x*|powerpc64*)
12736 echo '#line 12736 "configure"' > conftest.$ac_ext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; then
12742 case `/usr/bin/file conftest.$ac_objext` in
12745 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12753 # Append ld.so.conf contents to the search path
12754 if test -f /etc/ld.so.conf; then
12755 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12756 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12759 # We used to test for /lib/ld.so.1 and disable shared libraries on
12760 # powerpc, because MkLinux only supported shared libraries with the
12761 # GNU dynamic linker. Since this was broken with cross compilers,
12762 # most powerpc-linux boxes support dynamic linking these days and
12763 # people can always --disable-shared, the test was removed, and we
12764 # assume the GNU/Linux dynamic linker is in use.
12765 dynamic_linker='GNU/Linux ld.so'
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 shlibpath_var=LD_LIBRARY_PATH
12775 shlibpath_overrides_runpath=no
12776 hardcode_into_libs=yes
12777 dynamic_linker='GNU ld.so'
12784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12787 dynamic_linker='NetBSD (a.out) ld.so'
12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12790 soname_spec='${libname}${release}${shared_ext}$major'
12791 dynamic_linker='NetBSD ld.elf_so'
12793 shlibpath_var=LD_LIBRARY_PATH
12794 shlibpath_overrides_runpath=yes
12795 hardcode_into_libs=yes
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 shlibpath_overrides_runpath=yes
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810 soname_spec='${libname}${release}${shared_ext}$major'
12811 shlibpath_var=LD_LIBRARY_PATH
12812 shlibpath_overrides_runpath=yes
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12821 shlibpath_var=LD_LIBRARY_PATH
12822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12824 openbsd2.[89] | openbsd2.[89].*)
12825 shlibpath_overrides_runpath=no
12828 shlibpath_overrides_runpath=yes
12832 shlibpath_overrides_runpath=yes
12837 libname_spec='$name'
12840 library_names_spec='$libname${shared_ext} $libname.a'
12841 dynamic_linker='OS/2 ld.exe'
12842 shlibpath_var=LIBPATH
12845 osf3* | osf4* | osf5*)
12849 soname_spec='${libname}${release}${shared_ext}$major'
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851 shlibpath_var=LD_LIBRARY_PATH
12852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12858 soname_spec='${libname}${release}${shared_ext}$major'
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12860 shlibpath_var=LD_LIBRARY_PATH
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12868 soname_spec='${libname}${release}${shared_ext}$major'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 shlibpath_overrides_runpath=yes
12871 hardcode_into_libs=yes
12872 # ldd complains unless libraries are executable
12873 postinstall_cmds='chmod +x $lib'
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12880 shlibpath_var=LD_LIBRARY_PATH
12881 shlibpath_overrides_runpath=yes
12882 if test "$with_gnu_ld" = yes; then
12888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891 soname_spec='${libname}${release}${shared_ext}$major'
12892 shlibpath_var=LD_LIBRARY_PATH
12893 case $host_vendor in
12895 shlibpath_overrides_runpath=no
12897 export_dynamic_flag_spec='${wl}-Blargedynsym'
12898 runpath_var=LD_RUN_PATH
12906 shlibpath_overrides_runpath=no
12907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12913 if test -d /usr/nec ;then
12915 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12916 soname_spec='$libname${shared_ext}.$major'
12917 shlibpath_var=LD_LIBRARY_PATH
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12924 soname_spec='${libname}${release}${shared_ext}$major'
12925 shlibpath_var=LD_LIBRARY_PATH
12932 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12933 echo "${ECHO_T}$dynamic_linker" >&6
12934 test "$dynamic_linker" = no && can_build_shared=no
12936 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12937 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12938 hardcode_action_CXX=
12939 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12940 test -n "$runpath_var CXX" || \
12941 test "X$hardcode_automatic_CXX"="Xyes" ; then
12943 # We can hardcode non-existant directories.
12944 if test "$hardcode_direct_CXX" != no &&
12945 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12946 # have to relink, otherwise we might link with an installed library
12947 # when we should be linking with a yet-to-be-installed one
12948 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12949 test "$hardcode_minus_L_CXX" != no; then
12950 # Linking always hardcodes the temporary library directory.
12951 hardcode_action_CXX=relink
12953 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12954 hardcode_action_CXX=immediate
12957 # We cannot hardcode anything, or else we can only hardcode existing
12959 hardcode_action_CXX=unsupported
12961 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12962 echo "${ECHO_T}$hardcode_action_CXX" >&6
12964 if test "$hardcode_action_CXX" = relink; then
12965 # Fast installation is not supported
12966 enable_fast_install=no
12967 elif test "$shlibpath_overrides_runpath" = yes ||
12968 test "$enable_shared" = no; then
12969 # Fast installation is not necessary
12970 enable_fast_install=needless
12975 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12976 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12977 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12978 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12979 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12980 echo "$as_me:$LINENO: result: yes" >&5
12981 echo "${ECHO_T}yes" >&6
12983 # FIXME - insert some real tests, host_os isn't really good enough
12986 if test -n "$STRIP" ; then
12987 striplib="$STRIP -x"
12988 echo "$as_me:$LINENO: result: yes" >&5
12989 echo "${ECHO_T}yes" >&6
12991 echo "$as_me:$LINENO: result: no" >&5
12992 echo "${ECHO_T}no" >&6
12996 echo "$as_me:$LINENO: result: no" >&5
12997 echo "${ECHO_T}no" >&6
13002 if test "x$enable_dlopen" != xyes; then
13003 enable_dlopen=unknown
13004 enable_dlopen_self=unknown
13005 enable_dlopen_self_static=unknown
13012 lt_cv_dlopen="load_add_on"
13014 lt_cv_dlopen_self=yes
13018 lt_cv_dlopen="LoadLibrary"
13023 lt_cv_dlopen="dlopen"
13028 # if libdl is installed we need to link against it
13029 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13030 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13031 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 ac_check_lib_save_LIBS=$LIBS
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13043 /* Override any gcc2 internal prototype to avoid an error. */
13047 /* We use char because int might match the return type of a gcc2
13048 builtin and then its argument prototype would still apply. */
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060 (eval $ac_link) 2>conftest.er1
13062 grep -v '^ *+' conftest.er1 >conftest.err
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -z "$ac_cxx_werror_flag"
13068 || test ! -s conftest.err'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try='test -s conftest$ac_exeext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_lib_dl_dlopen=yes
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ac_cv_lib_dl_dlopen=no
13087 rm -f conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 LIBS=$ac_check_lib_save_LIBS
13091 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13092 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13093 if test $ac_cv_lib_dl_dlopen = yes; then
13094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13097 lt_cv_dlopen="dyld"
13099 lt_cv_dlopen_self=yes
13106 echo "$as_me:$LINENO: checking for shl_load" >&5
13107 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13108 if test "${ac_cv_func_shl_load+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 cat >conftest.$ac_ext <<_ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13117 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13119 #define shl_load innocuous_shl_load
13121 /* System header to define __stub macros and hopefully few prototypes,
13122 which can conflict with char shl_load (); below.
13123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13124 <limits.h> exists even on freestanding compilers. */
13127 # include <limits.h>
13129 # include <assert.h>
13134 /* Override any gcc2 internal prototype to avoid an error. */
13139 /* We use char because int might match the return type of a gcc2
13140 builtin and then its argument prototype would still apply. */
13142 /* The GNU C library defines this for functions which it implements
13143 to always fail with ENOSYS. Some functions are actually named
13144 something starting with __ and the normal name is an alias. */
13145 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13148 char (*f) () = shl_load;
13157 return f != shl_load;
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13164 (eval $ac_link) 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_cxx_werror_flag"
13172 || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_cv_func_shl_load=yes
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_cv_func_shl_load=no
13191 rm -f conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13194 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13195 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13196 if test $ac_cv_func_shl_load = yes; then
13197 lt_cv_dlopen="shl_load"
13199 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13200 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13201 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 ac_check_lib_save_LIBS=$LIBS
13206 cat >conftest.$ac_ext <<_ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13213 /* Override any gcc2 internal prototype to avoid an error. */
13217 /* We use char because int might match the return type of a gcc2
13218 builtin and then its argument prototype would still apply. */
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13230 (eval $ac_link) 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_cxx_werror_flag"
13238 || test ! -s conftest.err'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest$ac_exeext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_cv_lib_dld_shl_load=yes
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13255 ac_cv_lib_dld_shl_load=no
13257 rm -f conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13259 LIBS=$ac_check_lib_save_LIBS
13261 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13262 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13263 if test $ac_cv_lib_dld_shl_load = yes; then
13264 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13266 echo "$as_me:$LINENO: checking for dlopen" >&5
13267 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13268 if test "${ac_cv_func_dlopen+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13279 #define dlopen innocuous_dlopen
13281 /* System header to define __stub macros and hopefully few prototypes,
13282 which can conflict with char dlopen (); below.
13283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13284 <limits.h> exists even on freestanding compilers. */
13287 # include <limits.h>
13289 # include <assert.h>
13294 /* Override any gcc2 internal prototype to avoid an error. */
13299 /* We use char because int might match the return type of a gcc2
13300 builtin and then its argument prototype would still apply. */
13302 /* The GNU C library defines this for functions which it implements
13303 to always fail with ENOSYS. Some functions are actually named
13304 something starting with __ and the normal name is an alias. */
13305 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13308 char (*f) () = dlopen;
13317 return f != dlopen;
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_cxx_werror_flag"
13332 || test ! -s conftest.err'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_cv_func_dlopen=yes
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_cv_func_dlopen=no
13351 rm -f conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13354 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13355 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13356 if test $ac_cv_func_dlopen = yes; then
13357 lt_cv_dlopen="dlopen"
13359 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13360 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13361 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 ac_check_lib_save_LIBS=$LIBS
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13373 /* Override any gcc2 internal prototype to avoid an error. */
13377 /* We use char because int might match the return type of a gcc2
13378 builtin and then its argument prototype would still apply. */
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_cxx_werror_flag"
13398 || test ! -s conftest.err'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; } &&
13404 { ac_try='test -s conftest$ac_exeext'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 ac_cv_lib_dl_dlopen=yes
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13415 ac_cv_lib_dl_dlopen=no
13417 rm -f conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13421 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13422 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13423 if test $ac_cv_lib_dl_dlopen = yes; then
13424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13426 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13427 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13428 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 ac_check_lib_save_LIBS=$LIBS
13432 LIBS="-lsvld $LIBS"
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13440 /* Override any gcc2 internal prototype to avoid an error. */
13444 /* We use char because int might match the return type of a gcc2
13445 builtin and then its argument prototype would still apply. */
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457 (eval $ac_link) 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_cxx_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_exeext'
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_cv_lib_svld_dlopen=yes
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_cv_lib_svld_dlopen=no
13484 rm -f conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext conftest.$ac_ext
13486 LIBS=$ac_check_lib_save_LIBS
13488 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13489 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13490 if test $ac_cv_lib_svld_dlopen = yes; then
13491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13493 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13494 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13495 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 ac_check_lib_save_LIBS=$LIBS
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13507 /* Override any gcc2 internal prototype to avoid an error. */
13511 /* We use char because int might match the return type of a gcc2
13512 builtin and then its argument prototype would still apply. */
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524 (eval $ac_link) 2>conftest.er1
13526 grep -v '^ *+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -z "$ac_cxx_werror_flag"
13532 || test ! -s conftest.err'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 ac_cv_lib_dld_dld_link=yes
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13549 ac_cv_lib_dld_dld_link=no
13551 rm -f conftest.err conftest.$ac_objext \
13552 conftest$ac_exeext conftest.$ac_ext
13553 LIBS=$ac_check_lib_save_LIBS
13555 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13556 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13557 if test $ac_cv_lib_dld_dld_link = yes; then
13558 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13579 if test "x$lt_cv_dlopen" != xno; then
13585 case $lt_cv_dlopen in
13587 save_CPPFLAGS="$CPPFLAGS"
13588 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13590 save_LDFLAGS="$LDFLAGS"
13591 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13594 LIBS="$lt_cv_dlopen_libs $LIBS"
13596 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13597 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13598 if test "${lt_cv_dlopen_self+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 if test "$cross_compiling" = yes; then :
13602 lt_cv_dlopen_self=cross
13604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13605 lt_status=$lt_dlunknown
13606 cat > conftest.$ac_ext <<EOF
13607 #line 13607 "configure"
13608 #include "confdefs.h"
13617 # define LT_DLGLOBAL RTLD_GLOBAL
13620 # define LT_DLGLOBAL DL_GLOBAL
13622 # define LT_DLGLOBAL 0
13626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13627 find out it does not work in some platform. */
13628 #ifndef LT_DLLAZY_OR_NOW
13630 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13633 # define LT_DLLAZY_OR_NOW DL_LAZY
13636 # define LT_DLLAZY_OR_NOW RTLD_NOW
13639 # define LT_DLLAZY_OR_NOW DL_NOW
13641 # define LT_DLLAZY_OR_NOW 0
13649 extern "C" void exit (int);
13652 void fnord() { int i=42;}
13655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13656 int status = $lt_dlunknown;
13660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13661 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13662 /* dlclose (self); */
13668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13669 (eval $ac_link) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13673 (./conftest; exit; ) 2>/dev/null
13675 case x$lt_status in
13676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13678 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13681 # compilation failed
13682 lt_cv_dlopen_self=no
13689 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13690 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13692 if test "x$lt_cv_dlopen_self" = xyes; then
13693 LDFLAGS="$LDFLAGS $link_static_flag"
13694 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13695 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13696 if test "${lt_cv_dlopen_self_static+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 if test "$cross_compiling" = yes; then :
13700 lt_cv_dlopen_self_static=cross
13702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13703 lt_status=$lt_dlunknown
13704 cat > conftest.$ac_ext <<EOF
13705 #line 13705 "configure"
13706 #include "confdefs.h"
13715 # define LT_DLGLOBAL RTLD_GLOBAL
13718 # define LT_DLGLOBAL DL_GLOBAL
13720 # define LT_DLGLOBAL 0
13724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13725 find out it does not work in some platform. */
13726 #ifndef LT_DLLAZY_OR_NOW
13728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13731 # define LT_DLLAZY_OR_NOW DL_LAZY
13734 # define LT_DLLAZY_OR_NOW RTLD_NOW
13737 # define LT_DLLAZY_OR_NOW DL_NOW
13739 # define LT_DLLAZY_OR_NOW 0
13747 extern "C" void exit (int);
13750 void fnord() { int i=42;}
13753 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13754 int status = $lt_dlunknown;
13758 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13759 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13760 /* dlclose (self); */
13766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13767 (eval $ac_link) 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13771 (./conftest; exit; ) 2>/dev/null
13773 case x$lt_status in
13774 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13775 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13776 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13779 # compilation failed
13780 lt_cv_dlopen_self_static=no
13787 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13788 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13791 CPPFLAGS="$save_CPPFLAGS"
13792 LDFLAGS="$save_LDFLAGS"
13797 case $lt_cv_dlopen_self in
13798 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13799 *) enable_dlopen_self=unknown ;;
13802 case $lt_cv_dlopen_self_static in
13803 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13804 *) enable_dlopen_self_static=unknown ;;
13809 # The else clause should only fire when bootstrapping the
13810 # libtool distribution, otherwise you forgot to ship ltmain.sh
13811 # with your package, and you will get complaints that there are
13812 # no rules to generate ltmain.sh.
13813 if test -f "$ltmain"; then
13814 # See if we are running on zsh, and set the options which allow our commands through
13815 # without removal of \ escapes.
13816 if test -n "${ZSH_VERSION+set}" ; then
13817 setopt NO_GLOB_SUBST
13819 # Now quote all the things that may contain metacharacters while being
13820 # careful not to overquote the AC_SUBSTed values. We take copies of the
13821 # variables and quote the copies for generation of the libtool script.
13822 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13824 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13825 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13826 deplibs_check_method reload_flag reload_cmds need_locks \
13827 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13828 lt_cv_sys_global_symbol_to_c_name_address \
13829 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13830 old_postinstall_cmds old_postuninstall_cmds \
13834 lt_prog_compiler_wl_CXX \
13835 lt_prog_compiler_pic_CXX \
13836 lt_prog_compiler_static_CXX \
13837 lt_prog_compiler_no_builtin_flag_CXX \
13838 export_dynamic_flag_spec_CXX \
13839 thread_safe_flag_spec_CXX \
13840 whole_archive_flag_spec_CXX \
13841 enable_shared_with_static_runtimes_CXX \
13842 old_archive_cmds_CXX \
13843 old_archive_from_new_cmds_CXX \
13844 predep_objects_CXX \
13845 postdep_objects_CXX \
13848 compiler_lib_search_path_CXX \
13850 archive_expsym_cmds_CXX \
13851 postinstall_cmds_CXX \
13852 postuninstall_cmds_CXX \
13853 old_archive_from_expsyms_cmds_CXX \
13854 allow_undefined_flag_CXX \
13855 no_undefined_flag_CXX \
13856 export_symbols_cmds_CXX \
13857 hardcode_libdir_flag_spec_CXX \
13858 hardcode_libdir_flag_spec_ld_CXX \
13859 hardcode_libdir_separator_CXX \
13860 hardcode_automatic_CXX \
13862 module_expsym_cmds_CXX \
13863 lt_cv_prog_compiler_c_o_CXX \
13864 exclude_expsyms_CXX \
13865 include_expsyms_CXX; do
13868 old_archive_cmds_CXX | \
13869 old_archive_from_new_cmds_CXX | \
13870 archive_cmds_CXX | \
13871 archive_expsym_cmds_CXX | \
13872 module_cmds_CXX | \
13873 module_expsym_cmds_CXX | \
13874 old_archive_from_expsyms_cmds_CXX | \
13875 export_symbols_cmds_CXX | \
13876 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13877 postinstall_cmds | postuninstall_cmds | \
13878 old_postinstall_cmds | old_postuninstall_cmds | \
13879 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13880 # Double-quote double-evaled strings.
13881 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13890 *'\$0 --fallback-echo"')
13891 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13897 cat <<__EOF__ >> "$cfgfile"
13898 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13902 # Shell to use when invoking shell scripts.
13905 # Whether or not to build shared libraries.
13906 build_libtool_libs=$enable_shared
13908 # Whether or not to build static libraries.
13909 build_old_libs=$enable_static
13911 # Whether or not to add -lc for building shared libraries.
13912 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13914 # Whether or not to disallow shared libs when runtime libs are static
13915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13917 # Whether or not to optimize for fast installation.
13918 fast_install=$enable_fast_install
13921 host_alias=$host_alias
13924 # An echo program that does not interpret backslashes.
13929 AR_FLAGS=$lt_AR_FLAGS
13934 # A language-specific compiler.
13935 CC=$lt_compiler_CXX
13937 # Is the compiler the GNU C compiler?
13943 # The linker used to build libraries.
13946 # Whether we need hard or soft links.
13949 # A BSD-compatible nm program.
13952 # A symbol stripping program
13955 # Used to examine libraries when file_magic_cmd begins "file"
13956 MAGIC_CMD=$MAGIC_CMD
13958 # Used on cygwin: DLL creation program.
13961 # Used on cygwin: object dumper.
13964 # Used on cygwin: assembler.
13967 # The name of the directory that contains temporary libtool files.
13970 # How to create reloadable object files.
13971 reload_flag=$lt_reload_flag
13972 reload_cmds=$lt_reload_cmds
13974 # How to pass a linker flag through the compiler.
13975 wl=$lt_lt_prog_compiler_wl_CXX
13977 # Object file suffix (normally "o").
13978 objext="$ac_objext"
13980 # Old archive suffix (normally "a").
13983 # Shared library suffix (normally ".so").
13984 shrext_cmds='$shrext_cmds'
13986 # Executable file suffix (normally "").
13989 # Additional compiler flags for building library objects.
13990 pic_flag=$lt_lt_prog_compiler_pic_CXX
13993 # What is the maximum length of a command?
13994 max_cmd_len=$lt_cv_sys_max_cmd_len
13996 # Does compiler simultaneously support -c and -o options?
13997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13999 # Must we lock files when doing compilation ?
14000 need_locks=$lt_need_locks
14002 # Do we need the lib prefix for modules?
14003 need_lib_prefix=$need_lib_prefix
14005 # Do we need a version for libraries?
14006 need_version=$need_version
14008 # Whether dlopen is supported.
14009 dlopen_support=$enable_dlopen
14011 # Whether dlopen of programs is supported.
14012 dlopen_self=$enable_dlopen_self
14014 # Whether dlopen of statically linked programs is supported.
14015 dlopen_self_static=$enable_dlopen_self_static
14017 # Compiler flag to prevent dynamic linking.
14018 link_static_flag=$lt_lt_prog_compiler_static_CXX
14020 # Compiler flag to turn off builtin functions.
14021 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14023 # Compiler flag to allow reflexive dlopens.
14024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14026 # Compiler flag to generate shared objects directly from archives.
14027 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14029 # Compiler flag to generate thread-safe objects.
14030 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14032 # Library versioning type.
14033 version_type=$version_type
14035 # Format of library name prefix.
14036 libname_spec=$lt_libname_spec
14038 # List of archive names. First name is the real one, the rest are links.
14039 # The last name is the one that the linker finds with -lNAME.
14040 library_names_spec=$lt_library_names_spec
14042 # The coded name of the library, if different from the real name.
14043 soname_spec=$lt_soname_spec
14045 # Commands used to build and install an old-style archive.
14047 old_archive_cmds=$lt_old_archive_cmds_CXX
14048 old_postinstall_cmds=$lt_old_postinstall_cmds
14049 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14051 # Create an old-style archive from a shared archive.
14052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14054 # Create a temporary old-style archive to link instead of a shared archive.
14055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14057 # Commands used to build and install a shared archive.
14058 archive_cmds=$lt_archive_cmds_CXX
14059 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14060 postinstall_cmds=$lt_postinstall_cmds
14061 postuninstall_cmds=$lt_postuninstall_cmds
14063 # Commands used to build a loadable module (assumed same as above if empty)
14064 module_cmds=$lt_module_cmds_CXX
14065 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14067 # Commands to strip libraries.
14068 old_striplib=$lt_old_striplib
14069 striplib=$lt_striplib
14071 # Dependencies to place before the objects being linked to create a
14073 predep_objects=$lt_predep_objects_CXX
14075 # Dependencies to place after the objects being linked to create a
14077 postdep_objects=$lt_postdep_objects_CXX
14079 # Dependencies to place before the objects being linked to create a
14081 predeps=$lt_predeps_CXX
14083 # Dependencies to place after the objects being linked to create a
14085 postdeps=$lt_postdeps_CXX
14087 # The library search path used internally by the compiler when linking
14088 # a shared library.
14089 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14091 # Method to check whether dependent libraries are shared objects.
14092 deplibs_check_method=$lt_deplibs_check_method
14094 # Command to use when deplibs_check_method == file_magic.
14095 file_magic_cmd=$lt_file_magic_cmd
14097 # Flag that allows shared libraries with undefined symbols to be built.
14098 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14100 # Flag that forces no undefined symbols.
14101 no_undefined_flag=$lt_no_undefined_flag_CXX
14103 # Commands used to finish a libtool library installation in a directory.
14104 finish_cmds=$lt_finish_cmds
14106 # Same as above, but a single script fragment to be evaled but not shown.
14107 finish_eval=$lt_finish_eval
14109 # Take the output of nm and produce a listing of raw symbols and C names.
14110 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14112 # Transform the output of nm in a proper C declaration
14113 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14115 # Transform the output of nm in a C name address pair
14116 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14118 # This is the shared library runtime path variable.
14119 runpath_var=$runpath_var
14121 # This is the shared library path variable.
14122 shlibpath_var=$shlibpath_var
14124 # Is shlibpath searched before the hard-coded library search path?
14125 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14127 # How to hardcode a shared library path into an executable.
14128 hardcode_action=$hardcode_action_CXX
14130 # Whether we should hardcode library paths into libraries.
14131 hardcode_into_libs=$hardcode_into_libs
14133 # Flag to hardcode \$libdir into a binary during linking.
14134 # This must work even if \$libdir does not exist.
14135 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14137 # If ld is used when linking, flag to hardcode \$libdir into
14138 # a binary during linking. This must work even if \$libdir does
14140 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14142 # Whether we need a single -rpath flag with a separated argument.
14143 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14145 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14146 # resulting binary.
14147 hardcode_direct=$hardcode_direct_CXX
14149 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14150 # resulting binary.
14151 hardcode_minus_L=$hardcode_minus_L_CXX
14153 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14154 # the resulting binary.
14155 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14157 # Set to yes if building a shared library automatically hardcodes DIR into the library
14158 # and all subsequent libraries and executables linked against it.
14159 hardcode_automatic=$hardcode_automatic_CXX
14161 # Variables whose values should be saved in libtool wrapper scripts and
14162 # restored at relink time.
14163 variables_saved_for_relink="$variables_saved_for_relink"
14165 # Whether libtool must link a program against all its dependency libraries.
14166 link_all_deplibs=$link_all_deplibs_CXX
14168 # Compile-time system search path for libraries
14169 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14171 # Run-time system search path for libraries
14172 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14174 # Fix the shell variable \$srcfile for the compiler.
14175 fix_srcfile_path="$fix_srcfile_path_CXX"
14177 # Set to yes if exported symbols are required.
14178 always_export_symbols=$always_export_symbols_CXX
14180 # The commands to list exported symbols.
14181 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14183 # The commands to extract the exported symbol list from a shared archive.
14184 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14186 # Symbols that should not be listed in the preloaded symbols.
14187 exclude_expsyms=$lt_exclude_expsyms_CXX
14189 # Symbols that must always be exported.
14190 include_expsyms=$lt_include_expsyms_CXX
14192 # ### END LIBTOOL TAG CONFIG: $tagname
14198 # If there is no Makefile yet, we rely on a make rule to execute
14199 # `config.status --recheck' to rerun these tests and create the
14200 # libtool script then.
14201 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14202 if test -f "$ltmain_in"; then
14203 test -f Makefile && make "$ltmain"
14209 ac_cpp='$CPP $CPPFLAGS'
14210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14218 with_gnu_ldcxx=$with_gnu_ld
14219 with_gnu_ld=$lt_save_with_gnu_ld
14220 lt_cv_path_LDCXX=$lt_cv_path_LD
14221 lt_cv_path_LD=$lt_save_path_LD
14222 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14223 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14231 if test -n "$F77" && test "X$F77" != "Xno"; then
14234 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14235 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14236 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14239 archive_cmds_need_lc_F77=no
14240 allow_undefined_flag_F77=
14241 always_export_symbols_F77=no
14242 archive_expsym_cmds_F77=
14243 export_dynamic_flag_spec_F77=
14244 hardcode_direct_F77=no
14245 hardcode_libdir_flag_spec_F77=
14246 hardcode_libdir_flag_spec_ld_F77=
14247 hardcode_libdir_separator_F77=
14248 hardcode_minus_L_F77=no
14249 hardcode_automatic_F77=no
14251 module_expsym_cmds_F77=
14252 link_all_deplibs_F77=unknown
14253 old_archive_cmds_F77=$old_archive_cmds
14254 no_undefined_flag_F77=
14255 whole_archive_flag_spec_F77=
14256 enable_shared_with_static_runtimes_F77=no
14258 # Source file extension for f77 test sources.
14261 # Object file extension for compiled f77 test sources.
14265 # Code to be used in simple compile tests
14266 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14268 # Code to be used in simple link tests
14269 lt_simple_link_test_code=" program t\n end\n"
14271 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14273 # If no C compiler was specified, use CC.
14276 # Allow CC to be a program name with arguments.
14280 # Allow CC to be a program name with arguments.
14285 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14287 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14288 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14289 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14290 echo "${ECHO_T}$can_build_shared" >&6
14292 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14293 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14294 test "$can_build_shared" = "no" && enable_shared=no
14296 # On AIX, shared libraries and static libraries use the same namespace, and
14297 # are all built from PIC.
14300 test "$enable_shared" = yes && enable_static=no
14301 if test -n "$RANLIB"; then
14302 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14303 postinstall_cmds='$RANLIB $lib'
14307 test "$enable_shared" = yes && enable_static=no
14310 echo "$as_me:$LINENO: result: $enable_shared" >&5
14311 echo "${ECHO_T}$enable_shared" >&6
14313 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14314 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14315 # Make sure either enable_shared or enable_static is yes.
14316 test "$enable_shared" = yes || enable_static=yes
14317 echo "$as_me:$LINENO: result: $enable_static" >&5
14318 echo "${ECHO_T}$enable_static" >&6
14320 test "$ld_shlibs_F77" = no && can_build_shared=no
14325 lt_prog_compiler_wl_F77=
14326 lt_prog_compiler_pic_F77=
14327 lt_prog_compiler_static_F77=
14329 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14330 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14332 if test "$GCC" = yes; then
14333 lt_prog_compiler_wl_F77='-Wl,'
14334 lt_prog_compiler_static_F77='-static'
14338 # All AIX code is PIC.
14339 if test "$host_cpu" = ia64; then
14340 # AIX 5 now supports IA64 processor
14341 lt_prog_compiler_static_F77='-Bstatic'
14346 # FIXME: we need at least 68020 code to build shared libraries, but
14347 # adding the `-m68020' flag to GCC prevents building anything better,
14349 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14352 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14353 # PIC is the default for these OSes.
14356 mingw* | pw32* | os2*)
14357 # This hack is so that the source file can tell whether it is being
14358 # built for inclusion in a dll (and should export symbols for example).
14359 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14362 darwin* | rhapsody*)
14363 # PIC is the default on this platform
14364 # Common symbols not allowed in MH_DYLIB files
14365 lt_prog_compiler_pic_F77='-fno-common'
14369 # Just because we use GCC doesn't mean we suddenly get shared libraries
14370 # on systems that don't support them.
14371 lt_prog_compiler_can_build_shared_F77=no
14376 if test -d /usr/nec; then
14377 lt_prog_compiler_pic_F77=-Kconform_pic
14382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14383 # not for PA HP-UX.
14384 case "$host_cpu" in
14389 lt_prog_compiler_pic_F77='-fPIC'
14395 lt_prog_compiler_pic_F77='-fPIC'
14399 # PORTME Check for flag to pass linker flags through the system compiler.
14402 lt_prog_compiler_wl_F77='-Wl,'
14403 if test "$host_cpu" = ia64; then
14404 # AIX 5 now supports IA64 processor
14405 lt_prog_compiler_static_F77='-Bstatic'
14407 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14411 mingw* | pw32* | os2*)
14412 # This hack is so that the source file can tell whether it is being
14413 # built for inclusion in a dll (and should export symbols for example).
14414 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14417 hpux9* | hpux10* | hpux11*)
14418 lt_prog_compiler_wl_F77='-Wl,'
14419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14420 # not for PA HP-UX.
14421 case "$host_cpu" in
14426 lt_prog_compiler_pic_F77='+Z'
14429 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14430 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14433 irix5* | irix6* | nonstopux*)
14434 lt_prog_compiler_wl_F77='-Wl,'
14435 # PIC (with -KPIC) is the default.
14436 lt_prog_compiler_static_F77='-non_shared'
14440 lt_prog_compiler_pic_F77='-KPIC'
14441 lt_prog_compiler_static_F77='-Bstatic'
14447 lt_prog_compiler_wl_F77='-Wl,'
14448 lt_prog_compiler_pic_F77='-KPIC'
14449 lt_prog_compiler_static_F77='-static'
14452 lt_prog_compiler_wl_F77='-Wl,'
14453 # All Alpha code is PIC.
14454 lt_prog_compiler_static_F77='-non_shared'
14459 osf3* | osf4* | osf5*)
14460 lt_prog_compiler_wl_F77='-Wl,'
14461 # All OSF/1 code is PIC.
14462 lt_prog_compiler_static_F77='-non_shared'
14466 lt_prog_compiler_pic_F77='-Kpic'
14467 lt_prog_compiler_static_F77='-dn'
14471 lt_prog_compiler_wl_F77='-Wl,'
14472 lt_prog_compiler_pic_F77='-KPIC'
14473 lt_prog_compiler_static_F77='-Bstatic'
14477 lt_prog_compiler_wl_F77='-Qoption ld '
14478 lt_prog_compiler_pic_F77='-PIC'
14479 lt_prog_compiler_static_F77='-Bstatic'
14482 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14483 lt_prog_compiler_wl_F77='-Wl,'
14484 lt_prog_compiler_pic_F77='-KPIC'
14485 lt_prog_compiler_static_F77='-Bstatic'
14489 if test -d /usr/nec ;then
14490 lt_prog_compiler_pic_F77='-Kconform_pic'
14491 lt_prog_compiler_static_F77='-Bstatic'
14496 lt_prog_compiler_pic_F77='-pic'
14497 lt_prog_compiler_static_F77='-Bstatic'
14501 lt_prog_compiler_can_build_shared_F77=no
14506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14507 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14510 # Check to make sure the PIC flag actually works.
14512 if test -n "$lt_prog_compiler_pic_F77"; then
14514 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14516 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 lt_prog_compiler_pic_works_F77=no
14520 ac_outfile=conftest.$ac_objext
14521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14522 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14523 # Insert the option either (1) after the last *FLAGS variable, or
14524 # (2) before a word containing "conftest.", or (3) at the end.
14525 # Note that $ac_compile itself does not contain backslashes and begins
14526 # with a dollar sign (not a hyphen), so the echo should work correctly.
14527 # The option is referenced via a variable to avoid confusing sed.
14528 lt_compile=`echo "$ac_compile" | $SED \
14529 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531 -e 's:$: $lt_compiler_flag:'`
14532 (eval echo "\"\$as_me:14532: $lt_compile\"" >&5)
14533 (eval "$lt_compile" 2>conftest.err)
14535 cat conftest.err >&5
14536 echo "$as_me:14536: \$? = $ac_status" >&5
14537 if (exit $ac_status) && test -s "$ac_outfile"; then
14538 # The compiler can only warn and ignore the option if not recognized
14539 # So say no if there are warnings
14540 if test ! -s conftest.err; then
14541 lt_prog_compiler_pic_works_F77=yes
14547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14548 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14550 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14551 case $lt_prog_compiler_pic_F77 in
14553 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14556 lt_prog_compiler_pic_F77=
14557 lt_prog_compiler_can_build_shared_F77=no
14562 # For platforms which do not support PIC, -DPIC is meaningless:
14564 lt_prog_compiler_pic_F77=
14567 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14571 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14573 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 lt_cv_prog_compiler_c_o_F77=no
14577 $rm -r conftest 2>/dev/null
14581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14583 lt_compiler_flag="-o out/conftest2.$ac_objext"
14584 # Insert the option either (1) after the last *FLAGS variable, or
14585 # (2) before a word containing "conftest.", or (3) at the end.
14586 # Note that $ac_compile itself does not contain backslashes and begins
14587 # with a dollar sign (not a hyphen), so the echo should work correctly.
14588 lt_compile=`echo "$ac_compile" | $SED \
14589 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14591 -e 's:$: $lt_compiler_flag:'`
14592 (eval echo "\"\$as_me:14592: $lt_compile\"" >&5)
14593 (eval "$lt_compile" 2>out/conftest.err)
14595 cat out/conftest.err >&5
14596 echo "$as_me:14596: \$? = $ac_status" >&5
14597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14599 # The compiler can only warn and ignore the option if not recognized
14600 # So say no if there are warnings
14601 if test ! -s out/conftest.err; then
14602 lt_cv_prog_compiler_c_o_F77=yes
14607 # SGI C++ compiler will create directory out/ii_files/ for
14608 # template instantiation
14609 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14610 $rm out/* && rmdir out
14616 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14617 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14620 hard_links="nottested"
14621 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14622 # do not overwrite the value of need_locks provided by the user
14623 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14624 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14629 ln conftest.a conftest.b 2>&5 || hard_links=no
14630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14631 echo "$as_me:$LINENO: result: $hard_links" >&5
14632 echo "${ECHO_T}$hard_links" >&6
14633 if test "$hard_links" = no; then
14634 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14635 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14642 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14643 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14646 allow_undefined_flag_F77=
14647 enable_shared_with_static_runtimes_F77=no
14649 archive_expsym_cmds_F77=
14650 old_archive_From_new_cmds_F77=
14651 old_archive_from_expsyms_cmds_F77=
14652 export_dynamic_flag_spec_F77=
14653 whole_archive_flag_spec_F77=
14654 thread_safe_flag_spec_F77=
14655 hardcode_libdir_flag_spec_F77=
14656 hardcode_libdir_flag_spec_ld_F77=
14657 hardcode_libdir_separator_F77=
14658 hardcode_direct_F77=no
14659 hardcode_minus_L_F77=no
14660 hardcode_shlibpath_var_F77=unsupported
14661 link_all_deplibs_F77=unknown
14662 hardcode_automatic_F77=no
14664 module_expsym_cmds_F77=
14665 always_export_symbols_F77=no
14666 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14667 # include_expsyms should be a list of space-separated symbols to be *always*
14668 # included in the symbol list
14669 include_expsyms_F77=
14670 # exclude_expsyms can be an extended regexp of symbols to exclude
14671 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14672 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14673 # as well as any symbol that contains `d'.
14674 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14675 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14676 # platforms (ab)use it in PIC code, but their linkers get confused if
14677 # the symbol is explicitly referenced. Since portable code cannot
14678 # rely on this symbol name, it's probably fine to never include it in
14679 # preloaded symbol tables.
14680 extract_expsyms_cmds=
14683 cygwin* | mingw* | pw32*)
14684 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14685 # When not using gcc, we currently assume that we are using
14686 # Microsoft Visual C++.
14687 if test "$GCC" != yes; then
14697 if test "$with_gnu_ld" = yes; then
14698 # If archive_cmds runs LD, not CC, wlarc should be empty
14701 # See if GNU ld supports shared libraries.
14703 aix3* | aix4* | aix5*)
14704 # On AIX/PPC, the GNU linker is very broken
14705 if test "$host_cpu" != ia64; then
14709 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14710 *** to be unable to reliably create shared libraries on AIX.
14711 *** Therefore, libtool is disabling shared libraries support. If you
14712 *** really care for shared libraries, you may want to modify your PATH
14713 *** so that a non-GNU linker is found, and then restart.
14720 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14721 hardcode_libdir_flag_spec_F77='-L$libdir'
14722 hardcode_minus_L_F77=yes
14724 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14725 # that the semantics of dynamic libraries on AmigaOS, at least up
14726 # to version 4, is to share data among multiple programs linked
14727 # with the same dynamic library. Since this doesn't match the
14728 # behavior of shared libraries on other platforms, we can't use
14734 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14735 allow_undefined_flag_F77=unsupported
14736 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14737 # support --undefined. This deserves some investigation. FIXME
14738 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14744 cygwin* | mingw* | pw32*)
14745 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14746 # as there is no search path for DLLs.
14747 hardcode_libdir_flag_spec_F77='-L$libdir'
14748 allow_undefined_flag_F77=unsupported
14749 always_export_symbols_F77=no
14750 enable_shared_with_static_runtimes_F77=yes
14751 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14753 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14754 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14755 # If the export-symbols file already is a .def file (1st line
14756 # is EXPORTS), use it as is; otherwise, prepend...
14757 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14758 cp $export_symbols $output_objdir/$soname.def;
14760 echo EXPORTS > $output_objdir/$soname.def;
14761 cat $export_symbols >> $output_objdir/$soname.def;
14763 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14771 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14774 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14780 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14785 *** create shared libraries on Solaris systems. Therefore, libtool
14786 *** is disabling shared libraries support. We urge you to upgrade GNU
14787 *** binutils to release 2.9.1 or newer. Another option is to modify
14788 *** your PATH or compiler configuration so that the native linker is
14789 *** used, and then restart.
14792 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14801 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_direct_F77=yes
14804 hardcode_shlibpath_var_F77=no
14808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14809 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810 archive_cmds_F77="$tmp_archive_cmds"
14811 supports_anon_versioning=no
14812 case `$LD -v 2>/dev/null` in
14813 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14814 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14815 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14816 *\ 2.11.*) ;; # other 2.11 versions
14817 *) supports_anon_versioning=yes ;;
14819 if test $supports_anon_versioning = yes; then
14820 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14822 $echo "local: *; };" >> $output_objdir/$libname.ver~
14823 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14825 archive_expsym_cmds_F77="$tmp_archive_cmds"
14833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14834 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14842 if test "$ld_shlibs_F77" = yes; then
14843 runpath_var=LD_RUN_PATH
14844 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14845 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14846 # ancient GNU ld didn't support --whole-archive et. al.
14847 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14848 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14850 whole_archive_flag_spec_F77=
14854 # PORTME fill in a description of your system's linker (not GNU ld)
14857 allow_undefined_flag_F77=unsupported
14858 always_export_symbols_F77=yes
14859 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14860 # Note: this linker hardcodes the directories in LIBPATH if there
14861 # are no directories specified by -L.
14862 hardcode_minus_L_F77=yes
14863 if test "$GCC" = yes && test -z "$link_static_flag"; then
14864 # Neither direct hardcoding nor static linking is supported with a
14866 hardcode_direct_F77=unsupported
14871 if test "$host_cpu" = ia64; then
14872 # On IA64, the linker does run time linking by default, so we don't
14873 # have to do anything special.
14874 aix_use_runtimelinking=no
14875 exp_sym_flag='-Bexport'
14878 # If we're using GNU nm, then we don't want the "-C" option.
14879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14880 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14881 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14883 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14885 aix_use_runtimelinking=no
14887 # Test if we are trying to use run time linking or normal
14888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14889 # need to do runtime linking.
14890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14891 for ld_flag in $LDFLAGS; do
14892 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14893 aix_use_runtimelinking=yes
14899 exp_sym_flag='-bexport'
14900 no_entry_flag='-bnoentry'
14903 # When large executables or shared objects are built, AIX ld can
14904 # have problems creating the table of contents. If linking a library
14905 # or program results in "error TOC overflow" add -mminimal-toc to
14906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14909 archive_cmds_F77=''
14910 hardcode_direct_F77=yes
14911 hardcode_libdir_separator_F77=':'
14912 link_all_deplibs_F77=yes
14914 if test "$GCC" = yes; then
14915 case $host_os in aix4.012|aix4.012.*)
14916 # We only want to do this on AIX 4.2 and lower, the check
14917 # below for broken collect2 doesn't work under 4.3+
14918 collect2name=`${CC} -print-prog-name=collect2`
14919 if test -f "$collect2name" && \
14920 strings "$collect2name" | grep resolve_lib_name >/dev/null
14922 # We have reworked collect2
14923 hardcode_direct_F77=yes
14925 # We have old collect2
14926 hardcode_direct_F77=unsupported
14927 # It fails to find uninstalled libraries when the uninstalled
14928 # path is not listed in the libpath. Setting hardcode_minus_L
14929 # to unsupported forces relinking
14930 hardcode_minus_L_F77=yes
14931 hardcode_libdir_flag_spec_F77='-L$libdir'
14932 hardcode_libdir_separator_F77=
14935 shared_flag='-shared'
14938 if test "$host_cpu" = ia64; then
14939 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14940 # chokes on -Wl,-G. The following line is correct:
14943 if test "$aix_use_runtimelinking" = yes; then
14944 shared_flag='${wl}-G'
14946 shared_flag='${wl}-bM:SRE'
14951 # It seems that -bexpall does not export symbols beginning with
14952 # underscore (_), so it is better to generate a list of symbols to export.
14953 always_export_symbols_F77=yes
14954 if test "$aix_use_runtimelinking" = yes; then
14955 # Warning - without using the other runtime loading flags (-brtl),
14956 # -berok will link without error, but may produce a broken library.
14957 allow_undefined_flag_F77='-berok'
14958 # Determine the default libpath from the value encoded in an empty executable.
14959 cat >conftest.$ac_ext <<_ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_f77_werror_flag"
14974 || test ! -s conftest.err'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest$ac_exeext'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
14987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14989 # Check for a 64-bit object if we didn't find anything.
14990 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14997 rm -f conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
14999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15001 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15002 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15004 if test "$host_cpu" = ia64; then
15005 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15006 allow_undefined_flag_F77="-z nodefs"
15007 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15009 # Determine the default libpath from the value encoded in an empty executable.
15010 cat >conftest.$ac_ext <<_ACEOF
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017 (eval $ac_link) 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_f77_werror_flag"
15025 || test ! -s conftest.err'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; } &&
15031 { ac_try='test -s conftest$ac_exeext'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15040 # Check for a 64-bit object if we didn't find anything.
15041 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15048 rm -f conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15052 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15053 # Warning - without using the other run time loading flags,
15054 # -berok will link without error, but may produce a broken library.
15055 no_undefined_flag_F77=' ${wl}-bernotok'
15056 allow_undefined_flag_F77=' ${wl}-berok'
15057 # -bexpall does not export symbols beginning with underscore (_)
15058 always_export_symbols_F77=yes
15059 # Exported symbols can be pulled into shared objects from archives
15060 whole_archive_flag_spec_F77=' '
15061 archive_cmds_need_lc_F77=yes
15062 # This is similar to how AIX traditionally builds it's shared libraries.
15063 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15069 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15070 hardcode_libdir_flag_spec_F77='-L$libdir'
15071 hardcode_minus_L_F77=yes
15072 # see comment about different semantics on the GNU ld section
15077 export_dynamic_flag_spec_F77=-rdynamic
15080 cygwin* | mingw* | pw32*)
15081 # When not using gcc, we currently assume that we are using
15082 # Microsoft Visual C++.
15083 # hardcode_libdir_flag_spec is actually meaningless, as there is
15084 # no search path for DLLs.
15085 hardcode_libdir_flag_spec_F77=' '
15086 allow_undefined_flag_F77=unsupported
15087 # Tell ltmain to make .lib files, not .a files.
15089 # Tell ltmain to make .dll files, not .so files.
15091 # FIXME: Setting linknames here is a bad hack.
15092 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15093 # The linker will automatically build a .lib file if we build a DLL.
15094 old_archive_From_new_cmds_F77='true'
15095 # FIXME: Should let the user specify the lib program.
15096 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15097 fix_srcfile_path='`cygpath -w "$srcfile"`'
15098 enable_shared_with_static_runtimes_F77=yes
15101 darwin* | rhapsody*)
15102 if test "$GXX" = yes ; then
15103 archive_cmds_need_lc_F77=no
15105 rhapsody* | darwin1.[012])
15106 allow_undefined_flag_F77='-undefined suppress'
15109 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15110 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15112 case ${MACOSX_DEPLOYMENT_TARGET} in
15114 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15117 allow_undefined_flag_F77='-undefined dynamic_lookup'
15123 lt_int_apple_cc_single_mod=no
15124 output_verbose_link_cmd='echo'
15125 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15126 lt_int_apple_cc_single_mod=yes
15128 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15129 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15131 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15133 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15134 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15135 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15136 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15138 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15140 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15141 hardcode_direct_F77=no
15142 hardcode_automatic_F77=yes
15143 hardcode_shlibpath_var_F77=unsupported
15144 whole_archive_flag_spec_F77='-all_load $convenience'
15145 link_all_deplibs_F77=yes
15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_libdir_flag_spec_F77='-L$libdir'
15154 hardcode_shlibpath_var_F77=no
15161 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15162 # support. Future versions do this automatically, but an explicit c++rt0.o
15163 # does not break anything, and helps significantly (at the cost of a little
15166 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15167 hardcode_libdir_flag_spec_F77='-R$libdir'
15168 hardcode_direct_F77=yes
15169 hardcode_shlibpath_var_F77=no
15172 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15174 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15175 hardcode_direct_F77=yes
15176 hardcode_minus_L_F77=yes
15177 hardcode_shlibpath_var_F77=no
15180 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15181 freebsd* | kfreebsd*-gnu)
15182 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15183 hardcode_libdir_flag_spec_F77='-R$libdir'
15184 hardcode_direct_F77=yes
15185 hardcode_shlibpath_var_F77=no
15189 if test "$GCC" = yes; then
15190 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15192 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15194 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15195 hardcode_libdir_separator_F77=:
15196 hardcode_direct_F77=yes
15198 # hardcode_minus_L: Not really in the search PATH,
15199 # but as the default location of the library.
15200 hardcode_minus_L_F77=yes
15201 export_dynamic_flag_spec_F77='${wl}-E'
15205 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15206 case "$host_cpu" in
15208 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15211 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15215 case "$host_cpu" in
15217 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15220 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15224 if test "$with_gnu_ld" = no; then
15225 case "$host_cpu" in
15227 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15228 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15229 hardcode_libdir_separator_F77=:
15230 hardcode_direct_F77=no
15231 hardcode_shlibpath_var_F77=no
15234 hardcode_libdir_flag_spec_F77='-L$libdir'
15235 hardcode_direct_F77=no
15236 hardcode_shlibpath_var_F77=no
15238 # hardcode_minus_L: Not really in the search PATH,
15239 # but as the default location of the library.
15240 hardcode_minus_L_F77=yes
15243 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15244 hardcode_libdir_separator_F77=:
15245 hardcode_direct_F77=yes
15246 export_dynamic_flag_spec_F77='${wl}-E'
15248 # hardcode_minus_L: Not really in the search PATH,
15249 # but as the default location of the library.
15250 hardcode_minus_L_F77=yes
15256 irix5* | irix6* | nonstopux*)
15257 if test "$GCC" = yes; then
15258 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15260 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15261 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15263 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264 hardcode_libdir_separator_F77=:
15265 link_all_deplibs_F77=yes
15269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15270 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15272 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15274 hardcode_libdir_flag_spec_F77='-R$libdir'
15275 hardcode_direct_F77=yes
15276 hardcode_shlibpath_var_F77=no
15280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281 hardcode_direct_F77=yes
15282 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15283 hardcode_libdir_separator_F77=:
15284 hardcode_shlibpath_var_F77=no
15288 hardcode_direct_F77=yes
15289 hardcode_shlibpath_var_F77=no
15290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15291 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15292 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15293 export_dynamic_flag_spec_F77='${wl}-E'
15296 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15297 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15298 hardcode_libdir_flag_spec_F77='-R$libdir'
15301 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15302 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15309 hardcode_libdir_flag_spec_F77='-L$libdir'
15310 hardcode_minus_L_F77=yes
15311 allow_undefined_flag_F77=unsupported
15312 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15313 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15317 if test "$GCC" = yes; then
15318 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15319 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15321 allow_undefined_flag_F77=' -expect_unresolved \*'
15322 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15324 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15325 hardcode_libdir_separator_F77=:
15328 osf4* | osf5*) # as osf3* with the addition of -msym flag
15329 if test "$GCC" = yes; then
15330 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15331 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15332 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15334 allow_undefined_flag_F77=' -expect_unresolved \*'
15335 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15336 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15337 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15339 # Both c and cxx compiler support -rpath directly
15340 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15342 hardcode_libdir_separator_F77=:
15346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347 hardcode_shlibpath_var_F77=no
15348 export_dynamic_flag_spec_F77='${wl}-Bexport'
15349 runpath_var=LD_RUN_PATH
15350 hardcode_runpath_var=yes
15354 no_undefined_flag_F77=' -z text'
15355 if test "$GCC" = yes; then
15356 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15357 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15358 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15360 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15361 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15362 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15364 hardcode_libdir_flag_spec_F77='-R$libdir'
15365 hardcode_shlibpath_var_F77=no
15367 solaris2.[0-5] | solaris2.[0-5].*) ;;
15368 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15369 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15371 link_all_deplibs_F77=yes
15375 if test "x$host_vendor" = xsequent; then
15376 # Use $CC to link under sequent, because it throws in some extra .o
15377 # files that make .init and .fini sections work.
15378 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15380 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15382 hardcode_libdir_flag_spec_F77='-L$libdir'
15383 hardcode_direct_F77=yes
15384 hardcode_minus_L_F77=yes
15385 hardcode_shlibpath_var_F77=no
15389 case $host_vendor in
15391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15392 hardcode_direct_F77=yes # is this really true???
15395 ## LD is ld it makes a PLAMLIB
15396 ## CC just makes a GrossModule.
15397 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15398 reload_cmds_F77='$CC -r -o $output$reload_objs'
15399 hardcode_direct_F77=no
15402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15403 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15406 runpath_var='LD_RUN_PATH'
15407 hardcode_shlibpath_var_F77=no
15411 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_shlibpath_var_F77=no
15413 export_dynamic_flag_spec_F77='-Bexport'
15417 if test -d /usr/nec; then
15418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_shlibpath_var_F77=no
15420 runpath_var=LD_RUN_PATH
15421 hardcode_runpath_var=yes
15427 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_direct_F77=yes
15429 hardcode_minus_L_F77=no
15430 hardcode_shlibpath_var_F77=no
15431 hardcode_runpath_var=yes
15432 runpath_var=LD_RUN_PATH
15435 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15436 no_undefined_flag_F77='${wl}-z ${wl}text'
15437 if test "$GCC" = yes; then
15438 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15442 runpath_var='LD_RUN_PATH'
15443 hardcode_shlibpath_var_F77=no
15447 no_undefined_flag_F77=' -z text'
15448 # $CC -shared without GNU ld will not create a library from C++
15449 # object files and a static libstdc++, better avoid it by now
15450 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15451 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15453 hardcode_libdir_flag_spec_F77=
15454 hardcode_shlibpath_var_F77=no
15455 runpath_var='LD_RUN_PATH'
15459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_libdir_flag_spec_F77='-L$libdir'
15461 hardcode_shlibpath_var_F77=no
15470 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15471 echo "${ECHO_T}$ld_shlibs_F77" >&6
15472 test "$ld_shlibs_F77" = no && can_build_shared=no
15474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15475 if test "$GCC" = yes; then
15476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15480 # Do we need to explicitly link libc?
15482 case "x$archive_cmds_need_lc_F77" in
15484 # Assume -lc should be added
15485 archive_cmds_need_lc_F77=yes
15487 if test "$enable_shared" = yes && test "$GCC" = yes; then
15488 case $archive_cmds_F77 in
15490 # FIXME: we may have to deal with multi-command sequences.
15493 # Test whether the compiler implicitly links with -lc since on some
15494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15495 # to ld, don't add -lc before -lgcc.
15496 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15497 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15502 (eval $ac_compile) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } 2>conftest.err; then
15508 libobjs=conftest.$ac_objext
15510 wl=$lt_prog_compiler_wl_F77
15516 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15517 allow_undefined_flag_F77=
15518 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15519 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }
15524 archive_cmds_need_lc_F77=no
15526 archive_cmds_need_lc_F77=yes
15528 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15530 cat conftest.err 1>&5
15533 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15534 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15541 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15542 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15543 library_names_spec=
15544 libname_spec='lib$name'
15548 postuninstall_cmds=
15552 shlibpath_overrides_runpath=unknown
15554 dynamic_linker="$host_os ld.so"
15555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15556 if test "$GCC" = yes; then
15557 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15558 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15559 # if the path contains ";" then we assume it to be the separator
15560 # otherwise default to the standard path separator (i.e. ":") - it is
15561 # assumed that no part of a normal pathname contains ";" but that should
15562 # okay in the real world where ";" in dirpaths is itself problematic.
15563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15568 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15570 need_lib_prefix=unknown
15571 hardcode_into_libs=no
15573 # when you set need_version to no, make sure it does not cause -set_version
15574 # flags to be left without arguments
15575 need_version=unknown
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15581 shlibpath_var=LIBPATH
15583 # AIX 3 has no versioning support, so we append a major version to the name.
15584 soname_spec='${libname}${release}${shared_ext}$major'
15591 hardcode_into_libs=yes
15592 if test "$host_cpu" = ia64; then
15593 # AIX 5 supports IA64
15594 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15595 shlibpath_var=LD_LIBRARY_PATH
15597 # With GCC up to 2.95.x, collect2 would create an import file
15598 # for dependence libraries. The import file would start with
15599 # the line `#! .'. This would cause the generated library to
15600 # depend on `.', always an invalid library. This was fixed in
15601 # development snapshots of GCC prior to 3.0.
15603 aix4 | aix4.[01] | aix4.[01].*)
15604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15606 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15609 can_build_shared=no
15613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15614 # soname into executable. Probably we can add versioning support to
15615 # collect2, so additional links can be useful in future.
15616 if test "$aix_use_runtimelinking" = yes; then
15617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15618 # instead of lib<name>.a to let people know that these are not
15619 # typical AIX shared libraries.
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 # We preserve .a as extension for shared libraries through AIX4.2
15623 # and later when we are not doing run time linking.
15624 library_names_spec='${libname}${release}.a $libname.a'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LIBPATH
15632 library_names_spec='$libname.ixlibrary $libname.a'
15633 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15634 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'
15638 library_names_spec='${libname}${shared_ext}'
15639 dynamic_linker="$host_os ld.so"
15640 shlibpath_var=LIBRARY_PATH
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15652 # the default ld.so.conf also contains /usr/contrib/lib and
15653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15654 # libtool to hard-code these into programs
15657 cygwin* | mingw* | pw32*)
15658 version_type=windows
15663 case $GCC,$host_os in
15664 yes,cygwin* | yes,mingw* | yes,pw32*)
15665 library_names_spec='$libname.dll.a'
15666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15667 postinstall_cmds='base_file=`basename \${file}`~
15668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15669 dldir=$destdir/`dirname \$dlpath`~
15670 test -d \$dldir || mkdir -p \$dldir~
15671 $install_prog $dir/$dlname \$dldir/$dlname'
15672 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15673 dlpath=$dir/\$dldll~
15675 shlibpath_overrides_runpath=yes
15679 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15680 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15681 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15684 # MinGW DLLs use traditional 'lib' prefix
15685 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15686 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15687 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15688 # It is most probably a Windows format PATH printed by
15689 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15690 # path with ; separators, and with drive letters. We can handle the
15691 # drive letters (cygwin fileutils understands them), so leave them,
15692 # especially as we might pass files found there to a mingw objdump,
15693 # which wouldn't understand a cygwinified path. Ahh.
15694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15700 # pw32 DLLs use 'pw' prefix rather than 'lib'
15701 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15707 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15710 dynamic_linker='Win32 ld.exe'
15711 # FIXME: first we should search . and the directory the executable is in
15715 darwin* | rhapsody*)
15716 dynamic_linker="$host_os dyld"
15717 version_type=darwin
15720 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15721 soname_spec='${libname}${release}${major}$shared_ext'
15722 shlibpath_overrides_runpath=yes
15723 shlibpath_var=DYLD_LIBRARY_PATH
15724 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15725 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15726 if test "$GCC" = yes; then
15727 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15729 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15731 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 shlibpath_overrides_runpath=no
15755 hardcode_into_libs=yes
15756 dynamic_linker='GNU ld.so'
15760 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15761 version_type=freebsd-$objformat
15762 case $version_type in
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15773 shlibpath_var=LD_LIBRARY_PATH
15776 shlibpath_overrides_runpath=yes
15778 freebsd3.01* | freebsdelf3.01*)
15779 shlibpath_overrides_runpath=yes
15780 hardcode_into_libs=yes
15783 shlibpath_overrides_runpath=no
15784 hardcode_into_libs=yes
15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15794 soname_spec='${libname}${release}${shared_ext}$major'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 hardcode_into_libs=yes
15799 hpux9* | hpux10* | hpux11*)
15800 # Give a soname corresponding to the major version so that dld.sl refuses to
15801 # link against other versions.
15805 case "$host_cpu" in
15808 hardcode_into_libs=yes
15809 dynamic_linker="$host_os dld.so"
15810 shlibpath_var=LD_LIBRARY_PATH
15811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 if test "X$HPUX_IA64_MODE" = X32; then
15815 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15817 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15823 hardcode_into_libs=yes
15824 dynamic_linker="$host_os dld.sl"
15825 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15828 soname_spec='${libname}${release}${shared_ext}$major'
15829 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15834 dynamic_linker="$host_os dld.sl"
15835 shlibpath_var=SHLIB_PATH
15836 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838 soname_spec='${libname}${release}${shared_ext}$major'
15841 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15842 postinstall_cmds='chmod 555 $lib'
15845 irix5* | irix6* | nonstopux*)
15847 nonstopux*) version_type=nonstopux ;;
15849 if test "$lt_cv_prog_gnu_ld" = yes; then
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15860 irix5* | nonstopux*)
15861 libsuff= shlibsuff=
15864 case $LD in # libtool.m4 will add one of these switches to LD
15865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15866 libsuff= shlibsuff= libmagic=32-bit;;
15867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15868 libsuff=32 shlibsuff=N32 libmagic=N32;;
15869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15871 *) libsuff= shlibsuff= libmagic=never-match;;
15875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15876 shlibpath_overrides_runpath=no
15877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15879 hardcode_into_libs=yes
15882 # No shared lib support for Linux oldld, aout, or coff.
15883 linux*oldld* | linux*aout* | linux*coff*)
15887 # This must be Linux ELF.
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=no
15897 # This implies no fast_install, which is unacceptable.
15898 # Some rework will be needed to allow for fast_install
15899 # before this can be enabled.
15900 hardcode_into_libs=yes
15902 # find out which ABI we are using
15904 case "$host_cpu" in
15905 x86_64*|s390x*|powerpc64*)
15906 echo '#line 15906 "configure"' > conftest.$ac_ext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; then
15912 case `/usr/bin/file conftest.$ac_objext` in
15915 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15923 # Append ld.so.conf contents to the search path
15924 if test -f /etc/ld.so.conf; then
15925 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15926 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15929 # We used to test for /lib/ld.so.1 and disable shared libraries on
15930 # powerpc, because MkLinux only supported shared libraries with the
15931 # GNU dynamic linker. Since this was broken with cross compilers,
15932 # most powerpc-linux boxes support dynamic linking these days and
15933 # people can always --disable-shared, the test was removed, and we
15934 # assume the GNU/Linux dynamic linker is in use.
15935 dynamic_linker='GNU/Linux ld.so'
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 shlibpath_var=LD_LIBRARY_PATH
15945 shlibpath_overrides_runpath=no
15946 hardcode_into_libs=yes
15947 dynamic_linker='GNU ld.so'
15954 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15957 dynamic_linker='NetBSD (a.out) ld.so'
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 dynamic_linker='NetBSD ld.elf_so'
15963 shlibpath_var=LD_LIBRARY_PATH
15964 shlibpath_overrides_runpath=yes
15965 hardcode_into_libs=yes
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 shlibpath_overrides_runpath=yes
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980 soname_spec='${libname}${release}${shared_ext}$major'
15981 shlibpath_var=LD_LIBRARY_PATH
15982 shlibpath_overrides_runpath=yes
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15991 shlibpath_var=LD_LIBRARY_PATH
15992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15994 openbsd2.[89] | openbsd2.[89].*)
15995 shlibpath_overrides_runpath=no
15998 shlibpath_overrides_runpath=yes
16002 shlibpath_overrides_runpath=yes
16007 libname_spec='$name'
16010 library_names_spec='$libname${shared_ext} $libname.a'
16011 dynamic_linker='OS/2 ld.exe'
16012 shlibpath_var=LIBPATH
16015 osf3* | osf4* | osf5*)
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16023 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030 shlibpath_var=LD_LIBRARY_PATH
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038 soname_spec='${libname}${release}${shared_ext}$major'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=yes
16041 hardcode_into_libs=yes
16042 # ldd complains unless libraries are executable
16043 postinstall_cmds='chmod +x $lib'
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=yes
16052 if test "$with_gnu_ld" = yes; then
16058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 case $host_vendor in
16065 shlibpath_overrides_runpath=no
16067 export_dynamic_flag_spec='${wl}-Blargedynsym'
16068 runpath_var=LD_RUN_PATH
16076 shlibpath_overrides_runpath=no
16077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16083 if test -d /usr/nec ;then
16085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16086 soname_spec='$libname${shared_ext}.$major'
16087 shlibpath_var=LD_LIBRARY_PATH
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 shlibpath_var=LD_LIBRARY_PATH
16102 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16103 echo "${ECHO_T}$dynamic_linker" >&6
16104 test "$dynamic_linker" = no && can_build_shared=no
16106 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16108 hardcode_action_F77=
16109 if test -n "$hardcode_libdir_flag_spec_F77" || \
16110 test -n "$runpath_var F77" || \
16111 test "X$hardcode_automatic_F77"="Xyes" ; then
16113 # We can hardcode non-existant directories.
16114 if test "$hardcode_direct_F77" != no &&
16115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16116 # have to relink, otherwise we might link with an installed library
16117 # when we should be linking with a yet-to-be-installed one
16118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16119 test "$hardcode_minus_L_F77" != no; then
16120 # Linking always hardcodes the temporary library directory.
16121 hardcode_action_F77=relink
16123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16124 hardcode_action_F77=immediate
16127 # We cannot hardcode anything, or else we can only hardcode existing
16129 hardcode_action_F77=unsupported
16131 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16132 echo "${ECHO_T}$hardcode_action_F77" >&6
16134 if test "$hardcode_action_F77" = relink; then
16135 # Fast installation is not supported
16136 enable_fast_install=no
16137 elif test "$shlibpath_overrides_runpath" = yes ||
16138 test "$enable_shared" = no; then
16139 # Fast installation is not necessary
16140 enable_fast_install=needless
16145 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16146 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16147 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16148 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16149 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16150 echo "$as_me:$LINENO: result: yes" >&5
16151 echo "${ECHO_T}yes" >&6
16153 # FIXME - insert some real tests, host_os isn't really good enough
16156 if test -n "$STRIP" ; then
16157 striplib="$STRIP -x"
16158 echo "$as_me:$LINENO: result: yes" >&5
16159 echo "${ECHO_T}yes" >&6
16161 echo "$as_me:$LINENO: result: no" >&5
16162 echo "${ECHO_T}no" >&6
16166 echo "$as_me:$LINENO: result: no" >&5
16167 echo "${ECHO_T}no" >&6
16174 # The else clause should only fire when bootstrapping the
16175 # libtool distribution, otherwise you forgot to ship ltmain.sh
16176 # with your package, and you will get complaints that there are
16177 # no rules to generate ltmain.sh.
16178 if test -f "$ltmain"; then
16179 # See if we are running on zsh, and set the options which allow our commands through
16180 # without removal of \ escapes.
16181 if test -n "${ZSH_VERSION+set}" ; then
16182 setopt NO_GLOB_SUBST
16184 # Now quote all the things that may contain metacharacters while being
16185 # careful not to overquote the AC_SUBSTed values. We take copies of the
16186 # variables and quote the copies for generation of the libtool script.
16187 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16189 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16190 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16191 deplibs_check_method reload_flag reload_cmds need_locks \
16192 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16193 lt_cv_sys_global_symbol_to_c_name_address \
16194 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16195 old_postinstall_cmds old_postuninstall_cmds \
16199 lt_prog_compiler_wl_F77 \
16200 lt_prog_compiler_pic_F77 \
16201 lt_prog_compiler_static_F77 \
16202 lt_prog_compiler_no_builtin_flag_F77 \
16203 export_dynamic_flag_spec_F77 \
16204 thread_safe_flag_spec_F77 \
16205 whole_archive_flag_spec_F77 \
16206 enable_shared_with_static_runtimes_F77 \
16207 old_archive_cmds_F77 \
16208 old_archive_from_new_cmds_F77 \
16209 predep_objects_F77 \
16210 postdep_objects_F77 \
16213 compiler_lib_search_path_F77 \
16215 archive_expsym_cmds_F77 \
16216 postinstall_cmds_F77 \
16217 postuninstall_cmds_F77 \
16218 old_archive_from_expsyms_cmds_F77 \
16219 allow_undefined_flag_F77 \
16220 no_undefined_flag_F77 \
16221 export_symbols_cmds_F77 \
16222 hardcode_libdir_flag_spec_F77 \
16223 hardcode_libdir_flag_spec_ld_F77 \
16224 hardcode_libdir_separator_F77 \
16225 hardcode_automatic_F77 \
16227 module_expsym_cmds_F77 \
16228 lt_cv_prog_compiler_c_o_F77 \
16229 exclude_expsyms_F77 \
16230 include_expsyms_F77; do
16233 old_archive_cmds_F77 | \
16234 old_archive_from_new_cmds_F77 | \
16235 archive_cmds_F77 | \
16236 archive_expsym_cmds_F77 | \
16237 module_cmds_F77 | \
16238 module_expsym_cmds_F77 | \
16239 old_archive_from_expsyms_cmds_F77 | \
16240 export_symbols_cmds_F77 | \
16241 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16242 postinstall_cmds | postuninstall_cmds | \
16243 old_postinstall_cmds | old_postuninstall_cmds | \
16244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16245 # Double-quote double-evaled strings.
16246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16255 *'\$0 --fallback-echo"')
16256 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16262 cat <<__EOF__ >> "$cfgfile"
16263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16267 # Shell to use when invoking shell scripts.
16270 # Whether or not to build shared libraries.
16271 build_libtool_libs=$enable_shared
16273 # Whether or not to build static libraries.
16274 build_old_libs=$enable_static
16276 # Whether or not to add -lc for building shared libraries.
16277 build_libtool_need_lc=$archive_cmds_need_lc_F77
16279 # Whether or not to disallow shared libs when runtime libs are static
16280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16282 # Whether or not to optimize for fast installation.
16283 fast_install=$enable_fast_install
16286 host_alias=$host_alias
16289 # An echo program that does not interpret backslashes.
16294 AR_FLAGS=$lt_AR_FLAGS
16299 # A language-specific compiler.
16300 CC=$lt_compiler_F77
16302 # Is the compiler the GNU C compiler?
16308 # The linker used to build libraries.
16311 # Whether we need hard or soft links.
16314 # A BSD-compatible nm program.
16317 # A symbol stripping program
16320 # Used to examine libraries when file_magic_cmd begins "file"
16321 MAGIC_CMD=$MAGIC_CMD
16323 # Used on cygwin: DLL creation program.
16326 # Used on cygwin: object dumper.
16329 # Used on cygwin: assembler.
16332 # The name of the directory that contains temporary libtool files.
16335 # How to create reloadable object files.
16336 reload_flag=$lt_reload_flag
16337 reload_cmds=$lt_reload_cmds
16339 # How to pass a linker flag through the compiler.
16340 wl=$lt_lt_prog_compiler_wl_F77
16342 # Object file suffix (normally "o").
16343 objext="$ac_objext"
16345 # Old archive suffix (normally "a").
16348 # Shared library suffix (normally ".so").
16349 shrext_cmds='$shrext_cmds'
16351 # Executable file suffix (normally "").
16354 # Additional compiler flags for building library objects.
16355 pic_flag=$lt_lt_prog_compiler_pic_F77
16358 # What is the maximum length of a command?
16359 max_cmd_len=$lt_cv_sys_max_cmd_len
16361 # Does compiler simultaneously support -c and -o options?
16362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16364 # Must we lock files when doing compilation ?
16365 need_locks=$lt_need_locks
16367 # Do we need the lib prefix for modules?
16368 need_lib_prefix=$need_lib_prefix
16370 # Do we need a version for libraries?
16371 need_version=$need_version
16373 # Whether dlopen is supported.
16374 dlopen_support=$enable_dlopen
16376 # Whether dlopen of programs is supported.
16377 dlopen_self=$enable_dlopen_self
16379 # Whether dlopen of statically linked programs is supported.
16380 dlopen_self_static=$enable_dlopen_self_static
16382 # Compiler flag to prevent dynamic linking.
16383 link_static_flag=$lt_lt_prog_compiler_static_F77
16385 # Compiler flag to turn off builtin functions.
16386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16388 # Compiler flag to allow reflexive dlopens.
16389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16391 # Compiler flag to generate shared objects directly from archives.
16392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16394 # Compiler flag to generate thread-safe objects.
16395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16397 # Library versioning type.
16398 version_type=$version_type
16400 # Format of library name prefix.
16401 libname_spec=$lt_libname_spec
16403 # List of archive names. First name is the real one, the rest are links.
16404 # The last name is the one that the linker finds with -lNAME.
16405 library_names_spec=$lt_library_names_spec
16407 # The coded name of the library, if different from the real name.
16408 soname_spec=$lt_soname_spec
16410 # Commands used to build and install an old-style archive.
16412 old_archive_cmds=$lt_old_archive_cmds_F77
16413 old_postinstall_cmds=$lt_old_postinstall_cmds
16414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16416 # Create an old-style archive from a shared archive.
16417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16419 # Create a temporary old-style archive to link instead of a shared archive.
16420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16422 # Commands used to build and install a shared archive.
16423 archive_cmds=$lt_archive_cmds_F77
16424 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16425 postinstall_cmds=$lt_postinstall_cmds
16426 postuninstall_cmds=$lt_postuninstall_cmds
16428 # Commands used to build a loadable module (assumed same as above if empty)
16429 module_cmds=$lt_module_cmds_F77
16430 module_expsym_cmds=$lt_module_expsym_cmds_F77
16432 # Commands to strip libraries.
16433 old_striplib=$lt_old_striplib
16434 striplib=$lt_striplib
16436 # Dependencies to place before the objects being linked to create a
16438 predep_objects=$lt_predep_objects_F77
16440 # Dependencies to place after the objects being linked to create a
16442 postdep_objects=$lt_postdep_objects_F77
16444 # Dependencies to place before the objects being linked to create a
16446 predeps=$lt_predeps_F77
16448 # Dependencies to place after the objects being linked to create a
16450 postdeps=$lt_postdeps_F77
16452 # The library search path used internally by the compiler when linking
16453 # a shared library.
16454 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16456 # Method to check whether dependent libraries are shared objects.
16457 deplibs_check_method=$lt_deplibs_check_method
16459 # Command to use when deplibs_check_method == file_magic.
16460 file_magic_cmd=$lt_file_magic_cmd
16462 # Flag that allows shared libraries with undefined symbols to be built.
16463 allow_undefined_flag=$lt_allow_undefined_flag_F77
16465 # Flag that forces no undefined symbols.
16466 no_undefined_flag=$lt_no_undefined_flag_F77
16468 # Commands used to finish a libtool library installation in a directory.
16469 finish_cmds=$lt_finish_cmds
16471 # Same as above, but a single script fragment to be evaled but not shown.
16472 finish_eval=$lt_finish_eval
16474 # Take the output of nm and produce a listing of raw symbols and C names.
16475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16477 # Transform the output of nm in a proper C declaration
16478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16480 # Transform the output of nm in a C name address pair
16481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16483 # This is the shared library runtime path variable.
16484 runpath_var=$runpath_var
16486 # This is the shared library path variable.
16487 shlibpath_var=$shlibpath_var
16489 # Is shlibpath searched before the hard-coded library search path?
16490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16492 # How to hardcode a shared library path into an executable.
16493 hardcode_action=$hardcode_action_F77
16495 # Whether we should hardcode library paths into libraries.
16496 hardcode_into_libs=$hardcode_into_libs
16498 # Flag to hardcode \$libdir into a binary during linking.
16499 # This must work even if \$libdir does not exist.
16500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16502 # If ld is used when linking, flag to hardcode \$libdir into
16503 # a binary during linking. This must work even if \$libdir does
16505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16507 # Whether we need a single -rpath flag with a separated argument.
16508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16511 # resulting binary.
16512 hardcode_direct=$hardcode_direct_F77
16514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16515 # resulting binary.
16516 hardcode_minus_L=$hardcode_minus_L_F77
16518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16519 # the resulting binary.
16520 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16522 # Set to yes if building a shared library automatically hardcodes DIR into the library
16523 # and all subsequent libraries and executables linked against it.
16524 hardcode_automatic=$hardcode_automatic_F77
16526 # Variables whose values should be saved in libtool wrapper scripts and
16527 # restored at relink time.
16528 variables_saved_for_relink="$variables_saved_for_relink"
16530 # Whether libtool must link a program against all its dependency libraries.
16531 link_all_deplibs=$link_all_deplibs_F77
16533 # Compile-time system search path for libraries
16534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16536 # Run-time system search path for libraries
16537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16539 # Fix the shell variable \$srcfile for the compiler.
16540 fix_srcfile_path="$fix_srcfile_path_F77"
16542 # Set to yes if exported symbols are required.
16543 always_export_symbols=$always_export_symbols_F77
16545 # The commands to list exported symbols.
16546 export_symbols_cmds=$lt_export_symbols_cmds_F77
16548 # The commands to extract the exported symbol list from a shared archive.
16549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16551 # Symbols that should not be listed in the preloaded symbols.
16552 exclude_expsyms=$lt_exclude_expsyms_F77
16554 # Symbols that must always be exported.
16555 include_expsyms=$lt_include_expsyms_F77
16557 # ### END LIBTOOL TAG CONFIG: $tagname
16563 # If there is no Makefile yet, we rely on a make rule to execute
16564 # `config.status --recheck' to rerun these tests and create the
16565 # libtool script then.
16566 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16567 if test -f "$ltmain_in"; then
16568 test -f Makefile && make "$ltmain"
16574 ac_cpp='$CPP $CPPFLAGS'
16575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16587 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16591 # Source file extension for Java test sources.
16594 # Object file extension for compiled Java test sources.
16598 # Code to be used in simple compile tests
16599 lt_simple_compile_test_code="class foo {}\n"
16601 # Code to be used in simple link tests
16602 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16604 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16606 # If no C compiler was specified, use CC.
16609 # Allow CC to be a program name with arguments.
16613 # Allow CC to be a program name with arguments.
16619 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16620 archive_cmds_need_lc_GCJ=no
16623 lt_prog_compiler_no_builtin_flag_GCJ=
16625 if test "$GCC" = yes; then
16626 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16629 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16630 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16631 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 lt_cv_prog_compiler_rtti_exceptions=no
16635 ac_outfile=conftest.$ac_objext
16636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16637 lt_compiler_flag="-fno-rtti -fno-exceptions"
16638 # Insert the option either (1) after the last *FLAGS variable, or
16639 # (2) before a word containing "conftest.", or (3) at the end.
16640 # Note that $ac_compile itself does not contain backslashes and begins
16641 # with a dollar sign (not a hyphen), so the echo should work correctly.
16642 # The option is referenced via a variable to avoid confusing sed.
16643 lt_compile=`echo "$ac_compile" | $SED \
16644 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16646 -e 's:$: $lt_compiler_flag:'`
16647 (eval echo "\"\$as_me:16647: $lt_compile\"" >&5)
16648 (eval "$lt_compile" 2>conftest.err)
16650 cat conftest.err >&5
16651 echo "$as_me:16651: \$? = $ac_status" >&5
16652 if (exit $ac_status) && test -s "$ac_outfile"; then
16653 # The compiler can only warn and ignore the option if not recognized
16654 # So say no if there are warnings
16655 if test ! -s conftest.err; then
16656 lt_cv_prog_compiler_rtti_exceptions=yes
16662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16663 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16665 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16666 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16673 lt_prog_compiler_wl_GCJ=
16674 lt_prog_compiler_pic_GCJ=
16675 lt_prog_compiler_static_GCJ=
16677 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16678 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16680 if test "$GCC" = yes; then
16681 lt_prog_compiler_wl_GCJ='-Wl,'
16682 lt_prog_compiler_static_GCJ='-static'
16686 # All AIX code is PIC.
16687 if test "$host_cpu" = ia64; then
16688 # AIX 5 now supports IA64 processor
16689 lt_prog_compiler_static_GCJ='-Bstatic'
16694 # FIXME: we need at least 68020 code to build shared libraries, but
16695 # adding the `-m68020' flag to GCC prevents building anything better,
16697 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16700 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16701 # PIC is the default for these OSes.
16704 mingw* | pw32* | os2*)
16705 # This hack is so that the source file can tell whether it is being
16706 # built for inclusion in a dll (and should export symbols for example).
16707 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16710 darwin* | rhapsody*)
16711 # PIC is the default on this platform
16712 # Common symbols not allowed in MH_DYLIB files
16713 lt_prog_compiler_pic_GCJ='-fno-common'
16717 # Just because we use GCC doesn't mean we suddenly get shared libraries
16718 # on systems that don't support them.
16719 lt_prog_compiler_can_build_shared_GCJ=no
16724 if test -d /usr/nec; then
16725 lt_prog_compiler_pic_GCJ=-Kconform_pic
16730 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16731 # not for PA HP-UX.
16732 case "$host_cpu" in
16737 lt_prog_compiler_pic_GCJ='-fPIC'
16743 lt_prog_compiler_pic_GCJ='-fPIC'
16747 # PORTME Check for flag to pass linker flags through the system compiler.
16750 lt_prog_compiler_wl_GCJ='-Wl,'
16751 if test "$host_cpu" = ia64; then
16752 # AIX 5 now supports IA64 processor
16753 lt_prog_compiler_static_GCJ='-Bstatic'
16755 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16759 mingw* | pw32* | os2*)
16760 # This hack is so that the source file can tell whether it is being
16761 # built for inclusion in a dll (and should export symbols for example).
16762 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16765 hpux9* | hpux10* | hpux11*)
16766 lt_prog_compiler_wl_GCJ='-Wl,'
16767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16768 # not for PA HP-UX.
16769 case "$host_cpu" in
16774 lt_prog_compiler_pic_GCJ='+Z'
16777 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16778 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16781 irix5* | irix6* | nonstopux*)
16782 lt_prog_compiler_wl_GCJ='-Wl,'
16783 # PIC (with -KPIC) is the default.
16784 lt_prog_compiler_static_GCJ='-non_shared'
16788 lt_prog_compiler_pic_GCJ='-KPIC'
16789 lt_prog_compiler_static_GCJ='-Bstatic'
16795 lt_prog_compiler_wl_GCJ='-Wl,'
16796 lt_prog_compiler_pic_GCJ='-KPIC'
16797 lt_prog_compiler_static_GCJ='-static'
16800 lt_prog_compiler_wl_GCJ='-Wl,'
16801 # All Alpha code is PIC.
16802 lt_prog_compiler_static_GCJ='-non_shared'
16807 osf3* | osf4* | osf5*)
16808 lt_prog_compiler_wl_GCJ='-Wl,'
16809 # All OSF/1 code is PIC.
16810 lt_prog_compiler_static_GCJ='-non_shared'
16814 lt_prog_compiler_pic_GCJ='-Kpic'
16815 lt_prog_compiler_static_GCJ='-dn'
16819 lt_prog_compiler_wl_GCJ='-Wl,'
16820 lt_prog_compiler_pic_GCJ='-KPIC'
16821 lt_prog_compiler_static_GCJ='-Bstatic'
16825 lt_prog_compiler_wl_GCJ='-Qoption ld '
16826 lt_prog_compiler_pic_GCJ='-PIC'
16827 lt_prog_compiler_static_GCJ='-Bstatic'
16830 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16831 lt_prog_compiler_wl_GCJ='-Wl,'
16832 lt_prog_compiler_pic_GCJ='-KPIC'
16833 lt_prog_compiler_static_GCJ='-Bstatic'
16837 if test -d /usr/nec ;then
16838 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16839 lt_prog_compiler_static_GCJ='-Bstatic'
16844 lt_prog_compiler_pic_GCJ='-pic'
16845 lt_prog_compiler_static_GCJ='-Bstatic'
16849 lt_prog_compiler_can_build_shared_GCJ=no
16854 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16855 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16858 # Check to make sure the PIC flag actually works.
16860 if test -n "$lt_prog_compiler_pic_GCJ"; then
16862 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16863 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16864 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 lt_prog_compiler_pic_works_GCJ=no
16868 ac_outfile=conftest.$ac_objext
16869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16870 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16871 # Insert the option either (1) after the last *FLAGS variable, or
16872 # (2) before a word containing "conftest.", or (3) at the end.
16873 # Note that $ac_compile itself does not contain backslashes and begins
16874 # with a dollar sign (not a hyphen), so the echo should work correctly.
16875 # The option is referenced via a variable to avoid confusing sed.
16876 lt_compile=`echo "$ac_compile" | $SED \
16877 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16879 -e 's:$: $lt_compiler_flag:'`
16880 (eval echo "\"\$as_me:16880: $lt_compile\"" >&5)
16881 (eval "$lt_compile" 2>conftest.err)
16883 cat conftest.err >&5
16884 echo "$as_me:16884: \$? = $ac_status" >&5
16885 if (exit $ac_status) && test -s "$ac_outfile"; then
16886 # The compiler can only warn and ignore the option if not recognized
16887 # So say no if there are warnings
16888 if test ! -s conftest.err; then
16889 lt_prog_compiler_pic_works_GCJ=yes
16895 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16896 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16898 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16899 case $lt_prog_compiler_pic_GCJ in
16901 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16904 lt_prog_compiler_pic_GCJ=
16905 lt_prog_compiler_can_build_shared_GCJ=no
16910 # For platforms which do not support PIC, -DPIC is meaningless:
16912 lt_prog_compiler_pic_GCJ=
16915 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16919 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16920 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16921 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 lt_cv_prog_compiler_c_o_GCJ=no
16925 $rm -r conftest 2>/dev/null
16929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16931 lt_compiler_flag="-o out/conftest2.$ac_objext"
16932 # Insert the option either (1) after the last *FLAGS variable, or
16933 # (2) before a word containing "conftest.", or (3) at the end.
16934 # Note that $ac_compile itself does not contain backslashes and begins
16935 # with a dollar sign (not a hyphen), so the echo should work correctly.
16936 lt_compile=`echo "$ac_compile" | $SED \
16937 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16939 -e 's:$: $lt_compiler_flag:'`
16940 (eval echo "\"\$as_me:16940: $lt_compile\"" >&5)
16941 (eval "$lt_compile" 2>out/conftest.err)
16943 cat out/conftest.err >&5
16944 echo "$as_me:16944: \$? = $ac_status" >&5
16945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16947 # The compiler can only warn and ignore the option if not recognized
16948 # So say no if there are warnings
16949 if test ! -s out/conftest.err; then
16950 lt_cv_prog_compiler_c_o_GCJ=yes
16955 # SGI C++ compiler will create directory out/ii_files/ for
16956 # template instantiation
16957 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16958 $rm out/* && rmdir out
16964 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16968 hard_links="nottested"
16969 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16970 # do not overwrite the value of need_locks provided by the user
16971 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16977 ln conftest.a conftest.b 2>&5 || hard_links=no
16978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16979 echo "$as_me:$LINENO: result: $hard_links" >&5
16980 echo "${ECHO_T}$hard_links" >&6
16981 if test "$hard_links" = no; then
16982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16990 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16991 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16994 allow_undefined_flag_GCJ=
16995 enable_shared_with_static_runtimes_GCJ=no
16997 archive_expsym_cmds_GCJ=
16998 old_archive_From_new_cmds_GCJ=
16999 old_archive_from_expsyms_cmds_GCJ=
17000 export_dynamic_flag_spec_GCJ=
17001 whole_archive_flag_spec_GCJ=
17002 thread_safe_flag_spec_GCJ=
17003 hardcode_libdir_flag_spec_GCJ=
17004 hardcode_libdir_flag_spec_ld_GCJ=
17005 hardcode_libdir_separator_GCJ=
17006 hardcode_direct_GCJ=no
17007 hardcode_minus_L_GCJ=no
17008 hardcode_shlibpath_var_GCJ=unsupported
17009 link_all_deplibs_GCJ=unknown
17010 hardcode_automatic_GCJ=no
17012 module_expsym_cmds_GCJ=
17013 always_export_symbols_GCJ=no
17014 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17015 # include_expsyms should be a list of space-separated symbols to be *always*
17016 # included in the symbol list
17017 include_expsyms_GCJ=
17018 # exclude_expsyms can be an extended regexp of symbols to exclude
17019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17021 # as well as any symbol that contains `d'.
17022 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17024 # platforms (ab)use it in PIC code, but their linkers get confused if
17025 # the symbol is explicitly referenced. Since portable code cannot
17026 # rely on this symbol name, it's probably fine to never include it in
17027 # preloaded symbol tables.
17028 extract_expsyms_cmds=
17031 cygwin* | mingw* | pw32*)
17032 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17033 # When not using gcc, we currently assume that we are using
17034 # Microsoft Visual C++.
17035 if test "$GCC" != yes; then
17045 if test "$with_gnu_ld" = yes; then
17046 # If archive_cmds runs LD, not CC, wlarc should be empty
17049 # See if GNU ld supports shared libraries.
17051 aix3* | aix4* | aix5*)
17052 # On AIX/PPC, the GNU linker is very broken
17053 if test "$host_cpu" != ia64; then
17057 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17058 *** to be unable to reliably create shared libraries on AIX.
17059 *** Therefore, libtool is disabling shared libraries support. If you
17060 *** really care for shared libraries, you may want to modify your PATH
17061 *** so that a non-GNU linker is found, and then restart.
17068 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17070 hardcode_minus_L_GCJ=yes
17072 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17073 # that the semantics of dynamic libraries on AmigaOS, at least up
17074 # to version 4, is to share data among multiple programs linked
17075 # with the same dynamic library. Since this doesn't match the
17076 # behavior of shared libraries on other platforms, we can't use
17082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17083 allow_undefined_flag_GCJ=unsupported
17084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17085 # support --undefined. This deserves some investigation. FIXME
17086 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17092 cygwin* | mingw* | pw32*)
17093 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17094 # as there is no search path for DLLs.
17095 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17096 allow_undefined_flag_GCJ=unsupported
17097 always_export_symbols_GCJ=no
17098 enable_shared_with_static_runtimes_GCJ=yes
17099 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17101 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17102 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17103 # If the export-symbols file already is a .def file (1st line
17104 # is EXPORTS), use it as is; otherwise, prepend...
17105 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17106 cp $export_symbols $output_objdir/$soname.def;
17108 echo EXPORTS > $output_objdir/$soname.def;
17109 cat $export_symbols >> $output_objdir/$soname.def;
17111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17119 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17122 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17123 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17128 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17132 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17133 *** create shared libraries on Solaris systems. Therefore, libtool
17134 *** is disabling shared libraries support. We urge you to upgrade GNU
17135 *** binutils to release 2.9.1 or newer. Another option is to modify
17136 *** your PATH or compiler configuration so that the native linker is
17137 *** used, and then restart.
17140 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17142 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17149 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17151 hardcode_direct_GCJ=yes
17152 hardcode_shlibpath_var_GCJ=no
17156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17157 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17158 archive_cmds_GCJ="$tmp_archive_cmds"
17159 supports_anon_versioning=no
17160 case `$LD -v 2>/dev/null` in
17161 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17162 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17163 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17164 *\ 2.11.*) ;; # other 2.11 versions
17165 *) supports_anon_versioning=yes ;;
17167 if test $supports_anon_versioning = yes; then
17168 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17170 $echo "local: *; };" >> $output_objdir/$libname.ver~
17171 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17173 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17182 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17183 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17190 if test "$ld_shlibs_GCJ" = yes; then
17191 runpath_var=LD_RUN_PATH
17192 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17193 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17194 # ancient GNU ld didn't support --whole-archive et. al.
17195 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17196 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17198 whole_archive_flag_spec_GCJ=
17202 # PORTME fill in a description of your system's linker (not GNU ld)
17205 allow_undefined_flag_GCJ=unsupported
17206 always_export_symbols_GCJ=yes
17207 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17208 # Note: this linker hardcodes the directories in LIBPATH if there
17209 # are no directories specified by -L.
17210 hardcode_minus_L_GCJ=yes
17211 if test "$GCC" = yes && test -z "$link_static_flag"; then
17212 # Neither direct hardcoding nor static linking is supported with a
17214 hardcode_direct_GCJ=unsupported
17219 if test "$host_cpu" = ia64; then
17220 # On IA64, the linker does run time linking by default, so we don't
17221 # have to do anything special.
17222 aix_use_runtimelinking=no
17223 exp_sym_flag='-Bexport'
17226 # If we're using GNU nm, then we don't want the "-C" option.
17227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17228 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17229 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17231 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17233 aix_use_runtimelinking=no
17235 # Test if we are trying to use run time linking or normal
17236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17237 # need to do runtime linking.
17238 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17239 for ld_flag in $LDFLAGS; do
17240 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17241 aix_use_runtimelinking=yes
17247 exp_sym_flag='-bexport'
17248 no_entry_flag='-bnoentry'
17251 # When large executables or shared objects are built, AIX ld can
17252 # have problems creating the table of contents. If linking a library
17253 # or program results in "error TOC overflow" add -mminimal-toc to
17254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17257 archive_cmds_GCJ=''
17258 hardcode_direct_GCJ=yes
17259 hardcode_libdir_separator_GCJ=':'
17260 link_all_deplibs_GCJ=yes
17262 if test "$GCC" = yes; then
17263 case $host_os in aix4.012|aix4.012.*)
17264 # We only want to do this on AIX 4.2 and lower, the check
17265 # below for broken collect2 doesn't work under 4.3+
17266 collect2name=`${CC} -print-prog-name=collect2`
17267 if test -f "$collect2name" && \
17268 strings "$collect2name" | grep resolve_lib_name >/dev/null
17270 # We have reworked collect2
17271 hardcode_direct_GCJ=yes
17273 # We have old collect2
17274 hardcode_direct_GCJ=unsupported
17275 # It fails to find uninstalled libraries when the uninstalled
17276 # path is not listed in the libpath. Setting hardcode_minus_L
17277 # to unsupported forces relinking
17278 hardcode_minus_L_GCJ=yes
17279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280 hardcode_libdir_separator_GCJ=
17283 shared_flag='-shared'
17286 if test "$host_cpu" = ia64; then
17287 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17288 # chokes on -Wl,-G. The following line is correct:
17291 if test "$aix_use_runtimelinking" = yes; then
17292 shared_flag='${wl}-G'
17294 shared_flag='${wl}-bM:SRE'
17299 # It seems that -bexpall does not export symbols beginning with
17300 # underscore (_), so it is better to generate a list of symbols to export.
17301 always_export_symbols_GCJ=yes
17302 if test "$aix_use_runtimelinking" = yes; then
17303 # Warning - without using the other runtime loading flags (-brtl),
17304 # -berok will link without error, but may produce a broken library.
17305 allow_undefined_flag_GCJ='-berok'
17306 # Determine the default libpath from the value encoded in an empty executable.
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324 (eval $ac_link) 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest$ac_exeext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17347 # Check for a 64-bit object if we didn't find anything.
17348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17355 rm -f conftest.err conftest.$ac_objext \
17356 conftest$ac_exeext conftest.$ac_ext
17357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17360 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17362 if test "$host_cpu" = ia64; then
17363 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17364 allow_undefined_flag_GCJ="-z nodefs"
17365 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17367 # Determine the default libpath from the value encoded in an empty executable.
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>conftest.er1
17387 grep -v '^ *+' conftest.er1 >conftest.err
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag"
17393 || test ! -s conftest.err'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest$ac_exeext'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17408 # Check for a 64-bit object if we didn't find anything.
17409 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17416 rm -f conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17420 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17421 # Warning - without using the other run time loading flags,
17422 # -berok will link without error, but may produce a broken library.
17423 no_undefined_flag_GCJ=' ${wl}-bernotok'
17424 allow_undefined_flag_GCJ=' ${wl}-berok'
17425 # -bexpall does not export symbols beginning with underscore (_)
17426 always_export_symbols_GCJ=yes
17427 # Exported symbols can be pulled into shared objects from archives
17428 whole_archive_flag_spec_GCJ=' '
17429 archive_cmds_need_lc_GCJ=yes
17430 # This is similar to how AIX traditionally builds it's shared libraries.
17431 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17437 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17438 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17439 hardcode_minus_L_GCJ=yes
17440 # see comment about different semantics on the GNU ld section
17445 export_dynamic_flag_spec_GCJ=-rdynamic
17448 cygwin* | mingw* | pw32*)
17449 # When not using gcc, we currently assume that we are using
17450 # Microsoft Visual C++.
17451 # hardcode_libdir_flag_spec is actually meaningless, as there is
17452 # no search path for DLLs.
17453 hardcode_libdir_flag_spec_GCJ=' '
17454 allow_undefined_flag_GCJ=unsupported
17455 # Tell ltmain to make .lib files, not .a files.
17457 # Tell ltmain to make .dll files, not .so files.
17459 # FIXME: Setting linknames here is a bad hack.
17460 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17461 # The linker will automatically build a .lib file if we build a DLL.
17462 old_archive_From_new_cmds_GCJ='true'
17463 # FIXME: Should let the user specify the lib program.
17464 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17465 fix_srcfile_path='`cygpath -w "$srcfile"`'
17466 enable_shared_with_static_runtimes_GCJ=yes
17469 darwin* | rhapsody*)
17470 if test "$GXX" = yes ; then
17471 archive_cmds_need_lc_GCJ=no
17473 rhapsody* | darwin1.[012])
17474 allow_undefined_flag_GCJ='-undefined suppress'
17477 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17478 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17480 case ${MACOSX_DEPLOYMENT_TARGET} in
17482 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17485 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17491 lt_int_apple_cc_single_mod=no
17492 output_verbose_link_cmd='echo'
17493 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17494 lt_int_apple_cc_single_mod=yes
17496 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17497 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17499 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17501 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17504 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17506 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17508 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17509 hardcode_direct_GCJ=no
17510 hardcode_automatic_GCJ=yes
17511 hardcode_shlibpath_var_GCJ=unsupported
17512 whole_archive_flag_spec_GCJ='-all_load $convenience'
17513 link_all_deplibs_GCJ=yes
17520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522 hardcode_shlibpath_var_GCJ=no
17529 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17530 # support. Future versions do this automatically, but an explicit c++rt0.o
17531 # does not break anything, and helps significantly (at the cost of a little
17534 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17535 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17536 hardcode_direct_GCJ=yes
17537 hardcode_shlibpath_var_GCJ=no
17540 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17542 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17543 hardcode_direct_GCJ=yes
17544 hardcode_minus_L_GCJ=yes
17545 hardcode_shlibpath_var_GCJ=no
17548 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17549 freebsd* | kfreebsd*-gnu)
17550 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17551 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17552 hardcode_direct_GCJ=yes
17553 hardcode_shlibpath_var_GCJ=no
17557 if test "$GCC" = yes; then
17558 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17560 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17562 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17563 hardcode_libdir_separator_GCJ=:
17564 hardcode_direct_GCJ=yes
17566 # hardcode_minus_L: Not really in the search PATH,
17567 # but as the default location of the library.
17568 hardcode_minus_L_GCJ=yes
17569 export_dynamic_flag_spec_GCJ='${wl}-E'
17573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17574 case "$host_cpu" in
17576 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17579 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17583 case "$host_cpu" in
17585 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17588 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17592 if test "$with_gnu_ld" = no; then
17593 case "$host_cpu" in
17595 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17596 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17597 hardcode_libdir_separator_GCJ=:
17598 hardcode_direct_GCJ=no
17599 hardcode_shlibpath_var_GCJ=no
17602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17603 hardcode_direct_GCJ=no
17604 hardcode_shlibpath_var_GCJ=no
17606 # hardcode_minus_L: Not really in the search PATH,
17607 # but as the default location of the library.
17608 hardcode_minus_L_GCJ=yes
17611 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17612 hardcode_libdir_separator_GCJ=:
17613 hardcode_direct_GCJ=yes
17614 export_dynamic_flag_spec_GCJ='${wl}-E'
17616 # hardcode_minus_L: Not really in the search PATH,
17617 # but as the default location of the library.
17618 hardcode_minus_L_GCJ=yes
17624 irix5* | irix6* | nonstopux*)
17625 if test "$GCC" = yes; then
17626 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17628 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17629 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17632 hardcode_libdir_separator_GCJ=:
17633 link_all_deplibs_GCJ=yes
17637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17638 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17640 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17642 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17643 hardcode_direct_GCJ=yes
17644 hardcode_shlibpath_var_GCJ=no
17648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649 hardcode_direct_GCJ=yes
17650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17651 hardcode_libdir_separator_GCJ=:
17652 hardcode_shlibpath_var_GCJ=no
17656 hardcode_direct_GCJ=yes
17657 hardcode_shlibpath_var_GCJ=no
17658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17659 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17660 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17661 export_dynamic_flag_spec_GCJ='${wl}-E'
17664 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17665 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17666 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17669 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17677 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17678 hardcode_minus_L_GCJ=yes
17679 allow_undefined_flag_GCJ=unsupported
17680 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17681 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17685 if test "$GCC" = yes; then
17686 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17687 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17689 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17690 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17693 hardcode_libdir_separator_GCJ=:
17696 osf4* | osf5*) # as osf3* with the addition of -msym flag
17697 if test "$GCC" = yes; then
17698 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17699 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17700 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17702 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17703 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17704 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17705 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17707 # Both c and cxx compiler support -rpath directly
17708 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17710 hardcode_libdir_separator_GCJ=:
17714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715 hardcode_shlibpath_var_GCJ=no
17716 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17717 runpath_var=LD_RUN_PATH
17718 hardcode_runpath_var=yes
17722 no_undefined_flag_GCJ=' -z text'
17723 if test "$GCC" = yes; then
17724 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17725 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17726 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17728 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17729 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17732 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17733 hardcode_shlibpath_var_GCJ=no
17735 solaris2.[0-5] | solaris2.[0-5].*) ;;
17736 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17737 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17739 link_all_deplibs_GCJ=yes
17743 if test "x$host_vendor" = xsequent; then
17744 # Use $CC to link under sequent, because it throws in some extra .o
17745 # files that make .init and .fini sections work.
17746 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17748 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17750 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17751 hardcode_direct_GCJ=yes
17752 hardcode_minus_L_GCJ=yes
17753 hardcode_shlibpath_var_GCJ=no
17757 case $host_vendor in
17759 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17760 hardcode_direct_GCJ=yes # is this really true???
17763 ## LD is ld it makes a PLAMLIB
17764 ## CC just makes a GrossModule.
17765 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17766 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17767 hardcode_direct_GCJ=no
17770 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17771 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17774 runpath_var='LD_RUN_PATH'
17775 hardcode_shlibpath_var_GCJ=no
17779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17780 hardcode_shlibpath_var_GCJ=no
17781 export_dynamic_flag_spec_GCJ='-Bexport'
17785 if test -d /usr/nec; then
17786 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17787 hardcode_shlibpath_var_GCJ=no
17788 runpath_var=LD_RUN_PATH
17789 hardcode_runpath_var=yes
17795 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17796 hardcode_direct_GCJ=yes
17797 hardcode_minus_L_GCJ=no
17798 hardcode_shlibpath_var_GCJ=no
17799 hardcode_runpath_var=yes
17800 runpath_var=LD_RUN_PATH
17803 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17804 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17805 if test "$GCC" = yes; then
17806 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17808 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17810 runpath_var='LD_RUN_PATH'
17811 hardcode_shlibpath_var_GCJ=no
17815 no_undefined_flag_GCJ=' -z text'
17816 # $CC -shared without GNU ld will not create a library from C++
17817 # object files and a static libstdc++, better avoid it by now
17818 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17819 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17821 hardcode_libdir_flag_spec_GCJ=
17822 hardcode_shlibpath_var_GCJ=no
17823 runpath_var='LD_RUN_PATH'
17827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17829 hardcode_shlibpath_var_GCJ=no
17838 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17839 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17840 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17843 if test "$GCC" = yes; then
17844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17848 # Do we need to explicitly link libc?
17850 case "x$archive_cmds_need_lc_GCJ" in
17852 # Assume -lc should be added
17853 archive_cmds_need_lc_GCJ=yes
17855 if test "$enable_shared" = yes && test "$GCC" = yes; then
17856 case $archive_cmds_GCJ in
17858 # FIXME: we may have to deal with multi-command sequences.
17861 # Test whether the compiler implicitly links with -lc since on some
17862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17863 # to ld, don't add -lc before -lgcc.
17864 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17865 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870 (eval $ac_compile) 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } 2>conftest.err; then
17876 libobjs=conftest.$ac_objext
17878 wl=$lt_prog_compiler_wl_GCJ
17884 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17885 allow_undefined_flag_GCJ=
17886 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17887 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }
17892 archive_cmds_need_lc_GCJ=no
17894 archive_cmds_need_lc_GCJ=yes
17896 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17898 cat conftest.err 1>&5
17901 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17902 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17909 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17911 library_names_spec=
17912 libname_spec='lib$name'
17916 postuninstall_cmds=
17920 shlibpath_overrides_runpath=unknown
17922 dynamic_linker="$host_os ld.so"
17923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17924 if test "$GCC" = yes; then
17925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17926 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17927 # if the path contains ";" then we assume it to be the separator
17928 # otherwise default to the standard path separator (i.e. ":") - it is
17929 # assumed that no part of a normal pathname contains ";" but that should
17930 # okay in the real world where ";" in dirpaths is itself problematic.
17931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17938 need_lib_prefix=unknown
17939 hardcode_into_libs=no
17941 # when you set need_version to no, make sure it does not cause -set_version
17942 # flags to be left without arguments
17943 need_version=unknown
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17949 shlibpath_var=LIBPATH
17951 # AIX 3 has no versioning support, so we append a major version to the name.
17952 soname_spec='${libname}${release}${shared_ext}$major'
17959 hardcode_into_libs=yes
17960 if test "$host_cpu" = ia64; then
17961 # AIX 5 supports IA64
17962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17963 shlibpath_var=LD_LIBRARY_PATH
17965 # With GCC up to 2.95.x, collect2 would create an import file
17966 # for dependence libraries. The import file would start with
17967 # the line `#! .'. This would cause the generated library to
17968 # depend on `.', always an invalid library. This was fixed in
17969 # development snapshots of GCC prior to 3.0.
17971 aix4 | aix4.[01] | aix4.[01].*)
17972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17974 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17977 can_build_shared=no
17981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17982 # soname into executable. Probably we can add versioning support to
17983 # collect2, so additional links can be useful in future.
17984 if test "$aix_use_runtimelinking" = yes; then
17985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17986 # instead of lib<name>.a to let people know that these are not
17987 # typical AIX shared libraries.
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 # We preserve .a as extension for shared libraries through AIX4.2
17991 # and later when we are not doing run time linking.
17992 library_names_spec='${libname}${release}.a $libname.a'
17993 soname_spec='${libname}${release}${shared_ext}$major'
17995 shlibpath_var=LIBPATH
18000 library_names_spec='$libname.ixlibrary $libname.a'
18001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18002 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'
18006 library_names_spec='${libname}${shared_ext}'
18007 dynamic_linker="$host_os ld.so"
18008 shlibpath_var=LIBRARY_PATH
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 soname_spec='${libname}${release}${shared_ext}$major'
18016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18017 shlibpath_var=LD_LIBRARY_PATH
18018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18020 # the default ld.so.conf also contains /usr/contrib/lib and
18021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18022 # libtool to hard-code these into programs
18025 cygwin* | mingw* | pw32*)
18026 version_type=windows
18031 case $GCC,$host_os in
18032 yes,cygwin* | yes,mingw* | yes,pw32*)
18033 library_names_spec='$libname.dll.a'
18034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18035 postinstall_cmds='base_file=`basename \${file}`~
18036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18037 dldir=$destdir/`dirname \$dlpath`~
18038 test -d \$dldir || mkdir -p \$dldir~
18039 $install_prog $dir/$dlname \$dldir/$dlname'
18040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18041 dlpath=$dir/\$dldll~
18043 shlibpath_overrides_runpath=yes
18047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18048 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18049 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18052 # MinGW DLLs use traditional 'lib' prefix
18053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18055 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18056 # It is most probably a Windows format PATH printed by
18057 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18058 # path with ; separators, and with drive letters. We can handle the
18059 # drive letters (cygwin fileutils understands them), so leave them,
18060 # especially as we might pass files found there to a mingw objdump,
18061 # which wouldn't understand a cygwinified path. Ahh.
18062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18068 # pw32 DLLs use 'pw' prefix rather than 'lib'
18069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18078 dynamic_linker='Win32 ld.exe'
18079 # FIXME: first we should search . and the directory the executable is in
18083 darwin* | rhapsody*)
18084 dynamic_linker="$host_os dyld"
18085 version_type=darwin
18088 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18089 soname_spec='${libname}${release}${major}$shared_ext'
18090 shlibpath_overrides_runpath=yes
18091 shlibpath_var=DYLD_LIBRARY_PATH
18092 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18093 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18094 if test "$GCC" = yes; then
18095 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18097 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18099 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18107 soname_spec='${libname}${release}${shared_ext}$major'
18108 shlibpath_var=LD_LIBRARY_PATH
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18120 soname_spec='${libname}${release}${shared_ext}$major'
18121 shlibpath_var=LD_LIBRARY_PATH
18122 shlibpath_overrides_runpath=no
18123 hardcode_into_libs=yes
18124 dynamic_linker='GNU ld.so'
18128 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18129 version_type=freebsd-$objformat
18130 case $version_type in
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18141 shlibpath_var=LD_LIBRARY_PATH
18144 shlibpath_overrides_runpath=yes
18146 freebsd3.01* | freebsdelf3.01*)
18147 shlibpath_overrides_runpath=yes
18148 hardcode_into_libs=yes
18151 shlibpath_overrides_runpath=no
18152 hardcode_into_libs=yes
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 shlibpath_var=LD_LIBRARY_PATH
18164 hardcode_into_libs=yes
18167 hpux9* | hpux10* | hpux11*)
18168 # Give a soname corresponding to the major version so that dld.sl refuses to
18169 # link against other versions.
18173 case "$host_cpu" in
18176 hardcode_into_libs=yes
18177 dynamic_linker="$host_os dld.so"
18178 shlibpath_var=LD_LIBRARY_PATH
18179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 if test "X$HPUX_IA64_MODE" = X32; then
18183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18191 hardcode_into_libs=yes
18192 dynamic_linker="$host_os dld.sl"
18193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18202 dynamic_linker="$host_os dld.sl"
18203 shlibpath_var=SHLIB_PATH
18204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206 soname_spec='${libname}${release}${shared_ext}$major'
18209 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18210 postinstall_cmds='chmod 555 $lib'
18213 irix5* | irix6* | nonstopux*)
18215 nonstopux*) version_type=nonstopux ;;
18217 if test "$lt_cv_prog_gnu_ld" = yes; then
18225 soname_spec='${libname}${release}${shared_ext}$major'
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18228 irix5* | nonstopux*)
18229 libsuff= shlibsuff=
18232 case $LD in # libtool.m4 will add one of these switches to LD
18233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18234 libsuff= shlibsuff= libmagic=32-bit;;
18235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18236 libsuff=32 shlibsuff=N32 libmagic=N32;;
18237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18239 *) libsuff= shlibsuff= libmagic=never-match;;
18243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18244 shlibpath_overrides_runpath=no
18245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18247 hardcode_into_libs=yes
18250 # No shared lib support for Linux oldld, aout, or coff.
18251 linux*oldld* | linux*aout* | linux*coff*)
18255 # This must be Linux ELF.
18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18261 soname_spec='${libname}${release}${shared_ext}$major'
18262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18263 shlibpath_var=LD_LIBRARY_PATH
18264 shlibpath_overrides_runpath=no
18265 # This implies no fast_install, which is unacceptable.
18266 # Some rework will be needed to allow for fast_install
18267 # before this can be enabled.
18268 hardcode_into_libs=yes
18270 # find out which ABI we are using
18272 case "$host_cpu" in
18273 x86_64*|s390x*|powerpc64*)
18274 echo '#line 18274 "configure"' > conftest.$ac_ext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276 (eval $ac_compile) 2>&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; then
18280 case `/usr/bin/file conftest.$ac_objext` in
18283 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18291 # Append ld.so.conf contents to the search path
18292 if test -f /etc/ld.so.conf; then
18293 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18294 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18297 # We used to test for /lib/ld.so.1 and disable shared libraries on
18298 # powerpc, because MkLinux only supported shared libraries with the
18299 # GNU dynamic linker. Since this was broken with cross compilers,
18300 # most powerpc-linux boxes support dynamic linking these days and
18301 # people can always --disable-shared, the test was removed, and we
18302 # assume the GNU/Linux dynamic linker is in use.
18303 dynamic_linker='GNU/Linux ld.so'
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18311 soname_spec='${libname}${release}${shared_ext}$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 shlibpath_overrides_runpath=no
18314 hardcode_into_libs=yes
18315 dynamic_linker='GNU ld.so'
18322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18325 dynamic_linker='NetBSD (a.out) ld.so'
18327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18328 soname_spec='${libname}${release}${shared_ext}$major'
18329 dynamic_linker='NetBSD ld.elf_so'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 shlibpath_overrides_runpath=yes
18333 hardcode_into_libs=yes
18338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=yes
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 shlibpath_overrides_runpath=yes
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18359 shlibpath_var=LD_LIBRARY_PATH
18360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18362 openbsd2.[89] | openbsd2.[89].*)
18363 shlibpath_overrides_runpath=no
18366 shlibpath_overrides_runpath=yes
18370 shlibpath_overrides_runpath=yes
18375 libname_spec='$name'
18378 library_names_spec='$libname${shared_ext} $libname.a'
18379 dynamic_linker='OS/2 ld.exe'
18380 shlibpath_var=LIBPATH
18383 osf3* | osf4* | osf5*)
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389 shlibpath_var=LD_LIBRARY_PATH
18390 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18391 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398 shlibpath_var=LD_LIBRARY_PATH
18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406 soname_spec='${libname}${release}${shared_ext}$major'
18407 shlibpath_var=LD_LIBRARY_PATH
18408 shlibpath_overrides_runpath=yes
18409 hardcode_into_libs=yes
18410 # ldd complains unless libraries are executable
18411 postinstall_cmds='chmod +x $lib'
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18418 shlibpath_var=LD_LIBRARY_PATH
18419 shlibpath_overrides_runpath=yes
18420 if test "$with_gnu_ld" = yes; then
18426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429 soname_spec='${libname}${release}${shared_ext}$major'
18430 shlibpath_var=LD_LIBRARY_PATH
18431 case $host_vendor in
18433 shlibpath_overrides_runpath=no
18435 export_dynamic_flag_spec='${wl}-Blargedynsym'
18436 runpath_var=LD_RUN_PATH
18444 shlibpath_overrides_runpath=no
18445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18451 if test -d /usr/nec ;then
18453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18454 soname_spec='$libname${shared_ext}.$major'
18455 shlibpath_var=LD_LIBRARY_PATH
18461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18462 soname_spec='${libname}${release}${shared_ext}$major'
18463 shlibpath_var=LD_LIBRARY_PATH
18470 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18471 echo "${ECHO_T}$dynamic_linker" >&6
18472 test "$dynamic_linker" = no && can_build_shared=no
18474 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18475 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18476 hardcode_action_GCJ=
18477 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18478 test -n "$runpath_var GCJ" || \
18479 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18481 # We can hardcode non-existant directories.
18482 if test "$hardcode_direct_GCJ" != no &&
18483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18484 # have to relink, otherwise we might link with an installed library
18485 # when we should be linking with a yet-to-be-installed one
18486 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18487 test "$hardcode_minus_L_GCJ" != no; then
18488 # Linking always hardcodes the temporary library directory.
18489 hardcode_action_GCJ=relink
18491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18492 hardcode_action_GCJ=immediate
18495 # We cannot hardcode anything, or else we can only hardcode existing
18497 hardcode_action_GCJ=unsupported
18499 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18500 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18502 if test "$hardcode_action_GCJ" = relink; then
18503 # Fast installation is not supported
18504 enable_fast_install=no
18505 elif test "$shlibpath_overrides_runpath" = yes ||
18506 test "$enable_shared" = no; then
18507 # Fast installation is not necessary
18508 enable_fast_install=needless
18513 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18514 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18515 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18517 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18518 echo "$as_me:$LINENO: result: yes" >&5
18519 echo "${ECHO_T}yes" >&6
18521 # FIXME - insert some real tests, host_os isn't really good enough
18524 if test -n "$STRIP" ; then
18525 striplib="$STRIP -x"
18526 echo "$as_me:$LINENO: result: yes" >&5
18527 echo "${ECHO_T}yes" >&6
18529 echo "$as_me:$LINENO: result: no" >&5
18530 echo "${ECHO_T}no" >&6
18534 echo "$as_me:$LINENO: result: no" >&5
18535 echo "${ECHO_T}no" >&6
18540 if test "x$enable_dlopen" != xyes; then
18541 enable_dlopen=unknown
18542 enable_dlopen_self=unknown
18543 enable_dlopen_self_static=unknown
18550 lt_cv_dlopen="load_add_on"
18552 lt_cv_dlopen_self=yes
18556 lt_cv_dlopen="LoadLibrary"
18561 lt_cv_dlopen="dlopen"
18566 # if libdl is installed we need to link against it
18567 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 ac_check_lib_save_LIBS=$LIBS
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18581 /* Override any gcc2 internal prototype to avoid an error. */
18585 /* We use char because int might match the return type of a gcc2
18586 builtin and then its argument prototype would still apply. */
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>conftest.er1
18600 grep -v '^ *+' conftest.er1 >conftest.err
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_lib_dl_dlopen=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_cv_lib_dl_dlopen=no
18625 rm -f conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18631 if test $ac_cv_lib_dl_dlopen = yes; then
18632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18635 lt_cv_dlopen="dyld"
18637 lt_cv_dlopen_self=yes
18644 echo "$as_me:$LINENO: checking for shl_load" >&5
18645 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18646 if test "${ac_cv_func_shl_load+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 cat >conftest.$ac_ext <<_ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18657 #define shl_load innocuous_shl_load
18659 /* System header to define __stub macros and hopefully few prototypes,
18660 which can conflict with char shl_load (); below.
18661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18662 <limits.h> exists even on freestanding compilers. */
18665 # include <limits.h>
18667 # include <assert.h>
18672 /* Override any gcc2 internal prototype to avoid an error. */
18677 /* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18680 /* The GNU C library defines this for functions which it implements
18681 to always fail with ENOSYS. Some functions are actually named
18682 something starting with __ and the normal name is an alias. */
18683 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18686 char (*f) () = shl_load;
18695 return f != shl_load;
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18702 (eval $ac_link) 2>conftest.er1
18704 grep -v '^ *+' conftest.er1 >conftest.err
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag"
18710 || test ! -s conftest.err'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; } &&
18716 { ac_try='test -s conftest$ac_exeext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_cv_func_shl_load=yes
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 ac_cv_func_shl_load=no
18729 rm -f conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18732 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18733 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18734 if test $ac_cv_func_shl_load = yes; then
18735 lt_cv_dlopen="shl_load"
18737 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18738 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 ac_check_lib_save_LIBS=$LIBS
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18751 /* Override any gcc2 internal prototype to avoid an error. */
18755 /* We use char because int might match the return type of a gcc2
18756 builtin and then its argument prototype would still apply. */
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18768 (eval $ac_link) 2>conftest.er1
18770 grep -v '^ *+' conftest.er1 >conftest.err
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -z "$ac_c_werror_flag"
18776 || test ! -s conftest.err'
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try='test -s conftest$ac_exeext'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788 ac_cv_lib_dld_shl_load=yes
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18793 ac_cv_lib_dld_shl_load=no
18795 rm -f conftest.err conftest.$ac_objext \
18796 conftest$ac_exeext conftest.$ac_ext
18797 LIBS=$ac_check_lib_save_LIBS
18799 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18800 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18801 if test $ac_cv_lib_dld_shl_load = yes; then
18802 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18804 echo "$as_me:$LINENO: checking for dlopen" >&5
18805 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18806 if test "${ac_cv_func_dlopen+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 cat >conftest.$ac_ext <<_ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18817 #define dlopen innocuous_dlopen
18819 /* System header to define __stub macros and hopefully few prototypes,
18820 which can conflict with char dlopen (); below.
18821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18822 <limits.h> exists even on freestanding compilers. */
18825 # include <limits.h>
18827 # include <assert.h>
18832 /* Override any gcc2 internal prototype to avoid an error. */
18837 /* We use char because int might match the return type of a gcc2
18838 builtin and then its argument prototype would still apply. */
18840 /* The GNU C library defines this for functions which it implements
18841 to always fail with ENOSYS. Some functions are actually named
18842 something starting with __ and the normal name is an alias. */
18843 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18846 char (*f) () = dlopen;
18855 return f != dlopen;
18860 rm -f conftest.$ac_objext conftest$ac_exeext
18861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18862 (eval $ac_link) 2>conftest.er1
18864 grep -v '^ *+' conftest.er1 >conftest.err
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } &&
18869 { ac_try='test -z "$ac_c_werror_flag"
18870 || test ! -s conftest.err'
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; }; then
18882 ac_cv_func_dlopen=yes
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_cv_func_dlopen=no
18889 rm -f conftest.err conftest.$ac_objext \
18890 conftest$ac_exeext conftest.$ac_ext
18892 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18893 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18894 if test $ac_cv_func_dlopen = yes; then
18895 lt_cv_dlopen="dlopen"
18897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 ac_check_lib_save_LIBS=$LIBS
18904 cat >conftest.$ac_ext <<_ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18911 /* Override any gcc2 internal prototype to avoid an error. */
18915 /* We use char because int might match the return type of a gcc2
18916 builtin and then its argument prototype would still apply. */
18926 rm -f conftest.$ac_objext conftest$ac_exeext
18927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928 (eval $ac_link) 2>conftest.er1
18930 grep -v '^ *+' conftest.er1 >conftest.err
18932 cat conftest.err >&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try='test -z "$ac_c_werror_flag"
18936 || test ! -s conftest.err'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest$ac_exeext'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 ac_cv_lib_dl_dlopen=yes
18950 echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18953 ac_cv_lib_dl_dlopen=no
18955 rm -f conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext conftest.$ac_ext
18957 LIBS=$ac_check_lib_save_LIBS
18959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18961 if test $ac_cv_lib_dl_dlopen = yes; then
18962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18964 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18965 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18966 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 ac_check_lib_save_LIBS=$LIBS
18970 LIBS="-lsvld $LIBS"
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18978 /* Override any gcc2 internal prototype to avoid an error. */
18982 /* We use char because int might match the return type of a gcc2
18983 builtin and then its argument prototype would still apply. */
18993 rm -f conftest.$ac_objext conftest$ac_exeext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18995 (eval $ac_link) 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -z "$ac_c_werror_flag"
19003 || test ! -s conftest.err'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; } &&
19009 { ac_try='test -s conftest$ac_exeext'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_lib_svld_dlopen=yes
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_lib_svld_dlopen=no
19022 rm -f conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19026 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19027 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19028 if test $ac_cv_lib_svld_dlopen = yes; then
19029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19031 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19032 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19033 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 ac_check_lib_save_LIBS=$LIBS
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19045 /* Override any gcc2 internal prototype to avoid an error. */
19049 /* We use char because int might match the return type of a gcc2
19050 builtin and then its argument prototype would still apply. */
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062 (eval $ac_link) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_lib_dld_dld_link=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_lib_dld_dld_link=no
19089 rm -f conftest.err conftest.$ac_objext \
19090 conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19094 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19095 if test $ac_cv_lib_dld_dld_link = yes; then
19096 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19117 if test "x$lt_cv_dlopen" != xno; then
19123 case $lt_cv_dlopen in
19125 save_CPPFLAGS="$CPPFLAGS"
19126 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19128 save_LDFLAGS="$LDFLAGS"
19129 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19132 LIBS="$lt_cv_dlopen_libs $LIBS"
19134 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19135 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19136 if test "${lt_cv_dlopen_self+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 if test "$cross_compiling" = yes; then :
19140 lt_cv_dlopen_self=cross
19142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19143 lt_status=$lt_dlunknown
19144 cat > conftest.$ac_ext <<EOF
19145 #line 19145 "configure"
19146 #include "confdefs.h"
19155 # define LT_DLGLOBAL RTLD_GLOBAL
19158 # define LT_DLGLOBAL DL_GLOBAL
19160 # define LT_DLGLOBAL 0
19164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19165 find out it does not work in some platform. */
19166 #ifndef LT_DLLAZY_OR_NOW
19168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19171 # define LT_DLLAZY_OR_NOW DL_LAZY
19174 # define LT_DLLAZY_OR_NOW RTLD_NOW
19177 # define LT_DLLAZY_OR_NOW DL_NOW
19179 # define LT_DLLAZY_OR_NOW 0
19187 extern "C" void exit (int);
19190 void fnord() { int i=42;}
19193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19194 int status = $lt_dlunknown;
19198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19199 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19200 /* dlclose (self); */
19206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19207 (eval $ac_link) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19211 (./conftest; exit; ) 2>/dev/null
19213 case x$lt_status in
19214 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19215 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19216 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19219 # compilation failed
19220 lt_cv_dlopen_self=no
19227 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19228 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19230 if test "x$lt_cv_dlopen_self" = xyes; then
19231 LDFLAGS="$LDFLAGS $link_static_flag"
19232 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19233 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19234 if test "${lt_cv_dlopen_self_static+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 if test "$cross_compiling" = yes; then :
19238 lt_cv_dlopen_self_static=cross
19240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19241 lt_status=$lt_dlunknown
19242 cat > conftest.$ac_ext <<EOF
19243 #line 19243 "configure"
19244 #include "confdefs.h"
19253 # define LT_DLGLOBAL RTLD_GLOBAL
19256 # define LT_DLGLOBAL DL_GLOBAL
19258 # define LT_DLGLOBAL 0
19262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19263 find out it does not work in some platform. */
19264 #ifndef LT_DLLAZY_OR_NOW
19266 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19269 # define LT_DLLAZY_OR_NOW DL_LAZY
19272 # define LT_DLLAZY_OR_NOW RTLD_NOW
19275 # define LT_DLLAZY_OR_NOW DL_NOW
19277 # define LT_DLLAZY_OR_NOW 0
19285 extern "C" void exit (int);
19288 void fnord() { int i=42;}
19291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19292 int status = $lt_dlunknown;
19296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19297 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19298 /* dlclose (self); */
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19309 (./conftest; exit; ) 2>/dev/null
19311 case x$lt_status in
19312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19314 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19317 # compilation failed
19318 lt_cv_dlopen_self_static=no
19325 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19326 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19329 CPPFLAGS="$save_CPPFLAGS"
19330 LDFLAGS="$save_LDFLAGS"
19335 case $lt_cv_dlopen_self in
19336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19337 *) enable_dlopen_self=unknown ;;
19340 case $lt_cv_dlopen_self_static in
19341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19342 *) enable_dlopen_self_static=unknown ;;
19347 # The else clause should only fire when bootstrapping the
19348 # libtool distribution, otherwise you forgot to ship ltmain.sh
19349 # with your package, and you will get complaints that there are
19350 # no rules to generate ltmain.sh.
19351 if test -f "$ltmain"; then
19352 # See if we are running on zsh, and set the options which allow our commands through
19353 # without removal of \ escapes.
19354 if test -n "${ZSH_VERSION+set}" ; then
19355 setopt NO_GLOB_SUBST
19357 # Now quote all the things that may contain metacharacters while being
19358 # careful not to overquote the AC_SUBSTed values. We take copies of the
19359 # variables and quote the copies for generation of the libtool script.
19360 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19364 deplibs_check_method reload_flag reload_cmds need_locks \
19365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19366 lt_cv_sys_global_symbol_to_c_name_address \
19367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19368 old_postinstall_cmds old_postuninstall_cmds \
19372 lt_prog_compiler_wl_GCJ \
19373 lt_prog_compiler_pic_GCJ \
19374 lt_prog_compiler_static_GCJ \
19375 lt_prog_compiler_no_builtin_flag_GCJ \
19376 export_dynamic_flag_spec_GCJ \
19377 thread_safe_flag_spec_GCJ \
19378 whole_archive_flag_spec_GCJ \
19379 enable_shared_with_static_runtimes_GCJ \
19380 old_archive_cmds_GCJ \
19381 old_archive_from_new_cmds_GCJ \
19382 predep_objects_GCJ \
19383 postdep_objects_GCJ \
19386 compiler_lib_search_path_GCJ \
19388 archive_expsym_cmds_GCJ \
19389 postinstall_cmds_GCJ \
19390 postuninstall_cmds_GCJ \
19391 old_archive_from_expsyms_cmds_GCJ \
19392 allow_undefined_flag_GCJ \
19393 no_undefined_flag_GCJ \
19394 export_symbols_cmds_GCJ \
19395 hardcode_libdir_flag_spec_GCJ \
19396 hardcode_libdir_flag_spec_ld_GCJ \
19397 hardcode_libdir_separator_GCJ \
19398 hardcode_automatic_GCJ \
19400 module_expsym_cmds_GCJ \
19401 lt_cv_prog_compiler_c_o_GCJ \
19402 exclude_expsyms_GCJ \
19403 include_expsyms_GCJ; do
19406 old_archive_cmds_GCJ | \
19407 old_archive_from_new_cmds_GCJ | \
19408 archive_cmds_GCJ | \
19409 archive_expsym_cmds_GCJ | \
19410 module_cmds_GCJ | \
19411 module_expsym_cmds_GCJ | \
19412 old_archive_from_expsyms_cmds_GCJ | \
19413 export_symbols_cmds_GCJ | \
19414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19415 postinstall_cmds | postuninstall_cmds | \
19416 old_postinstall_cmds | old_postuninstall_cmds | \
19417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19418 # Double-quote double-evaled strings.
19419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19428 *'\$0 --fallback-echo"')
19429 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19435 cat <<__EOF__ >> "$cfgfile"
19436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19440 # Shell to use when invoking shell scripts.
19443 # Whether or not to build shared libraries.
19444 build_libtool_libs=$enable_shared
19446 # Whether or not to build static libraries.
19447 build_old_libs=$enable_static
19449 # Whether or not to add -lc for building shared libraries.
19450 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19452 # Whether or not to disallow shared libs when runtime libs are static
19453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19455 # Whether or not to optimize for fast installation.
19456 fast_install=$enable_fast_install
19459 host_alias=$host_alias
19462 # An echo program that does not interpret backslashes.
19467 AR_FLAGS=$lt_AR_FLAGS
19472 # A language-specific compiler.
19473 CC=$lt_compiler_GCJ
19475 # Is the compiler the GNU C compiler?
19481 # The linker used to build libraries.
19484 # Whether we need hard or soft links.
19487 # A BSD-compatible nm program.
19490 # A symbol stripping program
19493 # Used to examine libraries when file_magic_cmd begins "file"
19494 MAGIC_CMD=$MAGIC_CMD
19496 # Used on cygwin: DLL creation program.
19499 # Used on cygwin: object dumper.
19502 # Used on cygwin: assembler.
19505 # The name of the directory that contains temporary libtool files.
19508 # How to create reloadable object files.
19509 reload_flag=$lt_reload_flag
19510 reload_cmds=$lt_reload_cmds
19512 # How to pass a linker flag through the compiler.
19513 wl=$lt_lt_prog_compiler_wl_GCJ
19515 # Object file suffix (normally "o").
19516 objext="$ac_objext"
19518 # Old archive suffix (normally "a").
19521 # Shared library suffix (normally ".so").
19522 shrext_cmds='$shrext_cmds'
19524 # Executable file suffix (normally "").
19527 # Additional compiler flags for building library objects.
19528 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19531 # What is the maximum length of a command?
19532 max_cmd_len=$lt_cv_sys_max_cmd_len
19534 # Does compiler simultaneously support -c and -o options?
19535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19537 # Must we lock files when doing compilation ?
19538 need_locks=$lt_need_locks
19540 # Do we need the lib prefix for modules?
19541 need_lib_prefix=$need_lib_prefix
19543 # Do we need a version for libraries?
19544 need_version=$need_version
19546 # Whether dlopen is supported.
19547 dlopen_support=$enable_dlopen
19549 # Whether dlopen of programs is supported.
19550 dlopen_self=$enable_dlopen_self
19552 # Whether dlopen of statically linked programs is supported.
19553 dlopen_self_static=$enable_dlopen_self_static
19555 # Compiler flag to prevent dynamic linking.
19556 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19558 # Compiler flag to turn off builtin functions.
19559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19561 # Compiler flag to allow reflexive dlopens.
19562 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19564 # Compiler flag to generate shared objects directly from archives.
19565 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19567 # Compiler flag to generate thread-safe objects.
19568 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19570 # Library versioning type.
19571 version_type=$version_type
19573 # Format of library name prefix.
19574 libname_spec=$lt_libname_spec
19576 # List of archive names. First name is the real one, the rest are links.
19577 # The last name is the one that the linker finds with -lNAME.
19578 library_names_spec=$lt_library_names_spec
19580 # The coded name of the library, if different from the real name.
19581 soname_spec=$lt_soname_spec
19583 # Commands used to build and install an old-style archive.
19585 old_archive_cmds=$lt_old_archive_cmds_GCJ
19586 old_postinstall_cmds=$lt_old_postinstall_cmds
19587 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19589 # Create an old-style archive from a shared archive.
19590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19592 # Create a temporary old-style archive to link instead of a shared archive.
19593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19595 # Commands used to build and install a shared archive.
19596 archive_cmds=$lt_archive_cmds_GCJ
19597 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19598 postinstall_cmds=$lt_postinstall_cmds
19599 postuninstall_cmds=$lt_postuninstall_cmds
19601 # Commands used to build a loadable module (assumed same as above if empty)
19602 module_cmds=$lt_module_cmds_GCJ
19603 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19605 # Commands to strip libraries.
19606 old_striplib=$lt_old_striplib
19607 striplib=$lt_striplib
19609 # Dependencies to place before the objects being linked to create a
19611 predep_objects=$lt_predep_objects_GCJ
19613 # Dependencies to place after the objects being linked to create a
19615 postdep_objects=$lt_postdep_objects_GCJ
19617 # Dependencies to place before the objects being linked to create a
19619 predeps=$lt_predeps_GCJ
19621 # Dependencies to place after the objects being linked to create a
19623 postdeps=$lt_postdeps_GCJ
19625 # The library search path used internally by the compiler when linking
19626 # a shared library.
19627 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19629 # Method to check whether dependent libraries are shared objects.
19630 deplibs_check_method=$lt_deplibs_check_method
19632 # Command to use when deplibs_check_method == file_magic.
19633 file_magic_cmd=$lt_file_magic_cmd
19635 # Flag that allows shared libraries with undefined symbols to be built.
19636 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19638 # Flag that forces no undefined symbols.
19639 no_undefined_flag=$lt_no_undefined_flag_GCJ
19641 # Commands used to finish a libtool library installation in a directory.
19642 finish_cmds=$lt_finish_cmds
19644 # Same as above, but a single script fragment to be evaled but not shown.
19645 finish_eval=$lt_finish_eval
19647 # Take the output of nm and produce a listing of raw symbols and C names.
19648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19650 # Transform the output of nm in a proper C declaration
19651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19653 # Transform the output of nm in a C name address pair
19654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19656 # This is the shared library runtime path variable.
19657 runpath_var=$runpath_var
19659 # This is the shared library path variable.
19660 shlibpath_var=$shlibpath_var
19662 # Is shlibpath searched before the hard-coded library search path?
19663 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19665 # How to hardcode a shared library path into an executable.
19666 hardcode_action=$hardcode_action_GCJ
19668 # Whether we should hardcode library paths into libraries.
19669 hardcode_into_libs=$hardcode_into_libs
19671 # Flag to hardcode \$libdir into a binary during linking.
19672 # This must work even if \$libdir does not exist.
19673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19675 # If ld is used when linking, flag to hardcode \$libdir into
19676 # a binary during linking. This must work even if \$libdir does
19678 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19680 # Whether we need a single -rpath flag with a separated argument.
19681 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19683 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19684 # resulting binary.
19685 hardcode_direct=$hardcode_direct_GCJ
19687 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19688 # resulting binary.
19689 hardcode_minus_L=$hardcode_minus_L_GCJ
19691 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19692 # the resulting binary.
19693 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19695 # Set to yes if building a shared library automatically hardcodes DIR into the library
19696 # and all subsequent libraries and executables linked against it.
19697 hardcode_automatic=$hardcode_automatic_GCJ
19699 # Variables whose values should be saved in libtool wrapper scripts and
19700 # restored at relink time.
19701 variables_saved_for_relink="$variables_saved_for_relink"
19703 # Whether libtool must link a program against all its dependency libraries.
19704 link_all_deplibs=$link_all_deplibs_GCJ
19706 # Compile-time system search path for libraries
19707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19709 # Run-time system search path for libraries
19710 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19712 # Fix the shell variable \$srcfile for the compiler.
19713 fix_srcfile_path="$fix_srcfile_path_GCJ"
19715 # Set to yes if exported symbols are required.
19716 always_export_symbols=$always_export_symbols_GCJ
19718 # The commands to list exported symbols.
19719 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19721 # The commands to extract the exported symbol list from a shared archive.
19722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19724 # Symbols that should not be listed in the preloaded symbols.
19725 exclude_expsyms=$lt_exclude_expsyms_GCJ
19727 # Symbols that must always be exported.
19728 include_expsyms=$lt_include_expsyms_GCJ
19730 # ### END LIBTOOL TAG CONFIG: $tagname
19736 # If there is no Makefile yet, we rely on a make rule to execute
19737 # `config.status --recheck' to rerun these tests and create the
19738 # libtool script then.
19739 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19740 if test -f "$ltmain_in"; then
19741 test -f Makefile && make "$ltmain"
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19763 # Source file extension for RC test sources.
19766 # Object file extension for compiled RC test sources.
19770 # Code to be used in simple compile tests
19771 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19773 # Code to be used in simple link tests
19774 lt_simple_link_test_code="$lt_simple_compile_test_code"
19776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19778 # If no C compiler was specified, use CC.
19781 # Allow CC to be a program name with arguments.
19785 # Allow CC to be a program name with arguments.
19790 lt_cv_prog_compiler_c_o_RC=yes
19792 # The else clause should only fire when bootstrapping the
19793 # libtool distribution, otherwise you forgot to ship ltmain.sh
19794 # with your package, and you will get complaints that there are
19795 # no rules to generate ltmain.sh.
19796 if test -f "$ltmain"; then
19797 # See if we are running on zsh, and set the options which allow our commands through
19798 # without removal of \ escapes.
19799 if test -n "${ZSH_VERSION+set}" ; then
19800 setopt NO_GLOB_SUBST
19802 # Now quote all the things that may contain metacharacters while being
19803 # careful not to overquote the AC_SUBSTed values. We take copies of the
19804 # variables and quote the copies for generation of the libtool script.
19805 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19807 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19808 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19809 deplibs_check_method reload_flag reload_cmds need_locks \
19810 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19811 lt_cv_sys_global_symbol_to_c_name_address \
19812 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19813 old_postinstall_cmds old_postuninstall_cmds \
19817 lt_prog_compiler_wl_RC \
19818 lt_prog_compiler_pic_RC \
19819 lt_prog_compiler_static_RC \
19820 lt_prog_compiler_no_builtin_flag_RC \
19821 export_dynamic_flag_spec_RC \
19822 thread_safe_flag_spec_RC \
19823 whole_archive_flag_spec_RC \
19824 enable_shared_with_static_runtimes_RC \
19825 old_archive_cmds_RC \
19826 old_archive_from_new_cmds_RC \
19827 predep_objects_RC \
19828 postdep_objects_RC \
19831 compiler_lib_search_path_RC \
19833 archive_expsym_cmds_RC \
19834 postinstall_cmds_RC \
19835 postuninstall_cmds_RC \
19836 old_archive_from_expsyms_cmds_RC \
19837 allow_undefined_flag_RC \
19838 no_undefined_flag_RC \
19839 export_symbols_cmds_RC \
19840 hardcode_libdir_flag_spec_RC \
19841 hardcode_libdir_flag_spec_ld_RC \
19842 hardcode_libdir_separator_RC \
19843 hardcode_automatic_RC \
19845 module_expsym_cmds_RC \
19846 lt_cv_prog_compiler_c_o_RC \
19847 exclude_expsyms_RC \
19848 include_expsyms_RC; do
19851 old_archive_cmds_RC | \
19852 old_archive_from_new_cmds_RC | \
19853 archive_cmds_RC | \
19854 archive_expsym_cmds_RC | \
19856 module_expsym_cmds_RC | \
19857 old_archive_from_expsyms_cmds_RC | \
19858 export_symbols_cmds_RC | \
19859 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19860 postinstall_cmds | postuninstall_cmds | \
19861 old_postinstall_cmds | old_postuninstall_cmds | \
19862 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19863 # Double-quote double-evaled strings.
19864 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19867 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19873 *'\$0 --fallback-echo"')
19874 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19880 cat <<__EOF__ >> "$cfgfile"
19881 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19883 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19885 # Shell to use when invoking shell scripts.
19888 # Whether or not to build shared libraries.
19889 build_libtool_libs=$enable_shared
19891 # Whether or not to build static libraries.
19892 build_old_libs=$enable_static
19894 # Whether or not to add -lc for building shared libraries.
19895 build_libtool_need_lc=$archive_cmds_need_lc_RC
19897 # Whether or not to disallow shared libs when runtime libs are static
19898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19900 # Whether or not to optimize for fast installation.
19901 fast_install=$enable_fast_install
19904 host_alias=$host_alias
19907 # An echo program that does not interpret backslashes.
19912 AR_FLAGS=$lt_AR_FLAGS
19917 # A language-specific compiler.
19920 # Is the compiler the GNU C compiler?
19926 # The linker used to build libraries.
19929 # Whether we need hard or soft links.
19932 # A BSD-compatible nm program.
19935 # A symbol stripping program
19938 # Used to examine libraries when file_magic_cmd begins "file"
19939 MAGIC_CMD=$MAGIC_CMD
19941 # Used on cygwin: DLL creation program.
19944 # Used on cygwin: object dumper.
19947 # Used on cygwin: assembler.
19950 # The name of the directory that contains temporary libtool files.
19953 # How to create reloadable object files.
19954 reload_flag=$lt_reload_flag
19955 reload_cmds=$lt_reload_cmds
19957 # How to pass a linker flag through the compiler.
19958 wl=$lt_lt_prog_compiler_wl_RC
19960 # Object file suffix (normally "o").
19961 objext="$ac_objext"
19963 # Old archive suffix (normally "a").
19966 # Shared library suffix (normally ".so").
19967 shrext_cmds='$shrext_cmds'
19969 # Executable file suffix (normally "").
19972 # Additional compiler flags for building library objects.
19973 pic_flag=$lt_lt_prog_compiler_pic_RC
19976 # What is the maximum length of a command?
19977 max_cmd_len=$lt_cv_sys_max_cmd_len
19979 # Does compiler simultaneously support -c and -o options?
19980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19982 # Must we lock files when doing compilation ?
19983 need_locks=$lt_need_locks
19985 # Do we need the lib prefix for modules?
19986 need_lib_prefix=$need_lib_prefix
19988 # Do we need a version for libraries?
19989 need_version=$need_version
19991 # Whether dlopen is supported.
19992 dlopen_support=$enable_dlopen
19994 # Whether dlopen of programs is supported.
19995 dlopen_self=$enable_dlopen_self
19997 # Whether dlopen of statically linked programs is supported.
19998 dlopen_self_static=$enable_dlopen_self_static
20000 # Compiler flag to prevent dynamic linking.
20001 link_static_flag=$lt_lt_prog_compiler_static_RC
20003 # Compiler flag to turn off builtin functions.
20004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20006 # Compiler flag to allow reflexive dlopens.
20007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20009 # Compiler flag to generate shared objects directly from archives.
20010 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20012 # Compiler flag to generate thread-safe objects.
20013 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20015 # Library versioning type.
20016 version_type=$version_type
20018 # Format of library name prefix.
20019 libname_spec=$lt_libname_spec
20021 # List of archive names. First name is the real one, the rest are links.
20022 # The last name is the one that the linker finds with -lNAME.
20023 library_names_spec=$lt_library_names_spec
20025 # The coded name of the library, if different from the real name.
20026 soname_spec=$lt_soname_spec
20028 # Commands used to build and install an old-style archive.
20030 old_archive_cmds=$lt_old_archive_cmds_RC
20031 old_postinstall_cmds=$lt_old_postinstall_cmds
20032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20034 # Create an old-style archive from a shared archive.
20035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20037 # Create a temporary old-style archive to link instead of a shared archive.
20038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20040 # Commands used to build and install a shared archive.
20041 archive_cmds=$lt_archive_cmds_RC
20042 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20043 postinstall_cmds=$lt_postinstall_cmds
20044 postuninstall_cmds=$lt_postuninstall_cmds
20046 # Commands used to build a loadable module (assumed same as above if empty)
20047 module_cmds=$lt_module_cmds_RC
20048 module_expsym_cmds=$lt_module_expsym_cmds_RC
20050 # Commands to strip libraries.
20051 old_striplib=$lt_old_striplib
20052 striplib=$lt_striplib
20054 # Dependencies to place before the objects being linked to create a
20056 predep_objects=$lt_predep_objects_RC
20058 # Dependencies to place after the objects being linked to create a
20060 postdep_objects=$lt_postdep_objects_RC
20062 # Dependencies to place before the objects being linked to create a
20064 predeps=$lt_predeps_RC
20066 # Dependencies to place after the objects being linked to create a
20068 postdeps=$lt_postdeps_RC
20070 # The library search path used internally by the compiler when linking
20071 # a shared library.
20072 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20074 # Method to check whether dependent libraries are shared objects.
20075 deplibs_check_method=$lt_deplibs_check_method
20077 # Command to use when deplibs_check_method == file_magic.
20078 file_magic_cmd=$lt_file_magic_cmd
20080 # Flag that allows shared libraries with undefined symbols to be built.
20081 allow_undefined_flag=$lt_allow_undefined_flag_RC
20083 # Flag that forces no undefined symbols.
20084 no_undefined_flag=$lt_no_undefined_flag_RC
20086 # Commands used to finish a libtool library installation in a directory.
20087 finish_cmds=$lt_finish_cmds
20089 # Same as above, but a single script fragment to be evaled but not shown.
20090 finish_eval=$lt_finish_eval
20092 # Take the output of nm and produce a listing of raw symbols and C names.
20093 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20095 # Transform the output of nm in a proper C declaration
20096 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20098 # Transform the output of nm in a C name address pair
20099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20101 # This is the shared library runtime path variable.
20102 runpath_var=$runpath_var
20104 # This is the shared library path variable.
20105 shlibpath_var=$shlibpath_var
20107 # Is shlibpath searched before the hard-coded library search path?
20108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20110 # How to hardcode a shared library path into an executable.
20111 hardcode_action=$hardcode_action_RC
20113 # Whether we should hardcode library paths into libraries.
20114 hardcode_into_libs=$hardcode_into_libs
20116 # Flag to hardcode \$libdir into a binary during linking.
20117 # This must work even if \$libdir does not exist.
20118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20120 # If ld is used when linking, flag to hardcode \$libdir into
20121 # a binary during linking. This must work even if \$libdir does
20123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20125 # Whether we need a single -rpath flag with a separated argument.
20126 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20128 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20129 # resulting binary.
20130 hardcode_direct=$hardcode_direct_RC
20132 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20133 # resulting binary.
20134 hardcode_minus_L=$hardcode_minus_L_RC
20136 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20137 # the resulting binary.
20138 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20140 # Set to yes if building a shared library automatically hardcodes DIR into the library
20141 # and all subsequent libraries and executables linked against it.
20142 hardcode_automatic=$hardcode_automatic_RC
20144 # Variables whose values should be saved in libtool wrapper scripts and
20145 # restored at relink time.
20146 variables_saved_for_relink="$variables_saved_for_relink"
20148 # Whether libtool must link a program against all its dependency libraries.
20149 link_all_deplibs=$link_all_deplibs_RC
20151 # Compile-time system search path for libraries
20152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20154 # Run-time system search path for libraries
20155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20157 # Fix the shell variable \$srcfile for the compiler.
20158 fix_srcfile_path="$fix_srcfile_path_RC"
20160 # Set to yes if exported symbols are required.
20161 always_export_symbols=$always_export_symbols_RC
20163 # The commands to list exported symbols.
20164 export_symbols_cmds=$lt_export_symbols_cmds_RC
20166 # The commands to extract the exported symbol list from a shared archive.
20167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20169 # Symbols that should not be listed in the preloaded symbols.
20170 exclude_expsyms=$lt_exclude_expsyms_RC
20172 # Symbols that must always be exported.
20173 include_expsyms=$lt_include_expsyms_RC
20175 # ### END LIBTOOL TAG CONFIG: $tagname
20181 # If there is no Makefile yet, we rely on a make rule to execute
20182 # `config.status --recheck' to rerun these tests and create the
20183 # libtool script then.
20184 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20185 if test -f "$ltmain_in"; then
20186 test -f Makefile && make "$ltmain"
20192 ac_cpp='$CPP $CPPFLAGS'
20193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20202 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20203 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20204 { (exit 1); exit 1; }; }
20208 # Append the new tag name to the list of available tags.
20209 if test -n "$tagname" ; then
20210 available_tags="$available_tags $tagname"
20216 # Now substitute the updated list of available tags.
20217 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20218 mv "${ofile}T" "$ofile"
20222 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20223 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20224 { (exit 1); exit 1; }; }
20230 # This can be used to rebuild libtool when needed
20231 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20233 # Always use our own libtool.
20234 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20236 # Prevent multiple expansion
20257 echo "$as_me:$LINENO: checking whether ln -s works" >&5
20258 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
20260 if test "$LN_S" = "ln -s"; then
20261 echo "$as_me:$LINENO: result: yes" >&5
20262 echo "${ECHO_T}yes" >&6
20264 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20265 echo "${ECHO_T}no, using $LN_S" >&6
20269 # When the prefix is /opt/libjpeg-turbo, we assume that an "official" binary is
20270 # being created, and thus we install things into specific locations.
20272 old_prefix=${prefix}
20273 if test "x$prefix" = "xNONE" -a "x$ac_default_prefix" != "x"; then
20274 prefix=$ac_default_prefix
20276 DATADIR=`eval echo ${datadir}`
20277 DATADIR=`eval echo $DATADIR`
20278 if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
20279 datadir='${prefix}'
20281 DATADIR=`eval echo ${datarootdir}`
20282 DATADIR=`eval echo $DATADIR`
20283 if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
20284 datarootdir='${prefix}'
20287 old_exec_prefix=${exec_prefix}
20288 if test "x$exec_prefix" = "xNONE"; then
20289 exec_prefix=${prefix}
20292 if test "x${libdir}" = 'x${exec_prefix}/lib' -o "x${libdir}" = 'x${prefix}/lib'; then
20293 LIBDIR=`eval echo ${libdir}`
20294 LIBDIR=`eval echo $LIBDIR`
20295 if test "$LIBDIR" = "/opt/libjpeg-turbo/lib"; then
20300 echo "$as_me:$LINENO: checking for long" >&5
20301 echo $ECHO_N "checking for long... $ECHO_C" >&6
20302 if test "${ac_cv_type_long+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 $ac_includes_default
20323 rm -f conftest.$ac_objext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20325 (eval $ac_compile) 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
20332 { ac_try='test -z "$ac_c_werror_flag"
20333 || test ! -s conftest.err'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest.$ac_objext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_type_long=yes
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20354 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20355 echo "${ECHO_T}$ac_cv_type_long" >&6
20357 echo "$as_me:$LINENO: checking size of long" >&5
20358 echo $ECHO_N "checking size of long... $ECHO_C" >&6
20359 if test "${ac_cv_sizeof_long+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 if test "$ac_cv_type_long" = yes; then
20363 # The cast to unsigned long works around a bug in the HP C Compiler
20364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20366 # This bug is HP SR number 8606223364.
20367 if test "$cross_compiling" = yes; then
20368 # Depending upon the size, compute the lo and hi bounds.
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 $ac_includes_default
20379 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
20386 rm -f conftest.$ac_objext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20388 (eval $ac_compile) 2>conftest.er1
20390 grep -v '^ *+' conftest.er1 >conftest.err
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
20395 { ac_try='test -z "$ac_c_werror_flag"
20396 || test ! -s conftest.err'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest.$ac_objext'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20420 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20427 rm -f conftest.$ac_objext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429 (eval $ac_compile) 2>conftest.er1
20431 grep -v '^ *+' conftest.er1 >conftest.err
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
20436 { ac_try='test -z "$ac_c_werror_flag"
20437 || test ! -s conftest.err'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; } &&
20443 { ac_try='test -s conftest.$ac_objext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 ac_hi=$ac_mid; break
20451 echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20454 ac_lo=`expr $ac_mid + 1`
20455 if test $ac_lo -le $ac_mid; then
20459 ac_mid=`expr 2 '*' $ac_mid + 1`
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 cat >conftest.$ac_ext <<_ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 $ac_includes_default
20477 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20488 grep -v '^ *+' conftest.er1 >conftest.err
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20508 cat >conftest.$ac_ext <<_ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 $ac_includes_default
20518 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20525 rm -f conftest.$ac_objext
20526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20527 (eval $ac_compile) 2>conftest.er1
20529 grep -v '^ *+' conftest.er1 >conftest.err
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag"
20535 || test ! -s conftest.err'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; } &&
20541 { ac_try='test -s conftest.$ac_objext'
20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543 (eval $ac_try) 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20547 ac_lo=$ac_mid; break
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_hi=`expr '(' $ac_mid ')' - 1`
20553 if test $ac_mid -le $ac_hi; then
20557 ac_mid=`expr 2 '*' $ac_mid`
20559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20570 # Binary search between lo and hi bounds.
20571 while test "x$ac_lo" != "x$ac_hi"; do
20572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20573 cat >conftest.$ac_ext <<_ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 $ac_includes_default
20583 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20590 rm -f conftest.$ac_objext
20591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20592 (eval $ac_compile) 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } &&
20599 { ac_try='test -z "$ac_c_werror_flag"
20600 || test ! -s conftest.err'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; } &&
20606 { ac_try='test -s conftest.$ac_objext'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ac_lo=`expr '(' $ac_mid ')' + 1`
20619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20622 ?*) ac_cv_sizeof_long=$ac_lo;;
20623 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20624 See \`config.log' for more details." >&5
20625 echo "$as_me: error: cannot compute sizeof (long), 77
20626 See \`config.log' for more details." >&2;}
20627 { (exit 1); exit 1; }; } ;;
20630 if test "$cross_compiling" = yes; then
20631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20632 See \`config.log' for more details." >&5
20633 echo "$as_me: error: cannot run test program while cross compiling
20634 See \`config.log' for more details." >&2;}
20635 { (exit 1); exit 1; }; }
20637 cat >conftest.$ac_ext <<_ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20643 $ac_includes_default
20644 long longval () { return (long) (sizeof (long)); }
20645 unsigned long ulongval () { return (long) (sizeof (long)); }
20647 #include <stdlib.h>
20652 FILE *f = fopen ("conftest.val", "w");
20655 if (((long) (sizeof (long))) < 0)
20657 long i = longval ();
20658 if (i != ((long) (sizeof (long))))
20660 fprintf (f, "%ld\n", i);
20664 unsigned long i = ulongval ();
20665 if (i != ((long) (sizeof (long))))
20667 fprintf (f, "%lu\n", i);
20669 exit (ferror (f) || fclose (f) != 0);
20675 rm -f conftest$ac_exeext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20677 (eval $ac_link) 2>&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_cv_sizeof_long=`cat conftest.val`
20688 echo "$as_me: program exited with status $ac_status" >&5
20689 echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ( exit $ac_status )
20693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20694 See \`config.log' for more details." >&5
20695 echo "$as_me: error: cannot compute sizeof (long), 77
20696 See \`config.log' for more details." >&2;}
20697 { (exit 1); exit 1; }; }
20699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20704 ac_cv_sizeof_long=0
20707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20708 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20709 cat >>confdefs.h <<_ACEOF
20710 #define SIZEOF_LONG $ac_cv_sizeof_long
20714 if test "${ac_cv_sizeof_long}" = "8"; then
20715 libdir='${exec_prefix}/lib64'
20716 elif test "${ac_cv_sizeof_long}" = "4"; then
20717 libdir='${exec_prefix}/lib32'
20723 exec_prefix=${old_exec_prefix}
20724 prefix=${old_prefix}
20726 # Check whether compiler supports pointers to undefined structures
20727 echo "$as_me:$LINENO: checking whether compiler supports pointers to undefined structures" >&5
20728 echo $ECHO_N "checking whether compiler supports pointers to undefined structures... $ECHO_C" >&6
20729 cat >conftest.$ac_ext <<_ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735 typedef struct undefined_structure * undef_struct_ptr;
20744 rm -f conftest.$ac_objext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20746 (eval $ac_compile) 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
20753 { ac_try='test -z "$ac_c_werror_flag"
20754 || test ! -s conftest.err'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; } &&
20760 { ac_try='test -s conftest.$ac_objext'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 echo "$as_me:$LINENO: result: yes" >&5
20767 echo "${ECHO_T}yes" >&6
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 echo "$as_me:$LINENO: result: no" >&5
20773 echo "${ECHO_T}no" >&6
20775 cat >>confdefs.h <<\_ACEOF
20776 #define INCOMPLETE_TYPES_BROKEN 1
20780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20782 if test "x${GCC}" = "xyes"; then
20783 if test "x${SAVED_CFLAGS}" = "x"; then
20786 if test "x${SAVED_CPPFLAGS}" = "x"; then
20791 echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20792 echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6
20793 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 cat >conftest.$ac_ext <<_ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20802 $ac_includes_default
20807 char *p = (char *) __SUNPRO_C;
20814 rm -f conftest.$ac_objext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816 (eval $ac_compile) 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest.$ac_objext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 ac_cv_have_decl___SUNPRO_C=yes
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_cv_have_decl___SUNPRO_C=no
20843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20845 echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20846 echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6
20847 if test $ac_cv_have_decl___SUNPRO_C = yes; then
20853 if test "x${SUNCC}" = "xyes"; then
20854 if test "x${SAVED_CFLAGS}" = "x"; then
20859 # Checks for libraries.
20861 # Checks for header files.
20862 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20864 if test "${ac_cv_header_stdc+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <stdlib.h>
20874 #include <stdarg.h>
20875 #include <string.h>
20886 rm -f conftest.$ac_objext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888 (eval $ac_compile) 2>conftest.er1
20890 grep -v '^ *+' conftest.er1 >conftest.err
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } &&
20895 { ac_try='test -z "$ac_c_werror_flag"
20896 || test ! -s conftest.err'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; } &&
20902 { ac_try='test -s conftest.$ac_objext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ac_cv_header_stdc=yes
20910 echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20913 ac_cv_header_stdc=no
20915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20917 if test $ac_cv_header_stdc = yes; then
20918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20919 cat >conftest.$ac_ext <<_ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 #include <string.h>
20928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20929 $EGREP "memchr" >/dev/null 2>&1; then
20932 ac_cv_header_stdc=no
20938 if test $ac_cv_header_stdc = yes; then
20939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 #include <stdlib.h>
20949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20950 $EGREP "free" >/dev/null 2>&1; then
20953 ac_cv_header_stdc=no
20959 if test $ac_cv_header_stdc = yes; then
20960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20961 if test "$cross_compiling" = yes; then
20964 cat >conftest.$ac_ext <<_ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20971 #if ((' ' & 0x0FF) == 0x020)
20972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20975 # define ISLOWER(c) \
20976 (('a' <= (c) && (c) <= 'i') \
20977 || ('j' <= (c) && (c) <= 'r') \
20978 || ('s' <= (c) && (c) <= 'z'))
20979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20987 for (i = 0; i < 256; i++)
20988 if (XOR (islower (i), ISLOWER (i))
20989 || toupper (i) != TOUPPER (i))
20994 rm -f conftest$ac_exeext
20995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20996 (eval $ac_link) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21007 echo "$as_me: program exited with status $ac_status" >&5
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ( exit $ac_status )
21012 ac_cv_header_stdc=no
21014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21020 if test $ac_cv_header_stdc = yes; then
21022 cat >>confdefs.h <<\_ACEOF
21023 #define STDC_HEADERS 1
21031 for ac_header in stddef.h stdlib.h string.h
21033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21035 echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21043 # Is the header compilable?
21044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 $ac_includes_default
21053 #include <$ac_header>
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057 (eval $ac_compile) 2>conftest.er1
21059 grep -v '^ *+' conftest.er1 >conftest.err
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -z "$ac_c_werror_flag"
21065 || test ! -s conftest.err'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest.$ac_objext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 ac_header_compiler=yes
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ac_header_compiler=no
21084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6
21088 # Is the header present?
21089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <$ac_header>
21099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } >/dev/null; then
21107 if test -s conftest.err; then
21108 ac_cpp_err=$ac_c_preproc_warn_flag
21109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21116 if test -z "$ac_cpp_err"; then
21117 ac_header_preproc=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_header_preproc=no
21124 rm -f conftest.err conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126 echo "${ECHO_T}$ac_header_preproc" >&6
21128 # So? What about this header?
21129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21135 ac_header_preproc=yes
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21152 ## ---------------------------------------- ##
21153 ## Report this to the libjpeg-turbo lists. ##
21154 ## ---------------------------------------- ##
21157 sed "s/^/$as_me: WARNING: /" >&2
21160 echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 eval "$as_ac_Header=\$ac_header_preproc"
21167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172 cat >>confdefs.h <<_ACEOF
21173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21180 if test "${ac_cv_header_sys_types_h+set}" = set; then
21181 echo "$as_me:$LINENO: checking for sys/types.h" >&5
21182 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
21183 if test "${ac_cv_header_sys_types_h+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
21187 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
21189 # Is the header compilable?
21190 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
21191 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
21192 cat >conftest.$ac_ext <<_ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 $ac_includes_default
21199 #include <sys/types.h>
21201 rm -f conftest.$ac_objext
21202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21203 (eval $ac_compile) 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag"
21211 || test ! -s conftest.err'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_header_compiler=yes
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_header_compiler=no
21230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21232 echo "${ECHO_T}$ac_header_compiler" >&6
21234 # Is the header present?
21235 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
21236 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
21237 cat >conftest.$ac_ext <<_ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 #include <sys/types.h>
21245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21248 grep -v '^ *+' conftest.er1 >conftest.err
21250 cat conftest.err >&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } >/dev/null; then
21253 if test -s conftest.err; then
21254 ac_cpp_err=$ac_c_preproc_warn_flag
21255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21262 if test -z "$ac_cpp_err"; then
21263 ac_header_preproc=yes
21265 echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 ac_header_preproc=no
21270 rm -f conftest.err conftest.$ac_ext
21271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21272 echo "${ECHO_T}$ac_header_preproc" >&6
21274 # So? What about this header?
21275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21277 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
21278 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
21280 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
21281 ac_header_preproc=yes
21284 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
21285 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
21287 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
21288 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
21289 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
21290 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
21291 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
21292 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
21293 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
21294 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
21295 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
21298 ## ---------------------------------------- ##
21299 ## Report this to the libjpeg-turbo lists. ##
21300 ## ---------------------------------------- ##
21303 sed "s/^/$as_me: WARNING: /" >&2
21306 echo "$as_me:$LINENO: checking for sys/types.h" >&5
21307 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
21308 if test "${ac_cv_header_sys_types_h+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 ac_cv_header_sys_types_h=$ac_header_preproc
21313 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
21314 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
21317 if test $ac_cv_header_sys_types_h = yes; then
21319 cat >>confdefs.h <<\_ACEOF
21320 #define NEED_SYS_TYPES_H 1
21327 # Checks for typedefs, structures, and compiler characteristics.
21328 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21329 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21330 if test "${ac_cv_c_const+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21343 /* FIXME: Include the comments suggested by Paul. */
21344 #ifndef __cplusplus
21345 /* Ultrix mips cc rejects this. */
21346 typedef int charset[2];
21348 /* SunOS 4.1.1 cc rejects this. */
21349 char const *const *ccp;
21351 /* NEC SVR4.0.2 mips cc rejects this. */
21352 struct point {int x, y;};
21353 static struct point const zero = {0,0};
21354 /* AIX XL C 1.02.0.0 rejects this.
21355 It does not let you subtract one const X* pointer from another in
21356 an arm of an if-expression whose if-part is not a constant
21358 const char *g = "string";
21359 ccp = &g + (g ? g-g : 0);
21360 /* HPUX 7.0 cc rejects these. */
21363 ccp = (char const *const *) p;
21364 { /* SCO 3.2v4 cc rejects this. */
21366 char const *s = 0 ? (char *) 0 : (char const *) 0;
21370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21371 int x[] = {25, 17};
21372 const int *foo = &x[0];
21375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21376 typedef const int *iptr;
21380 { /* AIX XL C 1.02.0.0 rejects this saying
21381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21382 struct s { int j; const int *ap[3]; };
21383 struct s *b; b->j = 5;
21385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21386 const int foo = 10;
21394 rm -f conftest.$ac_objext
21395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21396 (eval $ac_compile) 2>conftest.er1
21398 grep -v '^ *+' conftest.er1 >conftest.err
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
21403 { ac_try='test -z "$ac_c_werror_flag"
21404 || test ! -s conftest.err'
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; } &&
21410 { ac_try='test -s conftest.$ac_objext'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21425 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21426 echo "${ECHO_T}$ac_cv_c_const" >&6
21427 if test $ac_cv_c_const = no; then
21429 cat >>confdefs.h <<\_ACEOF
21436 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
21437 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
21438 if test "${ac_cv_c_char_unsigned+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 $ac_includes_default
21451 static int test_array [1 - 2 * !(((char) -1) < 0)];
21458 rm -f conftest.$ac_objext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21460 (eval $ac_compile) 2>conftest.er1
21462 grep -v '^ *+' conftest.er1 >conftest.err
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } &&
21467 { ac_try='test -z "$ac_c_werror_flag"
21468 || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try='test -s conftest.$ac_objext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 ac_cv_c_char_unsigned=no
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 ac_cv_c_char_unsigned=yes
21487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
21490 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
21491 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21492 cat >>confdefs.h <<\_ACEOF
21493 #define __CHAR_UNSIGNED__ 1
21498 echo "$as_me:$LINENO: checking for inline" >&5
21499 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21500 if test "${ac_cv_c_inline+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21504 for ac_kw in inline __inline__ __inline; do
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 #ifndef __cplusplus
21513 static $ac_kw foo_t static_foo () {return 0; }
21514 $ac_kw foo_t foo () {return 0; }
21518 rm -f conftest.$ac_objext
21519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21520 (eval $ac_compile) 2>conftest.er1
21522 grep -v '^ *+' conftest.er1 >conftest.err
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } &&
21527 { ac_try='test -z "$ac_c_werror_flag"
21528 || test ! -s conftest.err'
21529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 (eval $ac_try) 2>&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; } &&
21534 { ac_try='test -s conftest.$ac_objext'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 ac_cv_c_inline=$ac_kw; break
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21550 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21551 echo "${ECHO_T}$ac_cv_c_inline" >&6
21554 case $ac_cv_c_inline in
21557 case $ac_cv_c_inline in
21559 *) ac_val=$ac_cv_c_inline;;
21561 cat >>confdefs.h <<_ACEOF
21562 #ifndef __cplusplus
21563 #define inline $ac_val
21569 echo "$as_me:$LINENO: checking for size_t" >&5
21570 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21571 if test "${ac_cv_type_size_t+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21586 if (sizeof (size_t))
21592 rm -f conftest.$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594 (eval $ac_compile) 2>conftest.er1
21596 grep -v '^ *+' conftest.er1 >conftest.err
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
21601 { ac_try='test -z "$ac_c_werror_flag"
21602 || test ! -s conftest.err'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } &&
21608 { ac_try='test -s conftest.$ac_objext'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 ac_cv_type_size_t=yes
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ac_cv_type_size_t=no
21621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21623 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21624 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21625 if test $ac_cv_type_size_t = yes; then
21629 cat >>confdefs.h <<_ACEOF
21630 #define size_t unsigned
21635 echo "$as_me:$LINENO: checking for unsigned char" >&5
21636 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
21637 if test "${ac_cv_type_unsigned_char+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 cat >conftest.$ac_ext <<_ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 $ac_includes_default
21650 if ((unsigned char *) 0)
21652 if (sizeof (unsigned char))
21658 rm -f conftest.$ac_objext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660 (eval $ac_compile) 2>conftest.er1
21662 grep -v '^ *+' conftest.er1 >conftest.err
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -z "$ac_c_werror_flag"
21668 || test ! -s conftest.err'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; } &&
21674 { ac_try='test -s conftest.$ac_objext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_type_unsigned_char=yes
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ac_cv_type_unsigned_char=no
21687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21689 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
21690 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
21691 if test $ac_cv_type_unsigned_char = yes; then
21693 cat >>confdefs.h <<_ACEOF
21694 #define HAVE_UNSIGNED_CHAR 1
21699 echo "$as_me:$LINENO: checking for unsigned short" >&5
21700 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
21701 if test "${ac_cv_type_unsigned_short+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 cat >conftest.$ac_ext <<_ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 $ac_includes_default
21714 if ((unsigned short *) 0)
21716 if (sizeof (unsigned short))
21722 rm -f conftest.$ac_objext
21723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21724 (eval $ac_compile) 2>conftest.er1
21726 grep -v '^ *+' conftest.er1 >conftest.err
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
21731 { ac_try='test -z "$ac_c_werror_flag"
21732 || test ! -s conftest.err'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest.$ac_objext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 ac_cv_type_unsigned_short=yes
21746 echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21749 ac_cv_type_unsigned_short=no
21751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21753 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
21754 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
21755 if test $ac_cv_type_unsigned_short = yes; then
21757 cat >>confdefs.h <<_ACEOF
21758 #define HAVE_UNSIGNED_SHORT 1
21765 echo "$as_me:$LINENO: checking if right shift is signed" >&5
21766 echo $ECHO_N "checking if right shift is signed... $ECHO_C" >&6
21767 if test "$cross_compiling" = yes; then
21768 echo "$as_me:$LINENO: result: Assuming that right shift is signed on target machine." >&5
21769 echo "${ECHO_T}Assuming that right shift is signed on target machine." >&6
21771 cat >conftest.$ac_ext <<_ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21778 int is_shifting_signed (long arg) {
21779 long res = arg >> 4;
21781 if (res == -0x7F7E80CL)
21782 return 1; /* right shift is signed */
21784 /* see if unsigned-shift hack will fix it. */
21785 /* we can't just test exact value since it depends on width of long... */
21786 res |= (~0L) << (32-4);
21787 if (res == -0x7F7E80CL)
21788 return 0; /* right shift is unsigned */
21790 printf("Right shift isn't acting as I expect it to.\n");
21791 printf("I fear the JPEG software will not work at all.\n\n");
21792 return 0; /* try it with unsigned anyway */
21795 exit(is_shifting_signed(-0x7F7E80B1L));
21798 rm -f conftest$ac_exeext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800 (eval $ac_link) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; }; then
21809 echo "$as_me:$LINENO: result: no" >&5
21810 echo "${ECHO_T}no" >&6
21812 cat >>confdefs.h <<\_ACEOF
21813 #define RIGHT_SHIFT_IS_UNSIGNED 1
21817 echo "$as_me: program exited with status $ac_status" >&5
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ( exit $ac_status )
21822 echo "$as_me:$LINENO: result: yes" >&5
21823 echo "${ECHO_T}yes" >&6
21825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21828 # test whether global names are unique to at least 15 chars
21829 echo "$as_me:$LINENO: checking for short external names" >&5
21830 echo $ECHO_N "checking for short external names... $ECHO_C" >&6
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 int possibly_duplicate_function () { return 0; }
21838 int possibly_dupli_function () { return 1; }
21847 rm -f conftest.$ac_objext conftest$ac_exeext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21849 (eval $ac_link) 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
21856 { ac_try='test -z "$ac_c_werror_flag"
21857 || test ! -s conftest.err'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; } &&
21863 { ac_try='test -s conftest$ac_exeext'
21864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
21869 echo "$as_me:$LINENO: result: ok" >&5
21870 echo "${ECHO_T}ok" >&6
21872 echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21875 echo "$as_me:$LINENO: result: short" >&5
21876 echo "${ECHO_T}short" >&6
21878 cat >>confdefs.h <<\_ACEOF
21879 #define NEED_SHORT_EXTERNAL_NAMES 1
21883 rm -f conftest.err conftest.$ac_objext \
21884 conftest$ac_exeext conftest.$ac_ext
21886 # Checks for library functions.
21889 for ac_func in memset memcpy
21891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21892 echo "$as_me:$LINENO: checking for $ac_func" >&5
21893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21894 if eval "test \"\${$as_ac_var+set}\" = set"; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21905 #define $ac_func innocuous_$ac_func
21907 /* System header to define __stub macros and hopefully few prototypes,
21908 which can conflict with char $ac_func (); below.
21909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21910 <limits.h> exists even on freestanding compilers. */
21913 # include <limits.h>
21915 # include <assert.h>
21920 /* Override any gcc2 internal prototype to avoid an error. */
21925 /* We use char because int might match the return type of a gcc2
21926 builtin and then its argument prototype would still apply. */
21928 /* The GNU C library defines this for functions which it implements
21929 to always fail with ENOSYS. Some functions are actually named
21930 something starting with __ and the normal name is an alias. */
21931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21934 char (*f) () = $ac_func;
21943 return f != $ac_func;
21948 rm -f conftest.$ac_objext conftest$ac_exeext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21950 (eval $ac_link) 2>conftest.er1
21952 grep -v '^ *+' conftest.er1 >conftest.err
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
21957 { ac_try='test -z "$ac_c_werror_flag"
21958 || test ! -s conftest.err'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; } &&
21964 { ac_try='test -s conftest$ac_exeext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 eval "$as_ac_var=yes"
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 eval "$as_ac_var=no"
21977 rm -f conftest.err conftest.$ac_objext \
21978 conftest$ac_exeext conftest.$ac_ext
21980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21982 if test `eval echo '${'$as_ac_var'}'` = yes; then
21983 cat >>confdefs.h <<_ACEOF
21984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21989 cat >>confdefs.h <<\_ACEOF
21990 #define NEED_BSD_STRINGS 1
21997 echo "$as_me:$LINENO: checking libjpeg API version" >&5
21998 echo $ECHO_N "checking libjpeg API version... $ECHO_C" >&6
22000 if test "x$JPEG_LIB_VERSION" = "x"; then
22002 # Check whether --with-jpeg7 or --without-jpeg7 was given.
22003 if test "${with_jpeg7+set}" = set; then
22004 withval="$with_jpeg7"
22008 # Check whether --with-jpeg8 or --without-jpeg8 was given.
22009 if test "${with_jpeg8+set}" = set; then
22010 withval="$with_jpeg8"
22013 if test "x${with_jpeg8}" = "xyes"; then
22014 JPEG_LIB_VERSION=80
22016 if test "x${with_jpeg7}" = "xyes"; then
22017 JPEG_LIB_VERSION=70
22019 JPEG_LIB_VERSION=62
22023 JPEG_LIB_VERSION_DECIMAL=`expr $JPEG_LIB_VERSION / 10`.`expr $JPEG_LIB_VERSION % 10`
22025 echo "$as_me:$LINENO: result: $JPEG_LIB_VERSION_DECIMAL" >&5
22026 echo "${ECHO_T}$JPEG_LIB_VERSION_DECIMAL" >&6
22028 cat >>confdefs.h <<_ACEOF
22029 #define JPEG_LIB_VERSION $JPEG_LIB_VERSION
22035 if test "x$SO_MAJOR_VERSION" = "x"; then
22036 case "$JPEG_LIB_VERSION" in
22037 62) SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;;
22038 *) SO_MAJOR_VERSION=`expr $JPEG_LIB_VERSION / 10` ;;
22041 if test "x$SO_MINOR_VERSION" = "x"; then
22042 case "$JPEG_LIB_VERSION" in
22043 80) SO_MINOR_VERSION=2 ;;
22044 *) SO_MINOR_VERSION=0 ;;
22050 # Memory source/destination managers
22052 MEM_SRCDST_FUNCTIONS=
22053 if test "x${with_jpeg8}" != "xyes"; then
22054 echo "$as_me:$LINENO: checking whether to include in-memory source/destination managers" >&5
22055 echo $ECHO_N "checking whether to include in-memory source/destination managers... $ECHO_C" >&6
22057 # Check whether --with-mem-srcdst or --without-mem-srcdst was given.
22058 if test "${with_mem_srcdst+set}" = set; then
22059 withval="$with_mem_srcdst"
22062 if test "x$with_mem_srcdst" != "xno"; then
22063 echo "$as_me:$LINENO: result: yes" >&5
22064 echo "${ECHO_T}yes" >&6
22066 cat >>confdefs.h <<\_ACEOF
22067 #define MEM_SRCDST_SUPPORTED 1
22071 MEM_SRCDST_FUNCTIONS="global: jpeg_mem_dest; jpeg_mem_src;";
22073 echo "$as_me:$LINENO: result: no" >&5
22074 echo "${ECHO_T}no" >&6
22075 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-mem-srcdst"
22079 echo "$as_me:$LINENO: checking libjpeg shared library version" >&5
22080 echo $ECHO_N "checking libjpeg shared library version... $ECHO_C" >&6
22081 echo "$as_me:$LINENO: result: $SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION" >&5
22082 echo "${ECHO_T}$SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION" >&6
22083 LIBTOOL_CURRENT=`expr $SO_MAJOR_VERSION + $SO_AGE`
22091 cat >>confdefs.h <<_ACEOF
22092 #define LIBJPEG_TURBO_VERSION $VERSION
22097 # Check whether --enable-ld-version-script or --disable-ld-version-script was given.
22098 if test "${enable_ld_version_script+set}" = set; then
22099 enableval="$enable_ld_version_script"
22100 VERSION_SCRIPT=$enableval
22103 echo "$as_me:$LINENO: checking whether the linker supports version scripts" >&5
22104 echo $ECHO_N "checking whether the linker supports version scripts... $ECHO_C" >&6
22105 SAVED_LDFLAGS="$LDFLAGS"
22106 LDFLAGS="$LDFLAGS -Wl,--version-script,conftest.map"
22107 cat > conftest.map <<EOF
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22129 (eval $ac_link) 2>conftest.er1
22131 grep -v '^ *+' conftest.er1 >conftest.err
22133 cat conftest.err >&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } &&
22136 { ac_try='test -z "$ac_c_werror_flag"
22137 || test ! -s conftest.err'
22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; } &&
22143 { ac_try='test -s conftest$ac_exeext'
22144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145 (eval $ac_try) 2>&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; }; then
22149 VERSION_SCRIPT_FLAG=-Wl,--version-script,;
22150 echo "$as_me:$LINENO: result: yes (GNU style)" >&5
22151 echo "${ECHO_T}yes (GNU style)" >&6
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22157 rm -f conftest.err conftest.$ac_objext \
22158 conftest$ac_exeext conftest.$ac_ext
22159 if test "x$VERSION_SCRIPT_FLAG" = "x"; then
22160 LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map"
22161 cat >conftest.$ac_ext <<_ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h. */
22176 rm -f conftest.$ac_objext conftest$ac_exeext
22177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22178 (eval $ac_link) 2>conftest.er1
22180 grep -v '^ *+' conftest.er1 >conftest.err
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
22185 { ac_try='test -z "$ac_c_werror_flag"
22186 || test ! -s conftest.err'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; } &&
22192 { ac_try='test -s conftest$ac_exeext'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; }; then
22198 VERSION_SCRIPT_FLAG=-Wl,-M,;
22199 echo "$as_me:$LINENO: result: yes (Sun style)" >&5
22200 echo "${ECHO_T}yes (Sun style)" >&6
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22206 rm -f conftest.err conftest.$ac_objext \
22207 conftest$ac_exeext conftest.$ac_ext
22209 if test "x$VERSION_SCRIPT_FLAG" = "x"; then
22211 echo "$as_me:$LINENO: result: no" >&5
22212 echo "${ECHO_T}no" >&6
22214 LDFLAGS="$SAVED_LDFLAGS"
22216 echo "$as_me:$LINENO: checking whether to use version script when building libjpeg-turbo" >&5
22217 echo $ECHO_N "checking whether to use version script when building libjpeg-turbo... $ECHO_C" >&6
22218 echo "$as_me:$LINENO: result: $VERSION_SCRIPT" >&5
22219 echo "${ECHO_T}$VERSION_SCRIPT" >&6
22223 if test "x$VERSION_SCRIPT" = "xyes"; then
22224 VERSION_SCRIPT_TRUE=
22225 VERSION_SCRIPT_FALSE='#'
22227 VERSION_SCRIPT_TRUE='#'
22228 VERSION_SCRIPT_FALSE=
22233 # Check for non-broken inline under various spellings
22234 echo "$as_me:$LINENO: checking for inline" >&5
22235 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22237 cat >conftest.$ac_ext <<_ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22247 } __attribute__((always_inline)) int foo() { return 0; }
22248 int bar() { return foo();
22253 rm -f conftest.$ac_objext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22255 (eval $ac_compile) 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
22262 { ac_try='test -z "$ac_c_werror_flag"
22263 || test ! -s conftest.err'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; } &&
22269 { ac_try='test -s conftest.$ac_objext'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 ljt_cv_inline="inline __attribute__((always_inline))"
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22290 } __inline__ int foo() { return 0; }
22291 int bar() { return foo();
22296 rm -f conftest.$ac_objext
22297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22298 (eval $ac_compile) 2>conftest.er1
22300 grep -v '^ *+' conftest.er1 >conftest.err
22302 cat conftest.err >&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } &&
22305 { ac_try='test -z "$ac_c_werror_flag"
22306 || test ! -s conftest.err'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest.$ac_objext'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 ljt_cv_inline="__inline__"
22320 echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22323 cat >conftest.$ac_ext <<_ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h. */
22333 } __inline int foo() { return 0; }
22334 int bar() { return foo();
22339 rm -f conftest.$ac_objext
22340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22341 (eval $ac_compile) 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } &&
22348 { ac_try='test -z "$ac_c_werror_flag"
22349 || test ! -s conftest.err'
22350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351 (eval $ac_try) 2>&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; } &&
22355 { ac_try='test -s conftest.$ac_objext'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }; then
22361 ljt_cv_inline="__inline"
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22376 } inline int foo() { return 0; }
22377 int bar() { return foo();
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -z "$ac_c_werror_flag"
22392 || test ! -s conftest.err'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; } &&
22398 { ac_try='test -s conftest.$ac_objext'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22404 ljt_cv_inline="inline"
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22417 echo "$as_me:$LINENO: result: $ljt_cv_inline" >&5
22418 echo "${ECHO_T}$ljt_cv_inline" >&6
22420 cat >>confdefs.h <<_ACEOF
22421 #define INLINE $ljt_cv_inline
22425 # Arithmetic coding support
22426 echo "$as_me:$LINENO: checking whether to include arithmetic encoding support" >&5
22427 echo $ECHO_N "checking whether to include arithmetic encoding support... $ECHO_C" >&6
22429 # Check whether --with-arith-enc or --without-arith-enc was given.
22430 if test "${with_arith_enc+set}" = set; then
22431 withval="$with_arith_enc"
22434 if test "x$with_arith_enc" = "xno"; then
22435 echo "$as_me:$LINENO: result: no" >&5
22436 echo "${ECHO_T}no" >&6
22437 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-enc"
22440 cat >>confdefs.h <<\_ACEOF
22441 #define C_ARITH_CODING_SUPPORTED 1
22444 echo "$as_me:$LINENO: result: yes" >&5
22445 echo "${ECHO_T}yes" >&6
22449 if test "x$with_arith_enc" != "xno"; then
22450 WITH_ARITH_ENC_TRUE=
22451 WITH_ARITH_ENC_FALSE='#'
22453 WITH_ARITH_ENC_TRUE='#'
22454 WITH_ARITH_ENC_FALSE=
22458 echo "$as_me:$LINENO: checking whether to include arithmetic decoding support" >&5
22459 echo $ECHO_N "checking whether to include arithmetic decoding support... $ECHO_C" >&6
22461 # Check whether --with-arith-dec or --without-arith-dec was given.
22462 if test "${with_arith_dec+set}" = set; then
22463 withval="$with_arith_dec"
22466 if test "x$with_arith_dec" = "xno"; then
22467 echo "$as_me:$LINENO: result: no" >&5
22468 echo "${ECHO_T}no" >&6
22469 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-dec"
22472 cat >>confdefs.h <<\_ACEOF
22473 #define D_ARITH_CODING_SUPPORTED 1
22476 echo "$as_me:$LINENO: result: yes" >&5
22477 echo "${ECHO_T}yes" >&6
22481 if test "x$with_arith_dec" != "xno"; then
22482 WITH_ARITH_DEC_TRUE=
22483 WITH_ARITH_DEC_FALSE='#'
22485 WITH_ARITH_DEC_TRUE='#'
22486 WITH_ARITH_DEC_FALSE=
22492 if test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"; then
22494 WITH_ARITH_FALSE='#'
22496 WITH_ARITH_TRUE='#'
22501 # TurboJPEG support
22502 echo "$as_me:$LINENO: checking whether to build TurboJPEG C wrapper" >&5
22503 echo $ECHO_N "checking whether to build TurboJPEG C wrapper... $ECHO_C" >&6
22505 # Check whether --with-turbojpeg or --without-turbojpeg was given.
22506 if test "${with_turbojpeg+set}" = set; then
22507 withval="$with_turbojpeg"
22510 if test "x$with_turbojpeg" = "xno"; then
22511 echo "$as_me:$LINENO: result: no" >&5
22512 echo "${ECHO_T}no" >&6
22513 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-turbojpeg"
22515 echo "$as_me:$LINENO: result: yes" >&5
22516 echo "${ECHO_T}yes" >&6
22521 if test "x$JAVAC" = "x"; then
22528 if test "x$JAR" = "x"; then
22533 if test "x$JAVA" = "x"; then
22539 echo "$as_me:$LINENO: checking whether to build TurboJPEG Java wrapper" >&5
22540 echo $ECHO_N "checking whether to build TurboJPEG Java wrapper... $ECHO_C" >&6
22542 # Check whether --with-java or --without-java was given.
22543 if test "${with_java+set}" = set; then
22544 withval="$with_java"
22547 if test "x$with_turbojpeg" = "xno"; then
22552 if test "x$with_java" = "xyes"; then
22553 echo "$as_me:$LINENO: result: yes" >&5
22554 echo "${ECHO_T}yes" >&6
22558 DEFAULT_JNI_CFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
22561 DEFAULT_JNI_CFLAGS='-I/usr/java/include -I/usr/java/include/solaris'
22564 DEFAULT_JNI_CFLAGS='-I/usr/java/default/include -I/usr/java/default/include/linux'
22567 if test "x$JNI_CFLAGS" = "x"; then
22568 JNI_CFLAGS=$DEFAULT_JNI_CFLAGS
22571 SAVE_CPPFLAGS=${CPPFLAGS}
22572 CPPFLAGS="${CPPFLAGS} ${JNI_CFLAGS}"
22574 for ac_header in jni.h
22576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22578 echo "$as_me:$LINENO: checking for $ac_header" >&5
22579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22586 # Is the header compilable?
22587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22595 $ac_includes_default
22596 #include <$ac_header>
22598 rm -f conftest.$ac_objext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22600 (eval $ac_compile) 2>conftest.er1
22602 grep -v '^ *+' conftest.er1 >conftest.err
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } &&
22607 { ac_try='test -z "$ac_c_werror_flag"
22608 || test ! -s conftest.err'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; } &&
22614 { ac_try='test -s conftest.$ac_objext'
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; }; then
22620 ac_header_compiler=yes
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22625 ac_header_compiler=no
22627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22629 echo "${ECHO_T}$ac_header_compiler" >&6
22631 # Is the header present?
22632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22634 cat >conftest.$ac_ext <<_ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22640 #include <$ac_header>
22642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22645 grep -v '^ *+' conftest.er1 >conftest.err
22647 cat conftest.err >&5
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); } >/dev/null; then
22650 if test -s conftest.err; then
22651 ac_cpp_err=$ac_c_preproc_warn_flag
22652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22659 if test -z "$ac_cpp_err"; then
22660 ac_header_preproc=yes
22662 echo "$as_me: failed program was:" >&5
22663 sed 's/^/| /' conftest.$ac_ext >&5
22665 ac_header_preproc=no
22667 rm -f conftest.err conftest.$ac_ext
22668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22669 echo "${ECHO_T}$ac_header_preproc" >&6
22671 # So? What about this header?
22672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22678 ac_header_preproc=yes
22681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22695 ## ---------------------------------------- ##
22696 ## Report this to the libjpeg-turbo lists. ##
22697 ## ---------------------------------------- ##
22700 sed "s/^/$as_me: WARNING: /" >&2
22703 echo "$as_me:$LINENO: checking for $ac_header" >&5
22704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 eval "$as_ac_Header=\$ac_header_preproc"
22710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22715 cat >>confdefs.h <<_ACEOF
22716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22720 { { echo "$as_me:$LINENO: error: Could not find JNI header file" >&5
22721 echo "$as_me: error: Could not find JNI header file" >&2;}
22722 { (exit 1); exit 1; }; }
22727 CPPFLAGS=${SAVE_CPPFLAGS}
22730 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --with-java"
22731 JAVA_RPM_CONTENTS_1='%dir %{_datadir}/classes'
22732 JAVA_RPM_CONTENTS_2=%{_datadir}/classes/turbojpeg.jar
22735 echo "$as_me:$LINENO: result: no" >&5
22736 echo "${ECHO_T}no" >&6
22740 if test "x$with_java" = "xyes"; then
22742 WITH_JAVA_FALSE='#'
22752 # optionally force using gas-preprocessor.pl for compatibility testing
22754 # Check whether --with-gas-preprocessor or --without-gas-preprocessor was given.
22755 if test "${with_gas_preprocessor+set}" = set; then
22756 withval="$with_gas_preprocessor"
22759 if test "x${with_gas_preprocessor}" = "xyes"; then
22762 CCAS="gas-preprocessor.pl -fix-unreq $CC"
22765 CCAS="gas-preprocessor.pl -no-fix-unreq $CC"
22773 # Check whether --with-simd or --without-simd was given.
22774 if test "${with_simd+set}" = set; then
22775 withval="$with_simd"
22778 if test "x${with_simd}" != "xno"; then
22780 if test "x${with_simd}" = "xyes"; then
22783 # Check if we're on a supported CPU
22784 echo "$as_me:$LINENO: checking if we have SIMD optimisations for cpu type" >&5
22785 echo $ECHO_N "checking if we have SIMD optimisations for cpu type... $ECHO_C" >&6
22786 case "$host_cpu" in
22788 echo "$as_me:$LINENO: result: yes (x86_64)" >&5
22789 echo "${ECHO_T}yes (x86_64)" >&6
22792 for ac_prog in nasm nasmw yasm
22794 # Extract the first word of "$ac_prog", so it can be a program name with args.
22795 set dummy $ac_prog; ac_word=$2
22796 echo "$as_me:$LINENO: checking for $ac_word" >&5
22797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22798 if test "${ac_cv_prog_NASM+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 if test -n "$NASM"; then
22802 ac_cv_prog_NASM="$NASM" # Let the user override the test.
22804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22805 for as_dir in $PATH
22808 test -z "$as_dir" && as_dir=.
22809 for ac_exec_ext in '' $ac_executable_extensions; do
22810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22811 ac_cv_prog_NASM="$ac_prog"
22812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22820 NASM=$ac_cv_prog_NASM
22821 if test -n "$NASM"; then
22822 echo "$as_me:$LINENO: result: $NASM" >&5
22823 echo "${ECHO_T}$NASM" >&6
22825 echo "$as_me:$LINENO: result: no" >&5
22826 echo "${ECHO_T}no" >&6
22829 test -n "$NASM" && break
22832 test -z "$NASM" && { { echo "$as_me:$LINENO: error: no nasm (Netwide Assembler) found" >&5
22833 echo "$as_me: error: no nasm (Netwide Assembler) found" >&2;}
22834 { (exit 1); exit 1; }; }
22836 echo "$as_me:$LINENO: checking for object file format of host system" >&5
22837 echo $ECHO_N "checking for object file format of host system... $ECHO_C" >&6
22839 cygwin* | mingw* | pw32* | interix*)
22840 case "$host_cpu" in
22842 objfmt='Win64-COFF'
22845 objfmt='Win32-COFF'
22849 msdosdjgpp* | go32*)
22852 os2-emx*) # not tested
22853 objfmt='MSOMF' # obj
22855 linux*coff* | linux*oldld*)
22856 objfmt='COFF' # ???
22862 case "$host_cpu" in
22871 kfreebsd* | freebsd* | netbsd* | openbsd*)
22872 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
22875 case "$host_cpu" in
22885 solaris* | sunos* | sysv* | sco*)
22886 case "$host_cpu" in
22895 darwin* | rhapsody* | nextstep* | openstep* | macos*)
22896 case "$host_cpu" in
22910 echo "$as_me:$LINENO: result: $objfmt" >&5
22911 echo "${ECHO_T}$objfmt" >&6
22912 if test "$objfmt" = 'ELF ?'; then
22914 { echo "$as_me:$LINENO: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
22915 echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
22918 echo "$as_me:$LINENO: checking for object file format specifier (NAFLAGS) " >&5
22919 echo $ECHO_N "checking for object file format specifier (NAFLAGS) ... $ECHO_C" >&6
22921 MSOMF) NAFLAGS='-fobj -DOBJ32';;
22922 Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
22923 Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
22924 COFF) NAFLAGS='-fcoff -DCOFF';;
22925 a.out) NAFLAGS='-faout -DAOUT';;
22926 BSD-a.out) NAFLAGS='-faoutb -DAOUT';;
22927 ELF) NAFLAGS='-felf -DELF';;
22928 ELF64) NAFLAGS='-felf64 -DELF -D__x86_64__';;
22929 RDF) NAFLAGS='-frdf -DRDF';;
22930 Mach-O) NAFLAGS='-fmacho -DMACHO';;
22931 Mach-O64) NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
22933 echo "$as_me:$LINENO: result: $NAFLAGS" >&5
22934 echo "${ECHO_T}$NAFLAGS" >&6
22937 echo "$as_me:$LINENO: checking whether the assembler ($NASM $NAFLAGS) works" >&5
22938 echo $ECHO_N "checking whether the assembler ($NASM $NAFLAGS) works... $ECHO_C" >&6
22939 cat > conftest.asm <<EOF
22940 %line 22940 "configure"
22947 try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
22948 if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
22949 (eval $try_nasm) 2>&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } && test -s conftest.o; then
22953 echo "$as_me:$LINENO: result: yes" >&5
22954 echo "${ECHO_T}yes" >&6
22956 echo "configure: failed program was:" >&5
22957 cat conftest.asm >&5
22959 echo "$as_me:$LINENO: result: no" >&5
22960 echo "${ECHO_T}no" >&6
22961 { { echo "$as_me:$LINENO: error: installation or configuration problem: assembler cannot create object files." >&5
22962 echo "$as_me: error: installation or configuration problem: assembler cannot create object files." >&2;}
22963 { (exit 1); exit 1; }; }
22966 echo "$as_me:$LINENO: checking whether the linker accepts assembler output" >&5
22967 echo $ECHO_N "checking whether the linker accepts assembler output... $ECHO_C" >&6
22968 try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
22969 if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
22970 (eval $try_nasm) 2>&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } && test -s conftest${ac_exeext}; then
22975 echo "$as_me:$LINENO: result: yes" >&5
22976 echo "${ECHO_T}yes" >&6
22979 echo "$as_me:$LINENO: result: no" >&5
22980 echo "${ECHO_T}no" >&6
22981 { { echo "$as_me:$LINENO: error: configuration problem: maybe object file format mismatch." >&5
22982 echo "$as_me: error: configuration problem: maybe object file format mismatch." >&2;}
22983 { (exit 1); exit 1; }; }
22990 echo "$as_me:$LINENO: result: yes (i386)" >&5
22991 echo "${ECHO_T}yes (i386)" >&6
22994 for ac_prog in nasm nasmw yasm
22996 # Extract the first word of "$ac_prog", so it can be a program name with args.
22997 set dummy $ac_prog; ac_word=$2
22998 echo "$as_me:$LINENO: checking for $ac_word" >&5
22999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23000 if test "${ac_cv_prog_NASM+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23003 if test -n "$NASM"; then
23004 ac_cv_prog_NASM="$NASM" # Let the user override the test.
23006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23007 for as_dir in $PATH
23010 test -z "$as_dir" && as_dir=.
23011 for ac_exec_ext in '' $ac_executable_extensions; do
23012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23013 ac_cv_prog_NASM="$ac_prog"
23014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23022 NASM=$ac_cv_prog_NASM
23023 if test -n "$NASM"; then
23024 echo "$as_me:$LINENO: result: $NASM" >&5
23025 echo "${ECHO_T}$NASM" >&6
23027 echo "$as_me:$LINENO: result: no" >&5
23028 echo "${ECHO_T}no" >&6
23031 test -n "$NASM" && break
23034 test -z "$NASM" && { { echo "$as_me:$LINENO: error: no nasm (Netwide Assembler) found" >&5
23035 echo "$as_me: error: no nasm (Netwide Assembler) found" >&2;}
23036 { (exit 1); exit 1; }; }
23038 echo "$as_me:$LINENO: checking for object file format of host system" >&5
23039 echo $ECHO_N "checking for object file format of host system... $ECHO_C" >&6
23041 cygwin* | mingw* | pw32* | interix*)
23042 case "$host_cpu" in
23044 objfmt='Win64-COFF'
23047 objfmt='Win32-COFF'
23051 msdosdjgpp* | go32*)
23054 os2-emx*) # not tested
23055 objfmt='MSOMF' # obj
23057 linux*coff* | linux*oldld*)
23058 objfmt='COFF' # ???
23064 case "$host_cpu" in
23073 kfreebsd* | freebsd* | netbsd* | openbsd*)
23074 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
23077 case "$host_cpu" in
23087 solaris* | sunos* | sysv* | sco*)
23088 case "$host_cpu" in
23097 darwin* | rhapsody* | nextstep* | openstep* | macos*)
23098 case "$host_cpu" in
23112 echo "$as_me:$LINENO: result: $objfmt" >&5
23113 echo "${ECHO_T}$objfmt" >&6
23114 if test "$objfmt" = 'ELF ?'; then
23116 { echo "$as_me:$LINENO: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
23117 echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
23120 echo "$as_me:$LINENO: checking for object file format specifier (NAFLAGS) " >&5
23121 echo $ECHO_N "checking for object file format specifier (NAFLAGS) ... $ECHO_C" >&6
23123 MSOMF) NAFLAGS='-fobj -DOBJ32';;
23124 Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
23125 Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
23126 COFF) NAFLAGS='-fcoff -DCOFF';;
23127 a.out) NAFLAGS='-faout -DAOUT';;
23128 BSD-a.out) NAFLAGS='-faoutb -DAOUT';;
23129 ELF) NAFLAGS='-felf -DELF';;
23130 ELF64) NAFLAGS='-felf64 -DELF -D__x86_64__';;
23131 RDF) NAFLAGS='-frdf -DRDF';;
23132 Mach-O) NAFLAGS='-fmacho -DMACHO';;
23133 Mach-O64) NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
23135 echo "$as_me:$LINENO: result: $NAFLAGS" >&5
23136 echo "${ECHO_T}$NAFLAGS" >&6
23139 echo "$as_me:$LINENO: checking whether the assembler ($NASM $NAFLAGS) works" >&5
23140 echo $ECHO_N "checking whether the assembler ($NASM $NAFLAGS) works... $ECHO_C" >&6
23141 cat > conftest.asm <<EOF
23142 %line 23142 "configure"
23149 try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
23150 if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
23151 (eval $try_nasm) 2>&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && test -s conftest.o; then
23155 echo "$as_me:$LINENO: result: yes" >&5
23156 echo "${ECHO_T}yes" >&6
23158 echo "configure: failed program was:" >&5
23159 cat conftest.asm >&5
23161 echo "$as_me:$LINENO: result: no" >&5
23162 echo "${ECHO_T}no" >&6
23163 { { echo "$as_me:$LINENO: error: installation or configuration problem: assembler cannot create object files." >&5
23164 echo "$as_me: error: installation or configuration problem: assembler cannot create object files." >&2;}
23165 { (exit 1); exit 1; }; }
23168 echo "$as_me:$LINENO: checking whether the linker accepts assembler output" >&5
23169 echo $ECHO_N "checking whether the linker accepts assembler output... $ECHO_C" >&6
23170 try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
23171 if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
23172 (eval $try_nasm) 2>&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); } && test -s conftest${ac_exeext}; then
23177 echo "$as_me:$LINENO: result: yes" >&5
23178 echo "${ECHO_T}yes" >&6
23181 echo "$as_me:$LINENO: result: no" >&5
23182 echo "${ECHO_T}no" >&6
23183 { { echo "$as_me:$LINENO: error: configuration problem: maybe object file format mismatch." >&5
23184 echo "$as_me: error: configuration problem: maybe object file format mismatch." >&2;}
23185 { (exit 1); exit 1; }; }
23192 echo "$as_me:$LINENO: result: yes (arm)" >&5
23193 echo "${ECHO_T}yes (arm)" >&6
23194 echo "$as_me:$LINENO: checking if the assembler is GNU-compatible and can be used" >&5
23195 echo $ECHO_N "checking if the assembler is GNU-compatible and can be used... $ECHO_C" >&6
23197 ac_good_gnu_arm_assembler=no
23199 ac_save_CFLAGS="$CFLAGS"
23200 CFLAGS="$CCASFLAGS -x assembler-with-cpp"
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23217 rm -f conftest.$ac_objext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23219 (eval $ac_compile) 2>conftest.er1
23221 grep -v '^ *+' conftest.er1 >conftest.err
23223 cat conftest.err >&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); } &&
23226 { ac_try='test -z "$ac_c_werror_flag"
23227 || test ! -s conftest.err'
23228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229 (eval $ac_try) 2>&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); }; } &&
23233 { ac_try='test -s conftest.$ac_objext'
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; }; then
23239 ac_good_gnu_arm_assembler=yes
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23247 ac_use_gas_preprocessor=no
23248 if test "x$ac_good_gnu_arm_assembler" = "xno" ; then
23249 CC="gas-preprocessor.pl $CCAS"
23250 cat >conftest.$ac_ext <<_ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23265 rm -f conftest.$ac_objext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23267 (eval $ac_compile) 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -z "$ac_c_werror_flag"
23275 || test ! -s conftest.err'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest.$ac_objext'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_use_gas_preprocessor=yes
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23295 CFLAGS="$ac_save_CFLAGS"
23298 if test "x$ac_use_gas_preprocessor" = "xyes" ; then
23299 CCAS="gas-preprocessor.pl $CCAS"
23301 ac_good_gnu_arm_assembler=yes
23304 if test "x$ac_good_gnu_arm_assembler" = "xyes" ; then
23305 echo "$as_me:$LINENO: result: yes" >&5
23306 echo "${ECHO_T}yes" >&6
23309 echo "$as_me:$LINENO: result: no" >&5
23310 echo "${ECHO_T}no" >&6
23314 if test "x${with_simd}" = "xno"; then
23315 if test "x${require_simd}" = "xyes"; then
23316 { { echo "$as_me:$LINENO: error: SIMD support can't be enabled." >&5
23317 echo "$as_me: error: SIMD support can't be enabled." >&2;}
23318 { (exit 1); exit 1; }; }
23320 { echo "$as_me:$LINENO: WARNING: SIMD support can't be enabled. Performance will suffer." >&5
23321 echo "$as_me: WARNING: SIMD support can't be enabled. Performance will suffer." >&2;}
23326 echo "$as_me:$LINENO: result: no (\"$host_cpu\")" >&5
23327 echo "${ECHO_T}no (\"$host_cpu\")" >&6
23329 if test "x${require_simd}" = "xyes"; then
23330 { { echo "$as_me:$LINENO: error: SIMD support not available for this CPU." >&5
23331 echo "$as_me: error: SIMD support not available for this CPU." >&2;}
23332 { (exit 1); exit 1; }; }
23334 { echo "$as_me:$LINENO: WARNING: SIMD support not available for this CPU. Performance will suffer." >&5
23335 echo "$as_me: WARNING: SIMD support not available for this CPU. Performance will suffer." >&2;}
23340 if test "x${with_simd}" != "xno"; then
23342 cat >>confdefs.h <<\_ACEOF
23343 #define WITH_SIMD 1
23348 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-simd"
23353 if test "x$with_simd" != "xno"; then
23355 WITH_SIMD_FALSE='#'
23363 if test "x$simd_arch" = "xx86_64" -o "x$simd_arch" = "xi386"; then
23364 WITH_SSE_FLOAT_DCT_TRUE=
23365 WITH_SSE_FLOAT_DCT_FALSE='#'
23367 WITH_SSE_FLOAT_DCT_TRUE='#'
23368 WITH_SSE_FLOAT_DCT_FALSE=
23373 if test "x$simd_arch" = "xi386"; then
23375 SIMD_I386_FALSE='#'
23383 if test "x$simd_arch" = "xx86_64"; then
23385 SIMD_X86_64_FALSE='#'
23387 SIMD_X86_64_TRUE='#'
23393 if test "x$simd_arch" = "xarm"; then
23403 if test "x$host_cpu" = "xx86_64" -o "x$host_cpu" = "xamd64"; then
23413 if test "x$with_turbojpeg" != "xno"; then
23414 WITH_TURBOJPEG_TRUE=
23415 WITH_TURBOJPEG_FALSE='#'
23417 WITH_TURBOJPEG_TRUE='#'
23418 WITH_TURBOJPEG_FALSE=
23423 if test "x$PKGNAME" = "x"; then
23424 PKGNAME=$PACKAGE_NAME
23428 case "$host_cpu" in
23444 cat >>confdefs.h <<_ACEOF
23445 #define BUILD "$BUILD"
23449 # jconfig.h is the file we use, but we have another before that to
23450 # fool autoheader. the reason is that we include this header in our
23451 # API headers, which can screw things up for users of the lib.
23452 # jconfig.h is a minimal version that allows this package to be built
23453 ac_config_headers="$ac_config_headers config.h"
23455 ac_config_headers="$ac_config_headers jconfig.h"
23457 ac_config_files="$ac_config_files pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in"
23459 ac_config_files="$ac_config_files pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in"
23461 ac_config_files="$ac_config_files pkgscripts/makedpkg.tmpl:release/makedpkg.in"
23463 ac_config_files="$ac_config_files pkgscripts/makemacpkg.tmpl:release/makemacpkg.in"
23465 ac_config_files="$ac_config_files pkgscripts/Description.plist:release/Description.plist.in"
23467 ac_config_files="$ac_config_files pkgscripts/Info.plist:release/Info.plist.in"
23469 ac_config_files="$ac_config_files pkgscripts/uninstall.tmpl:release/uninstall.in"
23471 if test "x$with_turbojpeg" != "xno"; then
23472 ac_config_files="$ac_config_files tjbenchtest"
23475 if test "x$with_java" = "xyes"; then
23476 ac_config_files="$ac_config_files tjbenchtest.java"
23478 ac_config_files="$ac_config_files tjexampletest"
23481 ac_config_files="$ac_config_files libjpeg.map"
23483 ac_config_files="$ac_config_files Makefile simd/Makefile"
23485 ac_config_files="$ac_config_files java/Makefile"
23487 ac_config_files="$ac_config_files md5/Makefile"
23489 cat >confcache <<\_ACEOF
23490 # This file is a shell script that caches the results of configure
23491 # tests run on this system so they can be shared between configure
23492 # scripts and configure runs, see configure's option --config-cache.
23493 # It is not useful on other systems. If it contains results you don't
23494 # want to keep, you may remove or edit it.
23496 # config.status only pays attention to the cache file if you give it
23497 # the --recheck option to rerun configure.
23499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23501 # following values.
23505 # The following way of writing the cache mishandles newlines in values,
23506 # but we know of no workaround that is simple, portable, and efficient.
23507 # So, don't put newlines in cache variables' values.
23508 # Ultrix sh set writes to stderr and can't be redirected directly,
23509 # and sets the high bit in the cache file unless we assign to the vars.
23512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23514 # `set' does not quote correctly, so add quotes (double-quote
23515 # substitution turns \\\\ into \\, and sed turns \\ into \).
23518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23521 # `set' quotes correctly as required by POSIX, so do not add quotes.
23523 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23532 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23534 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23535 if test -w $cache_file; then
23536 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23537 cat confcache >$cache_file
23539 echo "not updating unwritable cache $cache_file"
23544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23545 # Let make expand exec_prefix.
23546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23550 # trailing colons and then remove the whole line if VPATH becomes empty
23551 # (actually we leave an empty line to preserve line numbers).
23552 if test "x$srcdir" = x.; then
23553 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23554 s/:*\$(srcdir):*/:/;
23555 s/:*\${srcdir}:*/:/;
23557 s/^\([^=]*=[ ]*\):*/\1/;
23563 DEFS=-DHAVE_CONFIG_H
23567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23568 # 1. Remove the extension, and $U if already installed.
23569 ac_i=`echo "$ac_i" |
23570 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23572 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23573 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23575 LIBOBJS=$ac_libobjs
23577 LTLIBOBJS=$ac_ltlibobjs
23580 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23581 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23582 Usually this means the macro was only invoked conditionally." >&5
23583 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23584 Usually this means the macro was only invoked conditionally." >&2;}
23585 { (exit 1); exit 1; }; }
23587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23588 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23589 Usually this means the macro was only invoked conditionally." >&5
23590 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23591 Usually this means the macro was only invoked conditionally." >&2;}
23592 { (exit 1); exit 1; }; }
23594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23595 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23596 Usually this means the macro was only invoked conditionally." >&5
23597 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23598 Usually this means the macro was only invoked conditionally." >&2;}
23599 { (exit 1); exit 1; }; }
23601 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23602 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23603 Usually this means the macro was only invoked conditionally." >&5
23604 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23605 Usually this means the macro was only invoked conditionally." >&2;}
23606 { (exit 1); exit 1; }; }
23608 if test -z "${VERSION_SCRIPT_TRUE}" && test -z "${VERSION_SCRIPT_FALSE}"; then
23609 { { echo "$as_me:$LINENO: error: conditional \"VERSION_SCRIPT\" was never defined.
23610 Usually this means the macro was only invoked conditionally." >&5
23611 echo "$as_me: error: conditional \"VERSION_SCRIPT\" was never defined.
23612 Usually this means the macro was only invoked conditionally." >&2;}
23613 { (exit 1); exit 1; }; }
23615 if test -z "${WITH_ARITH_ENC_TRUE}" && test -z "${WITH_ARITH_ENC_FALSE}"; then
23616 { { echo "$as_me:$LINENO: error: conditional \"WITH_ARITH_ENC\" was never defined.
23617 Usually this means the macro was only invoked conditionally." >&5
23618 echo "$as_me: error: conditional \"WITH_ARITH_ENC\" was never defined.
23619 Usually this means the macro was only invoked conditionally." >&2;}
23620 { (exit 1); exit 1; }; }
23622 if test -z "${WITH_ARITH_DEC_TRUE}" && test -z "${WITH_ARITH_DEC_FALSE}"; then
23623 { { echo "$as_me:$LINENO: error: conditional \"WITH_ARITH_DEC\" was never defined.
23624 Usually this means the macro was only invoked conditionally." >&5
23625 echo "$as_me: error: conditional \"WITH_ARITH_DEC\" was never defined.
23626 Usually this means the macro was only invoked conditionally." >&2;}
23627 { (exit 1); exit 1; }; }
23629 if test -z "${WITH_ARITH_TRUE}" && test -z "${WITH_ARITH_FALSE}"; then
23630 { { echo "$as_me:$LINENO: error: conditional \"WITH_ARITH\" was never defined.
23631 Usually this means the macro was only invoked conditionally." >&5
23632 echo "$as_me: error: conditional \"WITH_ARITH\" was never defined.
23633 Usually this means the macro was only invoked conditionally." >&2;}
23634 { (exit 1); exit 1; }; }
23636 if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
23637 { { echo "$as_me:$LINENO: error: conditional \"WITH_JAVA\" was never defined.
23638 Usually this means the macro was only invoked conditionally." >&5
23639 echo "$as_me: error: conditional \"WITH_JAVA\" was never defined.
23640 Usually this means the macro was only invoked conditionally." >&2;}
23641 { (exit 1); exit 1; }; }
23643 if test -z "${WITH_SIMD_TRUE}" && test -z "${WITH_SIMD_FALSE}"; then
23644 { { echo "$as_me:$LINENO: error: conditional \"WITH_SIMD\" was never defined.
23645 Usually this means the macro was only invoked conditionally." >&5
23646 echo "$as_me: error: conditional \"WITH_SIMD\" was never defined.
23647 Usually this means the macro was only invoked conditionally." >&2;}
23648 { (exit 1); exit 1; }; }
23650 if test -z "${WITH_SSE_FLOAT_DCT_TRUE}" && test -z "${WITH_SSE_FLOAT_DCT_FALSE}"; then
23651 { { echo "$as_me:$LINENO: error: conditional \"WITH_SSE_FLOAT_DCT\" was never defined.
23652 Usually this means the macro was only invoked conditionally." >&5
23653 echo "$as_me: error: conditional \"WITH_SSE_FLOAT_DCT\" was never defined.
23654 Usually this means the macro was only invoked conditionally." >&2;}
23655 { (exit 1); exit 1; }; }
23657 if test -z "${SIMD_I386_TRUE}" && test -z "${SIMD_I386_FALSE}"; then
23658 { { echo "$as_me:$LINENO: error: conditional \"SIMD_I386\" was never defined.
23659 Usually this means the macro was only invoked conditionally." >&5
23660 echo "$as_me: error: conditional \"SIMD_I386\" was never defined.
23661 Usually this means the macro was only invoked conditionally." >&2;}
23662 { (exit 1); exit 1; }; }
23664 if test -z "${SIMD_X86_64_TRUE}" && test -z "${SIMD_X86_64_FALSE}"; then
23665 { { echo "$as_me:$LINENO: error: conditional \"SIMD_X86_64\" was never defined.
23666 Usually this means the macro was only invoked conditionally." >&5
23667 echo "$as_me: error: conditional \"SIMD_X86_64\" was never defined.
23668 Usually this means the macro was only invoked conditionally." >&2;}
23669 { (exit 1); exit 1; }; }
23671 if test -z "${SIMD_ARM_TRUE}" && test -z "${SIMD_ARM_FALSE}"; then
23672 { { echo "$as_me:$LINENO: error: conditional \"SIMD_ARM\" was never defined.
23673 Usually this means the macro was only invoked conditionally." >&5
23674 echo "$as_me: error: conditional \"SIMD_ARM\" was never defined.
23675 Usually this means the macro was only invoked conditionally." >&2;}
23676 { (exit 1); exit 1; }; }
23678 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
23679 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
23680 Usually this means the macro was only invoked conditionally." >&5
23681 echo "$as_me: error: conditional \"X86_64\" was never defined.
23682 Usually this means the macro was only invoked conditionally." >&2;}
23683 { (exit 1); exit 1; }; }
23685 if test -z "${WITH_TURBOJPEG_TRUE}" && test -z "${WITH_TURBOJPEG_FALSE}"; then
23686 { { echo "$as_me:$LINENO: error: conditional \"WITH_TURBOJPEG\" was never defined.
23687 Usually this means the macro was only invoked conditionally." >&5
23688 echo "$as_me: error: conditional \"WITH_TURBOJPEG\" was never defined.
23689 Usually this means the macro was only invoked conditionally." >&2;}
23690 { (exit 1); exit 1; }; }
23693 : ${CONFIG_STATUS=./config.status}
23694 ac_clean_files_save=$ac_clean_files
23695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23696 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23697 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23698 cat >$CONFIG_STATUS <<_ACEOF
23700 # Generated by $as_me.
23701 # Run this file to recreate the current configuration.
23702 # Compiler output produced by configure, useful for debugging
23703 # configure, is in config.log if it exists.
23706 ac_cs_recheck=false
23708 SHELL=\${CONFIG_SHELL-$SHELL}
23711 cat >>$CONFIG_STATUS <<\_ACEOF
23712 ## --------------------- ##
23713 ## M4sh Initialization. ##
23714 ## --------------------- ##
23716 # Be Bourne compatible
23717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23720 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23721 # is contrary to our usage. Disable this feature.
23722 alias -g '${1+"$@"}'='"$@"'
23723 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23726 DUALCASE=1; export DUALCASE # for MKS sh
23728 # Support unset when possible.
23729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23736 # Work around bugs in pre-3.0 UWIN ksh.
23737 $as_unset ENV MAIL MAILPATH
23744 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23745 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23746 LC_TELEPHONE LC_TIME
23748 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23749 eval $as_var=C; export $as_var
23755 # Required to use basename.
23756 if expr a : '\(a\)' >/dev/null 2>&1; then
23762 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23763 as_basename=basename
23769 # Name of the executable.
23770 as_me=`$as_basename "$0" ||
23771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23772 X"$0" : 'X\(//\)$' \| \
23773 X"$0" : 'X\(/\)$' \| \
23774 . : '\(.\)' 2>/dev/null ||
23776 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23777 /^X\/\(\/\/\)$/{ s//\1/; q; }
23778 /^X\/\(\/\).*/{ s//\1/; q; }
23782 # PATH needs CR, and LINENO needs CR and PATH.
23783 # Avoid depending upon Character Ranges.
23784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23787 as_cr_digits='0123456789'
23788 as_cr_alnum=$as_cr_Letters$as_cr_digits
23790 # The user is always right.
23791 if test "${PATH_SEPARATOR+set}" != set; then
23792 echo "#! /bin/sh" >conf$$.sh
23793 echo "exit 0" >>conf$$.sh
23795 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23804 as_lineno_1=$LINENO
23805 as_lineno_2=$LINENO
23806 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23807 test "x$as_lineno_1" != "x$as_lineno_2" &&
23808 test "x$as_lineno_3" = "x$as_lineno_2" || {
23809 # Find who we are. Look in the path if we contain no path at all
23812 *[\\/]* ) as_myself=$0 ;;
23813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23814 for as_dir in $PATH
23817 test -z "$as_dir" && as_dir=.
23818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23823 # We did not find ourselves, most probably we were run as `sh COMMAND'
23824 # in which case we are not to be found in the path.
23825 if test "x$as_myself" = x; then
23828 if test ! -f "$as_myself"; then
23829 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23830 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23831 { (exit 1); exit 1; }; }
23833 case $CONFIG_SHELL in
23835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23836 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23839 test -z "$as_dir" && as_dir=.
23840 for as_base in sh bash ksh sh5; do
23843 if ("$as_dir/$as_base" -c '
23844 as_lineno_1=$LINENO
23845 as_lineno_2=$LINENO
23846 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23847 test "x$as_lineno_1" != "x$as_lineno_2" &&
23848 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23849 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23850 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23851 CONFIG_SHELL=$as_dir/$as_base
23852 export CONFIG_SHELL
23853 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23861 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23862 # uniformly replaced by the line number. The first 'sed' inserts a
23863 # line-number line before each line; the second 'sed' does the real
23864 # work. The second script uses 'N' to pair each line-number line
23865 # with the numbered line, and appends trailing '-' during
23866 # substitution so that $LINENO is not a special case at line end.
23867 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23868 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23869 sed '=' <$as_myself |
23874 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23877 s,^['$as_cr_digits']*\n,,
23878 ' >$as_me.lineno &&
23879 chmod +x $as_me.lineno ||
23880 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23881 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23882 { (exit 1); exit 1; }; }
23884 # Don't try to exec as it changes $[0], causing all sort of problems
23885 # (the dirname of $[0] is not the place where we might find the
23886 # original and so on. Autoconf is especially sensible to this).
23888 # Exit status is that of the last command.
23893 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23894 *c*,-n*) ECHO_N= ECHO_C='
23896 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23897 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23900 if expr a : '\(a\)' >/dev/null 2>&1; then
23906 rm -f conf$$ conf$$.exe conf$$.file
23908 if ln -s conf$$.file conf$$ 2>/dev/null; then
23909 # We could just check for DJGPP; but this test a) works b) is more generic
23910 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23911 if test -f conf$$.exe; then
23912 # Don't use ln at all; we don't have any links
23917 elif ln conf$$.file conf$$ 2>/dev/null; then
23922 rm -f conf$$ conf$$.exe conf$$.file
23924 if mkdir -p . 2>/dev/null; then
23927 test -d ./-p && rmdir ./-p
23931 as_executable_p="test -f"
23933 # Sed expression to map a string onto a valid CPP name.
23934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23936 # Sed expression to map a string onto a valid variable name.
23937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23941 # We need space, tab and new line, in precisely that order.
23951 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23952 # report actual input values of CONFIG_FILES etc. instead of their
23953 # values after options handling. Logging --version etc. is OK.
23957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23958 ## Running $as_me. ##
23963 This file was extended by libjpeg-turbo $as_me 1.3.1, which was
23964 generated by GNU Autoconf 2.59. Invocation command line was
23966 CONFIG_FILES = $CONFIG_FILES
23967 CONFIG_HEADERS = $CONFIG_HEADERS
23968 CONFIG_LINKS = $CONFIG_LINKS
23969 CONFIG_COMMANDS = $CONFIG_COMMANDS
23973 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23977 # Files that config.status was made for.
23978 if test -n "$ac_config_files"; then
23979 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23982 if test -n "$ac_config_headers"; then
23983 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23986 if test -n "$ac_config_links"; then
23987 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23990 if test -n "$ac_config_commands"; then
23991 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23994 cat >>$CONFIG_STATUS <<\_ACEOF
23997 \`$as_me' instantiates files from templates according to the
23998 current configuration.
24000 Usage: $0 [OPTIONS] [FILE]...
24002 -h, --help print this help, then exit
24003 -V, --version print version number, then exit
24004 -q, --quiet do not print progress messages
24005 -d, --debug don't remove temporary files
24006 --recheck update $as_me by reconfiguring in the same conditions
24007 --file=FILE[:TEMPLATE]
24008 instantiate the configuration file FILE
24009 --header=FILE[:TEMPLATE]
24010 instantiate the configuration header FILE
24012 Configuration files:
24015 Configuration headers:
24018 Configuration commands:
24021 Report bugs to <bug-autoconf@gnu.org>."
24024 cat >>$CONFIG_STATUS <<_ACEOF
24026 libjpeg-turbo config.status 1.3.1
24027 configured by $0, generated by GNU Autoconf 2.59,
24028 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24030 Copyright (C) 2003 Free Software Foundation, Inc.
24031 This config.status script is free software; the Free Software Foundation
24032 gives unlimited permission to copy, distribute and modify it."
24037 cat >>$CONFIG_STATUS <<\_ACEOF
24038 # If no file are specified by the user, then we need to provide default
24039 # value. By we need to know if files were specified by the user.
24045 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24046 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24054 *) # This is not an option, so the user has probably given explicit
24057 ac_need_defaults=false;;
24061 # Handling of the options.
24063 cat >>$CONFIG_STATUS <<\_ACEOF
24064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24066 --version | --vers* | -V )
24067 echo "$ac_cs_version"; exit 0 ;;
24069 # Conflict between --help and --header
24070 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24071 Try \`$0 --help' for more information." >&5
24072 echo "$as_me: error: ambiguous option: $1
24073 Try \`$0 --help' for more information." >&2;}
24074 { (exit 1); exit 1; }; };;
24075 --help | --hel | -h )
24076 echo "$ac_cs_usage"; exit 0 ;;
24077 --debug | --d* | -d )
24079 --file | --fil | --fi | --f )
24081 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24082 ac_need_defaults=false;;
24083 --header | --heade | --head | --hea )
24085 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24086 ac_need_defaults=false;;
24087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24088 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24091 # This is an error.
24092 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24093 Try \`$0 --help' for more information." >&5
24094 echo "$as_me: error: unrecognized option: $1
24095 Try \`$0 --help' for more information." >&2;}
24096 { (exit 1); exit 1; }; } ;;
24098 *) ac_config_targets="$ac_config_targets $1" ;;
24104 ac_configure_extra_args=
24106 if $ac_cs_silent; then
24108 ac_configure_extra_args="$ac_configure_extra_args --silent"
24112 cat >>$CONFIG_STATUS <<_ACEOF
24113 if \$ac_cs_recheck; then
24114 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24115 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24120 cat >>$CONFIG_STATUS <<_ACEOF
24122 # INIT-COMMANDS section.
24125 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24131 cat >>$CONFIG_STATUS <<\_ACEOF
24132 for ac_config_target in $ac_config_targets
24134 case "$ac_config_target" in
24135 # Handling of arguments.
24136 "pkgscripts/libjpeg-turbo.spec.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in" ;;
24137 "pkgscripts/makecygwinpkg.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in" ;;
24138 "pkgscripts/makedpkg.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/makedpkg.tmpl:release/makedpkg.in" ;;
24139 "pkgscripts/makemacpkg.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/makemacpkg.tmpl:release/makemacpkg.in" ;;
24140 "pkgscripts/Description.plist" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/Description.plist:release/Description.plist.in" ;;
24141 "pkgscripts/Info.plist" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/Info.plist:release/Info.plist.in" ;;
24142 "pkgscripts/uninstall.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/uninstall.tmpl:release/uninstall.in" ;;
24143 "tjbenchtest" ) CONFIG_FILES="$CONFIG_FILES tjbenchtest" ;;
24144 "tjbenchtest.java" ) CONFIG_FILES="$CONFIG_FILES tjbenchtest.java" ;;
24145 "tjexampletest" ) CONFIG_FILES="$CONFIG_FILES tjexampletest" ;;
24146 "libjpeg.map" ) CONFIG_FILES="$CONFIG_FILES libjpeg.map" ;;
24147 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24148 "simd/Makefile" ) CONFIG_FILES="$CONFIG_FILES simd/Makefile" ;;
24149 "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
24150 "md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
24151 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24152 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24153 "jconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h" ;;
24154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24155 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24156 { (exit 1); exit 1; }; };;
24160 # If the user did not use the arguments to specify the items to instantiate,
24161 # then the envvar interface is used. Set only those that are not.
24162 # We use the long form for the default assignment because of an extremely
24163 # bizarre bug on SunOS 4.1.3.
24164 if $ac_need_defaults; then
24165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24170 # Have a temporary directory for convenience. Make it in the build tree
24171 # simply because there is no reason to put it here, and in addition,
24172 # creating and moving files from /tmp can sometimes cause problems.
24173 # Create a temporary directory, and hook for its removal unless debugging.
24176 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24177 trap '{ (exit 1); exit 1; }' 1 2 13 15
24180 # Create a (secure) tmp directory for tmp files.
24183 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24184 test -n "$tmp" && test -d "$tmp"
24187 tmp=./confstat$$-$RANDOM
24188 (umask 077 && mkdir $tmp)
24191 echo "$me: cannot create a temporary directory in ." >&2
24192 { (exit 1); exit 1; }
24197 cat >>$CONFIG_STATUS <<_ACEOF
24200 # CONFIG_FILES section.
24203 # No need to generate the scripts if there are no CONFIG_FILES.
24204 # This happens for instance when ./config.status config.h
24205 if test -n "\$CONFIG_FILES"; then
24206 # Protect against being on the right side of a sed subst in config.status.
24207 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24208 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24209 s,@SHELL@,$SHELL,;t t
24210 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24211 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24212 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24213 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24214 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24215 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24216 s,@exec_prefix@,$exec_prefix,;t t
24217 s,@prefix@,$prefix,;t t
24218 s,@program_transform_name@,$program_transform_name,;t t
24219 s,@bindir@,$bindir,;t t
24220 s,@sbindir@,$sbindir,;t t
24221 s,@libexecdir@,$libexecdir,;t t
24222 s,@datadir@,$datadir,;t t
24223 s,@sysconfdir@,$sysconfdir,;t t
24224 s,@sharedstatedir@,$sharedstatedir,;t t
24225 s,@localstatedir@,$localstatedir,;t t
24226 s,@libdir@,$libdir,;t t
24227 s,@includedir@,$includedir,;t t
24228 s,@oldincludedir@,$oldincludedir,;t t
24229 s,@infodir@,$infodir,;t t
24230 s,@mandir@,$mandir,;t t
24231 s,@build_alias@,$build_alias,;t t
24232 s,@host_alias@,$host_alias,;t t
24233 s,@target_alias@,$target_alias,;t t
24234 s,@DEFS@,$DEFS,;t t
24235 s,@ECHO_C@,$ECHO_C,;t t
24236 s,@ECHO_N@,$ECHO_N,;t t
24237 s,@ECHO_T@,$ECHO_T,;t t
24238 s,@LIBS@,$LIBS,;t t
24239 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24240 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24241 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24242 s,@CYGPATH_W@,$CYGPATH_W,;t t
24243 s,@PACKAGE@,$PACKAGE,;t t
24244 s,@VERSION@,$VERSION,;t t
24245 s,@ACLOCAL@,$ACLOCAL,;t t
24246 s,@AUTOCONF@,$AUTOCONF,;t t
24247 s,@AUTOMAKE@,$AUTOMAKE,;t t
24248 s,@AUTOHEADER@,$AUTOHEADER,;t t
24249 s,@MAKEINFO@,$MAKEINFO,;t t
24250 s,@install_sh@,$install_sh,;t t
24251 s,@STRIP@,$STRIP,;t t
24252 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24253 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24254 s,@mkdir_p@,$mkdir_p,;t t
24256 s,@SET_MAKE@,$SET_MAKE,;t t
24257 s,@am__leading_dot@,$am__leading_dot,;t t
24258 s,@AMTAR@,$AMTAR,;t t
24259 s,@am__tar@,$am__tar,;t t
24260 s,@am__untar@,$am__untar,;t t
24262 s,@CFLAGS@,$CFLAGS,;t t
24263 s,@LDFLAGS@,$LDFLAGS,;t t
24264 s,@CPPFLAGS@,$CPPFLAGS,;t t
24265 s,@ac_ct_CC@,$ac_ct_CC,;t t
24266 s,@EXEEXT@,$EXEEXT,;t t
24267 s,@OBJEXT@,$OBJEXT,;t t
24268 s,@DEPDIR@,$DEPDIR,;t t
24269 s,@am__include@,$am__include,;t t
24270 s,@am__quote@,$am__quote,;t t
24271 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24272 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24273 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24274 s,@CCDEPMODE@,$CCDEPMODE,;t t
24275 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24276 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24278 s,@CCAS@,$CCAS,;t t
24279 s,@CCASFLAGS@,$CCASFLAGS,;t t
24280 s,@build@,$build,;t t
24281 s,@build_cpu@,$build_cpu,;t t
24282 s,@build_vendor@,$build_vendor,;t t
24283 s,@build_os@,$build_os,;t t
24284 s,@host@,$host,;t t
24285 s,@host_cpu@,$host_cpu,;t t
24286 s,@host_vendor@,$host_vendor,;t t
24287 s,@host_os@,$host_os,;t t
24288 s,@EGREP@,$EGREP,;t t
24289 s,@LN_S@,$LN_S,;t t
24290 s,@ECHO@,$ECHO,;t t
24292 s,@ac_ct_AR@,$ac_ct_AR,;t t
24293 s,@RANLIB@,$RANLIB,;t t
24294 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24296 s,@CXXFLAGS@,$CXXFLAGS,;t t
24297 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24298 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24299 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24300 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24301 s,@CXXCPP@,$CXXCPP,;t t
24303 s,@FFLAGS@,$FFLAGS,;t t
24304 s,@ac_ct_F77@,$ac_ct_F77,;t t
24305 s,@LIBTOOL@,$LIBTOOL,;t t
24306 s,@JPEG_LIB_VERSION@,$JPEG_LIB_VERSION,;t t
24307 s,@JPEG_LIB_VERSION_DECIMAL@,$JPEG_LIB_VERSION_DECIMAL,;t t
24308 s,@SO_MAJOR_VERSION@,$SO_MAJOR_VERSION,;t t
24309 s,@SO_MINOR_VERSION@,$SO_MINOR_VERSION,;t t
24310 s,@LIBTOOL_CURRENT@,$LIBTOOL_CURRENT,;t t
24311 s,@SO_AGE@,$SO_AGE,;t t
24312 s,@MEM_SRCDST_FUNCTIONS@,$MEM_SRCDST_FUNCTIONS,;t t
24313 s,@VERSION_SCRIPT_TRUE@,$VERSION_SCRIPT_TRUE,;t t
24314 s,@VERSION_SCRIPT_FALSE@,$VERSION_SCRIPT_FALSE,;t t
24315 s,@VERSION_SCRIPT_FLAG@,$VERSION_SCRIPT_FLAG,;t t
24316 s,@WITH_ARITH_ENC_TRUE@,$WITH_ARITH_ENC_TRUE,;t t
24317 s,@WITH_ARITH_ENC_FALSE@,$WITH_ARITH_ENC_FALSE,;t t
24318 s,@WITH_ARITH_DEC_TRUE@,$WITH_ARITH_DEC_TRUE,;t t
24319 s,@WITH_ARITH_DEC_FALSE@,$WITH_ARITH_DEC_FALSE,;t t
24320 s,@WITH_ARITH_TRUE@,$WITH_ARITH_TRUE,;t t
24321 s,@WITH_ARITH_FALSE@,$WITH_ARITH_FALSE,;t t
24322 s,@JAVAC@,$JAVAC,;t t
24323 s,@JAVACFLAGS@,$JAVACFLAGS,;t t
24325 s,@JAVA@,$JAVA,;t t
24326 s,@JNI_CFLAGS@,$JNI_CFLAGS,;t t
24327 s,@WITH_JAVA_TRUE@,$WITH_JAVA_TRUE,;t t
24328 s,@WITH_JAVA_FALSE@,$WITH_JAVA_FALSE,;t t
24329 s,@WITH_JAVA@,$WITH_JAVA,;t t
24330 s,@JAVA_RPM_CONTENTS_1@,$JAVA_RPM_CONTENTS_1,;t t
24331 s,@JAVA_RPM_CONTENTS_2@,$JAVA_RPM_CONTENTS_2,;t t
24332 s,@NASM@,$NASM,;t t
24333 s,@NAFLAGS@,$NAFLAGS,;t t
24334 s,@WITH_SIMD_TRUE@,$WITH_SIMD_TRUE,;t t
24335 s,@WITH_SIMD_FALSE@,$WITH_SIMD_FALSE,;t t
24336 s,@WITH_SSE_FLOAT_DCT_TRUE@,$WITH_SSE_FLOAT_DCT_TRUE,;t t
24337 s,@WITH_SSE_FLOAT_DCT_FALSE@,$WITH_SSE_FLOAT_DCT_FALSE,;t t
24338 s,@SIMD_I386_TRUE@,$SIMD_I386_TRUE,;t t
24339 s,@SIMD_I386_FALSE@,$SIMD_I386_FALSE,;t t
24340 s,@SIMD_X86_64_TRUE@,$SIMD_X86_64_TRUE,;t t
24341 s,@SIMD_X86_64_FALSE@,$SIMD_X86_64_FALSE,;t t
24342 s,@SIMD_ARM_TRUE@,$SIMD_ARM_TRUE,;t t
24343 s,@SIMD_ARM_FALSE@,$SIMD_ARM_FALSE,;t t
24344 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
24345 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
24346 s,@WITH_TURBOJPEG_TRUE@,$WITH_TURBOJPEG_TRUE,;t t
24347 s,@WITH_TURBOJPEG_FALSE@,$WITH_TURBOJPEG_FALSE,;t t
24348 s,@PKGNAME@,$PKGNAME,;t t
24349 s,@RPMARCH@,$RPMARCH,;t t
24350 s,@RPM_CONFIG_ARGS@,$RPM_CONFIG_ARGS,;t t
24351 s,@DEBARCH@,$DEBARCH,;t t
24352 s,@BUILD@,$BUILD,;t t
24353 s,@LIBOBJS@,$LIBOBJS,;t t
24354 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24359 cat >>$CONFIG_STATUS <<\_ACEOF
24360 # Split the substitutions into bite-sized pieces for seds with
24361 # small command number limits, like on Digital OSF/1 and HP-UX.
24362 ac_max_sed_lines=48
24363 ac_sed_frag=1 # Number of current file.
24364 ac_beg=1 # First line for current file.
24365 ac_end=$ac_max_sed_lines # Line after last line for current file.
24368 while $ac_more_lines; do
24369 if test $ac_beg -gt 1; then
24370 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24372 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24374 if test ! -s $tmp/subs.frag; then
24375 ac_more_lines=false
24377 # The purpose of the label and of the branching condition is to
24378 # speed up the sed processing (if there are no `@' at all, there
24379 # is no need to browse any of the substitutions).
24380 # These are the two extra sed commands mentioned above.
24382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24383 if test -z "$ac_sed_cmds"; then
24384 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24386 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24388 ac_sed_frag=`expr $ac_sed_frag + 1`
24390 ac_end=`expr $ac_end + $ac_max_sed_lines`
24393 if test -z "$ac_sed_cmds"; then
24396 fi # test -n "$CONFIG_FILES"
24399 cat >>$CONFIG_STATUS <<\_ACEOF
24400 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24403 - | *:- | *:-:* ) # input from stdin
24405 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24407 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24409 * ) ac_file_in=$ac_file.in ;;
24412 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24413 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24415 X"$ac_file" : 'X\(//\)[^/]' \| \
24416 X"$ac_file" : 'X\(//\)$' \| \
24417 X"$ac_file" : 'X\(/\)' \| \
24418 . : '\(.\)' 2>/dev/null ||
24420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24422 /^X\(\/\/\)$/{ s//\1/; q; }
24423 /^X\(\/\).*/{ s//\1/; q; }
24425 { if $as_mkdir_p; then
24430 while test ! -d "$as_dir"; do
24431 as_dirs="$as_dir $as_dirs"
24432 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24434 X"$as_dir" : 'X\(//\)[^/]' \| \
24435 X"$as_dir" : 'X\(//\)$' \| \
24436 X"$as_dir" : 'X\(/\)' \| \
24437 . : '\(.\)' 2>/dev/null ||
24439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24441 /^X\(\/\/\)$/{ s//\1/; q; }
24442 /^X\(\/\).*/{ s//\1/; q; }
24445 test ! -n "$as_dirs" || mkdir $as_dirs
24446 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24447 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24448 { (exit 1); exit 1; }; }; }
24452 if test "$ac_dir" != .; then
24453 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24454 # A "../" for each directory in $ac_dir_suffix.
24455 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24457 ac_dir_suffix= ac_top_builddir=
24461 .) # No --srcdir option. We are building in place.
24463 if test -z "$ac_top_builddir"; then
24466 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24468 [\\/]* | ?:[\\/]* ) # Absolute path.
24469 ac_srcdir=$srcdir$ac_dir_suffix;
24470 ac_top_srcdir=$srcdir ;;
24471 *) # Relative path.
24472 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24473 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24476 # Do not use `cd foo && pwd` to compute absolute paths, because
24477 # the directories may not exist.
24479 .) ac_abs_builddir="$ac_dir";;
24482 .) ac_abs_builddir=`pwd`;;
24483 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24484 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24487 case $ac_abs_builddir in
24488 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24490 case ${ac_top_builddir}. in
24491 .) ac_abs_top_builddir=$ac_abs_builddir;;
24492 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24493 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24496 case $ac_abs_builddir in
24497 .) ac_abs_srcdir=$ac_srcdir;;
24500 .) ac_abs_srcdir=$ac_abs_builddir;;
24501 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24502 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24505 case $ac_abs_builddir in
24506 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24508 case $ac_top_srcdir in
24509 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24510 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24511 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24518 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24521 if test x"$ac_file" != x-; then
24522 { echo "$as_me:$LINENO: creating $ac_file" >&5
24523 echo "$as_me: creating $ac_file" >&6;}
24526 # Let's still pretend it is `configure' which instantiates (i.e., don't
24527 # use $as_me), people would be surprised to read:
24528 # /* config.h. Generated by config.status. */
24529 if test x"$ac_file" = x-; then
24532 configure_input="$ac_file. "
24534 configure_input=$configure_input"Generated from `echo $ac_file_in |
24535 sed 's,.*/,,'` by configure."
24537 # First look for the input files in the build tree, otherwise in the
24539 ac_file_inputs=`IFS=:
24540 for f in $ac_file_in; do
24542 -) echo $tmp/stdin ;;
24544 # Absolute (can't be DOS-style, as IFS=:)
24545 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24546 echo "$as_me: error: cannot find input file: $f" >&2;}
24547 { (exit 1); exit 1; }; }
24550 if test -f "$f"; then
24553 elif test -f "$srcdir/$f"; then
24558 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24559 echo "$as_me: error: cannot find input file: $f" >&2;}
24560 { (exit 1); exit 1; }; }
24563 done` || { (exit 1); exit 1; }
24565 cat >>$CONFIG_STATUS <<_ACEOF
24569 cat >>$CONFIG_STATUS <<\_ACEOF
24571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24572 s,@configure_input@,$configure_input,;t t
24573 s,@srcdir@,$ac_srcdir,;t t
24574 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24575 s,@top_srcdir@,$ac_top_srcdir,;t t
24576 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24577 s,@builddir@,$ac_builddir,;t t
24578 s,@abs_builddir@,$ac_abs_builddir,;t t
24579 s,@top_builddir@,$ac_top_builddir,;t t
24580 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24581 s,@INSTALL@,$ac_INSTALL,;t t
24582 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24584 if test x"$ac_file" != x-; then
24585 mv $tmp/out $ac_file
24593 cat >>$CONFIG_STATUS <<\_ACEOF
24596 # CONFIG_HEADER section.
24599 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24600 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24602 # ac_d sets the value in "#define NAME VALUE" lines.
24603 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24604 ac_dB='[ ].*$,\1#\2'
24607 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24608 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24609 ac_uB='$,\1#\2define\3'
24613 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24614 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24616 - | *:- | *:-:* ) # input from stdin
24618 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24620 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24622 * ) ac_file_in=$ac_file.in ;;
24625 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24626 echo "$as_me: creating $ac_file" >&6;}
24628 # First look for the input files in the build tree, otherwise in the
24630 ac_file_inputs=`IFS=:
24631 for f in $ac_file_in; do
24633 -) echo $tmp/stdin ;;
24635 # Absolute (can't be DOS-style, as IFS=:)
24636 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24637 echo "$as_me: error: cannot find input file: $f" >&2;}
24638 { (exit 1); exit 1; }; }
24639 # Do quote $f, to prevent DOS paths from being IFS'd.
24642 if test -f "$f"; then
24645 elif test -f "$srcdir/$f"; then
24650 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24651 echo "$as_me: error: cannot find input file: $f" >&2;}
24652 { (exit 1); exit 1; }; }
24655 done` || { (exit 1); exit 1; }
24656 # Remove the trailing spaces.
24657 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24661 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24662 # `conftest.undefs', that substitutes the proper values into
24663 # config.h.in to produce config.h. The first handles `#define'
24664 # templates, and the second `#undef' templates.
24665 # And first: Protect against being on the right side of a sed subst in
24666 # config.status. Protect against being in an unquoted here document
24667 # in config.status.
24668 rm -f conftest.defines conftest.undefs
24669 # Using a here document instead of a string reduces the quoting nightmare.
24670 # Putting comments in sed scripts is not portable.
24672 # `end' is used to avoid that the second main sed command (meant for
24673 # 0-ary CPP macros) applies to n-ary macro definitions.
24674 # See the Autoconf documentation for `clear'.
24675 cat >confdef2sed.sed <<\_ACEOF
24680 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24682 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24685 # If some macros were called several times there might be several times
24686 # the same #defines, which is useless. Nevertheless, we may not want to
24687 # sort them, since we want the *last* AC-DEFINE to be honored.
24688 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24689 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24690 rm -f confdef2sed.sed
24692 # This sed command replaces #undef with comments. This is necessary, for
24693 # example, in the case of _POSIX_SOURCE, which is predefined and required
24694 # on some systems where configure will not decide to define it.
24695 cat >>conftest.undefs <<\_ACEOF
24696 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24699 # Break up conftest.defines because some shells have a limit on the size
24700 # of here documents, and old seds have small limits too (100 cmds).
24701 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24702 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24703 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24704 echo ' :' >>$CONFIG_STATUS
24705 rm -f conftest.tail
24706 while grep . conftest.defines >/dev/null
24708 # Write a limited-size here document to $tmp/defines.sed.
24709 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24710 # Speed up: don't consider the non `#define' lines.
24711 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24712 # Work around the forget-to-reset-the-flag bug.
24713 echo 't clr' >>$CONFIG_STATUS
24714 echo ': clr' >>$CONFIG_STATUS
24715 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24717 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24719 mv $tmp/out $tmp/in
24721 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24722 rm -f conftest.defines
24723 mv conftest.tail conftest.defines
24725 rm -f conftest.defines
24726 echo ' fi # grep' >>$CONFIG_STATUS
24727 echo >>$CONFIG_STATUS
24729 # Break up conftest.undefs because some shells have a limit on the size
24730 # of here documents, and old seds have small limits too (100 cmds).
24731 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24732 rm -f conftest.tail
24733 while grep . conftest.undefs >/dev/null
24735 # Write a limited-size here document to $tmp/undefs.sed.
24736 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24737 # Speed up: don't consider the non `#undef'
24738 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24739 # Work around the forget-to-reset-the-flag bug.
24740 echo 't clr' >>$CONFIG_STATUS
24741 echo ': clr' >>$CONFIG_STATUS
24742 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24744 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24746 mv $tmp/out $tmp/in
24748 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24749 rm -f conftest.undefs
24750 mv conftest.tail conftest.undefs
24752 rm -f conftest.undefs
24754 cat >>$CONFIG_STATUS <<\_ACEOF
24755 # Let's still pretend it is `configure' which instantiates (i.e., don't
24756 # use $as_me), people would be surprised to read:
24757 # /* config.h. Generated by config.status. */
24758 if test x"$ac_file" = x-; then
24759 echo "/* Generated by configure. */" >$tmp/config.h
24761 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24763 cat $tmp/in >>$tmp/config.h
24765 if test x"$ac_file" != x-; then
24766 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24767 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24768 echo "$as_me: $ac_file is unchanged" >&6;}
24770 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24772 X"$ac_file" : 'X\(//\)[^/]' \| \
24773 X"$ac_file" : 'X\(//\)$' \| \
24774 X"$ac_file" : 'X\(/\)' \| \
24775 . : '\(.\)' 2>/dev/null ||
24777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24779 /^X\(\/\/\)$/{ s//\1/; q; }
24780 /^X\(\/\).*/{ s//\1/; q; }
24782 { if $as_mkdir_p; then
24787 while test ! -d "$as_dir"; do
24788 as_dirs="$as_dir $as_dirs"
24789 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24791 X"$as_dir" : 'X\(//\)[^/]' \| \
24792 X"$as_dir" : 'X\(//\)$' \| \
24793 X"$as_dir" : 'X\(/\)' \| \
24794 . : '\(.\)' 2>/dev/null ||
24796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24798 /^X\(\/\/\)$/{ s//\1/; q; }
24799 /^X\(\/\).*/{ s//\1/; q; }
24802 test ! -n "$as_dirs" || mkdir $as_dirs
24803 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24805 { (exit 1); exit 1; }; }; }
24808 mv $tmp/config.h $ac_file
24812 rm -f $tmp/config.h
24814 # Compute $ac_file's index in $config_headers.
24816 for _am_header in $config_headers :; do
24817 case $_am_header in
24818 $ac_file | $ac_file:* )
24821 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24824 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24825 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24826 X$ac_file : 'X\(//\)[^/]' \| \
24827 X$ac_file : 'X\(//\)$' \| \
24828 X$ac_file : 'X\(/\)' \| \
24829 . : '\(.\)' 2>/dev/null ||
24831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24833 /^X\(\/\/\)$/{ s//\1/; q; }
24834 /^X\(\/\).*/{ s//\1/; q; }
24835 s/.*/./; q'`/stamp-h$_am_stamp_count
24838 cat >>$CONFIG_STATUS <<\_ACEOF
24841 # CONFIG_COMMANDS section.
24843 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24844 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24845 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24846 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24847 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24848 X"$ac_dest" : 'X\(//\)[^/]' \| \
24849 X"$ac_dest" : 'X\(//\)$' \| \
24850 X"$ac_dest" : 'X\(/\)' \| \
24851 . : '\(.\)' 2>/dev/null ||
24853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24855 /^X\(\/\/\)$/{ s//\1/; q; }
24856 /^X\(\/\).*/{ s//\1/; q; }
24858 { if $as_mkdir_p; then
24863 while test ! -d "$as_dir"; do
24864 as_dirs="$as_dir $as_dirs"
24865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24867 X"$as_dir" : 'X\(//\)[^/]' \| \
24868 X"$as_dir" : 'X\(//\)$' \| \
24869 X"$as_dir" : 'X\(/\)' \| \
24870 . : '\(.\)' 2>/dev/null ||
24872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24874 /^X\(\/\/\)$/{ s//\1/; q; }
24875 /^X\(\/\).*/{ s//\1/; q; }
24878 test ! -n "$as_dirs" || mkdir $as_dirs
24879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24881 { (exit 1); exit 1; }; }; }
24885 if test "$ac_dir" != .; then
24886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24887 # A "../" for each directory in $ac_dir_suffix.
24888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24890 ac_dir_suffix= ac_top_builddir=
24894 .) # No --srcdir option. We are building in place.
24896 if test -z "$ac_top_builddir"; then
24899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24901 [\\/]* | ?:[\\/]* ) # Absolute path.
24902 ac_srcdir=$srcdir$ac_dir_suffix;
24903 ac_top_srcdir=$srcdir ;;
24904 *) # Relative path.
24905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24909 # Do not use `cd foo && pwd` to compute absolute paths, because
24910 # the directories may not exist.
24912 .) ac_abs_builddir="$ac_dir";;
24915 .) ac_abs_builddir=`pwd`;;
24916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24920 case $ac_abs_builddir in
24921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24923 case ${ac_top_builddir}. in
24924 .) ac_abs_top_builddir=$ac_abs_builddir;;
24925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24929 case $ac_abs_builddir in
24930 .) ac_abs_srcdir=$ac_srcdir;;
24933 .) ac_abs_srcdir=$ac_abs_builddir;;
24934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24938 case $ac_abs_builddir in
24939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24941 case $ac_top_srcdir in
24942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24949 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24950 echo "$as_me: executing $ac_dest commands" >&6;}
24952 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24953 # Strip MF so we end up with the name of the file.
24954 mf=`echo "$mf" | sed -e 's/:.*$//'`
24955 # Check whether this is an Automake generated Makefile or not.
24956 # We used to match only the files named `Makefile.in', but
24957 # some people rename them; so instead we look at the file content.
24958 # Grep'ing the first line is not enough: some people post-process
24959 # each Makefile.in and add a new line on top of each file to say so.
24960 # So let's grep whole file.
24961 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24962 dirpart=`(dirname "$mf") 2>/dev/null ||
24963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24964 X"$mf" : 'X\(//\)[^/]' \| \
24965 X"$mf" : 'X\(//\)$' \| \
24966 X"$mf" : 'X\(/\)' \| \
24967 . : '\(.\)' 2>/dev/null ||
24969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24971 /^X\(\/\/\)$/{ s//\1/; q; }
24972 /^X\(\/\).*/{ s//\1/; q; }
24977 # Extract the definition of DEPDIR, am__include, and am__quote
24978 # from the Makefile without running `make'.
24979 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24980 test -z "$DEPDIR" && continue
24981 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24982 test -z "am__include" && continue
24983 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24984 # When using ansi2knr, U may be empty or an underscore; expand it
24985 U=`sed -n 's/^U = //p' < "$mf"`
24986 # Find all dependency output files, they are included files with
24987 # $(DEPDIR) in their names. We invoke sed twice because it is the
24988 # simplest approach to changing $(DEPDIR) to its actual value in the
24990 for file in `sed -n "
24991 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24992 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24993 # Make sure the directory exists.
24994 test -f "$dirpart/$file" && continue
24995 fdir=`(dirname "$file") 2>/dev/null ||
24996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24997 X"$file" : 'X\(//\)[^/]' \| \
24998 X"$file" : 'X\(//\)$' \| \
24999 X"$file" : 'X\(/\)' \| \
25000 . : '\(.\)' 2>/dev/null ||
25002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25004 /^X\(\/\/\)$/{ s//\1/; q; }
25005 /^X\(\/\).*/{ s//\1/; q; }
25007 { if $as_mkdir_p; then
25008 mkdir -p $dirpart/$fdir
25010 as_dir=$dirpart/$fdir
25012 while test ! -d "$as_dir"; do
25013 as_dirs="$as_dir $as_dirs"
25014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25016 X"$as_dir" : 'X\(//\)[^/]' \| \
25017 X"$as_dir" : 'X\(//\)$' \| \
25018 X"$as_dir" : 'X\(/\)' \| \
25019 . : '\(.\)' 2>/dev/null ||
25021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25023 /^X\(\/\/\)$/{ s//\1/; q; }
25024 /^X\(\/\).*/{ s//\1/; q; }
25027 test ! -n "$as_dirs" || mkdir $as_dirs
25028 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25029 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25030 { (exit 1); exit 1; }; }; }
25032 # echo "creating $dirpart/$file"
25033 echo '# dummy' > "$dirpart/$file"
25041 cat >>$CONFIG_STATUS <<\_ACEOF
25043 { (exit 0); exit 0; }
25045 chmod +x $CONFIG_STATUS
25046 ac_clean_files=$ac_clean_files_save
25049 # configure is writing to config.log, and then calls config.status.
25050 # config.status does its own redirection, appending to config.log.
25051 # Unfortunately, on DOS this fails, as config.log is still kept open
25052 # by configure, so config.status won't be able to write to it; its
25053 # output is simply discarded. So we exec the FD to /dev/null,
25054 # effectively closing config.log, so it can be properly (re)opened and
25055 # appended to by config.status. When coming back to configure, we
25056 # need to make the FD available again.
25057 if test "$no_create" != yes; then
25059 ac_config_status_args=
25060 test "$silent" = yes &&
25061 ac_config_status_args="$ac_config_status_args --quiet"
25063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25066 # would make configure fail if this is the last instruction.
25067 $ac_cs_success || { (exit 1); exit 1; }