* Merge from mainline
[official-gcc.git] / libjava / libltdl / configure
blob3c8e9fead696128e4f97478afa4b921d95080f7e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 esac
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
278 exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
296 done
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
320 done
321 IFS="$lt_save_ifs"
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
369 prev="$cmd"
370 done
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 exec 6>&1
408 # Initializations.
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
468 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 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 DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
509 ac_prev=
510 for ac_option
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
523 case $ac_option in
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
542 --config-cache | -C)
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 esac
806 done
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
881 else
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 _ACEOF
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1008 cat <<\_ACEOF
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libltdl 1.2:";;
1024 esac
1025 cat <<\_ACEOF
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-ltdl-install install libltdl
1043 Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
1052 Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1059 CPP C preprocessor
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1069 Report bugs to <bug-libtool@gnu.org>.
1070 _ACEOF
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085 ac_dir_suffix= ac_top_builddir=
1088 case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1109 case "$ac_dir" in
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1127 case $ac_srcdir in
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 esac;;
1141 esac
1143 cd $ac_dir
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1146 echo
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1149 echo
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1153 echo
1154 $ac_configure --help
1155 else
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 cd $ac_popdir
1159 done
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164 cat <<\_ACEOF
1165 libltdl configure 1.2
1166 generated by GNU Autoconf 2.59
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1171 _ACEOF
1172 exit 0
1174 exec 5>config.log
1175 cat >&5 <<_ACEOF
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1179 It was created by libltdl $as_me 1.2, which was
1180 generated by GNU Autoconf 2.59. Invocation command line was
1182 $ $0 $@
1184 _ACEOF
1186 cat <<_ASUNAME
1187 ## --------- ##
1188 ## Platform. ##
1189 ## --------- ##
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208 _ASUNAME
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 for as_dir in $PATH
1213 IFS=$as_save_IFS
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1216 done
1218 } >&5
1220 cat >&5 <<_ACEOF
1223 ## ----------- ##
1224 ## Core tests. ##
1225 ## ----------- ##
1227 _ACEOF
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1235 ac_configure_args=
1236 ac_configure_args0=
1237 ac_configure_args1=
1238 ac_sep=
1239 ac_must_keep_next=false
1240 for ac_pass in 1 2
1242 for ac_arg
1244 case $ac_arg in
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 continue ;;
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 esac
1252 case $ac_pass in
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1258 else
1259 case $ac_arg in
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 esac
1268 -* ) ac_must_keep_next=true ;;
1269 esac
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1273 ac_sep=" "
1275 esac
1276 done
1277 done
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log. We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1289 echo
1291 cat <<\_ASBOX
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1295 _ASBOX
1296 echo
1297 # The following way of writing the cache mishandles newlines in values,
1299 (set) 2>&1 |
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 *ac_space=\ *)
1302 sed -n \
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307 sed -n \
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 esac;
1312 echo
1314 cat <<\_ASBOX
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1318 _ASBOX
1319 echo
1320 for ac_var in $ac_subst_vars
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1324 done | sort
1325 echo
1327 if test -n "$ac_subst_files"; then
1328 cat <<\_ASBOX
1329 ## ------------- ##
1330 ## Output files. ##
1331 ## ------------- ##
1332 _ASBOX
1333 echo
1334 for ac_var in $ac_subst_files
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1338 done | sort
1339 echo
1342 if test -s confdefs.h; then
1343 cat <<\_ASBOX
1344 ## ----------- ##
1345 ## confdefs.h. ##
1346 ## ----------- ##
1347 _ASBOX
1348 echo
1349 sed "/^$/d" confdefs.h | sort
1350 echo
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1355 } >&5
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 exit $exit_status
1360 for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 done
1363 ac_signal=0
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 echo >confdefs.h
1370 # Predefined preprocessor variables.
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 _ACEOF
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 _ACEOF
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 _ACEOF
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 _ACEOF
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 _ACEOF
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 else
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1411 . "$ac_site_file"
1413 done
1415 if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1421 case $cache_file in
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1424 esac
1426 else
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1429 >$cache_file
1432 # Check that the precious variables saved in the cache have kept the same
1433 # value.
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1442 set,)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,set)
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1450 ,);;
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456 echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458 echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1474 done
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1483 ac_ext=c
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 ## GCJ LOCAL: gcc tree uses maintainer mode.
1518 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1519 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1520 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1521 if test "${enable_maintainer_mode+set}" = set; then
1522 enableval="$enable_maintainer_mode"
1523 USE_MAINTAINER_MODE=$enableval
1524 else
1525 USE_MAINTAINER_MODE=no
1527 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1528 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1531 if test $USE_MAINTAINER_MODE = yes; then
1532 MAINTAINER_MODE_TRUE=
1533 MAINTAINER_MODE_FALSE='#'
1534 else
1535 MAINTAINER_MODE_TRUE='#'
1536 MAINTAINER_MODE_FALSE=
1539 MAINT=$MAINTAINER_MODE_TRUE
1543 ## ------------------------------- ##
1544 ## Libltdl specific configuration. ##
1545 ## ------------------------------- ##
1547 ac_aux_dir=
1548 for ac_dir in . $srcdir/.; do
1549 if test -f $ac_dir/install-sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1552 break
1553 elif test -f $ac_dir/install.sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1556 break
1557 elif test -f $ac_dir/shtool; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 break
1562 done
1563 if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1566 { (exit 1); exit 1; }; }
1568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1573 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1574 if test -f ${srcdir}/ltmain.sh; then
1575 # if libltdl is libtoolized, it is assumed to be stand-alone and
1576 # installed unless the command line overrides it (tested above)
1577 enable_ltdl_install=yes
1578 else
1579 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1580 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1581 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1582 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1583 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1584 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1585 { (exit 1); exit 1; }; }
1590 ## ------------------------ ##
1591 ## Automake Initialisation. ##
1592 ## ------------------------ ##
1593 am__api_version="1.9"
1594 # Find a good install program. We prefer a C program (faster),
1595 # so one script is as good as another. But avoid the broken or
1596 # incompatible versions:
1597 # SysV /etc/install, /usr/sbin/install
1598 # SunOS /usr/etc/install
1599 # IRIX /sbin/install
1600 # AIX /bin/install
1601 # AmigaOS /C/install, which installs bootblocks on floppy discs
1602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1605 # OS/2's system install, which has a completely different semantic
1606 # ./install, which can be erroneously created by make from ./install.sh.
1607 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1608 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1609 if test -z "$INSTALL"; then
1610 if test "${ac_cv_path_install+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 # Account for people who put trailing slashes in PATH elements.
1619 case $as_dir/ in
1620 ./ | .// | /cC/* | \
1621 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1622 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1623 /usr/ucb/* ) ;;
1625 # OSF1 and SCO ODT 3.0 have their own names for install.
1626 # Don't use installbsd from OSF since it installs stuff as root
1627 # by default.
1628 for ac_prog in ginstall scoinst install; do
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1631 if test $ac_prog = install &&
1632 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1633 # AIX install. It has an incompatible calling convention.
1635 elif test $ac_prog = install &&
1636 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1637 # program-specific install script used by HP pwplus--don't use.
1639 else
1640 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1641 break 3
1644 done
1645 done
1647 esac
1648 done
1652 if test "${ac_cv_path_install+set}" = set; then
1653 INSTALL=$ac_cv_path_install
1654 else
1655 # As a last resort, use the slow shell script. We don't cache a
1656 # path for INSTALL within a source directory, because that will
1657 # break other packages using the cache if that directory is
1658 # removed, or if the path is relative.
1659 INSTALL=$ac_install_sh
1662 echo "$as_me:$LINENO: result: $INSTALL" >&5
1663 echo "${ECHO_T}$INSTALL" >&6
1665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1666 # It thinks the first close brace ends the variable substitution.
1667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1673 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1674 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1675 # Just in case
1676 sleep 1
1677 echo timestamp > conftest.file
1678 # Do `set' in a subshell so we don't clobber the current shell's
1679 # arguments. Must try -L first in case configure is actually a
1680 # symlink; some systems play weird games with the mod time of symlinks
1681 # (eg FreeBSD returns the mod time of the symlink's containing
1682 # directory).
1683 if (
1684 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1685 if test "$*" = "X"; then
1686 # -L didn't work.
1687 set X `ls -t $srcdir/configure conftest.file`
1689 rm -f conftest.file
1690 if test "$*" != "X $srcdir/configure conftest.file" \
1691 && test "$*" != "X conftest.file $srcdir/configure"; then
1693 # If neither matched, then we have a broken ls. This can happen
1694 # if, for instance, CONFIG_SHELL is bash and it inherits a
1695 # broken ls alias from the environment. This has actually
1696 # happened. Such a system could not be considered "sane".
1697 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1698 alias in your environment" >&5
1699 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1700 alias in your environment" >&2;}
1701 { (exit 1); exit 1; }; }
1704 test "$2" = conftest.file
1706 then
1707 # Ok.
1709 else
1710 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1711 Check your system clock" >&5
1712 echo "$as_me: error: newly created file is older than distributed files!
1713 Check your system clock" >&2;}
1714 { (exit 1); exit 1; }; }
1716 echo "$as_me:$LINENO: result: yes" >&5
1717 echo "${ECHO_T}yes" >&6
1718 test "$program_prefix" != NONE &&
1719 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1720 # Use a double $ so make ignores it.
1721 test "$program_suffix" != NONE &&
1722 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1723 # Double any \ or $. echo might interpret backslashes.
1724 # By default was `s,x,x', remove it if useless.
1725 cat <<\_ACEOF >conftest.sed
1726 s/[\\$]/&&/g;s/;s,x,x,$//
1727 _ACEOF
1728 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1729 rm conftest.sed
1731 # expand $ac_aux_dir to an absolute path
1732 am_aux_dir=`cd $ac_aux_dir && pwd`
1734 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1735 # Use eval to expand $SHELL
1736 if eval "$MISSING --run true"; then
1737 am_missing_run="$MISSING --run "
1738 else
1739 am_missing_run=
1740 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1741 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1744 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1745 # We used to keeping the `.' as first argument, in order to
1746 # allow $(mkdir_p) to be used without argument. As in
1747 # $(mkdir_p) $(somedir)
1748 # where $(somedir) is conditionally defined. However this is wrong
1749 # for two reasons:
1750 # 1. if the package is installed by a user who cannot write `.'
1751 # make install will fail,
1752 # 2. the above comment should most certainly read
1753 # $(mkdir_p) $(DESTDIR)$(somedir)
1754 # so it does not work when $(somedir) is undefined and
1755 # $(DESTDIR) is not.
1756 # To support the latter case, we have to write
1757 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1758 # so the `.' trick is pointless.
1759 mkdir_p='mkdir -p --'
1760 else
1761 # On NextStep and OpenStep, the `mkdir' command does not
1762 # recognize any option. It will interpret all options as
1763 # directories to create, and then abort because `.' already
1764 # exists.
1765 for d in ./-p ./--version;
1767 test -d $d && rmdir $d
1768 done
1769 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1770 if test -f "$ac_aux_dir/mkinstalldirs"; then
1771 mkdir_p='$(mkinstalldirs)'
1772 else
1773 mkdir_p='$(install_sh) -d'
1777 for ac_prog in gawk mawk nawk awk
1779 # Extract the first word of "$ac_prog", so it can be a program name with args.
1780 set dummy $ac_prog; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_AWK+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786 if test -n "$AWK"; then
1787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_AWK="$ac_prog"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1800 done
1801 done
1805 AWK=$ac_cv_prog_AWK
1806 if test -n "$AWK"; then
1807 echo "$as_me:$LINENO: result: $AWK" >&5
1808 echo "${ECHO_T}$AWK" >&6
1809 else
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1814 test -n "$AWK" && break
1815 done
1817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 cat >conftest.make <<\_ACEOF
1824 all:
1825 @echo 'ac_maketemp="$(MAKE)"'
1826 _ACEOF
1827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1829 if test -n "$ac_maketemp"; then
1830 eval ac_cv_prog_make_${ac_make}_set=yes
1831 else
1832 eval ac_cv_prog_make_${ac_make}_set=no
1834 rm -f conftest.make
1836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1837 echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1839 SET_MAKE=
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 SET_MAKE="MAKE=${MAKE-make}"
1846 rm -rf .tst 2>/dev/null
1847 mkdir .tst 2>/dev/null
1848 if test -d .tst; then
1849 am__leading_dot=.
1850 else
1851 am__leading_dot=_
1853 rmdir .tst 2>/dev/null
1855 # test to see if srcdir already configured
1856 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1857 test -f $srcdir/config.status; then
1858 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1859 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1860 { (exit 1); exit 1; }; }
1863 # test whether we have cygpath
1864 if test -z "$CYGPATH_W"; then
1865 if (cygpath --version) >/dev/null 2>/dev/null; then
1866 CYGPATH_W='cygpath -w'
1867 else
1868 CYGPATH_W=echo
1873 # Define the identity of the package.
1874 PACKAGE=libltdl
1875 VERSION=1.2
1878 # Some tools Automake needs.
1880 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1883 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1886 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1889 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1892 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1894 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1896 # Installed binaries are usually stripped using `strip' when the user
1897 # run `make install-strip'. However `strip' might not be the right
1898 # tool to use in cross-compilation environments, therefore Automake
1899 # will honor the `STRIP' environment variable to overrule this program.
1900 if test "$cross_compiling" != no; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_STRIP+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$STRIP"; then
1910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1928 STRIP=$ac_cv_prog_STRIP
1929 if test -n "$STRIP"; then
1930 echo "$as_me:$LINENO: result: $STRIP" >&5
1931 echo "${ECHO_T}$STRIP" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1938 if test -z "$ac_cv_prog_STRIP"; then
1939 ac_ct_STRIP=$STRIP
1940 # Extract the first word of "strip", so it can be a program name with args.
1941 set dummy strip; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$ac_ct_STRIP"; then
1948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_STRIP="strip"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1961 done
1962 done
1964 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1968 if test -n "$ac_ct_STRIP"; then
1969 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1970 echo "${ECHO_T}$ac_ct_STRIP" >&6
1971 else
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1976 STRIP=$ac_ct_STRIP
1977 else
1978 STRIP="$ac_cv_prog_STRIP"
1982 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1984 # We need awk for the "check" target. The system "awk" is bad on
1985 # some platforms.
1986 # Always define AMTAR for backward compatibility.
1988 AMTAR=${AMTAR-"${am_missing_run}tar"}
1990 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1996 ac_config_headers="$ac_config_headers config.h:config-h.in"
2000 ## ------------------ ##
2001 ## C compiler checks. ##
2002 ## ------------------ ##
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2030 done
2031 done
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2045 if test -z "$ac_cv_prog_CC"; then
2046 ac_ct_CC=$CC
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="gcc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2068 done
2069 done
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 CC=$ac_ct_CC
2083 else
2084 CC="$ac_cv_prog_CC"
2087 if test -z "$CC"; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="${ac_tool_prefix}cc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2110 done
2111 done
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$ac_cv_prog_CC"; then
2126 ac_ct_CC=$CC
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_ac_ct_CC="cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2148 done
2149 done
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2157 else
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2162 CC=$ac_ct_CC
2163 else
2164 CC="$ac_cv_prog_CC"
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179 ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2198 if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy $ac_cv_prog_CC
2201 shift
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2206 shift
2207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2261 test -n "$CC" && break
2262 done
2264 if test -z "$CC"; then
2265 ac_ct_CC=$CC
2266 for ac_prog in cl
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2289 done
2290 done
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2298 else
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$ac_ct_CC" && break
2304 done
2306 CC=$ac_ct_CC
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320 "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323 (eval $ac_compiler --version </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328 (eval $ac_compiler -v </dev/null >&5) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333 (eval $ac_compiler -V </dev/null >&5) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h. */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2346 main ()
2350 return 0;
2352 _ACEOF
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362 (eval $ac_link_default) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 # Find the output, starting from the most likely. This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2368 # resort.
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 ac_cv_exeext=
2373 # b.out is created by i960 compilers.
2374 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2376 test -f "$ac_file" || continue
2377 case $ac_file in
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2380 conftest.$ac_ext )
2381 # This is the source file.
2383 [ab].out )
2384 # We found the default executable, but exeext='' is most
2385 # certainly right.
2386 break;;
2387 *.* )
2388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 # FIXME: I believe we export ac_cv_exeext for Libtool,
2390 # but it would be cool to find out if it's true. Does anybody
2391 # maintain Libtool? --akim.
2392 export ac_cv_exeext
2393 break;;
2395 break;;
2396 esac
2397 done
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406 { (exit 77); exit 77; }; }
2409 ac_exeext=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2413 # Check the compiler produces executables we can run. If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420 if { ac_try='./$ac_file'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 (eval $ac_try) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2426 cross_compiling=no
2427 else
2428 if test "$cross_compiling" = maybe; then
2429 cross_compiling=yes
2430 else
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456 (eval $ac_link) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 # `rm'.
2464 for ac_file in conftest.exe conftest conftest.*; do
2465 test -f "$ac_file" || continue
2466 case $ac_file in
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469 export ac_cv_exeext
2470 break;;
2471 * ) break;;
2472 esac
2473 done
2474 else
2475 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2482 rm -f conftest$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2486 rm -f conftest.$ac_ext
2487 EXEEXT=$ac_cv_exeext
2488 ac_exeext=$EXEEXT
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2502 main ()
2506 return 0;
2508 _ACEOF
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519 break;;
2520 esac
2521 done
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 main ()
2554 #ifndef __GNUC__
2555 choke me
2556 #endif
2559 return 0;
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_compiler_gnu=yes
2585 else
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2589 ac_compiler_gnu=no
2591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2595 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597 GCC=`test $ac_compiler_gnu = yes && echo yes`
2598 ac_test_CFLAGS=${CFLAGS+set}
2599 ac_save_CFLAGS=$CFLAGS
2600 CFLAGS="-g"
2601 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603 if test "${ac_cv_prog_cc_g+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h. */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2614 main ()
2618 return 0;
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 (eval $ac_compile) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 ac_cv_prog_cc_g=yes
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 ac_cv_prog_cc_g=no
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2654 if test "$ac_test_CFLAGS" = set; then
2655 CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657 if test "$GCC" = yes; then
2658 CFLAGS="-g -O2"
2659 else
2660 CFLAGS="-g"
2662 else
2663 if test "$GCC" = yes; then
2664 CFLAGS="-O2"
2665 else
2666 CFLAGS=
2669 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2670 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2671 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 ac_cv_prog_cc_stdc=no
2675 ac_save_CC=$CC
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 #include <stdarg.h>
2683 #include <stdio.h>
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2690 char **p;
2691 int i;
2693 return p[i];
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2697 char *s;
2698 va_list v;
2699 va_start (v,p);
2700 s = g (p, va_arg (v,int));
2701 va_end (v);
2702 return s;
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2706 function prototypes and stuff, but not '\xHH' hex character constants.
2707 These don't provoke an error unfortunately, instead are silently treated
2708 as 'x'. The following induces an error, until -std1 is added to get
2709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2710 array size at least. It's necessary to write '\x00'==0 to get something
2711 that's true only with -std1. */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 int test (int i, double x);
2715 struct s1 {int (*f) (int a);};
2716 struct s2 {int (*f) (double a);};
2717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 int argc;
2719 char **argv;
2721 main ()
2723 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2725 return 0;
2727 _ACEOF
2728 # Don't try gcc -ansi; that turns off useful extensions and
2729 # breaks some systems' header files.
2730 # AIX -qlanglvl=ansi
2731 # Ultrix and OSF/1 -std1
2732 # HP-UX 10.20 and later -Ae
2733 # HP-UX older versions -Aa -D_HPUX_SOURCE
2734 # SVR4 -Xc -D__EXTENSIONS__
2735 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737 CC="$ac_save_CC $ac_arg"
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2741 ac_status=$?
2742 grep -v '^ *+' conftest.er1 >conftest.err
2743 rm -f conftest.er1
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -z "$ac_c_werror_flag"
2748 || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 ac_cv_prog_cc_stdc=$ac_arg
2761 break
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.err conftest.$ac_objext
2768 done
2769 rm -f conftest.$ac_ext conftest.$ac_objext
2770 CC=$ac_save_CC
2774 case "x$ac_cv_prog_cc_stdc" in
2775 x|xno)
2776 echo "$as_me:$LINENO: result: none needed" >&5
2777 echo "${ECHO_T}none needed" >&6 ;;
2779 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2781 CC="$CC $ac_cv_prog_cc_stdc" ;;
2782 esac
2784 # Some people use a C++ compiler to compile C. Since we use `exit',
2785 # in C++ we need to declare it. In case someone uses the same compiler
2786 # for both compiling C and C++ we need to have the C++ compiler decide
2787 # the declaration of exit, since it's the most demanding environment.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #ifndef __cplusplus
2790 choke me
2791 #endif
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 for ac_declaration in \
2816 '' \
2817 'extern "C" void std::exit (int) throw (); using std::exit;' \
2818 'extern "C" void std::exit (int); using std::exit;' \
2819 'extern "C" void exit (int) throw ();' \
2820 'extern "C" void exit (int);' \
2821 'void exit (int);'
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 $ac_declaration
2830 #include <stdlib.h>
2832 main ()
2834 exit (42);
2836 return 0;
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>conftest.er1
2842 ac_status=$?
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -z "$ac_c_werror_flag"
2849 || test ! -s conftest.err'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; } &&
2855 { ac_try='test -s conftest.$ac_objext'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 (eval $ac_try) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2862 else
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 continue
2868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 $ac_declaration
2877 main ()
2879 exit (42);
2881 return 0;
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 break
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 done
2914 rm -f conftest*
2915 if test -n "$ac_declaration"; then
2916 echo '#ifdef __cplusplus' >>confdefs.h
2917 echo $ac_declaration >>confdefs.h
2918 echo '#endif' >>confdefs.h
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 DEPDIR="${am__leading_dot}deps"
2934 ac_config_commands="$ac_config_commands depfiles"
2937 am_make=${MAKE-make}
2938 cat > confinc << 'END'
2939 am__doit:
2940 @echo done
2941 .PHONY: am__doit
2943 # If we don't find an include directive, just comment out the code.
2944 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2945 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2946 am__include="#"
2947 am__quote=
2948 _am_result=none
2949 # First try GNU make style include.
2950 echo "include confinc" > confmf
2951 # We grep out `Entering directory' and `Leaving directory'
2952 # messages which can occur if `w' ends up in MAKEFLAGS.
2953 # In particular we don't look at `^make:' because GNU make might
2954 # be invoked under some other name (usually "gmake"), in which
2955 # case it prints its new name instead of `make'.
2956 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2957 am__include=include
2958 am__quote=
2959 _am_result=GNU
2961 # Now try BSD make style include.
2962 if test "$am__include" = "#"; then
2963 echo '.include "confinc"' > confmf
2964 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2965 am__include=.include
2966 am__quote="\""
2967 _am_result=BSD
2972 echo "$as_me:$LINENO: result: $_am_result" >&5
2973 echo "${ECHO_T}$_am_result" >&6
2974 rm -f confinc confmf
2976 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2977 if test "${enable_dependency_tracking+set}" = set; then
2978 enableval="$enable_dependency_tracking"
2981 if test "x$enable_dependency_tracking" != xno; then
2982 am_depcomp="$ac_aux_dir/depcomp"
2983 AMDEPBACKSLASH='\'
2987 if test "x$enable_dependency_tracking" != xno; then
2988 AMDEP_TRUE=
2989 AMDEP_FALSE='#'
2990 else
2991 AMDEP_TRUE='#'
2992 AMDEP_FALSE=
2998 depcc="$CC" am_compiler_list=
3000 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3001 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3002 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3006 # We make a subdir and do the tests there. Otherwise we can end up
3007 # making bogus files that we don't know about and never remove. For
3008 # instance it was reported that on HP-UX the gcc test will end up
3009 # making a dummy file named `D' -- because `-MD' means `put the output
3010 # in D'.
3011 mkdir conftest.dir
3012 # Copy depcomp to subdir because otherwise we won't find it if we're
3013 # using a relative directory.
3014 cp "$am_depcomp" conftest.dir
3015 cd conftest.dir
3016 # We will build objects and dependencies in a subdirectory because
3017 # it helps to detect inapplicable dependency modes. For instance
3018 # both Tru64's cc and ICC support -MD to output dependencies as a
3019 # side effect of compilation, but ICC will put the dependencies in
3020 # the current directory while Tru64 will put them in the object
3021 # directory.
3022 mkdir sub
3024 am_cv_CC_dependencies_compiler_type=none
3025 if test "$am_compiler_list" = ""; then
3026 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3028 for depmode in $am_compiler_list; do
3029 # Setup a source with many dependencies, because some compilers
3030 # like to wrap large dependency lists on column 80 (with \), and
3031 # we should not choose a depcomp mode which is confused by this.
3033 # We need to recreate these files for each test, as the compiler may
3034 # overwrite some of them when testing with obscure command lines.
3035 # This happens at least with the AIX C compiler.
3036 : > sub/conftest.c
3037 for i in 1 2 3 4 5 6; do
3038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3040 # Solaris 8's {/usr,}/bin/sh.
3041 touch sub/conftst$i.h
3042 done
3043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3045 case $depmode in
3046 nosideeffect)
3047 # after this tag, mechanisms are not by side-effect, so they'll
3048 # only be used when explicitly requested
3049 if test "x$enable_dependency_tracking" = xyes; then
3050 continue
3051 else
3052 break
3055 none) break ;;
3056 esac
3057 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3058 # mode. It turns out that the SunPro C++ compiler does not properly
3059 # handle `-M -o', and we need to detect this.
3060 if depmode=$depmode \
3061 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3062 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3063 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3064 >/dev/null 2>conftest.err &&
3065 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3066 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3067 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3068 # icc doesn't choke on unknown options, it will just issue warnings
3069 # or remarks (even with -Werror). So we grep stderr for any message
3070 # that says an option was ignored or not supported.
3071 # When given -MP, icc 7.0 and 7.1 complain thusly:
3072 # icc: Command line warning: ignoring option '-M'; no argument required
3073 # The diagnosis changed in icc 8.0:
3074 # icc: Command line remark: option '-MP' not supported
3075 if (grep 'ignoring option' conftest.err ||
3076 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3077 am_cv_CC_dependencies_compiler_type=$depmode
3078 break
3081 done
3083 cd ..
3084 rm -rf conftest.dir
3085 else
3086 am_cv_CC_dependencies_compiler_type=none
3090 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3091 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3092 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3097 test "x$enable_dependency_tracking" != xno \
3098 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3099 am__fastdepCC_TRUE=
3100 am__fastdepCC_FALSE='#'
3101 else
3102 am__fastdepCC_TRUE='#'
3103 am__fastdepCC_FALSE=
3108 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3109 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3110 if test "${ac_cv_c_const+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3121 main ()
3123 /* FIXME: Include the comments suggested by Paul. */
3124 #ifndef __cplusplus
3125 /* Ultrix mips cc rejects this. */
3126 typedef int charset[2];
3127 const charset x;
3128 /* SunOS 4.1.1 cc rejects this. */
3129 char const *const *ccp;
3130 char **p;
3131 /* NEC SVR4.0.2 mips cc rejects this. */
3132 struct point {int x, y;};
3133 static struct point const zero = {0,0};
3134 /* AIX XL C 1.02.0.0 rejects this.
3135 It does not let you subtract one const X* pointer from another in
3136 an arm of an if-expression whose if-part is not a constant
3137 expression */
3138 const char *g = "string";
3139 ccp = &g + (g ? g-g : 0);
3140 /* HPUX 7.0 cc rejects these. */
3141 ++ccp;
3142 p = (char**) ccp;
3143 ccp = (char const *const *) p;
3144 { /* SCO 3.2v4 cc rejects this. */
3145 char *t;
3146 char const *s = 0 ? (char *) 0 : (char const *) 0;
3148 *t++ = 0;
3150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3151 int x[] = {25, 17};
3152 const int *foo = &x[0];
3153 ++foo;
3155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3156 typedef const int *iptr;
3157 iptr p = 0;
3158 ++p;
3160 { /* AIX XL C 1.02.0.0 rejects this saying
3161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3162 struct s { int j; const int *ap[3]; };
3163 struct s *b; b->j = 5;
3165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3166 const int foo = 10;
3168 #endif
3171 return 0;
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176 (eval $ac_compile) 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try='test -z "$ac_c_werror_flag"
3184 || test ! -s conftest.err'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; } &&
3190 { ac_try='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 (eval $ac_try) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 ac_cv_c_const=yes
3197 else
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 ac_cv_c_const=no
3203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3206 echo "${ECHO_T}$ac_cv_c_const" >&6
3207 if test $ac_cv_c_const = no; then
3209 cat >>confdefs.h <<\_ACEOF
3210 #define const
3211 _ACEOF
3215 echo "$as_me:$LINENO: checking for inline" >&5
3216 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3217 if test "${ac_cv_c_inline+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 ac_cv_c_inline=no
3221 for ac_kw in inline __inline__ __inline; do
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #ifndef __cplusplus
3229 typedef int foo_t;
3230 static $ac_kw foo_t static_foo () {return 0; }
3231 $ac_kw foo_t foo () {return 0; }
3232 #endif
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_c_werror_flag"
3245 || test ! -s conftest.err'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 ac_cv_c_inline=$ac_kw; break
3258 else
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 done
3267 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3268 echo "${ECHO_T}$ac_cv_c_inline" >&6
3271 case $ac_cv_c_inline in
3272 inline | yes) ;;
3274 case $ac_cv_c_inline in
3275 no) ac_val=;;
3276 *) ac_val=$ac_cv_c_inline;;
3277 esac
3278 cat >>confdefs.h <<_ACEOF
3279 #ifndef __cplusplus
3280 #define inline $ac_val
3281 #endif
3282 _ACEOF
3284 esac
3288 ## ----------------------- ##
3289 ## Libtool initialisation. ##
3290 ## ----------------------- ##
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295 enableval="$enable_shared"
3296 p=${PACKAGE-default}
3297 case $enableval in
3298 yes) enable_shared=yes ;;
3299 no) enable_shared=no ;;
3301 enable_shared=no
3302 # Look at the argument we got. We use all the common list separators.
3303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304 for pkg in $enableval; do
3305 IFS="$lt_save_ifs"
3306 if test "X$pkg" = "X$p"; then
3307 enable_shared=yes
3309 done
3310 IFS="$lt_save_ifs"
3312 esac
3313 else
3314 enable_shared=yes
3317 # Check whether --enable-static or --disable-static was given.
3318 if test "${enable_static+set}" = set; then
3319 enableval="$enable_static"
3320 p=${PACKAGE-default}
3321 case $enableval in
3322 yes) enable_static=yes ;;
3323 no) enable_static=no ;;
3325 enable_static=no
3326 # Look at the argument we got. We use all the common list separators.
3327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3328 for pkg in $enableval; do
3329 IFS="$lt_save_ifs"
3330 if test "X$pkg" = "X$p"; then
3331 enable_static=yes
3333 done
3334 IFS="$lt_save_ifs"
3336 esac
3337 else
3338 enable_static=yes
3341 # Check whether --enable-fast-install or --disable-fast-install was given.
3342 if test "${enable_fast_install+set}" = set; then
3343 enableval="$enable_fast_install"
3344 p=${PACKAGE-default}
3345 case $enableval in
3346 yes) enable_fast_install=yes ;;
3347 no) enable_fast_install=no ;;
3349 enable_fast_install=no
3350 # Look at the argument we got. We use all the common list separators.
3351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3352 for pkg in $enableval; do
3353 IFS="$lt_save_ifs"
3354 if test "X$pkg" = "X$p"; then
3355 enable_fast_install=yes
3357 done
3358 IFS="$lt_save_ifs"
3360 esac
3361 else
3362 enable_fast_install=yes
3365 # Make sure we can run config.sub.
3366 $ac_config_sub sun4 >/dev/null 2>&1 ||
3367 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3368 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3369 { (exit 1); exit 1; }; }
3371 echo "$as_me:$LINENO: checking build system type" >&5
3372 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3373 if test "${ac_cv_build+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 ac_cv_build_alias=$build_alias
3377 test -z "$ac_cv_build_alias" &&
3378 ac_cv_build_alias=`$ac_config_guess`
3379 test -z "$ac_cv_build_alias" &&
3380 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3381 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3382 { (exit 1); exit 1; }; }
3383 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3385 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3386 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3390 echo "${ECHO_T}$ac_cv_build" >&6
3391 build=$ac_cv_build
3392 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3393 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3394 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3397 echo "$as_me:$LINENO: checking host system type" >&5
3398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3399 if test "${ac_cv_host+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 ac_cv_host_alias=$host_alias
3403 test -z "$ac_cv_host_alias" &&
3404 ac_cv_host_alias=$ac_cv_build_alias
3405 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3408 { (exit 1); exit 1; }; }
3411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3412 echo "${ECHO_T}$ac_cv_host" >&6
3413 host=$ac_cv_host
3414 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3415 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3416 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3419 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3420 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3421 if test "${lt_cv_path_SED+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 # Loop through the user's path and test for sed and gsed.
3425 # Then use that list of sed's as ones to test for truncation.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for lt_ac_prog in sed gsed; do
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3434 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3436 done
3437 done
3438 done
3439 lt_ac_max=0
3440 lt_ac_count=0
3441 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3442 # along with /bin/sed that truncates output.
3443 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3444 test ! -f $lt_ac_sed && continue
3445 cat /dev/null > conftest.in
3446 lt_ac_count=0
3447 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3448 # Check for GNU sed and select it if it is found.
3449 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3450 lt_cv_path_SED=$lt_ac_sed
3451 break
3453 while true; do
3454 cat conftest.in conftest.in >conftest.tmp
3455 mv conftest.tmp conftest.in
3456 cp conftest.in conftest.nl
3457 echo >>conftest.nl
3458 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3459 cmp -s conftest.out conftest.nl || break
3460 # 10000 chars as input seems more than enough
3461 test $lt_ac_count -gt 10 && break
3462 lt_ac_count=`expr $lt_ac_count + 1`
3463 if test $lt_ac_count -gt $lt_ac_max; then
3464 lt_ac_max=$lt_ac_count
3465 lt_cv_path_SED=$lt_ac_sed
3467 done
3468 done
3472 SED=$lt_cv_path_SED
3473 echo "$as_me:$LINENO: result: $SED" >&5
3474 echo "${ECHO_T}$SED" >&6
3476 echo "$as_me:$LINENO: checking for egrep" >&5
3477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3478 if test "${ac_cv_prog_egrep+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3482 then ac_cv_prog_egrep='grep -E'
3483 else ac_cv_prog_egrep='egrep'
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3487 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3488 EGREP=$ac_cv_prog_egrep
3492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3493 if test "${with_gnu_ld+set}" = set; then
3494 withval="$with_gnu_ld"
3495 test "$withval" = no || with_gnu_ld=yes
3496 else
3497 with_gnu_ld=no
3499 ac_prog=ld
3500 if test "$GCC" = yes; then
3501 # Check if gcc -print-prog-name=ld gives a path.
3502 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3503 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3504 case $host in
3505 *-*-mingw*)
3506 # gcc leaves a trailing carriage return which upsets mingw
3507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3510 esac
3511 case $ac_prog in
3512 # Accept absolute paths.
3513 [\\/]* | ?:[\\/]*)
3514 re_direlt='/[^/][^/]*/\.\./'
3515 # Canonicalize the pathname of ld
3516 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3517 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3518 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3519 done
3520 test -z "$LD" && LD="$ac_prog"
3523 # If it fails, then pretend we aren't using GCC.
3524 ac_prog=ld
3527 # If it is relative, then search for the first ld in PATH.
3528 with_gnu_ld=unknown
3530 esac
3531 elif test "$with_gnu_ld" = yes; then
3532 echo "$as_me:$LINENO: checking for GNU ld" >&5
3533 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3534 else
3535 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3536 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3538 if test "${lt_cv_path_LD+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541 if test -z "$LD"; then
3542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3543 for ac_dir in $PATH; do
3544 IFS="$lt_save_ifs"
3545 test -z "$ac_dir" && ac_dir=.
3546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3547 lt_cv_path_LD="$ac_dir/$ac_prog"
3548 # Check to see if the program is GNU ld. I'd rather use --version,
3549 # but apparently some GNU ld's only accept -v.
3550 # Break only if it was the GNU/non-GNU ld that we prefer.
3551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3552 *GNU* | *'with BFD'*)
3553 test "$with_gnu_ld" != no && break
3556 test "$with_gnu_ld" != yes && break
3558 esac
3560 done
3561 IFS="$lt_save_ifs"
3562 else
3563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3567 LD="$lt_cv_path_LD"
3568 if test -n "$LD"; then
3569 echo "$as_me:$LINENO: result: $LD" >&5
3570 echo "${ECHO_T}$LD" >&6
3571 else
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3577 { (exit 1); exit 1; }; }
3578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3584 case `$LD -v 2>&1 </dev/null` in
3585 *GNU* | *'with BFD'*)
3586 lt_cv_prog_gnu_ld=yes
3589 lt_cv_prog_gnu_ld=no
3591 esac
3593 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3594 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3595 with_gnu_ld=$lt_cv_prog_gnu_ld
3598 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3599 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3600 if test "${lt_cv_ld_reload_flag+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 lt_cv_ld_reload_flag='-r'
3605 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3606 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3607 reload_flag=$lt_cv_ld_reload_flag
3608 case $reload_flag in
3609 "" | " "*) ;;
3610 *) reload_flag=" $reload_flag" ;;
3611 esac
3612 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3613 case $host_os in
3614 darwin*)
3615 if test "$GCC" = yes; then
3616 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3617 else
3618 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3621 esac
3623 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3624 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3625 if test "${lt_cv_path_NM+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 if test -n "$NM"; then
3629 # Let the user override the test.
3630 lt_cv_path_NM="$NM"
3631 else
3632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3633 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3634 IFS="$lt_save_ifs"
3635 test -z "$ac_dir" && ac_dir=.
3636 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3638 # Check to see if the nm accepts a BSD-compat flag.
3639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3640 # nm: unknown option "B" ignored
3641 # Tru64's nm complains that /dev/null is an invalid object file
3642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3643 */dev/null* | *'Invalid file or object type'*)
3644 lt_cv_path_NM="$tmp_nm -B"
3645 break
3648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3649 */dev/null*)
3650 lt_cv_path_NM="$tmp_nm -p"
3651 break
3654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3655 continue # so that we can try to find one that supports BSD flags
3657 esac
3658 esac
3660 done
3661 IFS="$lt_save_ifs"
3662 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3665 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3666 echo "${ECHO_T}$lt_cv_path_NM" >&6
3667 NM="$lt_cv_path_NM"
3669 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3670 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3671 LN_S=$as_ln_s
3672 if test "$LN_S" = "ln -s"; then
3673 echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6
3675 else
3676 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3677 echo "${ECHO_T}no, using $LN_S" >&6
3680 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3681 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3682 if test "${lt_cv_deplibs_check_method+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 lt_cv_file_magic_cmd='$MAGIC_CMD'
3686 lt_cv_file_magic_test_file=
3687 lt_cv_deplibs_check_method='unknown'
3688 # Need to set the preceding variable on all platforms that support
3689 # interlibrary dependencies.
3690 # 'none' -- dependencies not supported.
3691 # `unknown' -- same as none, but documents that we really don't know.
3692 # 'pass_all' -- all dependencies passed with no checks.
3693 # 'test_compile' -- check by making test program.
3694 # 'file_magic [[regex]]' -- check by looking for files in library path
3695 # which responds to the $file_magic_cmd with a given extended regex.
3696 # If you have `file' or equivalent on your system and you're not sure
3697 # whether `pass_all' will *always* work, you probably want this one.
3699 case $host_os in
3700 aix4* | aix5*)
3701 lt_cv_deplibs_check_method=pass_all
3704 beos*)
3705 lt_cv_deplibs_check_method=pass_all
3708 bsdi[45]*)
3709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3710 lt_cv_file_magic_cmd='/usr/bin/file -L'
3711 lt_cv_file_magic_test_file=/shlib/libc.so
3714 cygwin*)
3715 # func_win32_libid is a shell function defined in ltmain.sh
3716 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3717 lt_cv_file_magic_cmd='func_win32_libid'
3720 mingw* | pw32*)
3721 # Base MSYS/MinGW do not provide the 'file' command needed by
3722 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3723 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3724 lt_cv_file_magic_cmd='$OBJDUMP -f'
3727 darwin* | rhapsody*)
3728 lt_cv_deplibs_check_method=pass_all
3731 freebsd* | kfreebsd*-gnu | dragonfly*)
3732 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3733 case $host_cpu in
3734 i*86 )
3735 # Not sure whether the presence of OpenBSD here was a mistake.
3736 # Let's accept both of them until this is cleared up.
3737 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3738 lt_cv_file_magic_cmd=/usr/bin/file
3739 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3741 esac
3742 else
3743 lt_cv_deplibs_check_method=pass_all
3747 gnu*)
3748 lt_cv_deplibs_check_method=pass_all
3751 hpux10.20* | hpux11*)
3752 lt_cv_file_magic_cmd=/usr/bin/file
3753 case "$host_cpu" in
3754 ia64*)
3755 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3756 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3758 hppa*64*)
3759 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]'
3760 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3764 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3766 esac
3769 irix5* | irix6* | nonstopux*)
3770 case $LD in
3771 *-32|*"-32 ") libmagic=32-bit;;
3772 *-n32|*"-n32 ") libmagic=N32;;
3773 *-64|*"-64 ") libmagic=64-bit;;
3774 *) libmagic=never-match;;
3775 esac
3776 lt_cv_deplibs_check_method=pass_all
3779 # This must be Linux ELF.
3780 linux*)
3781 lt_cv_deplibs_check_method=pass_all
3784 netbsd*)
3785 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3787 else
3788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3792 newos6*)
3793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3794 lt_cv_file_magic_cmd=/usr/bin/file
3795 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3798 nto-qnx*)
3799 lt_cv_deplibs_check_method=unknown
3802 openbsd*)
3803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3805 else
3806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3810 osf3* | osf4* | osf5*)
3811 lt_cv_deplibs_check_method=pass_all
3814 sco3.2v5*)
3815 lt_cv_deplibs_check_method=pass_all
3818 solaris*)
3819 lt_cv_deplibs_check_method=pass_all
3822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3823 case $host_vendor in
3824 motorola)
3825 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]'
3826 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3828 ncr)
3829 lt_cv_deplibs_check_method=pass_all
3831 sequent)
3832 lt_cv_file_magic_cmd='/bin/file'
3833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3835 sni)
3836 lt_cv_file_magic_cmd='/bin/file'
3837 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3838 lt_cv_file_magic_test_file=/lib/libc.so
3840 siemens)
3841 lt_cv_deplibs_check_method=pass_all
3843 esac
3846 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3847 lt_cv_deplibs_check_method=pass_all
3849 esac
3852 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3853 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3854 file_magic_cmd=$lt_cv_file_magic_cmd
3855 deplibs_check_method=$lt_cv_deplibs_check_method
3856 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3861 # If no C compiler was specified, use CC.
3862 LTCC=${LTCC-"$CC"}
3864 # Allow CC to be a program name with arguments.
3865 compiler=$CC
3867 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3868 if test "${enable_libtool_lock+set}" = set; then
3869 enableval="$enable_libtool_lock"
3872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3874 # Some flags need to be propagated to the compiler or linker for good
3875 # libtool support.
3876 case $host in
3877 ia64-*-hpux*)
3878 # Find out which ABI we are using.
3879 echo 'int i;' > conftest.$ac_ext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881 (eval $ac_compile) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; then
3885 case `/usr/bin/file conftest.$ac_objext` in
3886 *ELF-32*)
3887 HPUX_IA64_MODE="32"
3889 *ELF-64*)
3890 HPUX_IA64_MODE="64"
3892 esac
3894 rm -rf conftest*
3896 *-*-irix6*)
3897 # Find out which ABI we are using.
3898 echo '#line 3898 "configure"' > conftest.$ac_ext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900 (eval $ac_compile) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; then
3904 if test "$lt_cv_prog_gnu_ld" = yes; then
3905 case `/usr/bin/file conftest.$ac_objext` in
3906 *32-bit*)
3907 LD="${LD-ld} -melf32bsmip"
3909 *N32*)
3910 LD="${LD-ld} -melf32bmipn32"
3912 *64-bit*)
3913 LD="${LD-ld} -melf64bmip"
3915 esac
3916 else
3917 case `/usr/bin/file conftest.$ac_objext` in
3918 *32-bit*)
3919 LD="${LD-ld} -32"
3921 *N32*)
3922 LD="${LD-ld} -n32"
3924 *64-bit*)
3925 LD="${LD-ld} -64"
3927 esac
3930 rm -rf conftest*
3933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3934 # Find out which ABI we are using.
3935 echo 'int i;' > conftest.$ac_ext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937 (eval $ac_compile) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; then
3941 case "`/usr/bin/file conftest.o`" in
3942 *32-bit*)
3943 case $host in
3944 x86_64-*linux*)
3945 LD="${LD-ld} -m elf_i386"
3947 ppc64-*linux*|powerpc64-*linux*)
3948 LD="${LD-ld} -m elf32ppclinux"
3950 s390x-*linux*)
3951 LD="${LD-ld} -m elf_s390"
3953 sparc64-*linux*)
3954 LD="${LD-ld} -m elf32_sparc"
3956 esac
3958 *64-bit*)
3959 case $host in
3960 x86_64-*linux*)
3961 LD="${LD-ld} -m elf_x86_64"
3963 ppc*-*linux*|powerpc*-*linux*)
3964 LD="${LD-ld} -m elf64ppc"
3966 s390*-*linux*)
3967 LD="${LD-ld} -m elf64_s390"
3969 sparc*-*linux*)
3970 LD="${LD-ld} -m elf64_sparc"
3972 esac
3974 esac
3976 rm -rf conftest*
3979 *-*-sco3.2v5*)
3980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3981 SAVE_CFLAGS="$CFLAGS"
3982 CFLAGS="$CFLAGS -belf"
3983 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3985 if test "${lt_cv_cc_needs_belf+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994 cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h. */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4002 main ()
4006 return 0;
4008 _ACEOF
4009 rm -f conftest.$ac_objext conftest$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011 (eval $ac_link) 2>conftest.er1
4012 ac_status=$?
4013 grep -v '^ *+' conftest.er1 >conftest.err
4014 rm -f conftest.er1
4015 cat conftest.err >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -z "$ac_c_werror_flag"
4019 || test ! -s conftest.err'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; } &&
4025 { ac_try='test -s conftest$ac_exeext'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 (eval $ac_try) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 lt_cv_cc_needs_belf=yes
4032 else
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 lt_cv_cc_needs_belf=no
4038 rm -f conftest.err conftest.$ac_objext \
4039 conftest$ac_exeext conftest.$ac_ext
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4048 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4049 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4050 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4051 CFLAGS="$SAVE_CFLAGS"
4054 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4055 if test -n "$ac_tool_prefix"; then
4056 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 if test -n "$DLLTOOL"; then
4064 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4077 done
4078 done
4082 DLLTOOL=$ac_cv_prog_DLLTOOL
4083 if test -n "$DLLTOOL"; then
4084 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4085 echo "${ECHO_T}$DLLTOOL" >&6
4086 else
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4092 if test -z "$ac_cv_prog_DLLTOOL"; then
4093 ac_ct_DLLTOOL=$DLLTOOL
4094 # Extract the first word of "dlltool", so it can be a program name with args.
4095 set dummy dlltool; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 if test -n "$ac_ct_DLLTOOL"; then
4102 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4115 done
4116 done
4118 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4121 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4122 if test -n "$ac_ct_DLLTOOL"; then
4123 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4124 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4125 else
4126 echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4130 DLLTOOL=$ac_ct_DLLTOOL
4131 else
4132 DLLTOOL="$ac_cv_prog_DLLTOOL"
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}as; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_prog_AS+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 if test -n "$AS"; then
4144 ac_cv_prog_AS="$AS" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_AS="${ac_tool_prefix}as"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4162 AS=$ac_cv_prog_AS
4163 if test -n "$AS"; then
4164 echo "$as_me:$LINENO: result: $AS" >&5
4165 echo "${ECHO_T}$AS" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4172 if test -z "$ac_cv_prog_AS"; then
4173 ac_ct_AS=$AS
4174 # Extract the first word of "as", so it can be a program name with args.
4175 set dummy as; ac_word=$2
4176 echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 if test -n "$ac_ct_AS"; then
4182 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_ac_ct_AS="as"
4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4198 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4201 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4202 if test -n "$ac_ct_AS"; then
4203 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4204 echo "${ECHO_T}$ac_ct_AS" >&6
4205 else
4206 echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4210 AS=$ac_ct_AS
4211 else
4212 AS="$ac_cv_prog_AS"
4215 if test -n "$ac_tool_prefix"; then
4216 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4217 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 if test -n "$OBJDUMP"; then
4224 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4237 done
4238 done
4242 OBJDUMP=$ac_cv_prog_OBJDUMP
4243 if test -n "$OBJDUMP"; then
4244 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4245 echo "${ECHO_T}$OBJDUMP" >&6
4246 else
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4252 if test -z "$ac_cv_prog_OBJDUMP"; then
4253 ac_ct_OBJDUMP=$OBJDUMP
4254 # Extract the first word of "objdump", so it can be a program name with args.
4255 set dummy objdump; ac_word=$2
4256 echo "$as_me:$LINENO: checking for $ac_word" >&5
4257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4258 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 if test -n "$ac_ct_OBJDUMP"; then
4262 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4271 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4275 done
4276 done
4278 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4281 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4282 if test -n "$ac_ct_OBJDUMP"; then
4283 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4284 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4285 else
4286 echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4290 OBJDUMP=$ac_ct_OBJDUMP
4291 else
4292 OBJDUMP="$ac_cv_prog_OBJDUMP"
4297 esac
4299 need_locks="$enable_libtool_lock"
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4308 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4309 # On Suns, sometimes $CPP names a directory.
4310 if test -n "$CPP" && test -d "$CPP"; then
4311 CPP=
4313 if test -z "$CPP"; then
4314 if test "${ac_cv_prog_CPP+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 # Double quotes because CPP needs to be expanded
4318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4320 ac_preproc_ok=false
4321 for ac_c_preproc_warn_flag in '' yes
4323 # Use a header file that comes with gcc, so configuring glibc
4324 # with a fresh cross-compiler works.
4325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 # <limits.h> exists even on freestanding compilers.
4327 # On the NeXT, cc -E runs the code through the compiler's parser,
4328 # not just through cpp. "Syntax error" is here to catch this case.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #ifdef __STDC__
4336 # include <limits.h>
4337 #else
4338 # include <assert.h>
4339 #endif
4340 Syntax error
4341 _ACEOF
4342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null; then
4350 if test -s conftest.err; then
4351 ac_cpp_err=$ac_c_preproc_warn_flag
4352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4353 else
4354 ac_cpp_err=
4356 else
4357 ac_cpp_err=yes
4359 if test -z "$ac_cpp_err"; then
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 # Broken: fails on valid input.
4366 continue
4368 rm -f conftest.err conftest.$ac_ext
4370 # OK, works on sane cases. Now check whether non-existent headers
4371 # can be detected and how.
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <ac_nonexistent.h>
4379 _ACEOF
4380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null; then
4388 if test -s conftest.err; then
4389 ac_cpp_err=$ac_c_preproc_warn_flag
4390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4391 else
4392 ac_cpp_err=
4394 else
4395 ac_cpp_err=yes
4397 if test -z "$ac_cpp_err"; then
4398 # Broken: success on invalid input.
4399 continue
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 # Passes both tests.
4405 ac_preproc_ok=:
4406 break
4408 rm -f conftest.err conftest.$ac_ext
4410 done
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then
4414 break
4417 done
4418 ac_cv_prog_CPP=$CPP
4421 CPP=$ac_cv_prog_CPP
4422 else
4423 ac_cv_prog_CPP=$CPP
4425 echo "$as_me:$LINENO: result: $CPP" >&5
4426 echo "${ECHO_T}$CPP" >&6
4427 ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 #ifdef __STDC__
4443 # include <limits.h>
4444 #else
4445 # include <assert.h>
4446 #endif
4447 Syntax error
4448 _ACEOF
4449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } >/dev/null; then
4457 if test -s conftest.err; then
4458 ac_cpp_err=$ac_c_preproc_warn_flag
4459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4460 else
4461 ac_cpp_err=
4463 else
4464 ac_cpp_err=yes
4466 if test -z "$ac_cpp_err"; then
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 # Broken: fails on valid input.
4473 continue
4475 rm -f conftest.err conftest.$ac_ext
4477 # OK, works on sane cases. Now check whether non-existent headers
4478 # can be detected and how.
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <ac_nonexistent.h>
4486 _ACEOF
4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null; then
4495 if test -s conftest.err; then
4496 ac_cpp_err=$ac_c_preproc_warn_flag
4497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4498 else
4499 ac_cpp_err=
4501 else
4502 ac_cpp_err=yes
4504 if test -z "$ac_cpp_err"; then
4505 # Broken: success on invalid input.
4506 continue
4507 else
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 # Passes both tests.
4512 ac_preproc_ok=:
4513 break
4515 rm -f conftest.err conftest.$ac_ext
4517 done
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.err conftest.$ac_ext
4520 if $ac_preproc_ok; then
4522 else
4523 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4524 See \`config.log' for more details." >&5
4525 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&2;}
4527 { (exit 1); exit 1; }; }
4530 ac_ext=c
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4539 if test "${ac_cv_header_stdc+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 #include <stdlib.h>
4549 #include <stdarg.h>
4550 #include <string.h>
4551 #include <float.h>
4554 main ()
4558 return 0;
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -z "$ac_c_werror_flag"
4571 || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 ac_cv_header_stdc=yes
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_cv_header_stdc=no
4590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #include <string.h>
4602 _ACEOF
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "memchr" >/dev/null 2>&1; then
4606 else
4607 ac_cv_header_stdc=no
4609 rm -f conftest*
4613 if test $ac_cv_header_stdc = yes; then
4614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4621 #include <stdlib.h>
4623 _ACEOF
4624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4625 $EGREP "free" >/dev/null 2>&1; then
4627 else
4628 ac_cv_header_stdc=no
4630 rm -f conftest*
4634 if test $ac_cv_header_stdc = yes; then
4635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4636 if test "$cross_compiling" = yes; then
4638 else
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 #include <ctype.h>
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649 #else
4650 # define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
4652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4655 #endif
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4659 main ()
4661 int i;
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4665 exit(2);
4666 exit (0);
4668 _ACEOF
4669 rm -f conftest$ac_exeext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671 (eval $ac_link) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4681 else
4682 echo "$as_me: program exited with status $ac_status" >&5
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 ( exit $ac_status )
4687 ac_cv_header_stdc=no
4689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4693 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4695 if test $ac_cv_header_stdc = yes; then
4697 cat >>confdefs.h <<\_ACEOF
4698 #define STDC_HEADERS 1
4699 _ACEOF
4703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4714 inttypes.h stdint.h unistd.h
4716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 echo "$as_me:$LINENO: checking for $ac_header" >&5
4718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4730 #include <$ac_header>
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -z "$ac_c_werror_flag"
4742 || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 eval "$as_ac_Header=no"
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768 _ACEOF
4772 done
4776 for ac_header in dlfcn.h
4778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787 else
4788 # Is the header compilable?
4789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4798 #include <$ac_header>
4799 _ACEOF
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_c_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_header_compiler=yes
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_header_compiler=no
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6
4833 # Is the header present?
4834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <$ac_header>
4843 _ACEOF
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null; then
4852 if test -s conftest.err; then
4853 ac_cpp_err=$ac_c_preproc_warn_flag
4854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855 else
4856 ac_cpp_err=
4858 else
4859 ac_cpp_err=yes
4861 if test -z "$ac_cpp_err"; then
4862 ac_header_preproc=yes
4863 else
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4867 ac_header_preproc=no
4869 rm -f conftest.err conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4873 # So? What about this header?
4874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875 yes:no: )
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4880 ac_header_preproc=yes
4882 no:yes:* )
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4896 cat <<\_ASBOX
4897 ## ---------------------------------- ##
4898 ## Report this to bug-libtool@gnu.org ##
4899 ## ---------------------------------- ##
4900 _ASBOX
4902 sed "s/^/$as_me: WARNING: /" >&2
4904 esac
4905 echo "$as_me:$LINENO: checking for $ac_header" >&5
4906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 eval "$as_ac_Header=\$ac_header_preproc"
4912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917 cat >>confdefs.h <<_ACEOF
4918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919 _ACEOF
4923 done
4925 ac_ext=cc
4926 ac_cpp='$CXXCPP $CPPFLAGS'
4927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4930 if test -n "$ac_tool_prefix"; then
4931 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4935 echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937 if test "${ac_cv_prog_CXX+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 if test -n "$CXX"; then
4941 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4959 CXX=$ac_cv_prog_CXX
4960 if test -n "$CXX"; then
4961 echo "$as_me:$LINENO: result: $CXX" >&5
4962 echo "${ECHO_T}$CXX" >&6
4963 else
4964 echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4968 test -n "$CXX" && break
4969 done
4971 if test -z "$CXX"; then
4972 ac_ct_CXX=$CXX
4973 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4975 # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 if test -n "$ac_ct_CXX"; then
4983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_ac_ct_CXX="$ac_prog"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
5001 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5002 if test -n "$ac_ct_CXX"; then
5003 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5004 echo "${ECHO_T}$ac_ct_CXX" >&6
5005 else
5006 echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5010 test -n "$ac_ct_CXX" && break
5011 done
5012 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5014 CXX=$ac_ct_CXX
5018 # Provide some information about the compiler.
5019 echo "$as_me:$LINENO:" \
5020 "checking for C++ compiler version" >&5
5021 ac_compiler=`set X $ac_compile; echo $2`
5022 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5023 (eval $ac_compiler --version </dev/null >&5) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }
5027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5028 (eval $ac_compiler -v </dev/null >&5) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }
5032 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5033 (eval $ac_compiler -V </dev/null >&5) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }
5038 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5039 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5040 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5051 main ()
5053 #ifndef __GNUC__
5054 choke me
5055 #endif
5058 return 0;
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_cxx_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 ac_compiler_gnu=yes
5084 else
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5088 ac_compiler_gnu=no
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5094 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5095 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5096 GXX=`test $ac_compiler_gnu = yes && echo yes`
5097 ac_test_CXXFLAGS=${CXXFLAGS+set}
5098 ac_save_CXXFLAGS=$CXXFLAGS
5099 CXXFLAGS="-g"
5100 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5101 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5102 if test "${ac_cv_prog_cxx_g+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5113 main ()
5117 return 0;
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_cxx_werror_flag"
5130 || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_prog_cxx_g=yes
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 ac_cv_prog_cxx_g=no
5149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5152 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5153 if test "$ac_test_CXXFLAGS" = set; then
5154 CXXFLAGS=$ac_save_CXXFLAGS
5155 elif test $ac_cv_prog_cxx_g = yes; then
5156 if test "$GXX" = yes; then
5157 CXXFLAGS="-g -O2"
5158 else
5159 CXXFLAGS="-g"
5161 else
5162 if test "$GXX" = yes; then
5163 CXXFLAGS="-O2"
5164 else
5165 CXXFLAGS=
5168 for ac_declaration in \
5169 '' \
5170 'extern "C" void std::exit (int) throw (); using std::exit;' \
5171 'extern "C" void std::exit (int); using std::exit;' \
5172 'extern "C" void exit (int) throw ();' \
5173 'extern "C" void exit (int);' \
5174 'void exit (int);'
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 $ac_declaration
5183 #include <stdlib.h>
5185 main ()
5187 exit (42);
5189 return 0;
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -z "$ac_cxx_werror_flag"
5202 || test ! -s conftest.err'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest.$ac_objext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 (eval $ac_try) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5215 else
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 continue
5221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5222 cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h. */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 $ac_declaration
5230 main ()
5232 exit (42);
5234 return 0;
5236 _ACEOF
5237 rm -f conftest.$ac_objext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239 (eval $ac_compile) 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try='test -z "$ac_cxx_werror_flag"
5247 || test ! -s conftest.err'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try='test -s conftest.$ac_objext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 break
5260 else
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 done
5267 rm -f conftest*
5268 if test -n "$ac_declaration"; then
5269 echo '#ifdef __cplusplus' >>confdefs.h
5270 echo $ac_declaration >>confdefs.h
5271 echo '#endif' >>confdefs.h
5274 ac_ext=cc
5275 ac_cpp='$CXXCPP $CPPFLAGS'
5276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5280 depcc="$CXX" am_compiler_list=
5282 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5283 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5284 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5288 # We make a subdir and do the tests there. Otherwise we can end up
5289 # making bogus files that we don't know about and never remove. For
5290 # instance it was reported that on HP-UX the gcc test will end up
5291 # making a dummy file named `D' -- because `-MD' means `put the output
5292 # in D'.
5293 mkdir conftest.dir
5294 # Copy depcomp to subdir because otherwise we won't find it if we're
5295 # using a relative directory.
5296 cp "$am_depcomp" conftest.dir
5297 cd conftest.dir
5298 # We will build objects and dependencies in a subdirectory because
5299 # it helps to detect inapplicable dependency modes. For instance
5300 # both Tru64's cc and ICC support -MD to output dependencies as a
5301 # side effect of compilation, but ICC will put the dependencies in
5302 # the current directory while Tru64 will put them in the object
5303 # directory.
5304 mkdir sub
5306 am_cv_CXX_dependencies_compiler_type=none
5307 if test "$am_compiler_list" = ""; then
5308 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5310 for depmode in $am_compiler_list; do
5311 # Setup a source with many dependencies, because some compilers
5312 # like to wrap large dependency lists on column 80 (with \), and
5313 # we should not choose a depcomp mode which is confused by this.
5315 # We need to recreate these files for each test, as the compiler may
5316 # overwrite some of them when testing with obscure command lines.
5317 # This happens at least with the AIX C compiler.
5318 : > sub/conftest.c
5319 for i in 1 2 3 4 5 6; do
5320 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5321 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5322 # Solaris 8's {/usr,}/bin/sh.
5323 touch sub/conftst$i.h
5324 done
5325 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5327 case $depmode in
5328 nosideeffect)
5329 # after this tag, mechanisms are not by side-effect, so they'll
5330 # only be used when explicitly requested
5331 if test "x$enable_dependency_tracking" = xyes; then
5332 continue
5333 else
5334 break
5337 none) break ;;
5338 esac
5339 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5340 # mode. It turns out that the SunPro C++ compiler does not properly
5341 # handle `-M -o', and we need to detect this.
5342 if depmode=$depmode \
5343 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5344 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5345 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5346 >/dev/null 2>conftest.err &&
5347 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5348 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5349 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5350 # icc doesn't choke on unknown options, it will just issue warnings
5351 # or remarks (even with -Werror). So we grep stderr for any message
5352 # that says an option was ignored or not supported.
5353 # When given -MP, icc 7.0 and 7.1 complain thusly:
5354 # icc: Command line warning: ignoring option '-M'; no argument required
5355 # The diagnosis changed in icc 8.0:
5356 # icc: Command line remark: option '-MP' not supported
5357 if (grep 'ignoring option' conftest.err ||
5358 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5359 am_cv_CXX_dependencies_compiler_type=$depmode
5360 break
5363 done
5365 cd ..
5366 rm -rf conftest.dir
5367 else
5368 am_cv_CXX_dependencies_compiler_type=none
5372 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5373 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5374 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5379 test "x$enable_dependency_tracking" != xno \
5380 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5381 am__fastdepCXX_TRUE=
5382 am__fastdepCXX_FALSE='#'
5383 else
5384 am__fastdepCXX_TRUE='#'
5385 am__fastdepCXX_FALSE=
5391 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5392 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5393 (test "X$CXX" != "Xg++"))) ; then
5394 ac_ext=cc
5395 ac_cpp='$CXXCPP $CPPFLAGS'
5396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5399 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5400 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5401 if test -z "$CXXCPP"; then
5402 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 # Double quotes because CXXCPP needs to be expanded
5406 for CXXCPP in "$CXX -E" "/lib/cpp"
5408 ac_preproc_ok=false
5409 for ac_cxx_preproc_warn_flag in '' yes
5411 # Use a header file that comes with gcc, so configuring glibc
5412 # with a fresh cross-compiler works.
5413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414 # <limits.h> exists even on freestanding compilers.
5415 # On the NeXT, cc -E runs the code through the compiler's parser,
5416 # not just through cpp. "Syntax error" is here to catch this case.
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #ifdef __STDC__
5424 # include <limits.h>
5425 #else
5426 # include <assert.h>
5427 #endif
5428 Syntax error
5429 _ACEOF
5430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null; then
5438 if test -s conftest.err; then
5439 ac_cpp_err=$ac_cxx_preproc_warn_flag
5440 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5441 else
5442 ac_cpp_err=
5444 else
5445 ac_cpp_err=yes
5447 if test -z "$ac_cpp_err"; then
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 # Broken: fails on valid input.
5454 continue
5456 rm -f conftest.err conftest.$ac_ext
5458 # OK, works on sane cases. Now check whether non-existent headers
5459 # can be detected and how.
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <ac_nonexistent.h>
5467 _ACEOF
5468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } >/dev/null; then
5476 if test -s conftest.err; then
5477 ac_cpp_err=$ac_cxx_preproc_warn_flag
5478 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5479 else
5480 ac_cpp_err=
5482 else
5483 ac_cpp_err=yes
5485 if test -z "$ac_cpp_err"; then
5486 # Broken: success on invalid input.
5487 continue
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5492 # Passes both tests.
5493 ac_preproc_ok=:
5494 break
5496 rm -f conftest.err conftest.$ac_ext
5498 done
5499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5500 rm -f conftest.err conftest.$ac_ext
5501 if $ac_preproc_ok; then
5502 break
5505 done
5506 ac_cv_prog_CXXCPP=$CXXCPP
5509 CXXCPP=$ac_cv_prog_CXXCPP
5510 else
5511 ac_cv_prog_CXXCPP=$CXXCPP
5513 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5514 echo "${ECHO_T}$CXXCPP" >&6
5515 ac_preproc_ok=false
5516 for ac_cxx_preproc_warn_flag in '' yes
5518 # Use a header file that comes with gcc, so configuring glibc
5519 # with a fresh cross-compiler works.
5520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521 # <limits.h> exists even on freestanding compilers.
5522 # On the NeXT, cc -E runs the code through the compiler's parser,
5523 # not just through cpp. "Syntax error" is here to catch this case.
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #ifdef __STDC__
5531 # include <limits.h>
5532 #else
5533 # include <assert.h>
5534 #endif
5535 Syntax error
5536 _ACEOF
5537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } >/dev/null; then
5545 if test -s conftest.err; then
5546 ac_cpp_err=$ac_cxx_preproc_warn_flag
5547 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5548 else
5549 ac_cpp_err=
5551 else
5552 ac_cpp_err=yes
5554 if test -z "$ac_cpp_err"; then
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 # Broken: fails on valid input.
5561 continue
5563 rm -f conftest.err conftest.$ac_ext
5565 # OK, works on sane cases. Now check whether non-existent headers
5566 # can be detected and how.
5567 cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h. */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573 #include <ac_nonexistent.h>
5574 _ACEOF
5575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } >/dev/null; then
5583 if test -s conftest.err; then
5584 ac_cpp_err=$ac_cxx_preproc_warn_flag
5585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5586 else
5587 ac_cpp_err=
5589 else
5590 ac_cpp_err=yes
5592 if test -z "$ac_cpp_err"; then
5593 # Broken: success on invalid input.
5594 continue
5595 else
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5603 rm -f conftest.err conftest.$ac_ext
5605 done
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then
5610 else
5611 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5612 See \`config.log' for more details." >&5
5613 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5614 See \`config.log' for more details." >&2;}
5615 { (exit 1); exit 1; }; }
5618 ac_ext=cc
5619 ac_cpp='$CXXCPP $CPPFLAGS'
5620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5627 ac_ext=f
5628 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5629 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5631 if test -n "$ac_tool_prefix"; then
5632 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5636 echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5638 if test "${ac_cv_prog_F77+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 if test -n "$F77"; then
5642 ac_cv_prog_F77="$F77" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5655 done
5656 done
5660 F77=$ac_cv_prog_F77
5661 if test -n "$F77"; then
5662 echo "$as_me:$LINENO: result: $F77" >&5
5663 echo "${ECHO_T}$F77" >&6
5664 else
5665 echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5669 test -n "$F77" && break
5670 done
5672 if test -z "$F77"; then
5673 ac_ct_F77=$F77
5674 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 echo "$as_me:$LINENO: checking for $ac_word" >&5
5679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if test -n "$ac_ct_F77"; then
5684 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_ac_ct_F77="$ac_prog"
5694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5702 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5703 if test -n "$ac_ct_F77"; then
5704 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5705 echo "${ECHO_T}$ac_ct_F77" >&6
5706 else
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5711 test -n "$ac_ct_F77" && break
5712 done
5714 F77=$ac_ct_F77
5718 # Provide some information about the compiler.
5719 echo "$as_me:5719:" \
5720 "checking for Fortran 77 compiler version" >&5
5721 ac_compiler=`set X $ac_compile; echo $2`
5722 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5723 (eval $ac_compiler --version </dev/null >&5) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }
5727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5728 (eval $ac_compiler -v </dev/null >&5) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }
5732 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5733 (eval $ac_compiler -V </dev/null >&5) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }
5737 rm -f a.out
5739 # If we don't use `.F' as extension, the preprocessor is not run on the
5740 # input file. (Note that this only needs to work for GNU compilers.)
5741 ac_save_ext=$ac_ext
5742 ac_ext=F
5743 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5744 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5745 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 cat >conftest.$ac_ext <<_ACEOF
5749 program main
5750 #ifndef __GNUC__
5751 choke me
5752 #endif
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758 (eval $ac_compile) 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_f77_werror_flag"
5766 || test ! -s conftest.err'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 (eval $ac_try) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5778 ac_compiler_gnu=yes
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5783 ac_compiler_gnu=no
5785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5786 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5789 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5790 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5791 ac_ext=$ac_save_ext
5792 ac_test_FFLAGS=${FFLAGS+set}
5793 ac_save_FFLAGS=$FFLAGS
5794 FFLAGS=
5795 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5796 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5797 if test "${ac_cv_prog_f77_g+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 FFLAGS=-g
5801 cat >conftest.$ac_ext <<_ACEOF
5802 program main
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -z "$ac_f77_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_prog_f77_g=yes
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 ac_cv_prog_f77_g=no
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5839 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5840 if test "$ac_test_FFLAGS" = set; then
5841 FFLAGS=$ac_save_FFLAGS
5842 elif test $ac_cv_prog_f77_g = yes; then
5843 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5844 FFLAGS="-g -O2"
5845 else
5846 FFLAGS="-g"
5848 else
5849 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5850 FFLAGS="-O2"
5851 else
5852 FFLAGS=
5856 G77=`test $ac_compiler_gnu = yes && echo yes`
5857 ac_ext=c
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5867 # find the maximum length of command line arguments
5868 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5869 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5870 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5874 teststring="ABCD"
5876 case $build_os in
5877 msdosdjgpp*)
5878 # On DJGPP, this test can blow up pretty badly due to problems in libc
5879 # (any single argument exceeding 2000 bytes causes a buffer overrun
5880 # during glob expansion). Even if it were fixed, the result of this
5881 # check would be larger than it should be.
5882 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5885 gnu*)
5886 # Under GNU Hurd, this test is not required because there is
5887 # no limit to the length of command line arguments.
5888 # Libtool will interpret -1 as no limit whatsoever
5889 lt_cv_sys_max_cmd_len=-1;
5892 cygwin* | mingw*)
5893 # On Win9x/ME, this test blows up -- it succeeds, but takes
5894 # about 5 minutes as the teststring grows exponentially.
5895 # Worse, since 9x/ME are not pre-emptively multitasking,
5896 # you end up with a "frozen" computer, even though with patience
5897 # the test eventually succeeds (with a max line length of 256k).
5898 # Instead, let's just punt: use the minimum linelength reported by
5899 # all of the supported platforms: 8192 (on NT/2K/XP).
5900 lt_cv_sys_max_cmd_len=8192;
5903 amigaos*)
5904 # On AmigaOS with pdksh, this test takes hours, literally.
5905 # So we just punt and use a minimum line length of 8192.
5906 lt_cv_sys_max_cmd_len=8192;
5909 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5910 # This has been around since 386BSD, at least. Likely further.
5911 if test -x /sbin/sysctl; then
5912 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5913 elif test -x /usr/sbin/sysctl; then
5914 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5915 else
5916 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5918 # And add a safety zone
5919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5922 osf*)
5923 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5924 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5925 # nice to cause kernel panics so lets avoid the loop below.
5926 # First set a reasonable default.
5927 lt_cv_sys_max_cmd_len=16384
5929 if test -x /sbin/sysconfig; then
5930 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5931 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5932 esac
5936 # If test is not a shell built-in, we'll probably end up computing a
5937 # maximum length that is only half of the actual maximum length, but
5938 # we can't tell.
5939 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5940 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5941 = "XX$teststring") >/dev/null 2>&1 &&
5942 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5943 lt_cv_sys_max_cmd_len=$new_result &&
5944 test $i != 17 # 1/2 MB should be enough
5946 i=`expr $i + 1`
5947 teststring=$teststring$teststring
5948 done
5949 teststring=
5950 # Add a significant safety factor because C++ compilers can tack on massive
5951 # amounts of additional arguments before passing them to the linker.
5952 # It appears as though 1/2 is a usable value.
5953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5955 esac
5959 if test -n $lt_cv_sys_max_cmd_len ; then
5960 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5961 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5962 else
5963 echo "$as_me:$LINENO: result: none" >&5
5964 echo "${ECHO_T}none" >&6
5970 # Check for command to grab the raw symbol name followed by C symbol from nm.
5971 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5972 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5973 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5977 # These are sane defaults that work on at least a few old systems.
5978 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5980 # Character class describing NM global symbol codes.
5981 symcode='[BCDEGRST]'
5983 # Regexp to match symbols that can be accessed directly from C.
5984 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5986 # Transform an extracted symbol line into a proper C declaration
5987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5989 # Transform an extracted symbol line into symbol name and symbol address
5990 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'"
5992 # Define system-specific variables.
5993 case $host_os in
5994 aix*)
5995 symcode='[BCDT]'
5997 cygwin* | mingw* | pw32*)
5998 symcode='[ABCDGISTW]'
6000 hpux*) # Its linker distinguishes data from code symbols
6001 if test "$host_cpu" = ia64; then
6002 symcode='[ABCDEGRST]'
6004 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6005 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'"
6007 linux*)
6008 if test "$host_cpu" = ia64; then
6009 symcode='[ABCDGIRSTW]'
6010 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6011 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'"
6014 irix* | nonstopux*)
6015 symcode='[BCDEGRST]'
6017 osf*)
6018 symcode='[BCDEGQRST]'
6020 solaris* | sysv5*)
6021 symcode='[BDRT]'
6023 sysv4)
6024 symcode='[DFNSTU]'
6026 esac
6028 # Handle CRLF in mingw tool chain
6029 opt_cr=
6030 case $build_os in
6031 mingw*)
6032 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6034 esac
6036 # If we're using GNU nm, then use its standard symbol codes.
6037 case `$NM -V 2>&1` in
6038 *GNU* | *'with BFD'*)
6039 symcode='[ABCDGIRSTW]' ;;
6040 esac
6042 # Try without a prefix undercore, then with it.
6043 for ac_symprfx in "" "_"; do
6045 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6046 symxfrm="\\1 $ac_symprfx\\2 \\2"
6048 # Write the raw and C identifiers.
6049 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6051 # Check to see that the pipe works correctly.
6052 pipe_works=no
6054 rm -f conftest*
6055 cat > conftest.$ac_ext <<EOF
6056 #ifdef __cplusplus
6057 extern "C" {
6058 #endif
6059 char nm_test_var;
6060 void nm_test_func(){}
6061 #ifdef __cplusplus
6063 #endif
6064 int main(){nm_test_var='a';nm_test_func();return(0);}
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; then
6072 # Now try to grab the symbols.
6073 nlist=conftest.nm
6074 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6075 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && test -s "$nlist"; then
6079 # Try sorting and uniquifying the output.
6080 if sort "$nlist" | uniq > "$nlist"T; then
6081 mv -f "$nlist"T "$nlist"
6082 else
6083 rm -f "$nlist"T
6086 # Make sure that we snagged all the symbols we need.
6087 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6088 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6089 cat <<EOF > conftest.$ac_ext
6090 #ifdef __cplusplus
6091 extern "C" {
6092 #endif
6095 # Now generate the symbol file.
6096 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6098 cat <<EOF >> conftest.$ac_ext
6099 #if defined (__STDC__) && __STDC__
6100 # define lt_ptr_t void *
6101 #else
6102 # define lt_ptr_t char *
6103 # define const
6104 #endif
6106 /* The mapping between symbol names and symbols. */
6107 const struct {
6108 const char *name;
6109 lt_ptr_t address;
6111 lt_preloaded_symbols[] =
6114 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6115 cat <<\EOF >> conftest.$ac_ext
6116 {0, (lt_ptr_t) 0}
6119 #ifdef __cplusplus
6121 #endif
6123 # Now try linking the two files.
6124 mv conftest.$ac_objext conftstm.$ac_objext
6125 lt_save_LIBS="$LIBS"
6126 lt_save_CFLAGS="$CFLAGS"
6127 LIBS="conftstm.$ac_objext"
6128 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6134 pipe_works=yes
6136 LIBS="$lt_save_LIBS"
6137 CFLAGS="$lt_save_CFLAGS"
6138 else
6139 echo "cannot find nm_test_func in $nlist" >&5
6141 else
6142 echo "cannot find nm_test_var in $nlist" >&5
6144 else
6145 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6147 else
6148 echo "$progname: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6151 rm -f conftest* conftst*
6153 # Do not use the global_symbol_pipe unless it works.
6154 if test "$pipe_works" = yes; then
6155 break
6156 else
6157 lt_cv_sys_global_symbol_pipe=
6159 done
6163 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6164 lt_cv_sys_global_symbol_to_cdecl=
6166 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6167 echo "$as_me:$LINENO: result: failed" >&5
6168 echo "${ECHO_T}failed" >&6
6169 else
6170 echo "$as_me:$LINENO: result: ok" >&5
6171 echo "${ECHO_T}ok" >&6
6174 echo "$as_me:$LINENO: checking for objdir" >&5
6175 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6176 if test "${lt_cv_objdir+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 rm -f .libs 2>/dev/null
6180 mkdir .libs 2>/dev/null
6181 if test -d .libs; then
6182 lt_cv_objdir=.libs
6183 else
6184 # MS-DOS does not allow filenames that begin with a dot.
6185 lt_cv_objdir=_libs
6187 rmdir .libs 2>/dev/null
6189 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6190 echo "${ECHO_T}$lt_cv_objdir" >&6
6191 objdir=$lt_cv_objdir
6197 case $host_os in
6198 aix3*)
6199 # AIX sometimes has problems with the GCC collect2 program. For some
6200 # reason, if we set the COLLECT_NAMES environment variable, the problems
6201 # vanish in a puff of smoke.
6202 if test "X${COLLECT_NAMES+set}" != Xset; then
6203 COLLECT_NAMES=
6204 export COLLECT_NAMES
6207 esac
6209 # Sed substitution that helps us do robust quoting. It backslashifies
6210 # metacharacters that are still active within double-quoted strings.
6211 Xsed='sed -e 1s/^X//'
6212 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6214 # Same as above, but do not quote variable references.
6215 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6217 # Sed substitution to delay expansion of an escaped shell variable in a
6218 # double_quote_subst'ed string.
6219 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6221 # Sed substitution to avoid accidental globbing in evaled expressions
6222 no_glob_subst='s/\*/\\\*/g'
6224 # Constants:
6225 rm="rm -f"
6227 # Global variables:
6228 default_ofile=libtool
6229 can_build_shared=yes
6231 # All known linkers require a `.a' archive for static linking (except M$VC,
6232 # which needs '.lib').
6233 libext=a
6234 ltmain="$ac_aux_dir/ltmain.sh"
6235 ofile="$default_ofile"
6236 with_gnu_ld="$lt_cv_prog_gnu_ld"
6238 if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6240 set dummy ${ac_tool_prefix}ar; ac_word=$2
6241 echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243 if test "${ac_cv_prog_AR+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246 if test -n "$AR"; then
6247 ac_cv_prog_AR="$AR" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_AR="${ac_tool_prefix}ar"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6260 done
6261 done
6265 AR=$ac_cv_prog_AR
6266 if test -n "$AR"; then
6267 echo "$as_me:$LINENO: result: $AR" >&5
6268 echo "${ECHO_T}$AR" >&6
6269 else
6270 echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6275 if test -z "$ac_cv_prog_AR"; then
6276 ac_ct_AR=$AR
6277 # Extract the first word of "ar", so it can be a program name with args.
6278 set dummy ar; ac_word=$2
6279 echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6281 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 if test -n "$ac_ct_AR"; then
6285 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_AR="ar"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6298 done
6299 done
6301 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6304 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6305 if test -n "$ac_ct_AR"; then
6306 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6307 echo "${ECHO_T}$ac_ct_AR" >&6
6308 else
6309 echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6
6313 AR=$ac_ct_AR
6314 else
6315 AR="$ac_cv_prog_AR"
6318 if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6321 echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323 if test "${ac_cv_prog_RANLIB+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 if test -n "$RANLIB"; then
6327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6340 done
6341 done
6345 RANLIB=$ac_cv_prog_RANLIB
6346 if test -n "$RANLIB"; then
6347 echo "$as_me:$LINENO: result: $RANLIB" >&5
6348 echo "${ECHO_T}$RANLIB" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6355 if test -z "$ac_cv_prog_RANLIB"; then
6356 ac_ct_RANLIB=$RANLIB
6357 # Extract the first word of "ranlib", so it can be a program name with args.
6358 set dummy ranlib; ac_word=$2
6359 echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 if test -n "$ac_ct_RANLIB"; then
6365 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374 ac_cv_prog_ac_ct_RANLIB="ranlib"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6378 done
6379 done
6381 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6385 if test -n "$ac_ct_RANLIB"; then
6386 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6387 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6388 else
6389 echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6
6393 RANLIB=$ac_ct_RANLIB
6394 else
6395 RANLIB="$ac_cv_prog_RANLIB"
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}strip; ac_word=$2
6401 echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6403 if test "${ac_cv_prog_STRIP+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 if test -n "$STRIP"; then
6407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6420 done
6421 done
6425 STRIP=$ac_cv_prog_STRIP
6426 if test -n "$STRIP"; then
6427 echo "$as_me:$LINENO: result: $STRIP" >&5
6428 echo "${ECHO_T}$STRIP" >&6
6429 else
6430 echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6
6435 if test -z "$ac_cv_prog_STRIP"; then
6436 ac_ct_STRIP=$STRIP
6437 # Extract the first word of "strip", so it can be a program name with args.
6438 set dummy strip; ac_word=$2
6439 echo "$as_me:$LINENO: checking for $ac_word" >&5
6440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6441 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 if test -n "$ac_ct_STRIP"; then
6445 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_STRIP="strip"
6455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6458 done
6459 done
6461 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6464 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6465 if test -n "$ac_ct_STRIP"; then
6466 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6467 echo "${ECHO_T}$ac_ct_STRIP" >&6
6468 else
6469 echo "$as_me:$LINENO: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6473 STRIP=$ac_ct_STRIP
6474 else
6475 STRIP="$ac_cv_prog_STRIP"
6479 old_CC="$CC"
6480 old_CFLAGS="$CFLAGS"
6482 # Set sane defaults for various variables
6483 test -z "$AR" && AR=ar
6484 test -z "$AR_FLAGS" && AR_FLAGS=cru
6485 test -z "$AS" && AS=as
6486 test -z "$CC" && CC=cc
6487 test -z "$LTCC" && LTCC=$CC
6488 test -z "$DLLTOOL" && DLLTOOL=dlltool
6489 test -z "$LD" && LD=ld
6490 test -z "$LN_S" && LN_S="ln -s"
6491 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6492 test -z "$NM" && NM=nm
6493 test -z "$SED" && SED=sed
6494 test -z "$OBJDUMP" && OBJDUMP=objdump
6495 test -z "$RANLIB" && RANLIB=:
6496 test -z "$STRIP" && STRIP=:
6497 test -z "$ac_objext" && ac_objext=o
6499 # Determine commands to create old-style static archives.
6500 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6501 old_postinstall_cmds='chmod 644 $oldlib'
6502 old_postuninstall_cmds=
6504 if test -n "$RANLIB"; then
6505 case $host_os in
6506 openbsd*)
6507 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6510 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6512 esac
6513 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6516 for cc_temp in $compiler""; do
6517 case $cc_temp in
6518 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6519 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6520 \-*) ;;
6521 *) break;;
6522 esac
6523 done
6524 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6527 # Only perform the check for file, if the check method requires it
6528 case $deplibs_check_method in
6529 file_magic*)
6530 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6531 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6532 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 case $MAGIC_CMD in
6537 [\\/*] | ?:[\\/]*)
6538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6541 lt_save_MAGIC_CMD="$MAGIC_CMD"
6542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6544 for ac_dir in $ac_dummy; do
6545 IFS="$lt_save_ifs"
6546 test -z "$ac_dir" && ac_dir=.
6547 if test -f $ac_dir/${ac_tool_prefix}file; then
6548 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6549 if test -n "$file_magic_test_file"; then
6550 case $deplibs_check_method in
6551 "file_magic "*)
6552 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6555 $EGREP "$file_magic_regex" > /dev/null; then
6557 else
6558 cat <<EOF 1>&2
6560 *** Warning: the command libtool uses to detect shared libraries,
6561 *** $file_magic_cmd, produces output that libtool cannot recognize.
6562 *** The result is that libtool may fail to recognize shared libraries
6563 *** as such. This will affect the creation of libtool libraries that
6564 *** depend on shared libraries, but programs linked with such libtool
6565 *** libraries will work regardless of this problem. Nevertheless, you
6566 *** may want to report the problem to your system manager and/or to
6567 *** bug-libtool@gnu.org
6570 fi ;;
6571 esac
6573 break
6575 done
6576 IFS="$lt_save_ifs"
6577 MAGIC_CMD="$lt_save_MAGIC_CMD"
6579 esac
6582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6583 if test -n "$MAGIC_CMD"; then
6584 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6585 echo "${ECHO_T}$MAGIC_CMD" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6591 if test -z "$lt_cv_path_MAGIC_CMD"; then
6592 if test -n "$ac_tool_prefix"; then
6593 echo "$as_me:$LINENO: checking for file" >&5
6594 echo $ECHO_N "checking for file... $ECHO_C" >&6
6595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 case $MAGIC_CMD in
6599 [\\/*] | ?:[\\/]*)
6600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6603 lt_save_MAGIC_CMD="$MAGIC_CMD"
6604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6606 for ac_dir in $ac_dummy; do
6607 IFS="$lt_save_ifs"
6608 test -z "$ac_dir" && ac_dir=.
6609 if test -f $ac_dir/file; then
6610 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6611 if test -n "$file_magic_test_file"; then
6612 case $deplibs_check_method in
6613 "file_magic "*)
6614 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6617 $EGREP "$file_magic_regex" > /dev/null; then
6619 else
6620 cat <<EOF 1>&2
6622 *** Warning: the command libtool uses to detect shared libraries,
6623 *** $file_magic_cmd, produces output that libtool cannot recognize.
6624 *** The result is that libtool may fail to recognize shared libraries
6625 *** as such. This will affect the creation of libtool libraries that
6626 *** depend on shared libraries, but programs linked with such libtool
6627 *** libraries will work regardless of this problem. Nevertheless, you
6628 *** may want to report the problem to your system manager and/or to
6629 *** bug-libtool@gnu.org
6632 fi ;;
6633 esac
6635 break
6637 done
6638 IFS="$lt_save_ifs"
6639 MAGIC_CMD="$lt_save_MAGIC_CMD"
6641 esac
6644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6645 if test -n "$MAGIC_CMD"; then
6646 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6647 echo "${ECHO_T}$MAGIC_CMD" >&6
6648 else
6649 echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6
6653 else
6654 MAGIC_CMD=:
6660 esac
6662 enable_dlopen=no
6663 enable_win32_dll=yes
6665 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6666 if test "${enable_libtool_lock+set}" = set; then
6667 enableval="$enable_libtool_lock"
6670 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6673 # Check whether --with-pic or --without-pic was given.
6674 if test "${with_pic+set}" = set; then
6675 withval="$with_pic"
6676 pic_mode="$withval"
6677 else
6678 pic_mode=default
6680 test -z "$pic_mode" && pic_mode=default
6682 # Use C for the default configuration in the libtool script
6683 tagname=
6684 lt_save_CC="$CC"
6685 ac_ext=c
6686 ac_cpp='$CPP $CPPFLAGS'
6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692 # Source file extension for C test sources.
6693 ac_ext=c
6695 # Object file extension for compiled C test sources.
6696 objext=o
6697 objext=$objext
6699 # Code to be used in simple compile tests
6700 lt_simple_compile_test_code="int some_variable = 0;\n"
6702 # Code to be used in simple link tests
6703 lt_simple_link_test_code='int main(){return(0);}\n'
6706 # If no C compiler was specified, use CC.
6707 LTCC=${LTCC-"$CC"}
6709 # Allow CC to be a program name with arguments.
6710 compiler=$CC
6713 # save warnings/boilerplate of simple test code
6714 ac_outfile=conftest.$ac_objext
6715 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6716 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6717 _lt_compiler_boilerplate=`cat conftest.err`
6718 $rm conftest*
6720 ac_outfile=conftest.$ac_objext
6721 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6722 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6723 _lt_linker_boilerplate=`cat conftest.err`
6724 $rm conftest*
6728 # Check for any special shared library compilation flags.
6730 lt_prog_cc_shlib=
6731 if test "$GCC" = no; then
6732 case $host_os in
6733 sco3.2v5*)
6734 lt_prog_cc_shlib='-belf'
6736 esac
6738 if test -n "$lt_prog_cc_shlib"; then
6739 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6740 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6741 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6742 else
6743 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6744 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6745 lt_cv_prog_cc_can_build_shared=no
6751 # Check to make sure the static flag actually works.
6753 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6754 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6755 if test "${lt_prog_compiler_static_works+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 lt_prog_compiler_static_works=no
6759 save_LDFLAGS="$LDFLAGS"
6760 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6761 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6763 # The compiler can only warn and ignore the option if not recognized
6764 # So say no if there are warnings
6765 if test -s conftest.err; then
6766 # Append any errors to the config.log.
6767 cat conftest.err 1>&5
6768 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6769 $SED '/^$/d' conftest.err >conftest.er2
6770 if diff conftest.exp conftest.er2 >/dev/null; then
6771 lt_prog_compiler_static_works=yes
6773 else
6774 lt_prog_compiler_static_works=yes
6777 $rm conftest*
6778 LDFLAGS="$save_LDFLAGS"
6781 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6782 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6784 if test x"$lt_prog_compiler_static_works" = xyes; then
6786 else
6787 lt_prog_compiler_static=
6792 ## CAVEAT EMPTOR:
6793 ## There is no encapsulation within the following macros, do not change
6794 ## the running order or otherwise move them around unless you know exactly
6795 ## what you are doing...
6797 lt_prog_compiler_no_builtin_flag=
6799 if test "$GCC" = yes; then
6800 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6803 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6804 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6805 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 lt_cv_prog_compiler_rtti_exceptions=no
6809 ac_outfile=conftest.$ac_objext
6810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6811 lt_compiler_flag="-fno-rtti -fno-exceptions"
6812 # Insert the option either (1) after the last *FLAGS variable, or
6813 # (2) before a word containing "conftest.", or (3) at the end.
6814 # Note that $ac_compile itself does not contain backslashes and begins
6815 # with a dollar sign (not a hyphen), so the echo should work correctly.
6816 # The option is referenced via a variable to avoid confusing sed.
6817 lt_compile=`echo "$ac_compile" | $SED \
6818 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6820 -e 's:$: $lt_compiler_flag:'`
6821 (eval echo "\"\$as_me:6821: $lt_compile\"" >&5)
6822 (eval "$lt_compile" 2>conftest.err)
6823 ac_status=$?
6824 cat conftest.err >&5
6825 echo "$as_me:6825: \$? = $ac_status" >&5
6826 if (exit $ac_status) && test -s "$ac_outfile"; then
6827 # The compiler can only warn and ignore the option if not recognized
6828 # So say no if there are warnings other than the usual output.
6829 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6830 $SED '/^$/d' conftest.err >conftest.er2
6831 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6832 lt_cv_prog_compiler_rtti_exceptions=yes
6835 $rm conftest*
6838 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6839 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6841 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6842 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6843 else
6849 lt_prog_compiler_wl=
6850 lt_prog_compiler_pic=
6851 lt_prog_compiler_static=
6853 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6854 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6856 if test "$GCC" = yes; then
6857 lt_prog_compiler_wl='-Wl,'
6858 lt_prog_compiler_static='-static'
6860 case $host_os in
6861 aix*)
6862 # All AIX code is PIC.
6863 if test "$host_cpu" = ia64; then
6864 # AIX 5 now supports IA64 processor
6865 lt_prog_compiler_static='-Bstatic'
6869 amigaos*)
6870 # FIXME: we need at least 68020 code to build shared libraries, but
6871 # adding the `-m68020' flag to GCC prevents building anything better,
6872 # like `-m68040'.
6873 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6876 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6877 # PIC is the default for these OSes.
6880 mingw* | pw32* | os2*)
6881 # This hack is so that the source file can tell whether it is being
6882 # built for inclusion in a dll (and should export symbols for example).
6883 lt_prog_compiler_pic='-DDLL_EXPORT'
6886 darwin* | rhapsody*)
6887 # PIC is the default on this platform
6888 # Common symbols not allowed in MH_DYLIB files
6889 lt_prog_compiler_pic='-fno-common'
6892 msdosdjgpp*)
6893 # Just because we use GCC doesn't mean we suddenly get shared libraries
6894 # on systems that don't support them.
6895 lt_prog_compiler_can_build_shared=no
6896 enable_shared=no
6899 sysv4*MP*)
6900 if test -d /usr/nec; then
6901 lt_prog_compiler_pic=-Kconform_pic
6905 hpux*)
6906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6907 # not for PA HP-UX.
6908 case "$host_cpu" in
6909 hppa*64*|ia64*)
6910 # +Z the default
6913 lt_prog_compiler_pic='-fPIC'
6915 esac
6919 lt_prog_compiler_pic='-fPIC'
6921 esac
6922 else
6923 # PORTME Check for flag to pass linker flags through the system compiler.
6924 case $host_os in
6925 aix*)
6926 lt_prog_compiler_wl='-Wl,'
6927 if test "$host_cpu" = ia64; then
6928 # AIX 5 now supports IA64 processor
6929 lt_prog_compiler_static='-Bstatic'
6930 else
6931 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6934 darwin*)
6935 # PIC is the default on this platform
6936 # Common symbols not allowed in MH_DYLIB files
6937 case $cc_basename in
6938 xlc*)
6939 lt_prog_compiler_pic='-qnocommon'
6940 lt_prog_compiler_wl='-Wl,'
6942 esac
6945 mingw* | pw32* | os2*)
6946 # This hack is so that the source file can tell whether it is being
6947 # built for inclusion in a dll (and should export symbols for example).
6948 lt_prog_compiler_pic='-DDLL_EXPORT'
6951 hpux9* | hpux10* | hpux11*)
6952 lt_prog_compiler_wl='-Wl,'
6953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6954 # not for PA HP-UX.
6955 case "$host_cpu" in
6956 hppa*64*|ia64*)
6957 # +Z the default
6960 lt_prog_compiler_pic='+Z'
6962 esac
6963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6964 lt_prog_compiler_static='${wl}-a ${wl}archive'
6967 irix5* | irix6* | nonstopux*)
6968 lt_prog_compiler_wl='-Wl,'
6969 # PIC (with -KPIC) is the default.
6970 lt_prog_compiler_static='-non_shared'
6973 newsos6)
6974 lt_prog_compiler_pic='-KPIC'
6975 lt_prog_compiler_static='-Bstatic'
6978 linux*)
6979 case $cc_basename in
6980 icc* | ecc*)
6981 lt_prog_compiler_wl='-Wl,'
6982 lt_prog_compiler_pic='-KPIC'
6983 lt_prog_compiler_static='-static'
6985 pgcc* | pgf77* | pgf90*)
6986 # Portland Group compilers (*not* the Pentium gcc compiler,
6987 # which looks to be a dead project)
6988 lt_prog_compiler_wl='-Wl,'
6989 lt_prog_compiler_pic='-fpic'
6990 lt_prog_compiler_static='-static'
6992 ccc*)
6993 lt_prog_compiler_wl='-Wl,'
6994 # All Alpha code is PIC.
6995 lt_prog_compiler_static='-non_shared'
6997 esac
7000 osf3* | osf4* | osf5*)
7001 lt_prog_compiler_wl='-Wl,'
7002 # All OSF/1 code is PIC.
7003 lt_prog_compiler_static='-non_shared'
7006 sco3.2v5*)
7007 lt_prog_compiler_pic='-Kpic'
7008 lt_prog_compiler_static='-dn'
7011 solaris*)
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-Bstatic'
7014 case $cc_basename in
7015 f77* | f90* | f95*)
7016 lt_prog_compiler_wl='-Qoption ld ';;
7018 lt_prog_compiler_wl='-Wl,';;
7019 esac
7022 sunos4*)
7023 lt_prog_compiler_wl='-Qoption ld '
7024 lt_prog_compiler_pic='-PIC'
7025 lt_prog_compiler_static='-Bstatic'
7028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7029 lt_prog_compiler_wl='-Wl,'
7030 lt_prog_compiler_pic='-KPIC'
7031 lt_prog_compiler_static='-Bstatic'
7034 sysv4*MP*)
7035 if test -d /usr/nec ;then
7036 lt_prog_compiler_pic='-Kconform_pic'
7037 lt_prog_compiler_static='-Bstatic'
7041 unicos*)
7042 lt_prog_compiler_wl='-Wl,'
7043 lt_prog_compiler_can_build_shared=no
7046 uts4*)
7047 lt_prog_compiler_pic='-pic'
7048 lt_prog_compiler_static='-Bstatic'
7052 lt_prog_compiler_can_build_shared=no
7054 esac
7057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7058 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7061 # Check to make sure the PIC flag actually works.
7063 if test -n "$lt_prog_compiler_pic"; then
7065 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7066 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7067 if test "${lt_prog_compiler_pic_works+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 lt_prog_compiler_pic_works=no
7071 ac_outfile=conftest.$ac_objext
7072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7073 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7074 # Insert the option either (1) after the last *FLAGS variable, or
7075 # (2) before a word containing "conftest.", or (3) at the end.
7076 # Note that $ac_compile itself does not contain backslashes and begins
7077 # with a dollar sign (not a hyphen), so the echo should work correctly.
7078 # The option is referenced via a variable to avoid confusing sed.
7079 lt_compile=`echo "$ac_compile" | $SED \
7080 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7082 -e 's:$: $lt_compiler_flag:'`
7083 (eval echo "\"\$as_me:7083: $lt_compile\"" >&5)
7084 (eval "$lt_compile" 2>conftest.err)
7085 ac_status=$?
7086 cat conftest.err >&5
7087 echo "$as_me:7087: \$? = $ac_status" >&5
7088 if (exit $ac_status) && test -s "$ac_outfile"; then
7089 # The compiler can only warn and ignore the option if not recognized
7090 # So say no if there are warnings other than the usual output.
7091 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7092 $SED '/^$/d' conftest.err >conftest.er2
7093 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7094 lt_prog_compiler_pic_works=yes
7097 $rm conftest*
7100 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7101 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7103 if test x"$lt_prog_compiler_pic_works" = xyes; then
7104 case $lt_prog_compiler_pic in
7105 "" | " "*) ;;
7106 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7107 esac
7108 else
7109 lt_prog_compiler_pic=
7110 lt_prog_compiler_can_build_shared=no
7114 case "$host_os" in
7115 # For platforms which do not support PIC, -DPIC is meaningless:
7116 *djgpp*)
7117 lt_prog_compiler_pic=
7120 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7122 esac
7124 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7125 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7126 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 lt_cv_prog_compiler_c_o=no
7130 $rm -r conftest 2>/dev/null
7131 mkdir conftest
7132 cd conftest
7133 mkdir out
7134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7136 lt_compiler_flag="-o out/conftest2.$ac_objext"
7137 # Insert the option either (1) after the last *FLAGS variable, or
7138 # (2) before a word containing "conftest.", or (3) at the end.
7139 # Note that $ac_compile itself does not contain backslashes and begins
7140 # with a dollar sign (not a hyphen), so the echo should work correctly.
7141 lt_compile=`echo "$ac_compile" | $SED \
7142 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7144 -e 's:$: $lt_compiler_flag:'`
7145 (eval echo "\"\$as_me:7145: $lt_compile\"" >&5)
7146 (eval "$lt_compile" 2>out/conftest.err)
7147 ac_status=$?
7148 cat out/conftest.err >&5
7149 echo "$as_me:7149: \$? = $ac_status" >&5
7150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7151 then
7152 # The compiler can only warn and ignore the option if not recognized
7153 # So say no if there are warnings
7154 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7155 $SED '/^$/d' out/conftest.err >out/conftest.er2
7156 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7157 lt_cv_prog_compiler_c_o=yes
7160 chmod u+w .
7161 $rm conftest*
7162 # SGI C++ compiler will create directory out/ii_files/ for
7163 # template instantiation
7164 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7165 $rm out/* && rmdir out
7166 cd ..
7167 rmdir conftest
7168 $rm conftest*
7171 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7175 hard_links="nottested"
7176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7177 # do not overwrite the value of need_locks provided by the user
7178 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7179 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7180 hard_links=yes
7181 $rm conftest*
7182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7183 touch conftest.a
7184 ln conftest.a conftest.b 2>&5 || hard_links=no
7185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7186 echo "$as_me:$LINENO: result: $hard_links" >&5
7187 echo "${ECHO_T}$hard_links" >&6
7188 if test "$hard_links" = no; then
7189 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7190 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7191 need_locks=warn
7193 else
7194 need_locks=no
7197 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7200 runpath_var=
7201 allow_undefined_flag=
7202 enable_shared_with_static_runtimes=no
7203 archive_cmds=
7204 archive_expsym_cmds=
7205 old_archive_From_new_cmds=
7206 old_archive_from_expsyms_cmds=
7207 export_dynamic_flag_spec=
7208 whole_archive_flag_spec=
7209 thread_safe_flag_spec=
7210 hardcode_libdir_flag_spec=
7211 hardcode_libdir_flag_spec_ld=
7212 hardcode_libdir_separator=
7213 hardcode_direct=no
7214 hardcode_minus_L=no
7215 hardcode_shlibpath_var=unsupported
7216 link_all_deplibs=unknown
7217 hardcode_automatic=no
7218 module_cmds=
7219 module_expsym_cmds=
7220 always_export_symbols=no
7221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7222 # include_expsyms should be a list of space-separated symbols to be *always*
7223 # included in the symbol list
7224 include_expsyms=
7225 # exclude_expsyms can be an extended regexp of symbols to exclude
7226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7228 # as well as any symbol that contains `d'.
7229 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7231 # platforms (ab)use it in PIC code, but their linkers get confused if
7232 # the symbol is explicitly referenced. Since portable code cannot
7233 # rely on this symbol name, it's probably fine to never include it in
7234 # preloaded symbol tables.
7235 extract_expsyms_cmds=
7236 # Just being paranoid about ensuring that cc_basename is set.
7237 for cc_temp in $compiler""; do
7238 case $cc_temp in
7239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7241 \-*) ;;
7242 *) break;;
7243 esac
7244 done
7245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7247 case $host_os in
7248 cygwin* | mingw* | pw32*)
7249 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7250 # When not using gcc, we currently assume that we are using
7251 # Microsoft Visual C++.
7252 if test "$GCC" != yes; then
7253 with_gnu_ld=no
7256 openbsd*)
7257 with_gnu_ld=no
7259 esac
7261 ld_shlibs=yes
7262 if test "$with_gnu_ld" = yes; then
7263 # If archive_cmds runs LD, not CC, wlarc should be empty
7264 wlarc='${wl}'
7266 # Set some defaults for GNU ld with shared library support. These
7267 # are reset later if shared libraries are not supported. Putting them
7268 # here allows them to be overridden if necessary.
7269 runpath_var=LD_RUN_PATH
7270 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7271 export_dynamic_flag_spec='${wl}--export-dynamic'
7272 # ancient GNU ld didn't support --whole-archive et. al.
7273 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7274 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7275 else
7276 whole_archive_flag_spec=
7278 supports_anon_versioning=no
7279 case `$LD -v 2>/dev/null` in
7280 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7281 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7282 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7283 *\ 2.11.*) ;; # other 2.11 versions
7284 *) supports_anon_versioning=yes ;;
7285 esac
7287 # See if GNU ld supports shared libraries.
7288 case $host_os in
7289 aix3* | aix4* | aix5*)
7290 # On AIX/PPC, the GNU linker is very broken
7291 if test "$host_cpu" != ia64; then
7292 ld_shlibs=no
7293 cat <<EOF 1>&2
7295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7296 *** to be unable to reliably create shared libraries on AIX.
7297 *** Therefore, libtool is disabling shared libraries support. If you
7298 *** really care for shared libraries, you may want to modify your PATH
7299 *** so that a non-GNU linker is found, and then restart.
7305 amigaos*)
7306 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)'
7307 hardcode_libdir_flag_spec='-L$libdir'
7308 hardcode_minus_L=yes
7310 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7311 # that the semantics of dynamic libraries on AmigaOS, at least up
7312 # to version 4, is to share data among multiple programs linked
7313 # with the same dynamic library. Since this doesn't match the
7314 # behavior of shared libraries on other platforms, we can't use
7315 # them.
7316 ld_shlibs=no
7319 beos*)
7320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7321 allow_undefined_flag=unsupported
7322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7323 # support --undefined. This deserves some investigation. FIXME
7324 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7325 else
7326 ld_shlibs=no
7330 cygwin* | mingw* | pw32*)
7331 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7332 # as there is no search path for DLLs.
7333 hardcode_libdir_flag_spec='-L$libdir'
7334 allow_undefined_flag=unsupported
7335 always_export_symbols=no
7336 enable_shared_with_static_runtimes=yes
7337 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7339 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7341 # If the export-symbols file already is a .def file (1st line
7342 # is EXPORTS), use it as is; otherwise, prepend...
7343 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7344 cp $export_symbols $output_objdir/$soname.def;
7345 else
7346 echo EXPORTS > $output_objdir/$soname.def;
7347 cat $export_symbols >> $output_objdir/$soname.def;
7349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7350 else
7351 ld_shlibs=no
7355 linux*)
7356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7357 tmp_addflag=
7358 case $cc_basename,$host_cpu in
7359 pgcc*) # Portland Group C compiler
7360 whole_archive_flag_spec=
7362 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7363 whole_archive_flag_spec=
7364 tmp_addflag=' -fpic -Mnomain' ;;
7365 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7366 tmp_addflag=' -i_dynamic' ;;
7367 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7368 tmp_addflag=' -i_dynamic -nofor_main' ;;
7369 ifc* | ifort*) # Intel Fortran compiler
7370 tmp_addflag=' -nofor_main' ;;
7371 esac
7372 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7374 if test $supports_anon_versioning = yes; then
7375 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7377 $echo "local: *; };" >> $output_objdir/$libname.ver~
7378 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7380 else
7381 ld_shlibs=no
7385 netbsd*)
7386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7387 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7388 wlarc=
7389 else
7390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7395 solaris* | sysv5*)
7396 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7397 ld_shlibs=no
7398 cat <<EOF 1>&2
7400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7401 *** create shared libraries on Solaris systems. Therefore, libtool
7402 *** is disabling shared libraries support. We urge you to upgrade GNU
7403 *** binutils to release 2.9.1 or newer. Another option is to modify
7404 *** your PATH or compiler configuration so that the native linker is
7405 *** used, and then restart.
7408 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7411 else
7412 ld_shlibs=no
7416 sunos4*)
7417 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7418 wlarc=
7419 hardcode_direct=yes
7420 hardcode_shlibpath_var=no
7424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7427 else
7428 ld_shlibs=no
7431 esac
7433 if test "$ld_shlibs" = no; then
7434 runpath_var=
7435 hardcode_libdir_flag_spec=
7436 export_dynamic_flag_spec=
7437 whole_archive_flag_spec=
7439 else
7440 # PORTME fill in a description of your system's linker (not GNU ld)
7441 case $host_os in
7442 aix3*)
7443 allow_undefined_flag=unsupported
7444 always_export_symbols=yes
7445 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'
7446 # Note: this linker hardcodes the directories in LIBPATH if there
7447 # are no directories specified by -L.
7448 hardcode_minus_L=yes
7449 if test "$GCC" = yes && test -z "$link_static_flag"; then
7450 # Neither direct hardcoding nor static linking is supported with a
7451 # broken collect2.
7452 hardcode_direct=unsupported
7456 aix4* | aix5*)
7457 if test "$host_cpu" = ia64; then
7458 # On IA64, the linker does run time linking by default, so we don't
7459 # have to do anything special.
7460 aix_use_runtimelinking=no
7461 exp_sym_flag='-Bexport'
7462 no_entry_flag=""
7463 else
7464 # If we're using GNU nm, then we don't want the "-C" option.
7465 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7466 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7467 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'
7468 else
7469 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'
7471 aix_use_runtimelinking=no
7473 # Test if we are trying to use run time linking or normal
7474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7475 # need to do runtime linking.
7476 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7477 for ld_flag in $LDFLAGS; do
7478 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7479 aix_use_runtimelinking=yes
7480 break
7482 done
7483 esac
7485 exp_sym_flag='-bexport'
7486 no_entry_flag='-bnoentry'
7489 # When large executables or shared objects are built, AIX ld can
7490 # have problems creating the table of contents. If linking a library
7491 # or program results in "error TOC overflow" add -mminimal-toc to
7492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7495 archive_cmds=''
7496 hardcode_direct=yes
7497 hardcode_libdir_separator=':'
7498 link_all_deplibs=yes
7500 if test "$GCC" = yes; then
7501 case $host_os in aix4.[012]|aix4.[012].*)
7502 # We only want to do this on AIX 4.2 and lower, the check
7503 # below for broken collect2 doesn't work under 4.3+
7504 collect2name=`${CC} -print-prog-name=collect2`
7505 if test -f "$collect2name" && \
7506 strings "$collect2name" | grep resolve_lib_name >/dev/null
7507 then
7508 # We have reworked collect2
7509 hardcode_direct=yes
7510 else
7511 # We have old collect2
7512 hardcode_direct=unsupported
7513 # It fails to find uninstalled libraries when the uninstalled
7514 # path is not listed in the libpath. Setting hardcode_minus_L
7515 # to unsupported forces relinking
7516 hardcode_minus_L=yes
7517 hardcode_libdir_flag_spec='-L$libdir'
7518 hardcode_libdir_separator=
7520 esac
7521 shared_flag='-shared'
7522 if test "$aix_use_runtimelinking" = yes; then
7523 shared_flag="$shared_flag "'${wl}-G'
7525 else
7526 # not using gcc
7527 if test "$host_cpu" = ia64; then
7528 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7529 # chokes on -Wl,-G. The following line is correct:
7530 shared_flag='-G'
7531 else
7532 if test "$aix_use_runtimelinking" = yes; then
7533 shared_flag='${wl}-G'
7534 else
7535 shared_flag='${wl}-bM:SRE'
7540 # It seems that -bexpall does not export symbols beginning with
7541 # underscore (_), so it is better to generate a list of symbols to export.
7542 always_export_symbols=yes
7543 if test "$aix_use_runtimelinking" = yes; then
7544 # Warning - without using the other runtime loading flags (-brtl),
7545 # -berok will link without error, but may produce a broken library.
7546 allow_undefined_flag='-berok'
7547 # Determine the default libpath from the value encoded in an empty executable.
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7556 main ()
7560 return 0;
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag"
7573 || test ! -s conftest.err'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; } &&
7579 { ac_try='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 (eval $ac_try) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7588 # Check for a 64-bit object if we didn't find anything.
7589 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; }
7590 }'`; fi
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7596 rm -f conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7601 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"
7602 else
7603 if test "$host_cpu" = ia64; then
7604 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7605 allow_undefined_flag="-z nodefs"
7606 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"
7607 else
7608 # Determine the default libpath from the value encoded in an empty executable.
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7617 main ()
7621 return 0;
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7649 # Check for a 64-bit object if we didn't find anything.
7650 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; }
7651 }'`; fi
7652 else
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7657 rm -f conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7661 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7662 # Warning - without using the other run time loading flags,
7663 # -berok will link without error, but may produce a broken library.
7664 no_undefined_flag=' ${wl}-bernotok'
7665 allow_undefined_flag=' ${wl}-berok'
7666 # -bexpall does not export symbols beginning with underscore (_)
7667 always_export_symbols=yes
7668 # Exported symbols can be pulled into shared objects from archives
7669 whole_archive_flag_spec=' '
7670 archive_cmds_need_lc=yes
7671 # This is similar to how AIX traditionally builds it's shared libraries.
7672 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'
7677 amigaos*)
7678 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)'
7679 hardcode_libdir_flag_spec='-L$libdir'
7680 hardcode_minus_L=yes
7681 # see comment about different semantics on the GNU ld section
7682 ld_shlibs=no
7685 bsdi[45]*)
7686 export_dynamic_flag_spec=-rdynamic
7689 cygwin* | mingw* | pw32*)
7690 # When not using gcc, we currently assume that we are using
7691 # Microsoft Visual C++.
7692 # hardcode_libdir_flag_spec is actually meaningless, as there is
7693 # no search path for DLLs.
7694 hardcode_libdir_flag_spec=' '
7695 allow_undefined_flag=unsupported
7696 # Tell ltmain to make .lib files, not .a files.
7697 libext=lib
7698 # Tell ltmain to make .dll files, not .so files.
7699 shrext_cmds=".dll"
7700 # FIXME: Setting linknames here is a bad hack.
7701 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7702 # The linker will automatically build a .lib file if we build a DLL.
7703 old_archive_From_new_cmds='true'
7704 # FIXME: Should let the user specify the lib program.
7705 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7706 fix_srcfile_path='`cygpath -w "$srcfile"`'
7707 enable_shared_with_static_runtimes=yes
7710 darwin* | rhapsody*)
7711 case "$host_os" in
7712 rhapsody* | darwin1.[012])
7713 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7715 *) # Darwin 1.3 on
7716 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7717 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7718 else
7719 case ${MACOSX_DEPLOYMENT_TARGET} in
7720 10.[012])
7721 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7723 10.*)
7724 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7726 esac
7729 esac
7730 archive_cmds_need_lc=no
7731 hardcode_direct=no
7732 hardcode_automatic=yes
7733 hardcode_shlibpath_var=unsupported
7734 whole_archive_flag_spec=''
7735 link_all_deplibs=yes
7736 if test "$GCC" = yes ; then
7737 output_verbose_link_cmd='echo'
7738 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7739 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7741 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}'
7742 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}'
7743 else
7744 case $cc_basename in
7745 xlc*)
7746 output_verbose_link_cmd='echo'
7747 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7748 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7750 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7751 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}'
7754 ld_shlibs=no
7756 esac
7760 dgux*)
7761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 hardcode_shlibpath_var=no
7766 freebsd1*)
7767 ld_shlibs=no
7770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7771 # support. Future versions do this automatically, but an explicit c++rt0.o
7772 # does not break anything, and helps significantly (at the cost of a little
7773 # extra space).
7774 freebsd2.2*)
7775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7776 hardcode_libdir_flag_spec='-R$libdir'
7777 hardcode_direct=yes
7778 hardcode_shlibpath_var=no
7781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7782 freebsd2*)
7783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7784 hardcode_direct=yes
7785 hardcode_minus_L=yes
7786 hardcode_shlibpath_var=no
7789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7790 freebsd* | kfreebsd*-gnu | dragonfly*)
7791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7792 hardcode_libdir_flag_spec='-R$libdir'
7793 hardcode_direct=yes
7794 hardcode_shlibpath_var=no
7797 hpux9*)
7798 if test "$GCC" = yes; then
7799 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'
7800 else
7801 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'
7803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7804 hardcode_libdir_separator=:
7805 hardcode_direct=yes
7807 # hardcode_minus_L: Not really in the search PATH,
7808 # but as the default location of the library.
7809 hardcode_minus_L=yes
7810 export_dynamic_flag_spec='${wl}-E'
7813 hpux10* | hpux11*)
7814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7815 case "$host_cpu" in
7816 hppa*64*|ia64*)
7817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7822 esac
7823 else
7824 case "$host_cpu" in
7825 hppa*64*|ia64*)
7826 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7829 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7831 esac
7833 if test "$with_gnu_ld" = no; then
7834 case "$host_cpu" in
7835 hppa*64*)
7836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7837 hardcode_libdir_flag_spec_ld='+b $libdir'
7838 hardcode_libdir_separator=:
7839 hardcode_direct=no
7840 hardcode_shlibpath_var=no
7842 ia64*)
7843 hardcode_libdir_flag_spec='-L$libdir'
7844 hardcode_direct=no
7845 hardcode_shlibpath_var=no
7847 # hardcode_minus_L: Not really in the search PATH,
7848 # but as the default location of the library.
7849 hardcode_minus_L=yes
7852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7853 hardcode_libdir_separator=:
7854 hardcode_direct=yes
7855 export_dynamic_flag_spec='${wl}-E'
7857 # hardcode_minus_L: Not really in the search PATH,
7858 # but as the default location of the library.
7859 hardcode_minus_L=yes
7861 esac
7865 irix5* | irix6* | nonstopux*)
7866 if test "$GCC" = yes; then
7867 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'
7868 else
7869 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'
7870 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7873 hardcode_libdir_separator=:
7874 link_all_deplibs=yes
7877 netbsd*)
7878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7880 else
7881 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7883 hardcode_libdir_flag_spec='-R$libdir'
7884 hardcode_direct=yes
7885 hardcode_shlibpath_var=no
7888 newsos6)
7889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7890 hardcode_direct=yes
7891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7892 hardcode_libdir_separator=:
7893 hardcode_shlibpath_var=no
7896 openbsd*)
7897 hardcode_direct=yes
7898 hardcode_shlibpath_var=no
7899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7900 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7901 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7902 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7903 export_dynamic_flag_spec='${wl}-E'
7904 else
7905 case $host_os in
7906 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7907 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7908 hardcode_libdir_flag_spec='-R$libdir'
7911 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7914 esac
7918 os2*)
7919 hardcode_libdir_flag_spec='-L$libdir'
7920 hardcode_minus_L=yes
7921 allow_undefined_flag=unsupported
7922 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'
7923 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7926 osf3*)
7927 if test "$GCC" = yes; then
7928 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7929 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'
7930 else
7931 allow_undefined_flag=' -expect_unresolved \*'
7932 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'
7934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7935 hardcode_libdir_separator=:
7938 osf4* | osf5*) # as osf3* with the addition of -msym flag
7939 if test "$GCC" = yes; then
7940 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7941 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'
7942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7943 else
7944 allow_undefined_flag=' -expect_unresolved \*'
7945 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'
7946 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7947 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7949 # Both c and cxx compiler support -rpath directly
7950 hardcode_libdir_flag_spec='-rpath $libdir'
7952 hardcode_libdir_separator=:
7955 sco3.2v5*)
7956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_shlibpath_var=no
7958 export_dynamic_flag_spec='${wl}-Bexport'
7959 runpath_var=LD_RUN_PATH
7960 hardcode_runpath_var=yes
7963 solaris*)
7964 no_undefined_flag=' -z text'
7965 if test "$GCC" = yes; then
7966 wlarc='${wl}'
7967 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7968 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7969 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7970 else
7971 wlarc=''
7972 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7973 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7974 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7976 hardcode_libdir_flag_spec='-R$libdir'
7977 hardcode_shlibpath_var=no
7978 case $host_os in
7979 solaris2.[0-5] | solaris2.[0-5].*) ;;
7981 # The compiler driver will combine linker options so we
7982 # cannot just pass the convience library names through
7983 # without $wl, iff we do not link with $LD.
7984 # Luckily, gcc supports the same syntax we need for Sun Studio.
7985 # Supported since Solaris 2.6 (maybe 2.5.1?)
7986 case $wlarc in
7988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7990 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7991 esac ;;
7992 esac
7993 link_all_deplibs=yes
7996 sunos4*)
7997 if test "x$host_vendor" = xsequent; then
7998 # Use $CC to link under sequent, because it throws in some extra .o
7999 # files that make .init and .fini sections work.
8000 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8001 else
8002 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8004 hardcode_libdir_flag_spec='-L$libdir'
8005 hardcode_direct=yes
8006 hardcode_minus_L=yes
8007 hardcode_shlibpath_var=no
8010 sysv4)
8011 case $host_vendor in
8012 sni)
8013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8014 hardcode_direct=yes # is this really true???
8016 siemens)
8017 ## LD is ld it makes a PLAMLIB
8018 ## CC just makes a GrossModule.
8019 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8020 reload_cmds='$CC -r -o $output$reload_objs'
8021 hardcode_direct=no
8023 motorola)
8024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8027 esac
8028 runpath_var='LD_RUN_PATH'
8029 hardcode_shlibpath_var=no
8032 sysv4.3*)
8033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034 hardcode_shlibpath_var=no
8035 export_dynamic_flag_spec='-Bexport'
8038 sysv4*MP*)
8039 if test -d /usr/nec; then
8040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8041 hardcode_shlibpath_var=no
8042 runpath_var=LD_RUN_PATH
8043 hardcode_runpath_var=yes
8044 ld_shlibs=yes
8048 sysv4.2uw2*)
8049 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8050 hardcode_direct=yes
8051 hardcode_minus_L=no
8052 hardcode_shlibpath_var=no
8053 hardcode_runpath_var=yes
8054 runpath_var=LD_RUN_PATH
8057 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8058 no_undefined_flag='${wl}-z ${wl}text'
8059 if test "$GCC" = yes; then
8060 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8061 else
8062 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8064 runpath_var='LD_RUN_PATH'
8065 hardcode_shlibpath_var=no
8068 sysv5*)
8069 no_undefined_flag=' -z text'
8070 # $CC -shared without GNU ld will not create a library from C++
8071 # object files and a static libstdc++, better avoid it by now
8072 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8073 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8074 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8075 hardcode_libdir_flag_spec=
8076 hardcode_shlibpath_var=no
8077 runpath_var='LD_RUN_PATH'
8080 uts4*)
8081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082 hardcode_libdir_flag_spec='-L$libdir'
8083 hardcode_shlibpath_var=no
8087 ld_shlibs=no
8089 esac
8092 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8093 echo "${ECHO_T}$ld_shlibs" >&6
8094 test "$ld_shlibs" = no && can_build_shared=no
8096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8097 if test "$GCC" = yes; then
8098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8102 # Do we need to explicitly link libc?
8104 case "x$archive_cmds_need_lc" in
8105 x|xyes)
8106 # Assume -lc should be added
8107 archive_cmds_need_lc=yes
8109 if test "$enable_shared" = yes && test "$GCC" = yes; then
8110 case $archive_cmds in
8111 *'~'*)
8112 # FIXME: we may have to deal with multi-command sequences.
8114 '$CC '*)
8115 # Test whether the compiler implicitly links with -lc since on some
8116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8117 # to ld, don't add -lc before -lgcc.
8118 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8119 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8120 $rm conftest*
8121 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8124 (eval $ac_compile) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } 2>conftest.err; then
8128 soname=conftest
8129 lib=conftest
8130 libobjs=conftest.$ac_objext
8131 deplibs=
8132 wl=$lt_prog_compiler_wl
8133 compiler_flags=-v
8134 linker_flags=-v
8135 verstring=
8136 output_objdir=.
8137 libname=conftest
8138 lt_save_allow_undefined_flag=$allow_undefined_flag
8139 allow_undefined_flag=
8140 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8141 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }
8145 then
8146 archive_cmds_need_lc=no
8147 else
8148 archive_cmds_need_lc=yes
8150 allow_undefined_flag=$lt_save_allow_undefined_flag
8151 else
8152 cat conftest.err 1>&5
8154 $rm conftest*
8155 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8156 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8158 esac
8161 esac
8163 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8164 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8165 library_names_spec=
8166 libname_spec='lib$name'
8167 soname_spec=
8168 shrext_cmds=".so"
8169 postinstall_cmds=
8170 postuninstall_cmds=
8171 finish_cmds=
8172 finish_eval=
8173 shlibpath_var=
8174 shlibpath_overrides_runpath=unknown
8175 version_type=none
8176 dynamic_linker="$host_os ld.so"
8177 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8178 if test "$GCC" = yes; then
8179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8180 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8181 # if the path contains ";" then we assume it to be the separator
8182 # otherwise default to the standard path separator (i.e. ":") - it is
8183 # assumed that no part of a normal pathname contains ";" but that should
8184 # okay in the real world where ";" in dirpaths is itself problematic.
8185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8186 else
8187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8189 else
8190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8192 need_lib_prefix=unknown
8193 hardcode_into_libs=no
8195 # when you set need_version to no, make sure it does not cause -set_version
8196 # flags to be left without arguments
8197 need_version=unknown
8199 case $host_os in
8200 aix3*)
8201 version_type=linux
8202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8203 shlibpath_var=LIBPATH
8205 # AIX 3 has no versioning support, so we append a major version to the name.
8206 soname_spec='${libname}${release}${shared_ext}$major'
8209 aix4* | aix5*)
8210 version_type=linux
8211 need_lib_prefix=no
8212 need_version=no
8213 hardcode_into_libs=yes
8214 if test "$host_cpu" = ia64; then
8215 # AIX 5 supports IA64
8216 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8217 shlibpath_var=LD_LIBRARY_PATH
8218 else
8219 # With GCC up to 2.95.x, collect2 would create an import file
8220 # for dependence libraries. The import file would start with
8221 # the line `#! .'. This would cause the generated library to
8222 # depend on `.', always an invalid library. This was fixed in
8223 # development snapshots of GCC prior to 3.0.
8224 case $host_os in
8225 aix4 | aix4.[01] | aix4.[01].*)
8226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8227 echo ' yes '
8228 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8230 else
8231 can_build_shared=no
8234 esac
8235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8236 # soname into executable. Probably we can add versioning support to
8237 # collect2, so additional links can be useful in future.
8238 if test "$aix_use_runtimelinking" = yes; then
8239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8240 # instead of lib<name>.a to let people know that these are not
8241 # typical AIX shared libraries.
8242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8243 else
8244 # We preserve .a as extension for shared libraries through AIX4.2
8245 # and later when we are not doing run time linking.
8246 library_names_spec='${libname}${release}.a $libname.a'
8247 soname_spec='${libname}${release}${shared_ext}$major'
8249 shlibpath_var=LIBPATH
8253 amigaos*)
8254 library_names_spec='$libname.ixlibrary $libname.a'
8255 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8256 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'
8259 beos*)
8260 library_names_spec='${libname}${shared_ext}'
8261 dynamic_linker="$host_os ld.so"
8262 shlibpath_var=LIBRARY_PATH
8265 bsdi[45]*)
8266 version_type=linux
8267 need_version=no
8268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8269 soname_spec='${libname}${release}${shared_ext}$major'
8270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8271 shlibpath_var=LD_LIBRARY_PATH
8272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8274 # the default ld.so.conf also contains /usr/contrib/lib and
8275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8276 # libtool to hard-code these into programs
8279 cygwin* | mingw* | pw32*)
8280 version_type=windows
8281 shrext_cmds=".dll"
8282 need_version=no
8283 need_lib_prefix=no
8285 case $GCC,$host_os in
8286 yes,cygwin* | yes,mingw* | yes,pw32*)
8287 library_names_spec='$libname.dll.a'
8288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8289 postinstall_cmds='base_file=`basename \${file}`~
8290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8291 dldir=$destdir/`dirname \$dlpath`~
8292 test -d \$dldir || mkdir -p \$dldir~
8293 $install_prog $dir/$dlname \$dldir/$dlname'
8294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8295 dlpath=$dir/\$dldll~
8296 $rm \$dlpath'
8297 shlibpath_overrides_runpath=yes
8299 case $host_os in
8300 cygwin*)
8301 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8302 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8303 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8305 mingw*)
8306 # MinGW DLLs use traditional 'lib' prefix
8307 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8308 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8309 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8310 # It is most probably a Windows format PATH printed by
8311 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8312 # path with ; separators, and with drive letters. We can handle the
8313 # drive letters (cygwin fileutils understands them), so leave them,
8314 # especially as we might pass files found there to a mingw objdump,
8315 # which wouldn't understand a cygwinified path. Ahh.
8316 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8317 else
8318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8321 pw32*)
8322 # pw32 DLLs use 'pw' prefix rather than 'lib'
8323 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8325 esac
8329 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8331 esac
8332 dynamic_linker='Win32 ld.exe'
8333 # FIXME: first we should search . and the directory the executable is in
8334 shlibpath_var=PATH
8337 darwin* | rhapsody*)
8338 dynamic_linker="$host_os dyld"
8339 version_type=darwin
8340 need_lib_prefix=no
8341 need_version=no
8342 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8343 soname_spec='${libname}${release}${major}$shared_ext'
8344 shlibpath_overrides_runpath=yes
8345 shlibpath_var=DYLD_LIBRARY_PATH
8346 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8347 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8348 if test "$GCC" = yes; then
8349 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"`
8350 else
8351 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8356 dgux*)
8357 version_type=linux
8358 need_lib_prefix=no
8359 need_version=no
8360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8361 soname_spec='${libname}${release}${shared_ext}$major'
8362 shlibpath_var=LD_LIBRARY_PATH
8365 freebsd1*)
8366 dynamic_linker=no
8369 kfreebsd*-gnu)
8370 version_type=linux
8371 need_lib_prefix=no
8372 need_version=no
8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374 soname_spec='${libname}${release}${shared_ext}$major'
8375 shlibpath_var=LD_LIBRARY_PATH
8376 shlibpath_overrides_runpath=no
8377 hardcode_into_libs=yes
8378 dynamic_linker='GNU ld.so'
8381 freebsd* | dragonfly*)
8382 # DragonFly does not have aout. When/if they implement a new
8383 # versioning mechanism, adjust this.
8384 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8385 version_type=freebsd-$objformat
8386 case $version_type in
8387 freebsd-elf*)
8388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8389 need_version=no
8390 need_lib_prefix=no
8392 freebsd-*)
8393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8394 need_version=yes
8396 esac
8397 shlibpath_var=LD_LIBRARY_PATH
8398 case $host_os in
8399 freebsd2*)
8400 shlibpath_overrides_runpath=yes
8402 freebsd3.[01]* | freebsdelf3.[01]*)
8403 shlibpath_overrides_runpath=yes
8404 hardcode_into_libs=yes
8406 *) # from 3.2 on
8407 shlibpath_overrides_runpath=no
8408 hardcode_into_libs=yes
8410 esac
8413 gnu*)
8414 version_type=linux
8415 need_lib_prefix=no
8416 need_version=no
8417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8418 soname_spec='${libname}${release}${shared_ext}$major'
8419 shlibpath_var=LD_LIBRARY_PATH
8420 hardcode_into_libs=yes
8423 hpux9* | hpux10* | hpux11*)
8424 # Give a soname corresponding to the major version so that dld.sl refuses to
8425 # link against other versions.
8426 version_type=sunos
8427 need_lib_prefix=no
8428 need_version=no
8429 case "$host_cpu" in
8430 ia64*)
8431 shrext_cmds='.so'
8432 hardcode_into_libs=yes
8433 dynamic_linker="$host_os dld.so"
8434 shlibpath_var=LD_LIBRARY_PATH
8435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437 soname_spec='${libname}${release}${shared_ext}$major'
8438 if test "X$HPUX_IA64_MODE" = X32; then
8439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8440 else
8441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8445 hppa*64*)
8446 shrext_cmds='.sl'
8447 hardcode_into_libs=yes
8448 dynamic_linker="$host_os dld.sl"
8449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8452 soname_spec='${libname}${release}${shared_ext}$major'
8453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8457 shrext_cmds='.sl'
8458 dynamic_linker="$host_os dld.sl"
8459 shlibpath_var=SHLIB_PATH
8460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8462 soname_spec='${libname}${release}${shared_ext}$major'
8464 esac
8465 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8466 postinstall_cmds='chmod 555 $lib'
8469 irix5* | irix6* | nonstopux*)
8470 case $host_os in
8471 nonstopux*) version_type=nonstopux ;;
8473 if test "$lt_cv_prog_gnu_ld" = yes; then
8474 version_type=linux
8475 else
8476 version_type=irix
8477 fi ;;
8478 esac
8479 need_lib_prefix=no
8480 need_version=no
8481 soname_spec='${libname}${release}${shared_ext}$major'
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8483 case $host_os in
8484 irix5* | nonstopux*)
8485 libsuff= shlibsuff=
8488 case $LD in # libtool.m4 will add one of these switches to LD
8489 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8490 libsuff= shlibsuff= libmagic=32-bit;;
8491 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8492 libsuff=32 shlibsuff=N32 libmagic=N32;;
8493 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8494 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8495 *) libsuff= shlibsuff= libmagic=never-match;;
8496 esac
8498 esac
8499 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8500 shlibpath_overrides_runpath=no
8501 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8502 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8503 hardcode_into_libs=yes
8506 # No shared lib support for Linux oldld, aout, or coff.
8507 linux*oldld* | linux*aout* | linux*coff*)
8508 dynamic_linker=no
8511 # This must be Linux ELF.
8512 linux*)
8513 version_type=linux
8514 need_lib_prefix=no
8515 need_version=no
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8519 shlibpath_var=LD_LIBRARY_PATH
8520 shlibpath_overrides_runpath=no
8521 # This implies no fast_install, which is unacceptable.
8522 # Some rework will be needed to allow for fast_install
8523 # before this can be enabled.
8524 hardcode_into_libs=yes
8526 # find out which ABI we are using
8527 libsuff=
8528 case "$host_cpu" in
8529 x86_64*|s390x*|powerpc64*)
8530 echo '#line 8530 "configure"' > conftest.$ac_ext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; then
8536 case `/usr/bin/file conftest.$ac_objext` in
8537 *64-bit*)
8538 libsuff=64
8539 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8541 esac
8543 rm -rf conftest*
8545 esac
8547 # Append ld.so.conf contents to the search path
8548 if test -f /etc/ld.so.conf; then
8549 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8550 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8553 # We used to test for /lib/ld.so.1 and disable shared libraries on
8554 # powerpc, because MkLinux only supported shared libraries with the
8555 # GNU dynamic linker. Since this was broken with cross compilers,
8556 # most powerpc-linux boxes support dynamic linking these days and
8557 # people can always --disable-shared, the test was removed, and we
8558 # assume the GNU/Linux dynamic linker is in use.
8559 dynamic_linker='GNU/Linux ld.so'
8562 knetbsd*-gnu)
8563 version_type=linux
8564 need_lib_prefix=no
8565 need_version=no
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8567 soname_spec='${libname}${release}${shared_ext}$major'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath=no
8570 hardcode_into_libs=yes
8571 dynamic_linker='GNU ld.so'
8574 netbsd*)
8575 version_type=sunos
8576 need_lib_prefix=no
8577 need_version=no
8578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8581 dynamic_linker='NetBSD (a.out) ld.so'
8582 else
8583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8584 soname_spec='${libname}${release}${shared_ext}$major'
8585 dynamic_linker='NetBSD ld.elf_so'
8587 shlibpath_var=LD_LIBRARY_PATH
8588 shlibpath_overrides_runpath=yes
8589 hardcode_into_libs=yes
8592 newsos6)
8593 version_type=linux
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595 shlibpath_var=LD_LIBRARY_PATH
8596 shlibpath_overrides_runpath=yes
8599 nto-qnx*)
8600 version_type=linux
8601 need_lib_prefix=no
8602 need_version=no
8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 soname_spec='${libname}${release}${shared_ext}$major'
8605 shlibpath_var=LD_LIBRARY_PATH
8606 shlibpath_overrides_runpath=yes
8609 openbsd*)
8610 version_type=sunos
8611 need_lib_prefix=no
8612 need_version=no
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8615 shlibpath_var=LD_LIBRARY_PATH
8616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8617 case $host_os in
8618 openbsd2.[89] | openbsd2.[89].*)
8619 shlibpath_overrides_runpath=no
8622 shlibpath_overrides_runpath=yes
8624 esac
8625 else
8626 shlibpath_overrides_runpath=yes
8630 os2*)
8631 libname_spec='$name'
8632 shrext_cmds=".dll"
8633 need_lib_prefix=no
8634 library_names_spec='$libname${shared_ext} $libname.a'
8635 dynamic_linker='OS/2 ld.exe'
8636 shlibpath_var=LIBPATH
8639 osf3* | osf4* | osf5*)
8640 version_type=osf
8641 need_lib_prefix=no
8642 need_version=no
8643 soname_spec='${libname}${release}${shared_ext}$major'
8644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645 shlibpath_var=LD_LIBRARY_PATH
8646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8650 sco3.2v5*)
8651 version_type=osf
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8654 shlibpath_var=LD_LIBRARY_PATH
8657 solaris*)
8658 version_type=linux
8659 need_lib_prefix=no
8660 need_version=no
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8662 soname_spec='${libname}${release}${shared_ext}$major'
8663 shlibpath_var=LD_LIBRARY_PATH
8664 shlibpath_overrides_runpath=yes
8665 hardcode_into_libs=yes
8666 # ldd complains unless libraries are executable
8667 postinstall_cmds='chmod +x $lib'
8670 sunos4*)
8671 version_type=sunos
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8674 shlibpath_var=LD_LIBRARY_PATH
8675 shlibpath_overrides_runpath=yes
8676 if test "$with_gnu_ld" = yes; then
8677 need_lib_prefix=no
8679 need_version=yes
8682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8683 version_type=linux
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 soname_spec='${libname}${release}${shared_ext}$major'
8686 shlibpath_var=LD_LIBRARY_PATH
8687 case $host_vendor in
8688 sni)
8689 shlibpath_overrides_runpath=no
8690 need_lib_prefix=no
8691 export_dynamic_flag_spec='${wl}-Blargedynsym'
8692 runpath_var=LD_RUN_PATH
8694 siemens)
8695 need_lib_prefix=no
8697 motorola)
8698 need_lib_prefix=no
8699 need_version=no
8700 shlibpath_overrides_runpath=no
8701 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8703 esac
8706 sysv4*MP*)
8707 if test -d /usr/nec ;then
8708 version_type=linux
8709 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8710 soname_spec='$libname${shared_ext}.$major'
8711 shlibpath_var=LD_LIBRARY_PATH
8715 uts4*)
8716 version_type=linux
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718 soname_spec='${libname}${release}${shared_ext}$major'
8719 shlibpath_var=LD_LIBRARY_PATH
8723 dynamic_linker=no
8725 esac
8726 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8727 echo "${ECHO_T}$dynamic_linker" >&6
8728 test "$dynamic_linker" = no && can_build_shared=no
8730 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8732 hardcode_action=
8733 if test -n "$hardcode_libdir_flag_spec" || \
8734 test -n "$runpath_var" || \
8735 test "X$hardcode_automatic" = "Xyes" ; then
8737 # We can hardcode non-existant directories.
8738 if test "$hardcode_direct" != no &&
8739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8740 # have to relink, otherwise we might link with an installed library
8741 # when we should be linking with a yet-to-be-installed one
8742 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8743 test "$hardcode_minus_L" != no; then
8744 # Linking always hardcodes the temporary library directory.
8745 hardcode_action=relink
8746 else
8747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8748 hardcode_action=immediate
8750 else
8751 # We cannot hardcode anything, or else we can only hardcode existing
8752 # directories.
8753 hardcode_action=unsupported
8755 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8756 echo "${ECHO_T}$hardcode_action" >&6
8758 if test "$hardcode_action" = relink; then
8759 # Fast installation is not supported
8760 enable_fast_install=no
8761 elif test "$shlibpath_overrides_runpath" = yes ||
8762 test "$enable_shared" = no; then
8763 # Fast installation is not necessary
8764 enable_fast_install=needless
8767 striplib=
8768 old_striplib=
8769 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8771 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8774 echo "$as_me:$LINENO: result: yes" >&5
8775 echo "${ECHO_T}yes" >&6
8776 else
8777 # FIXME - insert some real tests, host_os isn't really good enough
8778 case $host_os in
8779 darwin*)
8780 if test -n "$STRIP" ; then
8781 striplib="$STRIP -x"
8782 echo "$as_me:$LINENO: result: yes" >&5
8783 echo "${ECHO_T}yes" >&6
8784 else
8785 echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8790 echo "$as_me:$LINENO: result: no" >&5
8791 echo "${ECHO_T}no" >&6
8793 esac
8796 if test "x$enable_dlopen" != xyes; then
8797 enable_dlopen=unknown
8798 enable_dlopen_self=unknown
8799 enable_dlopen_self_static=unknown
8800 else
8801 lt_cv_dlopen=no
8802 lt_cv_dlopen_libs=
8804 case $host_os in
8805 beos*)
8806 lt_cv_dlopen="load_add_on"
8807 lt_cv_dlopen_libs=
8808 lt_cv_dlopen_self=yes
8811 mingw* | pw32*)
8812 lt_cv_dlopen="LoadLibrary"
8813 lt_cv_dlopen_libs=
8816 cygwin*)
8817 lt_cv_dlopen="dlopen"
8818 lt_cv_dlopen_libs=
8821 darwin*)
8822 # if libdl is installed we need to link against it
8823 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8824 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8825 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828 ac_check_lib_save_LIBS=$LIBS
8829 LIBS="-ldl $LIBS"
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h. */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8837 /* Override any gcc2 internal prototype to avoid an error. */
8838 #ifdef __cplusplus
8839 extern "C"
8840 #endif
8841 /* We use char because int might match the return type of a gcc2
8842 builtin and then its argument prototype would still apply. */
8843 char dlopen ();
8845 main ()
8847 dlopen ();
8849 return 0;
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_lib_dl_dlopen=yes
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_lib_dl_dlopen=no
8881 rm -f conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_lib_save_LIBS
8885 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8887 if test $ac_cv_lib_dl_dlopen = yes; then
8888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8889 else
8891 lt_cv_dlopen="dyld"
8892 lt_cv_dlopen_libs=
8893 lt_cv_dlopen_self=yes
8900 echo "$as_me:$LINENO: checking for shl_load" >&5
8901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8902 if test "${ac_cv_func_shl_load+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h. */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8913 #define shl_load innocuous_shl_load
8915 /* System header to define __stub macros and hopefully few prototypes,
8916 which can conflict with char shl_load (); below.
8917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8918 <limits.h> exists even on freestanding compilers. */
8920 #ifdef __STDC__
8921 # include <limits.h>
8922 #else
8923 # include <assert.h>
8924 #endif
8926 #undef shl_load
8928 /* Override any gcc2 internal prototype to avoid an error. */
8929 #ifdef __cplusplus
8930 extern "C"
8932 #endif
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8935 char shl_load ();
8936 /* The GNU C library defines this for functions which it implements
8937 to always fail with ENOSYS. Some functions are actually named
8938 something starting with __ and the normal name is an alias. */
8939 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8940 choke me
8941 #else
8942 char (*f) () = shl_load;
8943 #endif
8944 #ifdef __cplusplus
8946 #endif
8949 main ()
8951 return f != shl_load;
8953 return 0;
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag"
8966 || test ! -s conftest.err'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try='test -s conftest$ac_exeext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_cv_func_shl_load=yes
8979 else
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 ac_cv_func_shl_load=no
8985 rm -f conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext conftest.$ac_ext
8988 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8989 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8990 if test $ac_cv_func_shl_load = yes; then
8991 lt_cv_dlopen="shl_load"
8992 else
8993 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8994 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8995 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998 ac_check_lib_save_LIBS=$LIBS
8999 LIBS="-ldld $LIBS"
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h. */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9007 /* Override any gcc2 internal prototype to avoid an error. */
9008 #ifdef __cplusplus
9009 extern "C"
9010 #endif
9011 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */
9013 char shl_load ();
9015 main ()
9017 shl_load ();
9019 return 0;
9021 _ACEOF
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag"
9032 || test ! -s conftest.err'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; } &&
9038 { ac_try='test -s conftest$ac_exeext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_lib_dld_shl_load=yes
9045 else
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_cv_lib_dld_shl_load=no
9051 rm -f conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9055 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9056 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9057 if test $ac_cv_lib_dld_shl_load = yes; then
9058 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9059 else
9060 echo "$as_me:$LINENO: checking for dlopen" >&5
9061 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9062 if test "${ac_cv_func_dlopen+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9073 #define dlopen innocuous_dlopen
9075 /* System header to define __stub macros and hopefully few prototypes,
9076 which can conflict with char dlopen (); below.
9077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9078 <limits.h> exists even on freestanding compilers. */
9080 #ifdef __STDC__
9081 # include <limits.h>
9082 #else
9083 # include <assert.h>
9084 #endif
9086 #undef dlopen
9088 /* Override any gcc2 internal prototype to avoid an error. */
9089 #ifdef __cplusplus
9090 extern "C"
9092 #endif
9093 /* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */
9095 char dlopen ();
9096 /* The GNU C library defines this for functions which it implements
9097 to always fail with ENOSYS. Some functions are actually named
9098 something starting with __ and the normal name is an alias. */
9099 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9100 choke me
9101 #else
9102 char (*f) () = dlopen;
9103 #endif
9104 #ifdef __cplusplus
9106 #endif
9109 main ()
9111 return f != dlopen;
9113 return 0;
9115 _ACEOF
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_func_dlopen=yes
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_cv_func_dlopen=no
9145 rm -f conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9149 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9150 if test $ac_cv_func_dlopen = yes; then
9151 lt_cv_dlopen="dlopen"
9152 else
9153 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158 ac_check_lib_save_LIBS=$LIBS
9159 LIBS="-ldl $LIBS"
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h. */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9167 /* Override any gcc2 internal prototype to avoid an error. */
9168 #ifdef __cplusplus
9169 extern "C"
9170 #endif
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9173 char dlopen ();
9175 main ()
9177 dlopen ();
9179 return 0;
9181 _ACEOF
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag"
9192 || test ! -s conftest.err'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try='test -s conftest$ac_exeext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_lib_dl_dlopen=yes
9205 else
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 ac_cv_lib_dl_dlopen=no
9211 rm -f conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9217 if test $ac_cv_lib_dl_dlopen = yes; then
9218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9219 else
9220 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9221 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9222 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225 ac_check_lib_save_LIBS=$LIBS
9226 LIBS="-lsvld $LIBS"
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9234 /* Override any gcc2 internal prototype to avoid an error. */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 /* We use char because int might match the return type of a gcc2
9239 builtin and then its argument prototype would still apply. */
9240 char dlopen ();
9242 main ()
9244 dlopen ();
9246 return 0;
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251 (eval $ac_link) 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest$ac_exeext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 ac_cv_lib_svld_dlopen=yes
9272 else
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_cv_lib_svld_dlopen=no
9278 rm -f conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9282 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9283 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9284 if test $ac_cv_lib_svld_dlopen = yes; then
9285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9286 else
9287 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9288 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292 ac_check_lib_save_LIBS=$LIBS
9293 LIBS="-ldld $LIBS"
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9301 /* Override any gcc2 internal prototype to avoid an error. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9307 char dld_link ();
9309 main ()
9311 dld_link ();
9313 return 0;
9315 _ACEOF
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_c_werror_flag"
9326 || test ! -s conftest.err'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; } &&
9332 { ac_try='test -s conftest$ac_exeext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 ac_cv_lib_dld_dld_link=yes
9339 else
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 ac_cv_lib_dld_dld_link=no
9345 rm -f conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 LIBS=$ac_check_lib_save_LIBS
9349 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9350 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9351 if test $ac_cv_lib_dld_dld_link = yes; then
9352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9371 esac
9373 if test "x$lt_cv_dlopen" != xno; then
9374 enable_dlopen=yes
9375 else
9376 enable_dlopen=no
9379 case $lt_cv_dlopen in
9380 dlopen)
9381 save_CPPFLAGS="$CPPFLAGS"
9382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9384 save_LDFLAGS="$LDFLAGS"
9385 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9387 save_LIBS="$LIBS"
9388 LIBS="$lt_cv_dlopen_libs $LIBS"
9390 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9391 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9392 if test "${lt_cv_dlopen_self+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395 if test "$cross_compiling" = yes; then :
9396 lt_cv_dlopen_self=cross
9397 else
9398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9399 lt_status=$lt_dlunknown
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9401 "configure"
9402 #include "confdefs.h"
9404 #if HAVE_DLFCN_H
9405 #include <dlfcn.h>
9406 #endif
9408 #include <stdio.h>
9410 #ifdef RTLD_GLOBAL
9411 # define LT_DLGLOBAL RTLD_GLOBAL
9412 #else
9413 # ifdef DL_GLOBAL
9414 # define LT_DLGLOBAL DL_GLOBAL
9415 # else
9416 # define LT_DLGLOBAL 0
9417 # endif
9418 #endif
9420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9421 find out it does not work in some platform. */
9422 #ifndef LT_DLLAZY_OR_NOW
9423 # ifdef RTLD_LAZY
9424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9425 # else
9426 # ifdef DL_LAZY
9427 # define LT_DLLAZY_OR_NOW DL_LAZY
9428 # else
9429 # ifdef RTLD_NOW
9430 # define LT_DLLAZY_OR_NOW RTLD_NOW
9431 # else
9432 # ifdef DL_NOW
9433 # define LT_DLLAZY_OR_NOW DL_NOW
9434 # else
9435 # define LT_DLLAZY_OR_NOW 0
9436 # endif
9437 # endif
9438 # endif
9439 # endif
9440 #endif
9442 #ifdef __cplusplus
9443 extern "C" void exit (int);
9444 #endif
9446 void fnord() { int i=42;}
9447 int main ()
9449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9450 int status = $lt_dlunknown;
9452 if (self)
9454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9455 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9456 /* dlclose (self); */
9459 exit (status);
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463 (eval $ac_link) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9467 (./conftest; exit; ) 2>/dev/null
9468 lt_status=$?
9469 case x$lt_status in
9470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9472 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9473 esac
9474 else :
9475 # compilation failed
9476 lt_cv_dlopen_self=no
9479 rm -fr conftest*
9483 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9484 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9486 if test "x$lt_cv_dlopen_self" = xyes; then
9487 LDFLAGS="$LDFLAGS $link_static_flag"
9488 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9489 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9490 if test "${lt_cv_dlopen_self_static+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493 if test "$cross_compiling" = yes; then :
9494 lt_cv_dlopen_self_static=cross
9495 else
9496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9497 lt_status=$lt_dlunknown
9498 cat > conftest.$ac_ext <<EOF
9499 #line 9499 "configure"
9500 #include "confdefs.h"
9502 #if HAVE_DLFCN_H
9503 #include <dlfcn.h>
9504 #endif
9506 #include <stdio.h>
9508 #ifdef RTLD_GLOBAL
9509 # define LT_DLGLOBAL RTLD_GLOBAL
9510 #else
9511 # ifdef DL_GLOBAL
9512 # define LT_DLGLOBAL DL_GLOBAL
9513 # else
9514 # define LT_DLGLOBAL 0
9515 # endif
9516 #endif
9518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9519 find out it does not work in some platform. */
9520 #ifndef LT_DLLAZY_OR_NOW
9521 # ifdef RTLD_LAZY
9522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9523 # else
9524 # ifdef DL_LAZY
9525 # define LT_DLLAZY_OR_NOW DL_LAZY
9526 # else
9527 # ifdef RTLD_NOW
9528 # define LT_DLLAZY_OR_NOW RTLD_NOW
9529 # else
9530 # ifdef DL_NOW
9531 # define LT_DLLAZY_OR_NOW DL_NOW
9532 # else
9533 # define LT_DLLAZY_OR_NOW 0
9534 # endif
9535 # endif
9536 # endif
9537 # endif
9538 #endif
9540 #ifdef __cplusplus
9541 extern "C" void exit (int);
9542 #endif
9544 void fnord() { int i=42;}
9545 int main ()
9547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9548 int status = $lt_dlunknown;
9550 if (self)
9552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9554 /* dlclose (self); */
9557 exit (status);
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9565 (./conftest; exit; ) 2>/dev/null
9566 lt_status=$?
9567 case x$lt_status in
9568 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9569 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9570 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9571 esac
9572 else :
9573 # compilation failed
9574 lt_cv_dlopen_self_static=no
9577 rm -fr conftest*
9581 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9582 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9585 CPPFLAGS="$save_CPPFLAGS"
9586 LDFLAGS="$save_LDFLAGS"
9587 LIBS="$save_LIBS"
9589 esac
9591 case $lt_cv_dlopen_self in
9592 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9593 *) enable_dlopen_self=unknown ;;
9594 esac
9596 case $lt_cv_dlopen_self_static in
9597 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9598 *) enable_dlopen_self_static=unknown ;;
9599 esac
9603 # Report which librarie types wil actually be built
9604 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9605 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9606 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9607 echo "${ECHO_T}$can_build_shared" >&6
9609 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9610 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9611 test "$can_build_shared" = "no" && enable_shared=no
9613 # On AIX, shared libraries and static libraries use the same namespace, and
9614 # are all built from PIC.
9615 case "$host_os" in
9616 aix3*)
9617 test "$enable_shared" = yes && enable_static=no
9618 if test -n "$RANLIB"; then
9619 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9620 postinstall_cmds='$RANLIB $lib'
9624 aix4* | aix5*)
9625 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9626 test "$enable_shared" = yes && enable_static=no
9629 esac
9630 echo "$as_me:$LINENO: result: $enable_shared" >&5
9631 echo "${ECHO_T}$enable_shared" >&6
9633 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9634 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9635 # Make sure either enable_shared or enable_static is yes.
9636 test "$enable_shared" = yes || enable_static=yes
9637 echo "$as_me:$LINENO: result: $enable_static" >&5
9638 echo "${ECHO_T}$enable_static" >&6
9640 # The else clause should only fire when bootstrapping the
9641 # libtool distribution, otherwise you forgot to ship ltmain.sh
9642 # with your package, and you will get complaints that there are
9643 # no rules to generate ltmain.sh.
9644 if test -f "$ltmain"; then
9645 # See if we are running on zsh, and set the options which allow our commands through
9646 # without removal of \ escapes.
9647 if test -n "${ZSH_VERSION+set}" ; then
9648 setopt NO_GLOB_SUBST
9650 # Now quote all the things that may contain metacharacters while being
9651 # careful not to overquote the AC_SUBSTed values. We take copies of the
9652 # variables and quote the copies for generation of the libtool script.
9653 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9654 SED SHELL STRIP \
9655 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9656 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9657 deplibs_check_method reload_flag reload_cmds need_locks \
9658 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9659 lt_cv_sys_global_symbol_to_c_name_address \
9660 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9661 old_postinstall_cmds old_postuninstall_cmds \
9662 compiler \
9663 CC \
9664 LD \
9665 lt_prog_compiler_wl \
9666 lt_prog_compiler_pic \
9667 lt_prog_compiler_static \
9668 lt_prog_compiler_no_builtin_flag \
9669 export_dynamic_flag_spec \
9670 thread_safe_flag_spec \
9671 whole_archive_flag_spec \
9672 enable_shared_with_static_runtimes \
9673 old_archive_cmds \
9674 old_archive_from_new_cmds \
9675 predep_objects \
9676 postdep_objects \
9677 predeps \
9678 postdeps \
9679 compiler_lib_search_path \
9680 archive_cmds \
9681 archive_expsym_cmds \
9682 postinstall_cmds \
9683 postuninstall_cmds \
9684 old_archive_from_expsyms_cmds \
9685 allow_undefined_flag \
9686 no_undefined_flag \
9687 export_symbols_cmds \
9688 hardcode_libdir_flag_spec \
9689 hardcode_libdir_flag_spec_ld \
9690 hardcode_libdir_separator \
9691 hardcode_automatic \
9692 module_cmds \
9693 module_expsym_cmds \
9694 lt_cv_prog_compiler_c_o \
9695 exclude_expsyms \
9696 include_expsyms; do
9698 case $var in
9699 old_archive_cmds | \
9700 old_archive_from_new_cmds | \
9701 archive_cmds | \
9702 archive_expsym_cmds | \
9703 module_cmds | \
9704 module_expsym_cmds | \
9705 old_archive_from_expsyms_cmds | \
9706 export_symbols_cmds | \
9707 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9708 postinstall_cmds | postuninstall_cmds | \
9709 old_postinstall_cmds | old_postuninstall_cmds | \
9710 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9711 # Double-quote double-evaled strings.
9712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9717 esac
9718 done
9720 case $lt_echo in
9721 *'\$0 --fallback-echo"')
9722 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9724 esac
9726 cfgfile="${ofile}T"
9727 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9728 $rm -f "$cfgfile"
9729 { echo "$as_me:$LINENO: creating $ofile" >&5
9730 echo "$as_me: creating $ofile" >&6;}
9732 cat <<__EOF__ >> "$cfgfile"
9733 #! $SHELL
9735 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9736 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9737 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9739 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9740 # Free Software Foundation, Inc.
9742 # This file is part of GNU Libtool:
9743 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9745 # This program is free software; you can redistribute it and/or modify
9746 # it under the terms of the GNU General Public License as published by
9747 # the Free Software Foundation; either version 2 of the License, or
9748 # (at your option) any later version.
9750 # This program is distributed in the hope that it will be useful, but
9751 # WITHOUT ANY WARRANTY; without even the implied warranty of
9752 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9753 # General Public License for more details.
9755 # You should have received a copy of the GNU General Public License
9756 # along with this program; if not, write to the Free Software
9757 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9759 # As a special exception to the GNU General Public License, if you
9760 # distribute this file as part of a program that contains a
9761 # configuration script generated by Autoconf, you may include it under
9762 # the same distribution terms that you use for the rest of that program.
9764 # A sed program that does not truncate output.
9765 SED=$lt_SED
9767 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9768 Xsed="$SED -e 1s/^X//"
9770 # The HP-UX ksh and POSIX shell print the target directory to stdout
9771 # if CDPATH is set.
9772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9774 # The names of the tagged configurations supported by this script.
9775 available_tags=
9777 # ### BEGIN LIBTOOL CONFIG
9779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9781 # Shell to use when invoking shell scripts.
9782 SHELL=$lt_SHELL
9784 # Whether or not to build shared libraries.
9785 build_libtool_libs=$enable_shared
9787 # Whether or not to build static libraries.
9788 build_old_libs=$enable_static
9790 # Whether or not to add -lc for building shared libraries.
9791 build_libtool_need_lc=$archive_cmds_need_lc
9793 # Whether or not to disallow shared libs when runtime libs are static
9794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9796 # Whether or not to optimize for fast installation.
9797 fast_install=$enable_fast_install
9799 # The host system.
9800 host_alias=$host_alias
9801 host=$host
9802 host_os=$host_os
9804 # The build system.
9805 build_alias=$build_alias
9806 build=$build
9807 build_os=$build_os
9809 # An echo program that does not interpret backslashes.
9810 echo=$lt_echo
9812 # The archiver.
9813 AR=$lt_AR
9814 AR_FLAGS=$lt_AR_FLAGS
9816 # A C compiler.
9817 LTCC=$lt_LTCC
9819 # A language-specific compiler.
9820 CC=$lt_compiler
9822 # Is the compiler the GNU C compiler?
9823 with_gcc=$GCC
9825 # An ERE matcher.
9826 EGREP=$lt_EGREP
9828 # The linker used to build libraries.
9829 LD=$lt_LD
9831 # Whether we need hard or soft links.
9832 LN_S=$lt_LN_S
9834 # A BSD-compatible nm program.
9835 NM=$lt_NM
9837 # A symbol stripping program
9838 STRIP=$lt_STRIP
9840 # Used to examine libraries when file_magic_cmd begins "file"
9841 MAGIC_CMD=$MAGIC_CMD
9843 # Used on cygwin: DLL creation program.
9844 DLLTOOL="$DLLTOOL"
9846 # Used on cygwin: object dumper.
9847 OBJDUMP="$OBJDUMP"
9849 # Used on cygwin: assembler.
9850 AS="$AS"
9852 # The name of the directory that contains temporary libtool files.
9853 objdir=$objdir
9855 # How to create reloadable object files.
9856 reload_flag=$lt_reload_flag
9857 reload_cmds=$lt_reload_cmds
9859 # How to pass a linker flag through the compiler.
9860 wl=$lt_lt_prog_compiler_wl
9862 # Object file suffix (normally "o").
9863 objext="$ac_objext"
9865 # Old archive suffix (normally "a").
9866 libext="$libext"
9868 # Shared library suffix (normally ".so").
9869 shrext_cmds='$shrext_cmds'
9871 # Executable file suffix (normally "").
9872 exeext="$exeext"
9874 # Additional compiler flags for building library objects.
9875 pic_flag=$lt_lt_prog_compiler_pic
9876 pic_mode=$pic_mode
9878 # What is the maximum length of a command?
9879 max_cmd_len=$lt_cv_sys_max_cmd_len
9881 # Does compiler simultaneously support -c and -o options?
9882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9884 # Must we lock files when doing compilation?
9885 need_locks=$lt_need_locks
9887 # Do we need the lib prefix for modules?
9888 need_lib_prefix=$need_lib_prefix
9890 # Do we need a version for libraries?
9891 need_version=$need_version
9893 # Whether dlopen is supported.
9894 dlopen_support=$enable_dlopen
9896 # Whether dlopen of programs is supported.
9897 dlopen_self=$enable_dlopen_self
9899 # Whether dlopen of statically linked programs is supported.
9900 dlopen_self_static=$enable_dlopen_self_static
9902 # Compiler flag to prevent dynamic linking.
9903 link_static_flag=$lt_lt_prog_compiler_static
9905 # Compiler flag to turn off builtin functions.
9906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9908 # Compiler flag to allow reflexive dlopens.
9909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9911 # Compiler flag to generate shared objects directly from archives.
9912 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9914 # Compiler flag to generate thread-safe objects.
9915 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9917 # Library versioning type.
9918 version_type=$version_type
9920 # Format of library name prefix.
9921 libname_spec=$lt_libname_spec
9923 # List of archive names. First name is the real one, the rest are links.
9924 # The last name is the one that the linker finds with -lNAME.
9925 library_names_spec=$lt_library_names_spec
9927 # The coded name of the library, if different from the real name.
9928 soname_spec=$lt_soname_spec
9930 # Commands used to build and install an old-style archive.
9931 RANLIB=$lt_RANLIB
9932 old_archive_cmds=$lt_old_archive_cmds
9933 old_postinstall_cmds=$lt_old_postinstall_cmds
9934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9936 # Create an old-style archive from a shared archive.
9937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9939 # Create a temporary old-style archive to link instead of a shared archive.
9940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9942 # Commands used to build and install a shared archive.
9943 archive_cmds=$lt_archive_cmds
9944 archive_expsym_cmds=$lt_archive_expsym_cmds
9945 postinstall_cmds=$lt_postinstall_cmds
9946 postuninstall_cmds=$lt_postuninstall_cmds
9948 # Commands used to build a loadable module (assumed same as above if empty)
9949 module_cmds=$lt_module_cmds
9950 module_expsym_cmds=$lt_module_expsym_cmds
9952 # Commands to strip libraries.
9953 old_striplib=$lt_old_striplib
9954 striplib=$lt_striplib
9956 # Dependencies to place before the objects being linked to create a
9957 # shared library.
9958 predep_objects=$lt_predep_objects
9960 # Dependencies to place after the objects being linked to create a
9961 # shared library.
9962 postdep_objects=$lt_postdep_objects
9964 # Dependencies to place before the objects being linked to create a
9965 # shared library.
9966 predeps=$lt_predeps
9968 # Dependencies to place after the objects being linked to create a
9969 # shared library.
9970 postdeps=$lt_postdeps
9972 # The library search path used internally by the compiler when linking
9973 # a shared library.
9974 compiler_lib_search_path=$lt_compiler_lib_search_path
9976 # Method to check whether dependent libraries are shared objects.
9977 deplibs_check_method=$lt_deplibs_check_method
9979 # Command to use when deplibs_check_method == file_magic.
9980 file_magic_cmd=$lt_file_magic_cmd
9982 # Flag that allows shared libraries with undefined symbols to be built.
9983 allow_undefined_flag=$lt_allow_undefined_flag
9985 # Flag that forces no undefined symbols.
9986 no_undefined_flag=$lt_no_undefined_flag
9988 # Commands used to finish a libtool library installation in a directory.
9989 finish_cmds=$lt_finish_cmds
9991 # Same as above, but a single script fragment to be evaled but not shown.
9992 finish_eval=$lt_finish_eval
9994 # Take the output of nm and produce a listing of raw symbols and C names.
9995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9997 # Transform the output of nm in a proper C declaration
9998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10000 # Transform the output of nm in a C name address pair
10001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10003 # This is the shared library runtime path variable.
10004 runpath_var=$runpath_var
10006 # This is the shared library path variable.
10007 shlibpath_var=$shlibpath_var
10009 # Is shlibpath searched before the hard-coded library search path?
10010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10012 # How to hardcode a shared library path into an executable.
10013 hardcode_action=$hardcode_action
10015 # Whether we should hardcode library paths into libraries.
10016 hardcode_into_libs=$hardcode_into_libs
10018 # Flag to hardcode \$libdir into a binary during linking.
10019 # This must work even if \$libdir does not exist.
10020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10022 # If ld is used when linking, flag to hardcode \$libdir into
10023 # a binary during linking. This must work even if \$libdir does
10024 # not exist.
10025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10027 # Whether we need a single -rpath flag with a separated argument.
10028 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10031 # resulting binary.
10032 hardcode_direct=$hardcode_direct
10034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10035 # resulting binary.
10036 hardcode_minus_L=$hardcode_minus_L
10038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10039 # the resulting binary.
10040 hardcode_shlibpath_var=$hardcode_shlibpath_var
10042 # Set to yes if building a shared library automatically hardcodes DIR into the library
10043 # and all subsequent libraries and executables linked against it.
10044 hardcode_automatic=$hardcode_automatic
10046 # Variables whose values should be saved in libtool wrapper scripts and
10047 # restored at relink time.
10048 variables_saved_for_relink="$variables_saved_for_relink"
10050 # Whether libtool must link a program against all its dependency libraries.
10051 link_all_deplibs=$link_all_deplibs
10053 # Compile-time system search path for libraries
10054 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10056 # Run-time system search path for libraries
10057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10059 # Fix the shell variable \$srcfile for the compiler.
10060 fix_srcfile_path="$fix_srcfile_path"
10062 # Set to yes if exported symbols are required.
10063 always_export_symbols=$always_export_symbols
10065 # The commands to list exported symbols.
10066 export_symbols_cmds=$lt_export_symbols_cmds
10068 # The commands to extract the exported symbol list from a shared archive.
10069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10071 # Symbols that should not be listed in the preloaded symbols.
10072 exclude_expsyms=$lt_exclude_expsyms
10074 # Symbols that must always be exported.
10075 include_expsyms=$lt_include_expsyms
10077 # ### END LIBTOOL CONFIG
10079 __EOF__
10082 case $host_os in
10083 aix3*)
10084 cat <<\EOF >> "$cfgfile"
10086 # AIX sometimes has problems with the GCC collect2 program. For some
10087 # reason, if we set the COLLECT_NAMES environment variable, the problems
10088 # vanish in a puff of smoke.
10089 if test "X${COLLECT_NAMES+set}" != Xset; then
10090 COLLECT_NAMES=
10091 export COLLECT_NAMES
10095 esac
10097 # We use sed instead of cat because bash on DJGPP gets confused if
10098 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10099 # text mode, it properly converts lines to CR/LF. This bash problem
10100 # is reportedly fixed, but why not run on old versions too?
10101 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10103 mv -f "$cfgfile" "$ofile" || \
10104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10105 chmod +x "$ofile"
10107 else
10108 # If there is no Makefile yet, we rely on a make rule to execute
10109 # `config.status --recheck' to rerun these tests and create the
10110 # libtool script then.
10111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10112 if test -f "$ltmain_in"; then
10113 test -f Makefile && make "$ltmain"
10118 ac_ext=c
10119 ac_cpp='$CPP $CPPFLAGS'
10120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10124 CC="$lt_save_CC"
10127 # Check whether --with-tags or --without-tags was given.
10128 if test "${with_tags+set}" = set; then
10129 withval="$with_tags"
10130 tagnames="$withval"
10133 if test -f "$ltmain" && test -n "$tagnames"; then
10134 if test ! -f "${ofile}"; then
10135 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10136 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10139 if test -z "$LTCC"; then
10140 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10141 if test -z "$LTCC"; then
10142 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10143 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10144 else
10145 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10146 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10150 # Extract list of available tagged configurations in $ofile.
10151 # Note that this assumes the entire list is on one line.
10152 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10155 for tagname in $tagnames; do
10156 IFS="$lt_save_ifs"
10157 # Check whether tagname contains only valid characters
10158 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10159 "") ;;
10160 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10161 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10162 { (exit 1); exit 1; }; }
10164 esac
10166 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10167 then
10168 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10169 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10170 { (exit 1); exit 1; }; }
10173 # Update the list of available tags.
10174 if test -n "$tagname"; then
10175 echo appending configuration tag \"$tagname\" to $ofile
10177 case $tagname in
10178 CXX)
10179 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10180 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10181 (test "X$CXX" != "Xg++"))) ; then
10182 ac_ext=cc
10183 ac_cpp='$CXXCPP $CPPFLAGS'
10184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10191 archive_cmds_need_lc_CXX=no
10192 allow_undefined_flag_CXX=
10193 always_export_symbols_CXX=no
10194 archive_expsym_cmds_CXX=
10195 export_dynamic_flag_spec_CXX=
10196 hardcode_direct_CXX=no
10197 hardcode_libdir_flag_spec_CXX=
10198 hardcode_libdir_flag_spec_ld_CXX=
10199 hardcode_libdir_separator_CXX=
10200 hardcode_minus_L_CXX=no
10201 hardcode_automatic_CXX=no
10202 module_cmds_CXX=
10203 module_expsym_cmds_CXX=
10204 link_all_deplibs_CXX=unknown
10205 old_archive_cmds_CXX=$old_archive_cmds
10206 no_undefined_flag_CXX=
10207 whole_archive_flag_spec_CXX=
10208 enable_shared_with_static_runtimes_CXX=no
10210 # Dependencies to place before and after the object being linked:
10211 predep_objects_CXX=
10212 postdep_objects_CXX=
10213 predeps_CXX=
10214 postdeps_CXX=
10215 compiler_lib_search_path_CXX=
10217 # Source file extension for C++ test sources.
10218 ac_ext=cc
10220 # Object file extension for compiled C++ test sources.
10221 objext=o
10222 objext_CXX=$objext
10224 # Code to be used in simple compile tests
10225 lt_simple_compile_test_code="int some_variable = 0;\n"
10227 # Code to be used in simple link tests
10228 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10230 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10232 # If no C compiler was specified, use CC.
10233 LTCC=${LTCC-"$CC"}
10235 # Allow CC to be a program name with arguments.
10236 compiler=$CC
10239 # save warnings/boilerplate of simple test code
10240 ac_outfile=conftest.$ac_objext
10241 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10243 _lt_compiler_boilerplate=`cat conftest.err`
10244 $rm conftest*
10246 ac_outfile=conftest.$ac_objext
10247 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10249 _lt_linker_boilerplate=`cat conftest.err`
10250 $rm conftest*
10253 # Allow CC to be a program name with arguments.
10254 lt_save_CC=$CC
10255 lt_save_LD=$LD
10256 lt_save_GCC=$GCC
10257 GCC=$GXX
10258 lt_save_with_gnu_ld=$with_gnu_ld
10259 lt_save_path_LD=$lt_cv_path_LD
10260 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10261 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10262 else
10263 unset lt_cv_prog_gnu_ld
10265 if test -n "${lt_cv_path_LDCXX+set}"; then
10266 lt_cv_path_LD=$lt_cv_path_LDCXX
10267 else
10268 unset lt_cv_path_LD
10270 test -z "${LDCXX+set}" || LD=$LDCXX
10271 CC=${CXX-"c++"}
10272 compiler=$CC
10273 compiler_CXX=$CC
10274 for cc_temp in $compiler""; do
10275 case $cc_temp in
10276 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10277 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10278 \-*) ;;
10279 *) break;;
10280 esac
10281 done
10282 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10285 # We don't want -fno-exception wen compiling C++ code, so set the
10286 # no_builtin_flag separately
10287 if test "$GXX" = yes; then
10288 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10289 else
10290 lt_prog_compiler_no_builtin_flag_CXX=
10293 if test "$GXX" = yes; then
10294 # Set up default GNU C++ configuration
10297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10298 if test "${with_gnu_ld+set}" = set; then
10299 withval="$with_gnu_ld"
10300 test "$withval" = no || with_gnu_ld=yes
10301 else
10302 with_gnu_ld=no
10304 ac_prog=ld
10305 if test "$GCC" = yes; then
10306 # Check if gcc -print-prog-name=ld gives a path.
10307 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10308 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10309 case $host in
10310 *-*-mingw*)
10311 # gcc leaves a trailing carriage return which upsets mingw
10312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10315 esac
10316 case $ac_prog in
10317 # Accept absolute paths.
10318 [\\/]* | ?:[\\/]*)
10319 re_direlt='/[^/][^/]*/\.\./'
10320 # Canonicalize the pathname of ld
10321 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10323 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10324 done
10325 test -z "$LD" && LD="$ac_prog"
10328 # If it fails, then pretend we aren't using GCC.
10329 ac_prog=ld
10332 # If it is relative, then search for the first ld in PATH.
10333 with_gnu_ld=unknown
10335 esac
10336 elif test "$with_gnu_ld" = yes; then
10337 echo "$as_me:$LINENO: checking for GNU ld" >&5
10338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10339 else
10340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10343 if test "${lt_cv_path_LD+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346 if test -z "$LD"; then
10347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10348 for ac_dir in $PATH; do
10349 IFS="$lt_save_ifs"
10350 test -z "$ac_dir" && ac_dir=.
10351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10352 lt_cv_path_LD="$ac_dir/$ac_prog"
10353 # Check to see if the program is GNU ld. I'd rather use --version,
10354 # but apparently some GNU ld's only accept -v.
10355 # Break only if it was the GNU/non-GNU ld that we prefer.
10356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10357 *GNU* | *'with BFD'*)
10358 test "$with_gnu_ld" != no && break
10361 test "$with_gnu_ld" != yes && break
10363 esac
10365 done
10366 IFS="$lt_save_ifs"
10367 else
10368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10372 LD="$lt_cv_path_LD"
10373 if test -n "$LD"; then
10374 echo "$as_me:$LINENO: result: $LD" >&5
10375 echo "${ECHO_T}$LD" >&6
10376 else
10377 echo "$as_me:$LINENO: result: no" >&5
10378 echo "${ECHO_T}no" >&6
10380 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10381 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10382 { (exit 1); exit 1; }; }
10383 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10384 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10385 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10389 case `$LD -v 2>&1 </dev/null` in
10390 *GNU* | *'with BFD'*)
10391 lt_cv_prog_gnu_ld=yes
10394 lt_cv_prog_gnu_ld=no
10396 esac
10398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10400 with_gnu_ld=$lt_cv_prog_gnu_ld
10404 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10405 # archiving commands below assume that GNU ld is being used.
10406 if test "$with_gnu_ld" = yes; then
10407 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408 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'
10410 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10413 # If archive_cmds runs LD, not CC, wlarc should be empty
10414 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10415 # investigate it a little bit more. (MM)
10416 wlarc='${wl}'
10418 # ancient GNU ld didn't support --whole-archive et. al.
10419 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10420 grep 'no-whole-archive' > /dev/null; then
10421 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10422 else
10423 whole_archive_flag_spec_CXX=
10425 else
10426 with_gnu_ld=no
10427 wlarc=
10429 # A generic and very simple default shared library creation
10430 # command for GNU C++ for the case where it uses the native
10431 # linker, instead of GNU ld. If possible, this setting should
10432 # overridden to take advantage of the native linker features on
10433 # the platform it is being used on.
10434 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10437 # Commands to make compiler produce verbose output that lists
10438 # what "hidden" libraries, object files and flags are used when
10439 # linking a shared library.
10440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10442 else
10443 GXX=no
10444 with_gnu_ld=no
10445 wlarc=
10448 # PORTME: fill in a description of your system's C++ link characteristics
10449 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10450 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10451 ld_shlibs_CXX=yes
10452 case $host_os in
10453 aix3*)
10454 # FIXME: insert proper C++ library support
10455 ld_shlibs_CXX=no
10457 aix4* | aix5*)
10458 if test "$host_cpu" = ia64; then
10459 # On IA64, the linker does run time linking by default, so we don't
10460 # have to do anything special.
10461 aix_use_runtimelinking=no
10462 exp_sym_flag='-Bexport'
10463 no_entry_flag=""
10464 else
10465 aix_use_runtimelinking=no
10467 # Test if we are trying to use run time linking or normal
10468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10469 # need to do runtime linking.
10470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10471 for ld_flag in $LDFLAGS; do
10472 case $ld_flag in
10473 *-brtl*)
10474 aix_use_runtimelinking=yes
10475 break
10477 esac
10478 done
10479 esac
10481 exp_sym_flag='-bexport'
10482 no_entry_flag='-bnoentry'
10485 # When large executables or shared objects are built, AIX ld can
10486 # have problems creating the table of contents. If linking a library
10487 # or program results in "error TOC overflow" add -mminimal-toc to
10488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10491 archive_cmds_CXX=''
10492 hardcode_direct_CXX=yes
10493 hardcode_libdir_separator_CXX=':'
10494 link_all_deplibs_CXX=yes
10496 if test "$GXX" = yes; then
10497 case $host_os in aix4.[012]|aix4.[012].*)
10498 # We only want to do this on AIX 4.2 and lower, the check
10499 # below for broken collect2 doesn't work under 4.3+
10500 collect2name=`${CC} -print-prog-name=collect2`
10501 if test -f "$collect2name" && \
10502 strings "$collect2name" | grep resolve_lib_name >/dev/null
10503 then
10504 # We have reworked collect2
10505 hardcode_direct_CXX=yes
10506 else
10507 # We have old collect2
10508 hardcode_direct_CXX=unsupported
10509 # It fails to find uninstalled libraries when the uninstalled
10510 # path is not listed in the libpath. Setting hardcode_minus_L
10511 # to unsupported forces relinking
10512 hardcode_minus_L_CXX=yes
10513 hardcode_libdir_flag_spec_CXX='-L$libdir'
10514 hardcode_libdir_separator_CXX=
10516 esac
10517 shared_flag='-shared'
10518 if test "$aix_use_runtimelinking" = yes; then
10519 shared_flag="$shared_flag "'${wl}-G'
10521 else
10522 # not using gcc
10523 if test "$host_cpu" = ia64; then
10524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10525 # chokes on -Wl,-G. The following line is correct:
10526 shared_flag='-G'
10527 else
10528 if test "$aix_use_runtimelinking" = yes; then
10529 shared_flag='${wl}-G'
10530 else
10531 shared_flag='${wl}-bM:SRE'
10536 # It seems that -bexpall does not export symbols beginning with
10537 # underscore (_), so it is better to generate a list of symbols to export.
10538 always_export_symbols_CXX=yes
10539 if test "$aix_use_runtimelinking" = yes; then
10540 # Warning - without using the other runtime loading flags (-brtl),
10541 # -berok will link without error, but may produce a broken library.
10542 allow_undefined_flag_CXX='-berok'
10543 # Determine the default libpath from the value encoded in an empty executable.
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h. */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10552 main ()
10556 return 0;
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_cxx_werror_flag"
10569 || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10584 # Check for a 64-bit object if we didn't find anything.
10585 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; }
10586 }'`; fi
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10596 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10598 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"
10599 else
10600 if test "$host_cpu" = ia64; then
10601 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10602 allow_undefined_flag_CXX="-z nodefs"
10603 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"
10604 else
10605 # Determine the default libpath from the value encoded in an empty executable.
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h. */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10614 main ()
10618 return 0;
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -z "$ac_cxx_werror_flag"
10631 || test ! -s conftest.err'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10646 # Check for a 64-bit object if we didn't find anything.
10647 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; }
10648 }'`; fi
10649 else
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10654 rm -f conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10658 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10659 # Warning - without using the other run time loading flags,
10660 # -berok will link without error, but may produce a broken library.
10661 no_undefined_flag_CXX=' ${wl}-bernotok'
10662 allow_undefined_flag_CXX=' ${wl}-berok'
10663 # -bexpall does not export symbols beginning with underscore (_)
10664 always_export_symbols_CXX=yes
10665 # Exported symbols can be pulled into shared objects from archives
10666 whole_archive_flag_spec_CXX=' '
10667 archive_cmds_need_lc_CXX=yes
10668 # This is similar to how AIX traditionally builds it's shared libraries.
10669 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'
10673 chorus*)
10674 case $cc_basename in
10676 # FIXME: insert proper C++ library support
10677 ld_shlibs_CXX=no
10679 esac
10683 cygwin* | mingw* | pw32*)
10684 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10685 # as there is no search path for DLLs.
10686 hardcode_libdir_flag_spec_CXX='-L$libdir'
10687 allow_undefined_flag_CXX=unsupported
10688 always_export_symbols_CXX=no
10689 enable_shared_with_static_runtimes_CXX=yes
10691 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10692 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'
10693 # If the export-symbols file already is a .def file (1st line
10694 # is EXPORTS), use it as is; otherwise, prepend...
10695 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10696 cp $export_symbols $output_objdir/$soname.def;
10697 else
10698 echo EXPORTS > $output_objdir/$soname.def;
10699 cat $export_symbols >> $output_objdir/$soname.def;
10701 $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'
10702 else
10703 ld_shlibs_CXX=no
10706 darwin* | rhapsody*)
10707 case "$host_os" in
10708 rhapsody* | darwin1.[012])
10709 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10711 *) # Darwin 1.3 on
10712 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10713 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10714 else
10715 case ${MACOSX_DEPLOYMENT_TARGET} in
10716 10.[012])
10717 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10719 10.*)
10720 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10722 esac
10725 esac
10726 archive_cmds_need_lc_CXX=no
10727 hardcode_direct_CXX=no
10728 hardcode_automatic_CXX=yes
10729 hardcode_shlibpath_var_CXX=unsupported
10730 whole_archive_flag_spec_CXX=''
10731 link_all_deplibs_CXX=yes
10733 if test "$GXX" = yes ; then
10734 lt_int_apple_cc_single_mod=no
10735 output_verbose_link_cmd='echo'
10736 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10737 lt_int_apple_cc_single_mod=yes
10739 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10740 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10741 else
10742 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10744 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10745 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10746 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10747 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}'
10748 else
10749 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10751 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}'
10752 else
10753 case $cc_basename in
10754 xlc*)
10755 output_verbose_link_cmd='echo'
10756 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10757 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10759 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10760 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}'
10763 ld_shlibs_CXX=no
10765 esac
10769 dgux*)
10770 case $cc_basename in
10771 ec++*)
10772 # FIXME: insert proper C++ library support
10773 ld_shlibs_CXX=no
10775 ghcx*)
10776 # Green Hills C++ Compiler
10777 # FIXME: insert proper C++ library support
10778 ld_shlibs_CXX=no
10781 # FIXME: insert proper C++ library support
10782 ld_shlibs_CXX=no
10784 esac
10786 freebsd[12]*)
10787 # C++ shared libraries reported to be fairly broken before switch to ELF
10788 ld_shlibs_CXX=no
10790 freebsd-elf*)
10791 archive_cmds_need_lc_CXX=no
10793 freebsd* | kfreebsd*-gnu | dragonfly*)
10794 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10795 # conventions
10796 ld_shlibs_CXX=yes
10798 gnu*)
10800 hpux9*)
10801 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10802 hardcode_libdir_separator_CXX=:
10803 export_dynamic_flag_spec_CXX='${wl}-E'
10804 hardcode_direct_CXX=yes
10805 hardcode_minus_L_CXX=yes # Not in the search PATH,
10806 # but as the default
10807 # location of the library.
10809 case $cc_basename in
10810 CC*)
10811 # FIXME: insert proper C++ library support
10812 ld_shlibs_CXX=no
10814 aCC*)
10815 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'
10816 # Commands to make compiler produce verbose output that lists
10817 # what "hidden" libraries, object files and flags are used when
10818 # linking a shared library.
10820 # There doesn't appear to be a way to prevent this compiler from
10821 # explicitly linking system object files so we need to strip them
10822 # from the output so that they don't get included in the library
10823 # dependencies.
10824 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'
10827 if test "$GXX" = yes; then
10828 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'
10829 else
10830 # FIXME: insert proper C++ library support
10831 ld_shlibs_CXX=no
10834 esac
10836 hpux10*|hpux11*)
10837 if test $with_gnu_ld = no; then
10838 case "$host_cpu" in
10839 hppa*64*)
10840 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10841 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10842 hardcode_libdir_separator_CXX=:
10844 ia64*)
10845 hardcode_libdir_flag_spec_CXX='-L$libdir'
10848 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10849 hardcode_libdir_separator_CXX=:
10850 export_dynamic_flag_spec_CXX='${wl}-E'
10852 esac
10854 case "$host_cpu" in
10855 hppa*64*)
10856 hardcode_direct_CXX=no
10857 hardcode_shlibpath_var_CXX=no
10859 ia64*)
10860 hardcode_direct_CXX=no
10861 hardcode_shlibpath_var_CXX=no
10862 hardcode_minus_L_CXX=yes # Not in the search PATH,
10863 # but as the default
10864 # location of the library.
10867 hardcode_direct_CXX=yes
10868 hardcode_minus_L_CXX=yes # Not in the search PATH,
10869 # but as the default
10870 # location of the library.
10872 esac
10874 case $cc_basename in
10875 CC*)
10876 # FIXME: insert proper C++ library support
10877 ld_shlibs_CXX=no
10879 aCC*)
10880 case "$host_cpu" in
10881 hppa*64*|ia64*)
10882 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10885 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10887 esac
10888 # Commands to make compiler produce verbose output that lists
10889 # what "hidden" libraries, object files and flags are used when
10890 # linking a shared library.
10892 # There doesn't appear to be a way to prevent this compiler from
10893 # explicitly linking system object files so we need to strip them
10894 # from the output so that they don't get included in the library
10895 # dependencies.
10896 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'
10899 if test "$GXX" = yes; then
10900 if test $with_gnu_ld = no; then
10901 case "$host_cpu" in
10902 ia64*|hppa*64*)
10903 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10906 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'
10908 esac
10910 else
10911 # FIXME: insert proper C++ library support
10912 ld_shlibs_CXX=no
10915 esac
10917 irix5* | irix6*)
10918 case $cc_basename in
10919 CC*)
10920 # SGI C++
10921 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10923 # Archives containing C++ object files must be created using
10924 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10925 # necessary to make sure instantiated templates are included
10926 # in the archive.
10927 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10930 if test "$GXX" = yes; then
10931 if test "$with_gnu_ld" = no; then
10932 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10933 else
10934 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'
10937 link_all_deplibs_CXX=yes
10939 esac
10940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10941 hardcode_libdir_separator_CXX=:
10943 linux*)
10944 case $cc_basename in
10945 KCC*)
10946 # Kuck and Associates, Inc. (KAI) C++ Compiler
10948 # KCC will only create a shared library if the output file
10949 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10950 # to its proper name (with version) after linking.
10951 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'
10952 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'
10953 # Commands to make compiler produce verbose output that lists
10954 # what "hidden" libraries, object files and flags are used when
10955 # linking a shared library.
10957 # There doesn't appear to be a way to prevent this compiler from
10958 # explicitly linking system object files so we need to strip them
10959 # from the output so that they don't get included in the library
10960 # dependencies.
10961 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'
10963 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10964 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10966 # Archives containing C++ object files must be created using
10967 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10968 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10970 icpc*)
10971 # Intel C++
10972 with_gnu_ld=yes
10973 # version 8.0 and above of icpc choke on multiply defined symbols
10974 # if we add $predep_objects and $postdep_objects, however 7.1 and
10975 # earlier do not add the objects themselves.
10976 case `$CC -V 2>&1` in
10977 *"Version 7."*)
10978 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10979 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'
10981 *) # Version 8.0 or newer
10982 tmp_idyn=
10983 case $host_cpu in
10984 ia64*) tmp_idyn=' -i_dynamic';;
10985 esac
10986 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10987 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10989 esac
10990 archive_cmds_need_lc_CXX=no
10991 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10992 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10993 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10995 pgCC*)
10996 # Portland Group C++ compiler
10997 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10998 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'
11000 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11001 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11002 whole_archive_flag_spec_CXX=''
11004 cxx*)
11005 # Compaq C++
11006 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11007 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'
11009 runpath_var=LD_RUN_PATH
11010 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11011 hardcode_libdir_separator_CXX=:
11013 # Commands to make compiler produce verbose output that lists
11014 # what "hidden" libraries, object files and flags are used when
11015 # linking a shared library.
11017 # There doesn't appear to be a way to prevent this compiler from
11018 # explicitly linking system object files so we need to strip them
11019 # from the output so that they don't get included in the library
11020 # dependencies.
11021 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'
11023 esac
11025 lynxos*)
11026 # FIXME: insert proper C++ library support
11027 ld_shlibs_CXX=no
11029 m88k*)
11030 # FIXME: insert proper C++ library support
11031 ld_shlibs_CXX=no
11033 mvs*)
11034 case $cc_basename in
11035 cxx*)
11036 # FIXME: insert proper C++ library support
11037 ld_shlibs_CXX=no
11040 # FIXME: insert proper C++ library support
11041 ld_shlibs_CXX=no
11043 esac
11045 netbsd*)
11046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11047 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11048 wlarc=
11049 hardcode_libdir_flag_spec_CXX='-R$libdir'
11050 hardcode_direct_CXX=yes
11051 hardcode_shlibpath_var_CXX=no
11053 # Workaround some broken pre-1.5 toolchains
11054 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11056 openbsd2*)
11057 # C++ shared libraries are fairly broken
11058 ld_shlibs_CXX=no
11060 openbsd*)
11061 hardcode_direct_CXX=yes
11062 hardcode_shlibpath_var_CXX=no
11063 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11064 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11066 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11067 export_dynamic_flag_spec_CXX='${wl}-E'
11068 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11070 output_verbose_link_cmd='echo'
11072 osf3*)
11073 case $cc_basename in
11074 KCC*)
11075 # Kuck and Associates, Inc. (KAI) C++ Compiler
11077 # KCC will only create a shared library if the output file
11078 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11079 # to its proper name (with version) after linking.
11080 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'
11082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11083 hardcode_libdir_separator_CXX=:
11085 # Archives containing C++ object files must be created using
11086 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11087 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11090 RCC*)
11091 # Rational C++ 2.4.1
11092 # FIXME: insert proper C++ library support
11093 ld_shlibs_CXX=no
11095 cxx*)
11096 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11097 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11100 hardcode_libdir_separator_CXX=:
11102 # Commands to make compiler produce verbose output that lists
11103 # what "hidden" libraries, object files and flags are used when
11104 # linking a shared library.
11106 # There doesn't appear to be a way to prevent this compiler from
11107 # explicitly linking system object files so we need to strip them
11108 # from the output so that they don't get included in the library
11109 # dependencies.
11110 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'
11113 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11114 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11115 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11118 hardcode_libdir_separator_CXX=:
11120 # Commands to make compiler produce verbose output that lists
11121 # what "hidden" libraries, object files and flags are used when
11122 # linking a shared library.
11123 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11125 else
11126 # FIXME: insert proper C++ library support
11127 ld_shlibs_CXX=no
11130 esac
11132 osf4* | osf5*)
11133 case $cc_basename in
11134 KCC*)
11135 # Kuck and Associates, Inc. (KAI) C++ Compiler
11137 # KCC will only create a shared library if the output file
11138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11139 # to its proper name (with version) after linking.
11140 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'
11142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11143 hardcode_libdir_separator_CXX=:
11145 # Archives containing C++ object files must be created using
11146 # the KAI C++ compiler.
11147 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11149 RCC*)
11150 # Rational C++ 2.4.1
11151 # FIXME: insert proper C++ library support
11152 ld_shlibs_CXX=no
11154 cxx*)
11155 allow_undefined_flag_CXX=' -expect_unresolved \*'
11156 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11157 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11158 echo "-hidden">> $lib.exp~
11159 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11160 $rm $lib.exp'
11162 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11163 hardcode_libdir_separator_CXX=:
11165 # Commands to make compiler produce verbose output that lists
11166 # what "hidden" libraries, object files and flags are used when
11167 # linking a shared library.
11169 # There doesn't appear to be a way to prevent this compiler from
11170 # explicitly linking system object files so we need to strip them
11171 # from the output so that they don't get included in the library
11172 # dependencies.
11173 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'
11176 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11177 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11178 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11180 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11181 hardcode_libdir_separator_CXX=:
11183 # Commands to make compiler produce verbose output that lists
11184 # what "hidden" libraries, object files and flags are used when
11185 # linking a shared library.
11186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11188 else
11189 # FIXME: insert proper C++ library support
11190 ld_shlibs_CXX=no
11193 esac
11195 psos*)
11196 # FIXME: insert proper C++ library support
11197 ld_shlibs_CXX=no
11199 sco*)
11200 archive_cmds_need_lc_CXX=no
11201 case $cc_basename in
11202 CC*)
11203 # FIXME: insert proper C++ library support
11204 ld_shlibs_CXX=no
11207 # FIXME: insert proper C++ library support
11208 ld_shlibs_CXX=no
11210 esac
11212 sunos4*)
11213 case $cc_basename in
11214 CC*)
11215 # Sun C++ 4.x
11216 # FIXME: insert proper C++ library support
11217 ld_shlibs_CXX=no
11219 lcc*)
11220 # Lucid
11221 # FIXME: insert proper C++ library support
11222 ld_shlibs_CXX=no
11225 # FIXME: insert proper C++ library support
11226 ld_shlibs_CXX=no
11228 esac
11230 solaris*)
11231 case $cc_basename in
11232 CC*)
11233 # Sun C++ 4.2, 5.x and Centerline C++
11234 no_undefined_flag_CXX=' -zdefs'
11235 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11236 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11237 $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'
11239 hardcode_libdir_flag_spec_CXX='-R$libdir'
11240 hardcode_shlibpath_var_CXX=no
11241 case $host_os in
11242 solaris2.[0-5] | solaris2.[0-5].*) ;;
11244 # The C++ compiler is used as linker so we must use $wl
11245 # flag to pass the commands to the underlying system
11246 # linker. We must also pass each convience library through
11247 # to the system linker between allextract/defaultextract.
11248 # The C++ compiler will combine linker options so we
11249 # cannot just pass the convience library names through
11250 # without $wl.
11251 # Supported since Solaris 2.6 (maybe 2.5.1?)
11252 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11254 esac
11255 link_all_deplibs_CXX=yes
11257 # Commands to make compiler produce verbose output that lists
11258 # what "hidden" libraries, object files and flags are used when
11259 # linking a shared library.
11261 # There doesn't appear to be a way to prevent this compiler from
11262 # explicitly linking system object files so we need to strip them
11263 # from the output so that they don't get included in the library
11264 # dependencies.
11265 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'
11267 # Archives containing C++ object files must be created using
11268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11269 # necessary to make sure instantiated templates are included
11270 # in the archive.
11271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11273 gcx*)
11274 # Green Hills C++ Compiler
11275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11277 # The C++ compiler must be used to create the archive.
11278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11281 # GNU C++ compiler with Solaris linker
11282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11284 if $CC --version | grep -v '^2\.7' > /dev/null; then
11285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11286 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11289 # Commands to make compiler produce verbose output that lists
11290 # what "hidden" libraries, object files and flags are used when
11291 # linking a shared library.
11292 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11293 else
11294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11295 # platform.
11296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11297 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11300 # Commands to make compiler produce verbose output that lists
11301 # what "hidden" libraries, object files and flags are used when
11302 # linking a shared library.
11303 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11309 esac
11311 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11312 archive_cmds_need_lc_CXX=no
11314 tandem*)
11315 case $cc_basename in
11316 NCC*)
11317 # NonStop-UX NCC 3.20
11318 # FIXME: insert proper C++ library support
11319 ld_shlibs_CXX=no
11322 # FIXME: insert proper C++ library support
11323 ld_shlibs_CXX=no
11325 esac
11327 vxworks*)
11328 # FIXME: insert proper C++ library support
11329 ld_shlibs_CXX=no
11332 # FIXME: insert proper C++ library support
11333 ld_shlibs_CXX=no
11335 esac
11336 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11337 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11338 test "$ld_shlibs_CXX" = no && can_build_shared=no
11340 GCC_CXX="$GXX"
11341 LD_CXX="$LD"
11343 ## CAVEAT EMPTOR:
11344 ## There is no encapsulation within the following macros, do not change
11345 ## the running order or otherwise move them around unless you know exactly
11346 ## what you are doing...
11348 cat > conftest.$ac_ext <<EOF
11349 class Foo
11351 public:
11352 Foo (void) { a = 0; }
11353 private:
11354 int a;
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359 (eval $ac_compile) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; then
11363 # Parse the compiler output and extract the necessary
11364 # objects, libraries and library flags.
11366 # Sentinel used to keep track of whether or not we are before
11367 # the conftest object file.
11368 pre_test_object_deps_done=no
11370 # The `*' in the case matches for architectures that use `case' in
11371 # $output_verbose_cmd can trigger glob expansion during the loop
11372 # eval without this substitution.
11373 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11375 for p in `eval $output_verbose_link_cmd`; do
11376 case $p in
11378 -L* | -R* | -l*)
11379 # Some compilers place space between "-{L,R}" and the path.
11380 # Remove the space.
11381 if test $p = "-L" \
11382 || test $p = "-R"; then
11383 prev=$p
11384 continue
11385 else
11386 prev=
11389 if test "$pre_test_object_deps_done" = no; then
11390 case $p in
11391 -L* | -R*)
11392 # Internal compiler library paths should come after those
11393 # provided the user. The postdeps already come after the
11394 # user supplied libs so there is no need to process them.
11395 if test -z "$compiler_lib_search_path_CXX"; then
11396 compiler_lib_search_path_CXX="${prev}${p}"
11397 else
11398 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11401 # The "-l" case would never come before the object being
11402 # linked, so don't bother handling this case.
11403 esac
11404 else
11405 if test -z "$postdeps_CXX"; then
11406 postdeps_CXX="${prev}${p}"
11407 else
11408 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11413 *.$objext)
11414 # This assumes that the test object file only shows up
11415 # once in the compiler output.
11416 if test "$p" = "conftest.$objext"; then
11417 pre_test_object_deps_done=yes
11418 continue
11421 if test "$pre_test_object_deps_done" = no; then
11422 if test -z "$predep_objects_CXX"; then
11423 predep_objects_CXX="$p"
11424 else
11425 predep_objects_CXX="$predep_objects_CXX $p"
11427 else
11428 if test -z "$postdep_objects_CXX"; then
11429 postdep_objects_CXX="$p"
11430 else
11431 postdep_objects_CXX="$postdep_objects_CXX $p"
11436 *) ;; # Ignore the rest.
11438 esac
11439 done
11441 # Clean up.
11442 rm -f a.out a.exe
11443 else
11444 echo "libtool.m4: error: problem compiling CXX test program"
11447 $rm -f confest.$objext
11449 case " $postdeps_CXX " in
11450 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11451 esac
11453 lt_prog_compiler_wl_CXX=
11454 lt_prog_compiler_pic_CXX=
11455 lt_prog_compiler_static_CXX=
11457 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11460 # C++ specific cases for pic, static, wl, etc.
11461 if test "$GXX" = yes; then
11462 lt_prog_compiler_wl_CXX='-Wl,'
11463 lt_prog_compiler_static_CXX='-static'
11465 case $host_os in
11466 aix*)
11467 # All AIX code is PIC.
11468 if test "$host_cpu" = ia64; then
11469 # AIX 5 now supports IA64 processor
11470 lt_prog_compiler_static_CXX='-Bstatic'
11473 amigaos*)
11474 # FIXME: we need at least 68020 code to build shared libraries, but
11475 # adding the `-m68020' flag to GCC prevents building anything better,
11476 # like `-m68040'.
11477 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11479 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11480 # PIC is the default for these OSes.
11482 mingw* | os2* | pw32*)
11483 # This hack is so that the source file can tell whether it is being
11484 # built for inclusion in a dll (and should export symbols for example).
11485 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11487 darwin* | rhapsody*)
11488 # PIC is the default on this platform
11489 # Common symbols not allowed in MH_DYLIB files
11490 lt_prog_compiler_pic_CXX='-fno-common'
11492 *djgpp*)
11493 # DJGPP does not support shared libraries at all
11494 lt_prog_compiler_pic_CXX=
11496 sysv4*MP*)
11497 if test -d /usr/nec; then
11498 lt_prog_compiler_pic_CXX=-Kconform_pic
11501 hpux*)
11502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11503 # not for PA HP-UX.
11504 case "$host_cpu" in
11505 hppa*64*|ia64*)
11508 lt_prog_compiler_pic_CXX='-fPIC'
11510 esac
11513 lt_prog_compiler_pic_CXX='-fPIC'
11515 esac
11516 else
11517 case $host_os in
11518 aix4* | aix5*)
11519 # All AIX code is PIC.
11520 if test "$host_cpu" = ia64; then
11521 # AIX 5 now supports IA64 processor
11522 lt_prog_compiler_static_CXX='-Bstatic'
11523 else
11524 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11527 chorus*)
11528 case $cc_basename in
11529 cxch68*)
11530 # Green Hills C++ Compiler
11531 # _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"
11533 esac
11535 darwin*)
11536 # PIC is the default on this platform
11537 # Common symbols not allowed in MH_DYLIB files
11538 case $cc_basename in
11539 xlc*)
11540 lt_prog_compiler_pic_CXX='-qnocommon'
11541 lt_prog_compiler_wl_CXX='-Wl,'
11543 esac
11545 dgux*)
11546 case $cc_basename in
11547 ec++*)
11548 lt_prog_compiler_pic_CXX='-KPIC'
11550 ghcx*)
11551 # Green Hills C++ Compiler
11552 lt_prog_compiler_pic_CXX='-pic'
11556 esac
11558 freebsd* | kfreebsd*-gnu | dragonfly*)
11559 # FreeBSD uses GNU C++
11561 hpux9* | hpux10* | hpux11*)
11562 case $cc_basename in
11563 CC*)
11564 lt_prog_compiler_wl_CXX='-Wl,'
11565 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11566 if test "$host_cpu" != ia64; then
11567 lt_prog_compiler_pic_CXX='+Z'
11570 aCC*)
11571 lt_prog_compiler_wl_CXX='-Wl,'
11572 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11573 case "$host_cpu" in
11574 hppa*64*|ia64*)
11575 # +Z the default
11578 lt_prog_compiler_pic_CXX='+Z'
11580 esac
11584 esac
11586 irix5* | irix6* | nonstopux*)
11587 case $cc_basename in
11588 CC*)
11589 lt_prog_compiler_wl_CXX='-Wl,'
11590 lt_prog_compiler_static_CXX='-non_shared'
11591 # CC pic flag -KPIC is the default.
11595 esac
11597 linux*)
11598 case $cc_basename in
11599 KCC*)
11600 # KAI C++ Compiler
11601 lt_prog_compiler_wl_CXX='--backend -Wl,'
11602 lt_prog_compiler_pic_CXX='-fPIC'
11604 icpc* | ecpc*)
11605 # Intel C++
11606 lt_prog_compiler_wl_CXX='-Wl,'
11607 lt_prog_compiler_pic_CXX='-KPIC'
11608 lt_prog_compiler_static_CXX='-static'
11610 pgCC*)
11611 # Portland Group C++ compiler.
11612 lt_prog_compiler_wl_CXX='-Wl,'
11613 lt_prog_compiler_pic_CXX='-fpic'
11614 lt_prog_compiler_static_CXX='-static'
11616 cxx*)
11617 # Compaq C++
11618 # Make sure the PIC flag is empty. It appears that all Alpha
11619 # Linux and Compaq Tru64 Unix objects are PIC.
11620 lt_prog_compiler_pic_CXX=
11621 lt_prog_compiler_static_CXX='-non_shared'
11625 esac
11627 lynxos*)
11629 m88k*)
11631 mvs*)
11632 case $cc_basename in
11633 cxx*)
11634 lt_prog_compiler_pic_CXX='-W c,exportall'
11638 esac
11640 netbsd*)
11642 osf3* | osf4* | osf5*)
11643 case $cc_basename in
11644 KCC*)
11645 lt_prog_compiler_wl_CXX='--backend -Wl,'
11647 RCC*)
11648 # Rational C++ 2.4.1
11649 lt_prog_compiler_pic_CXX='-pic'
11651 cxx*)
11652 # Digital/Compaq C++
11653 lt_prog_compiler_wl_CXX='-Wl,'
11654 # Make sure the PIC flag is empty. It appears that all Alpha
11655 # Linux and Compaq Tru64 Unix objects are PIC.
11656 lt_prog_compiler_pic_CXX=
11657 lt_prog_compiler_static_CXX='-non_shared'
11661 esac
11663 psos*)
11665 sco*)
11666 case $cc_basename in
11667 CC*)
11668 lt_prog_compiler_pic_CXX='-fPIC'
11672 esac
11674 solaris*)
11675 case $cc_basename in
11676 CC*)
11677 # Sun C++ 4.2, 5.x and Centerline C++
11678 lt_prog_compiler_pic_CXX='-KPIC'
11679 lt_prog_compiler_static_CXX='-Bstatic'
11680 lt_prog_compiler_wl_CXX='-Qoption ld '
11682 gcx*)
11683 # Green Hills C++ Compiler
11684 lt_prog_compiler_pic_CXX='-PIC'
11688 esac
11690 sunos4*)
11691 case $cc_basename in
11692 CC*)
11693 # Sun C++ 4.x
11694 lt_prog_compiler_pic_CXX='-pic'
11695 lt_prog_compiler_static_CXX='-Bstatic'
11697 lcc*)
11698 # Lucid
11699 lt_prog_compiler_pic_CXX='-pic'
11703 esac
11705 tandem*)
11706 case $cc_basename in
11707 NCC*)
11708 # NonStop-UX NCC 3.20
11709 lt_prog_compiler_pic_CXX='-KPIC'
11713 esac
11715 unixware*)
11717 vxworks*)
11720 lt_prog_compiler_can_build_shared_CXX=no
11722 esac
11725 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11726 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11729 # Check to make sure the PIC flag actually works.
11731 if test -n "$lt_prog_compiler_pic_CXX"; then
11733 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11734 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11735 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738 lt_prog_compiler_pic_works_CXX=no
11739 ac_outfile=conftest.$ac_objext
11740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11741 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11742 # Insert the option either (1) after the last *FLAGS variable, or
11743 # (2) before a word containing "conftest.", or (3) at the end.
11744 # Note that $ac_compile itself does not contain backslashes and begins
11745 # with a dollar sign (not a hyphen), so the echo should work correctly.
11746 # The option is referenced via a variable to avoid confusing sed.
11747 lt_compile=`echo "$ac_compile" | $SED \
11748 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11750 -e 's:$: $lt_compiler_flag:'`
11751 (eval echo "\"\$as_me:11751: $lt_compile\"" >&5)
11752 (eval "$lt_compile" 2>conftest.err)
11753 ac_status=$?
11754 cat conftest.err >&5
11755 echo "$as_me:11755: \$? = $ac_status" >&5
11756 if (exit $ac_status) && test -s "$ac_outfile"; then
11757 # The compiler can only warn and ignore the option if not recognized
11758 # So say no if there are warnings other than the usual output.
11759 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11760 $SED '/^$/d' conftest.err >conftest.er2
11761 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11762 lt_prog_compiler_pic_works_CXX=yes
11765 $rm conftest*
11768 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11769 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11771 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11772 case $lt_prog_compiler_pic_CXX in
11773 "" | " "*) ;;
11774 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11775 esac
11776 else
11777 lt_prog_compiler_pic_CXX=
11778 lt_prog_compiler_can_build_shared_CXX=no
11782 case "$host_os" in
11783 # For platforms which do not support PIC, -DPIC is meaningless:
11784 *djgpp*)
11785 lt_prog_compiler_pic_CXX=
11788 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11790 esac
11792 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797 lt_cv_prog_compiler_c_o_CXX=no
11798 $rm -r conftest 2>/dev/null
11799 mkdir conftest
11800 cd conftest
11801 mkdir out
11802 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11804 lt_compiler_flag="-o out/conftest2.$ac_objext"
11805 # Insert the option either (1) after the last *FLAGS variable, or
11806 # (2) before a word containing "conftest.", or (3) at the end.
11807 # Note that $ac_compile itself does not contain backslashes and begins
11808 # with a dollar sign (not a hyphen), so the echo should work correctly.
11809 lt_compile=`echo "$ac_compile" | $SED \
11810 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812 -e 's:$: $lt_compiler_flag:'`
11813 (eval echo "\"\$as_me:11813: $lt_compile\"" >&5)
11814 (eval "$lt_compile" 2>out/conftest.err)
11815 ac_status=$?
11816 cat out/conftest.err >&5
11817 echo "$as_me:11817: \$? = $ac_status" >&5
11818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11819 then
11820 # The compiler can only warn and ignore the option if not recognized
11821 # So say no if there are warnings
11822 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11823 $SED '/^$/d' out/conftest.err >out/conftest.er2
11824 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11825 lt_cv_prog_compiler_c_o_CXX=yes
11828 chmod u+w .
11829 $rm conftest*
11830 # SGI C++ compiler will create directory out/ii_files/ for
11831 # template instantiation
11832 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11833 $rm out/* && rmdir out
11834 cd ..
11835 rmdir conftest
11836 $rm conftest*
11839 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11843 hard_links="nottested"
11844 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11845 # do not overwrite the value of need_locks provided by the user
11846 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11848 hard_links=yes
11849 $rm conftest*
11850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11851 touch conftest.a
11852 ln conftest.a conftest.b 2>&5 || hard_links=no
11853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11854 echo "$as_me:$LINENO: result: $hard_links" >&5
11855 echo "${ECHO_T}$hard_links" >&6
11856 if test "$hard_links" = no; then
11857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11859 need_locks=warn
11861 else
11862 need_locks=no
11865 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11868 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11869 case $host_os in
11870 aix4* | aix5*)
11871 # If we're using GNU nm, then we don't want the "-C" option.
11872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11874 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'
11875 else
11876 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'
11879 pw32*)
11880 export_symbols_cmds_CXX="$ltdll_cmds"
11882 cygwin* | mingw*)
11883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11888 esac
11890 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11891 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11892 test "$ld_shlibs_CXX" = no && can_build_shared=no
11894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11895 if test "$GCC" = yes; then
11896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11900 # Do we need to explicitly link libc?
11902 case "x$archive_cmds_need_lc_CXX" in
11903 x|xyes)
11904 # Assume -lc should be added
11905 archive_cmds_need_lc_CXX=yes
11907 if test "$enable_shared" = yes && test "$GCC" = yes; then
11908 case $archive_cmds_CXX in
11909 *'~'*)
11910 # FIXME: we may have to deal with multi-command sequences.
11912 '$CC '*)
11913 # Test whether the compiler implicitly links with -lc since on some
11914 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11915 # to ld, don't add -lc before -lgcc.
11916 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11917 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11918 $rm conftest*
11919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922 (eval $ac_compile) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } 2>conftest.err; then
11926 soname=conftest
11927 lib=conftest
11928 libobjs=conftest.$ac_objext
11929 deplibs=
11930 wl=$lt_prog_compiler_wl_CXX
11931 compiler_flags=-v
11932 linker_flags=-v
11933 verstring=
11934 output_objdir=.
11935 libname=conftest
11936 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11937 allow_undefined_flag_CXX=
11938 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11939 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }
11943 then
11944 archive_cmds_need_lc_CXX=no
11945 else
11946 archive_cmds_need_lc_CXX=yes
11948 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11949 else
11950 cat conftest.err 1>&5
11952 $rm conftest*
11953 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11954 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11956 esac
11959 esac
11961 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11962 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11963 library_names_spec=
11964 libname_spec='lib$name'
11965 soname_spec=
11966 shrext_cmds=".so"
11967 postinstall_cmds=
11968 postuninstall_cmds=
11969 finish_cmds=
11970 finish_eval=
11971 shlibpath_var=
11972 shlibpath_overrides_runpath=unknown
11973 version_type=none
11974 dynamic_linker="$host_os ld.so"
11975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11976 if test "$GCC" = yes; then
11977 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11978 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11979 # if the path contains ";" then we assume it to be the separator
11980 # otherwise default to the standard path separator (i.e. ":") - it is
11981 # assumed that no part of a normal pathname contains ";" but that should
11982 # okay in the real world where ";" in dirpaths is itself problematic.
11983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11984 else
11985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11987 else
11988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11990 need_lib_prefix=unknown
11991 hardcode_into_libs=no
11993 # when you set need_version to no, make sure it does not cause -set_version
11994 # flags to be left without arguments
11995 need_version=unknown
11997 case $host_os in
11998 aix3*)
11999 version_type=linux
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12001 shlibpath_var=LIBPATH
12003 # AIX 3 has no versioning support, so we append a major version to the name.
12004 soname_spec='${libname}${release}${shared_ext}$major'
12007 aix4* | aix5*)
12008 version_type=linux
12009 need_lib_prefix=no
12010 need_version=no
12011 hardcode_into_libs=yes
12012 if test "$host_cpu" = ia64; then
12013 # AIX 5 supports IA64
12014 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 else
12017 # With GCC up to 2.95.x, collect2 would create an import file
12018 # for dependence libraries. The import file would start with
12019 # the line `#! .'. This would cause the generated library to
12020 # depend on `.', always an invalid library. This was fixed in
12021 # development snapshots of GCC prior to 3.0.
12022 case $host_os in
12023 aix4 | aix4.[01] | aix4.[01].*)
12024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12025 echo ' yes '
12026 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12028 else
12029 can_build_shared=no
12032 esac
12033 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12034 # soname into executable. Probably we can add versioning support to
12035 # collect2, so additional links can be useful in future.
12036 if test "$aix_use_runtimelinking" = yes; then
12037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12038 # instead of lib<name>.a to let people know that these are not
12039 # typical AIX shared libraries.
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041 else
12042 # We preserve .a as extension for shared libraries through AIX4.2
12043 # and later when we are not doing run time linking.
12044 library_names_spec='${libname}${release}.a $libname.a'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12047 shlibpath_var=LIBPATH
12051 amigaos*)
12052 library_names_spec='$libname.ixlibrary $libname.a'
12053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12054 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'
12057 beos*)
12058 library_names_spec='${libname}${shared_ext}'
12059 dynamic_linker="$host_os ld.so"
12060 shlibpath_var=LIBRARY_PATH
12063 bsdi[45]*)
12064 version_type=linux
12065 need_version=no
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12068 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12071 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12072 # the default ld.so.conf also contains /usr/contrib/lib and
12073 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12074 # libtool to hard-code these into programs
12077 cygwin* | mingw* | pw32*)
12078 version_type=windows
12079 shrext_cmds=".dll"
12080 need_version=no
12081 need_lib_prefix=no
12083 case $GCC,$host_os in
12084 yes,cygwin* | yes,mingw* | yes,pw32*)
12085 library_names_spec='$libname.dll.a'
12086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12087 postinstall_cmds='base_file=`basename \${file}`~
12088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12089 dldir=$destdir/`dirname \$dlpath`~
12090 test -d \$dldir || mkdir -p \$dldir~
12091 $install_prog $dir/$dlname \$dldir/$dlname'
12092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12093 dlpath=$dir/\$dldll~
12094 $rm \$dlpath'
12095 shlibpath_overrides_runpath=yes
12097 case $host_os in
12098 cygwin*)
12099 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12100 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12101 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12103 mingw*)
12104 # MinGW DLLs use traditional 'lib' prefix
12105 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12107 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12108 # It is most probably a Windows format PATH printed by
12109 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12110 # path with ; separators, and with drive letters. We can handle the
12111 # drive letters (cygwin fileutils understands them), so leave them,
12112 # especially as we might pass files found there to a mingw objdump,
12113 # which wouldn't understand a cygwinified path. Ahh.
12114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12115 else
12116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12119 pw32*)
12120 # pw32 DLLs use 'pw' prefix rather than 'lib'
12121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12123 esac
12127 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12129 esac
12130 dynamic_linker='Win32 ld.exe'
12131 # FIXME: first we should search . and the directory the executable is in
12132 shlibpath_var=PATH
12135 darwin* | rhapsody*)
12136 dynamic_linker="$host_os dyld"
12137 version_type=darwin
12138 need_lib_prefix=no
12139 need_version=no
12140 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12141 soname_spec='${libname}${release}${major}$shared_ext'
12142 shlibpath_overrides_runpath=yes
12143 shlibpath_var=DYLD_LIBRARY_PATH
12144 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12145 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12146 if test "$GCC" = yes; then
12147 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"`
12148 else
12149 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12154 dgux*)
12155 version_type=linux
12156 need_lib_prefix=no
12157 need_version=no
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 shlibpath_var=LD_LIBRARY_PATH
12163 freebsd1*)
12164 dynamic_linker=no
12167 kfreebsd*-gnu)
12168 version_type=linux
12169 need_lib_prefix=no
12170 need_version=no
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12172 soname_spec='${libname}${release}${shared_ext}$major'
12173 shlibpath_var=LD_LIBRARY_PATH
12174 shlibpath_overrides_runpath=no
12175 hardcode_into_libs=yes
12176 dynamic_linker='GNU ld.so'
12179 freebsd* | dragonfly*)
12180 # DragonFly does not have aout. When/if they implement a new
12181 # versioning mechanism, adjust this.
12182 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12183 version_type=freebsd-$objformat
12184 case $version_type in
12185 freebsd-elf*)
12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12187 need_version=no
12188 need_lib_prefix=no
12190 freebsd-*)
12191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12192 need_version=yes
12194 esac
12195 shlibpath_var=LD_LIBRARY_PATH
12196 case $host_os in
12197 freebsd2*)
12198 shlibpath_overrides_runpath=yes
12200 freebsd3.[01]* | freebsdelf3.[01]*)
12201 shlibpath_overrides_runpath=yes
12202 hardcode_into_libs=yes
12204 *) # from 3.2 on
12205 shlibpath_overrides_runpath=no
12206 hardcode_into_libs=yes
12208 esac
12211 gnu*)
12212 version_type=linux
12213 need_lib_prefix=no
12214 need_version=no
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12216 soname_spec='${libname}${release}${shared_ext}$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 hardcode_into_libs=yes
12221 hpux9* | hpux10* | hpux11*)
12222 # Give a soname corresponding to the major version so that dld.sl refuses to
12223 # link against other versions.
12224 version_type=sunos
12225 need_lib_prefix=no
12226 need_version=no
12227 case "$host_cpu" in
12228 ia64*)
12229 shrext_cmds='.so'
12230 hardcode_into_libs=yes
12231 dynamic_linker="$host_os dld.so"
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 soname_spec='${libname}${release}${shared_ext}$major'
12236 if test "X$HPUX_IA64_MODE" = X32; then
12237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12238 else
12239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12243 hppa*64*)
12244 shrext_cmds='.sl'
12245 hardcode_into_libs=yes
12246 dynamic_linker="$host_os dld.sl"
12247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250 soname_spec='${libname}${release}${shared_ext}$major'
12251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12255 shrext_cmds='.sl'
12256 dynamic_linker="$host_os dld.sl"
12257 shlibpath_var=SHLIB_PATH
12258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260 soname_spec='${libname}${release}${shared_ext}$major'
12262 esac
12263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12264 postinstall_cmds='chmod 555 $lib'
12267 irix5* | irix6* | nonstopux*)
12268 case $host_os in
12269 nonstopux*) version_type=nonstopux ;;
12271 if test "$lt_cv_prog_gnu_ld" = yes; then
12272 version_type=linux
12273 else
12274 version_type=irix
12275 fi ;;
12276 esac
12277 need_lib_prefix=no
12278 need_version=no
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12281 case $host_os in
12282 irix5* | nonstopux*)
12283 libsuff= shlibsuff=
12286 case $LD in # libtool.m4 will add one of these switches to LD
12287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12288 libsuff= shlibsuff= libmagic=32-bit;;
12289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12290 libsuff=32 shlibsuff=N32 libmagic=N32;;
12291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12293 *) libsuff= shlibsuff= libmagic=never-match;;
12294 esac
12296 esac
12297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12298 shlibpath_overrides_runpath=no
12299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12301 hardcode_into_libs=yes
12304 # No shared lib support for Linux oldld, aout, or coff.
12305 linux*oldld* | linux*aout* | linux*coff*)
12306 dynamic_linker=no
12309 # This must be Linux ELF.
12310 linux*)
12311 version_type=linux
12312 need_lib_prefix=no
12313 need_version=no
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=no
12319 # This implies no fast_install, which is unacceptable.
12320 # Some rework will be needed to allow for fast_install
12321 # before this can be enabled.
12322 hardcode_into_libs=yes
12324 # find out which ABI we are using
12325 libsuff=
12326 case "$host_cpu" in
12327 x86_64*|s390x*|powerpc64*)
12328 echo '#line 12328 "configure"' > conftest.$ac_ext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12330 (eval $ac_compile) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; then
12334 case `/usr/bin/file conftest.$ac_objext` in
12335 *64-bit*)
12336 libsuff=64
12337 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12339 esac
12341 rm -rf conftest*
12343 esac
12345 # Append ld.so.conf contents to the search path
12346 if test -f /etc/ld.so.conf; then
12347 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12348 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12351 # We used to test for /lib/ld.so.1 and disable shared libraries on
12352 # powerpc, because MkLinux only supported shared libraries with the
12353 # GNU dynamic linker. Since this was broken with cross compilers,
12354 # most powerpc-linux boxes support dynamic linking these days and
12355 # people can always --disable-shared, the test was removed, and we
12356 # assume the GNU/Linux dynamic linker is in use.
12357 dynamic_linker='GNU/Linux ld.so'
12360 knetbsd*-gnu)
12361 version_type=linux
12362 need_lib_prefix=no
12363 need_version=no
12364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12365 soname_spec='${libname}${release}${shared_ext}$major'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=no
12368 hardcode_into_libs=yes
12369 dynamic_linker='GNU ld.so'
12372 netbsd*)
12373 version_type=sunos
12374 need_lib_prefix=no
12375 need_version=no
12376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12379 dynamic_linker='NetBSD (a.out) ld.so'
12380 else
12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12382 soname_spec='${libname}${release}${shared_ext}$major'
12383 dynamic_linker='NetBSD ld.elf_so'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 shlibpath_overrides_runpath=yes
12387 hardcode_into_libs=yes
12390 newsos6)
12391 version_type=linux
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393 shlibpath_var=LD_LIBRARY_PATH
12394 shlibpath_overrides_runpath=yes
12397 nto-qnx*)
12398 version_type=linux
12399 need_lib_prefix=no
12400 need_version=no
12401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402 soname_spec='${libname}${release}${shared_ext}$major'
12403 shlibpath_var=LD_LIBRARY_PATH
12404 shlibpath_overrides_runpath=yes
12407 openbsd*)
12408 version_type=sunos
12409 need_lib_prefix=no
12410 need_version=no
12411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12413 shlibpath_var=LD_LIBRARY_PATH
12414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12415 case $host_os in
12416 openbsd2.[89] | openbsd2.[89].*)
12417 shlibpath_overrides_runpath=no
12420 shlibpath_overrides_runpath=yes
12422 esac
12423 else
12424 shlibpath_overrides_runpath=yes
12428 os2*)
12429 libname_spec='$name'
12430 shrext_cmds=".dll"
12431 need_lib_prefix=no
12432 library_names_spec='$libname${shared_ext} $libname.a'
12433 dynamic_linker='OS/2 ld.exe'
12434 shlibpath_var=LIBPATH
12437 osf3* | osf4* | osf5*)
12438 version_type=osf
12439 need_lib_prefix=no
12440 need_version=no
12441 soname_spec='${libname}${release}${shared_ext}$major'
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12445 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12448 sco3.2v5*)
12449 version_type=osf
12450 soname_spec='${libname}${release}${shared_ext}$major'
12451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452 shlibpath_var=LD_LIBRARY_PATH
12455 solaris*)
12456 version_type=linux
12457 need_lib_prefix=no
12458 need_version=no
12459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460 soname_spec='${libname}${release}${shared_ext}$major'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=yes
12463 hardcode_into_libs=yes
12464 # ldd complains unless libraries are executable
12465 postinstall_cmds='chmod +x $lib'
12468 sunos4*)
12469 version_type=sunos
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath=yes
12474 if test "$with_gnu_ld" = yes; then
12475 need_lib_prefix=no
12477 need_version=yes
12480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12481 version_type=linux
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12483 soname_spec='${libname}${release}${shared_ext}$major'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 case $host_vendor in
12486 sni)
12487 shlibpath_overrides_runpath=no
12488 need_lib_prefix=no
12489 export_dynamic_flag_spec='${wl}-Blargedynsym'
12490 runpath_var=LD_RUN_PATH
12492 siemens)
12493 need_lib_prefix=no
12495 motorola)
12496 need_lib_prefix=no
12497 need_version=no
12498 shlibpath_overrides_runpath=no
12499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12501 esac
12504 sysv4*MP*)
12505 if test -d /usr/nec ;then
12506 version_type=linux
12507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12508 soname_spec='$libname${shared_ext}.$major'
12509 shlibpath_var=LD_LIBRARY_PATH
12513 uts4*)
12514 version_type=linux
12515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12516 soname_spec='${libname}${release}${shared_ext}$major'
12517 shlibpath_var=LD_LIBRARY_PATH
12521 dynamic_linker=no
12523 esac
12524 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12525 echo "${ECHO_T}$dynamic_linker" >&6
12526 test "$dynamic_linker" = no && can_build_shared=no
12528 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12529 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12530 hardcode_action_CXX=
12531 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12532 test -n "$runpath_var_CXX" || \
12533 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12535 # We can hardcode non-existant directories.
12536 if test "$hardcode_direct_CXX" != no &&
12537 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12538 # have to relink, otherwise we might link with an installed library
12539 # when we should be linking with a yet-to-be-installed one
12540 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12541 test "$hardcode_minus_L_CXX" != no; then
12542 # Linking always hardcodes the temporary library directory.
12543 hardcode_action_CXX=relink
12544 else
12545 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12546 hardcode_action_CXX=immediate
12548 else
12549 # We cannot hardcode anything, or else we can only hardcode existing
12550 # directories.
12551 hardcode_action_CXX=unsupported
12553 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12554 echo "${ECHO_T}$hardcode_action_CXX" >&6
12556 if test "$hardcode_action_CXX" = relink; then
12557 # Fast installation is not supported
12558 enable_fast_install=no
12559 elif test "$shlibpath_overrides_runpath" = yes ||
12560 test "$enable_shared" = no; then
12561 # Fast installation is not necessary
12562 enable_fast_install=needless
12565 striplib=
12566 old_striplib=
12567 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12568 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12569 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12570 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12571 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12572 echo "$as_me:$LINENO: result: yes" >&5
12573 echo "${ECHO_T}yes" >&6
12574 else
12575 # FIXME - insert some real tests, host_os isn't really good enough
12576 case $host_os in
12577 darwin*)
12578 if test -n "$STRIP" ; then
12579 striplib="$STRIP -x"
12580 echo "$as_me:$LINENO: result: yes" >&5
12581 echo "${ECHO_T}yes" >&6
12582 else
12583 echo "$as_me:$LINENO: result: no" >&5
12584 echo "${ECHO_T}no" >&6
12588 echo "$as_me:$LINENO: result: no" >&5
12589 echo "${ECHO_T}no" >&6
12591 esac
12594 if test "x$enable_dlopen" != xyes; then
12595 enable_dlopen=unknown
12596 enable_dlopen_self=unknown
12597 enable_dlopen_self_static=unknown
12598 else
12599 lt_cv_dlopen=no
12600 lt_cv_dlopen_libs=
12602 case $host_os in
12603 beos*)
12604 lt_cv_dlopen="load_add_on"
12605 lt_cv_dlopen_libs=
12606 lt_cv_dlopen_self=yes
12609 mingw* | pw32*)
12610 lt_cv_dlopen="LoadLibrary"
12611 lt_cv_dlopen_libs=
12614 cygwin*)
12615 lt_cv_dlopen="dlopen"
12616 lt_cv_dlopen_libs=
12619 darwin*)
12620 # if libdl is installed we need to link against it
12621 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12622 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12623 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626 ac_check_lib_save_LIBS=$LIBS
12627 LIBS="-ldl $LIBS"
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h. */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12635 /* Override any gcc2 internal prototype to avoid an error. */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 /* We use char because int might match the return type of a gcc2
12640 builtin and then its argument prototype would still apply. */
12641 char dlopen ();
12643 main ()
12645 dlopen ();
12647 return 0;
12649 _ACEOF
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -z "$ac_cxx_werror_flag"
12660 || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest$ac_exeext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_lib_dl_dlopen=yes
12673 else
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 ac_cv_lib_dl_dlopen=no
12679 rm -f conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12683 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12684 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12685 if test $ac_cv_lib_dl_dlopen = yes; then
12686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12687 else
12689 lt_cv_dlopen="dyld"
12690 lt_cv_dlopen_libs=
12691 lt_cv_dlopen_self=yes
12698 echo "$as_me:$LINENO: checking for shl_load" >&5
12699 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12700 if test "${ac_cv_func_shl_load+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12711 #define shl_load innocuous_shl_load
12713 /* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char shl_load (); below.
12715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12716 <limits.h> exists even on freestanding compilers. */
12718 #ifdef __STDC__
12719 # include <limits.h>
12720 #else
12721 # include <assert.h>
12722 #endif
12724 #undef shl_load
12726 /* Override any gcc2 internal prototype to avoid an error. */
12727 #ifdef __cplusplus
12728 extern "C"
12730 #endif
12731 /* We use char because int might match the return type of a gcc2
12732 builtin and then its argument prototype would still apply. */
12733 char shl_load ();
12734 /* The GNU C library defines this for functions which it implements
12735 to always fail with ENOSYS. Some functions are actually named
12736 something starting with __ and the normal name is an alias. */
12737 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12738 choke me
12739 #else
12740 char (*f) () = shl_load;
12741 #endif
12742 #ifdef __cplusplus
12744 #endif
12747 main ()
12749 return f != shl_load;
12751 return 0;
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_cxx_werror_flag"
12764 || test ! -s conftest.err'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_cv_func_shl_load=yes
12777 else
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_cv_func_shl_load=no
12783 rm -f conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12786 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12787 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12788 if test $ac_cv_func_shl_load = yes; then
12789 lt_cv_dlopen="shl_load"
12790 else
12791 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12792 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12793 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796 ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-ldld $LIBS"
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h. */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any gcc2 internal prototype to avoid an error. */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 /* We use char because int might match the return type of a gcc2
12810 builtin and then its argument prototype would still apply. */
12811 char shl_load ();
12813 main ()
12815 shl_load ();
12817 return 0;
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822 (eval $ac_link) 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try='test -z "$ac_cxx_werror_flag"
12830 || test ! -s conftest.err'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_lib_dld_shl_load=yes
12843 else
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12847 ac_cv_lib_dld_shl_load=no
12849 rm -f conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12853 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12855 if test $ac_cv_lib_dld_shl_load = yes; then
12856 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12857 else
12858 echo "$as_me:$LINENO: checking for dlopen" >&5
12859 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12860 if test "${ac_cv_func_dlopen+set}" = set; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12871 #define dlopen innocuous_dlopen
12873 /* System header to define __stub macros and hopefully few prototypes,
12874 which can conflict with char dlopen (); below.
12875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12876 <limits.h> exists even on freestanding compilers. */
12878 #ifdef __STDC__
12879 # include <limits.h>
12880 #else
12881 # include <assert.h>
12882 #endif
12884 #undef dlopen
12886 /* Override any gcc2 internal prototype to avoid an error. */
12887 #ifdef __cplusplus
12888 extern "C"
12890 #endif
12891 /* We use char because int might match the return type of a gcc2
12892 builtin and then its argument prototype would still apply. */
12893 char dlopen ();
12894 /* The GNU C library defines this for functions which it implements
12895 to always fail with ENOSYS. Some functions are actually named
12896 something starting with __ and the normal name is an alias. */
12897 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12898 choke me
12899 #else
12900 char (*f) () = dlopen;
12901 #endif
12902 #ifdef __cplusplus
12904 #endif
12907 main ()
12909 return f != dlopen;
12911 return 0;
12913 _ACEOF
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916 (eval $ac_link) 2>conftest.er1
12917 ac_status=$?
12918 grep -v '^ *+' conftest.er1 >conftest.err
12919 rm -f conftest.er1
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -z "$ac_cxx_werror_flag"
12924 || test ! -s conftest.err'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest$ac_exeext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_func_dlopen=yes
12937 else
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 ac_cv_func_dlopen=no
12943 rm -f conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12946 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12947 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12948 if test $ac_cv_func_dlopen = yes; then
12949 lt_cv_dlopen="dlopen"
12950 else
12951 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 ac_check_lib_save_LIBS=$LIBS
12957 LIBS="-ldl $LIBS"
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h. */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12965 /* Override any gcc2 internal prototype to avoid an error. */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12971 char dlopen ();
12973 main ()
12975 dlopen ();
12977 return 0;
12979 _ACEOF
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12982 (eval $ac_link) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_cxx_werror_flag"
12990 || test ! -s conftest.err'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest$ac_exeext'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_lib_dl_dlopen=yes
13003 else
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13007 ac_cv_lib_dl_dlopen=no
13009 rm -f conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13013 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13014 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13015 if test $ac_cv_lib_dl_dlopen = yes; then
13016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13017 else
13018 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lsvld $LIBS"
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13032 /* Override any gcc2 internal prototype to avoid an error. */
13033 #ifdef __cplusplus
13034 extern "C"
13035 #endif
13036 /* We use char because int might match the return type of a gcc2
13037 builtin and then its argument prototype would still apply. */
13038 char dlopen ();
13040 main ()
13042 dlopen ();
13044 return 0;
13046 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049 (eval $ac_link) 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -z "$ac_cxx_werror_flag"
13057 || test ! -s conftest.err'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest$ac_exeext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_cv_lib_svld_dlopen=yes
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_cv_lib_svld_dlopen=no
13076 rm -f conftest.err conftest.$ac_objext \
13077 conftest$ac_exeext conftest.$ac_ext
13078 LIBS=$ac_check_lib_save_LIBS
13080 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13081 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13082 if test $ac_cv_lib_svld_dlopen = yes; then
13083 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13084 else
13085 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13086 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13087 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-ldld $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h. */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13099 /* Override any gcc2 internal prototype to avoid an error. */
13100 #ifdef __cplusplus
13101 extern "C"
13102 #endif
13103 /* We use char because int might match the return type of a gcc2
13104 builtin and then its argument prototype would still apply. */
13105 char dld_link ();
13107 main ()
13109 dld_link ();
13111 return 0;
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_cxx_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_lib_dld_dld_link=yes
13137 else
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 ac_cv_lib_dld_dld_link=no
13143 rm -f conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13148 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13149 if test $ac_cv_lib_dld_dld_link = yes; then
13150 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13169 esac
13171 if test "x$lt_cv_dlopen" != xno; then
13172 enable_dlopen=yes
13173 else
13174 enable_dlopen=no
13177 case $lt_cv_dlopen in
13178 dlopen)
13179 save_CPPFLAGS="$CPPFLAGS"
13180 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13182 save_LDFLAGS="$LDFLAGS"
13183 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13185 save_LIBS="$LIBS"
13186 LIBS="$lt_cv_dlopen_libs $LIBS"
13188 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13189 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13190 if test "${lt_cv_dlopen_self+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 if test "$cross_compiling" = yes; then :
13194 lt_cv_dlopen_self=cross
13195 else
13196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13197 lt_status=$lt_dlunknown
13198 cat > conftest.$ac_ext <<EOF
13199 #line 13199 "configure"
13200 #include "confdefs.h"
13202 #if HAVE_DLFCN_H
13203 #include <dlfcn.h>
13204 #endif
13206 #include <stdio.h>
13208 #ifdef RTLD_GLOBAL
13209 # define LT_DLGLOBAL RTLD_GLOBAL
13210 #else
13211 # ifdef DL_GLOBAL
13212 # define LT_DLGLOBAL DL_GLOBAL
13213 # else
13214 # define LT_DLGLOBAL 0
13215 # endif
13216 #endif
13218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13219 find out it does not work in some platform. */
13220 #ifndef LT_DLLAZY_OR_NOW
13221 # ifdef RTLD_LAZY
13222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13223 # else
13224 # ifdef DL_LAZY
13225 # define LT_DLLAZY_OR_NOW DL_LAZY
13226 # else
13227 # ifdef RTLD_NOW
13228 # define LT_DLLAZY_OR_NOW RTLD_NOW
13229 # else
13230 # ifdef DL_NOW
13231 # define LT_DLLAZY_OR_NOW DL_NOW
13232 # else
13233 # define LT_DLLAZY_OR_NOW 0
13234 # endif
13235 # endif
13236 # endif
13237 # endif
13238 #endif
13240 #ifdef __cplusplus
13241 extern "C" void exit (int);
13242 #endif
13244 void fnord() { int i=42;}
13245 int main ()
13247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13248 int status = $lt_dlunknown;
13250 if (self)
13252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13254 /* dlclose (self); */
13257 exit (status);
13260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13265 (./conftest; exit; ) 2>/dev/null
13266 lt_status=$?
13267 case x$lt_status in
13268 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13269 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13270 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13271 esac
13272 else :
13273 # compilation failed
13274 lt_cv_dlopen_self=no
13277 rm -fr conftest*
13281 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13282 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13284 if test "x$lt_cv_dlopen_self" = xyes; then
13285 LDFLAGS="$LDFLAGS $link_static_flag"
13286 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13287 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13288 if test "${lt_cv_dlopen_self_static+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 if test "$cross_compiling" = yes; then :
13292 lt_cv_dlopen_self_static=cross
13293 else
13294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13295 lt_status=$lt_dlunknown
13296 cat > conftest.$ac_ext <<EOF
13297 #line 13297 "configure"
13298 #include "confdefs.h"
13300 #if HAVE_DLFCN_H
13301 #include <dlfcn.h>
13302 #endif
13304 #include <stdio.h>
13306 #ifdef RTLD_GLOBAL
13307 # define LT_DLGLOBAL RTLD_GLOBAL
13308 #else
13309 # ifdef DL_GLOBAL
13310 # define LT_DLGLOBAL DL_GLOBAL
13311 # else
13312 # define LT_DLGLOBAL 0
13313 # endif
13314 #endif
13316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13317 find out it does not work in some platform. */
13318 #ifndef LT_DLLAZY_OR_NOW
13319 # ifdef RTLD_LAZY
13320 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13321 # else
13322 # ifdef DL_LAZY
13323 # define LT_DLLAZY_OR_NOW DL_LAZY
13324 # else
13325 # ifdef RTLD_NOW
13326 # define LT_DLLAZY_OR_NOW RTLD_NOW
13327 # else
13328 # ifdef DL_NOW
13329 # define LT_DLLAZY_OR_NOW DL_NOW
13330 # else
13331 # define LT_DLLAZY_OR_NOW 0
13332 # endif
13333 # endif
13334 # endif
13335 # endif
13336 #endif
13338 #ifdef __cplusplus
13339 extern "C" void exit (int);
13340 #endif
13342 void fnord() { int i=42;}
13343 int main ()
13345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13346 int status = $lt_dlunknown;
13348 if (self)
13350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13352 /* dlclose (self); */
13355 exit (status);
13358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359 (eval $ac_link) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13363 (./conftest; exit; ) 2>/dev/null
13364 lt_status=$?
13365 case x$lt_status in
13366 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13367 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13368 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13369 esac
13370 else :
13371 # compilation failed
13372 lt_cv_dlopen_self_static=no
13375 rm -fr conftest*
13379 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13380 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13383 CPPFLAGS="$save_CPPFLAGS"
13384 LDFLAGS="$save_LDFLAGS"
13385 LIBS="$save_LIBS"
13387 esac
13389 case $lt_cv_dlopen_self in
13390 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13391 *) enable_dlopen_self=unknown ;;
13392 esac
13394 case $lt_cv_dlopen_self_static in
13395 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13396 *) enable_dlopen_self_static=unknown ;;
13397 esac
13401 # The else clause should only fire when bootstrapping the
13402 # libtool distribution, otherwise you forgot to ship ltmain.sh
13403 # with your package, and you will get complaints that there are
13404 # no rules to generate ltmain.sh.
13405 if test -f "$ltmain"; then
13406 # See if we are running on zsh, and set the options which allow our commands through
13407 # without removal of \ escapes.
13408 if test -n "${ZSH_VERSION+set}" ; then
13409 setopt NO_GLOB_SUBST
13411 # Now quote all the things that may contain metacharacters while being
13412 # careful not to overquote the AC_SUBSTed values. We take copies of the
13413 # variables and quote the copies for generation of the libtool script.
13414 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13415 SED SHELL STRIP \
13416 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13417 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13418 deplibs_check_method reload_flag reload_cmds need_locks \
13419 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13420 lt_cv_sys_global_symbol_to_c_name_address \
13421 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13422 old_postinstall_cmds old_postuninstall_cmds \
13423 compiler_CXX \
13424 CC_CXX \
13425 LD_CXX \
13426 lt_prog_compiler_wl_CXX \
13427 lt_prog_compiler_pic_CXX \
13428 lt_prog_compiler_static_CXX \
13429 lt_prog_compiler_no_builtin_flag_CXX \
13430 export_dynamic_flag_spec_CXX \
13431 thread_safe_flag_spec_CXX \
13432 whole_archive_flag_spec_CXX \
13433 enable_shared_with_static_runtimes_CXX \
13434 old_archive_cmds_CXX \
13435 old_archive_from_new_cmds_CXX \
13436 predep_objects_CXX \
13437 postdep_objects_CXX \
13438 predeps_CXX \
13439 postdeps_CXX \
13440 compiler_lib_search_path_CXX \
13441 archive_cmds_CXX \
13442 archive_expsym_cmds_CXX \
13443 postinstall_cmds_CXX \
13444 postuninstall_cmds_CXX \
13445 old_archive_from_expsyms_cmds_CXX \
13446 allow_undefined_flag_CXX \
13447 no_undefined_flag_CXX \
13448 export_symbols_cmds_CXX \
13449 hardcode_libdir_flag_spec_CXX \
13450 hardcode_libdir_flag_spec_ld_CXX \
13451 hardcode_libdir_separator_CXX \
13452 hardcode_automatic_CXX \
13453 module_cmds_CXX \
13454 module_expsym_cmds_CXX \
13455 lt_cv_prog_compiler_c_o_CXX \
13456 exclude_expsyms_CXX \
13457 include_expsyms_CXX; do
13459 case $var in
13460 old_archive_cmds_CXX | \
13461 old_archive_from_new_cmds_CXX | \
13462 archive_cmds_CXX | \
13463 archive_expsym_cmds_CXX | \
13464 module_cmds_CXX | \
13465 module_expsym_cmds_CXX | \
13466 old_archive_from_expsyms_cmds_CXX | \
13467 export_symbols_cmds_CXX | \
13468 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13469 postinstall_cmds | postuninstall_cmds | \
13470 old_postinstall_cmds | old_postuninstall_cmds | \
13471 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13472 # Double-quote double-evaled strings.
13473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13478 esac
13479 done
13481 case $lt_echo in
13482 *'\$0 --fallback-echo"')
13483 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13485 esac
13487 cfgfile="$ofile"
13489 cat <<__EOF__ >> "$cfgfile"
13490 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13492 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13494 # Shell to use when invoking shell scripts.
13495 SHELL=$lt_SHELL
13497 # Whether or not to build shared libraries.
13498 build_libtool_libs=$enable_shared
13500 # Whether or not to build static libraries.
13501 build_old_libs=$enable_static
13503 # Whether or not to add -lc for building shared libraries.
13504 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13506 # Whether or not to disallow shared libs when runtime libs are static
13507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13509 # Whether or not to optimize for fast installation.
13510 fast_install=$enable_fast_install
13512 # The host system.
13513 host_alias=$host_alias
13514 host=$host
13515 host_os=$host_os
13517 # The build system.
13518 build_alias=$build_alias
13519 build=$build
13520 build_os=$build_os
13522 # An echo program that does not interpret backslashes.
13523 echo=$lt_echo
13525 # The archiver.
13526 AR=$lt_AR
13527 AR_FLAGS=$lt_AR_FLAGS
13529 # A C compiler.
13530 LTCC=$lt_LTCC
13532 # A language-specific compiler.
13533 CC=$lt_compiler_CXX
13535 # Is the compiler the GNU C compiler?
13536 with_gcc=$GCC_CXX
13538 # An ERE matcher.
13539 EGREP=$lt_EGREP
13541 # The linker used to build libraries.
13542 LD=$lt_LD_CXX
13544 # Whether we need hard or soft links.
13545 LN_S=$lt_LN_S
13547 # A BSD-compatible nm program.
13548 NM=$lt_NM
13550 # A symbol stripping program
13551 STRIP=$lt_STRIP
13553 # Used to examine libraries when file_magic_cmd begins "file"
13554 MAGIC_CMD=$MAGIC_CMD
13556 # Used on cygwin: DLL creation program.
13557 DLLTOOL="$DLLTOOL"
13559 # Used on cygwin: object dumper.
13560 OBJDUMP="$OBJDUMP"
13562 # Used on cygwin: assembler.
13563 AS="$AS"
13565 # The name of the directory that contains temporary libtool files.
13566 objdir=$objdir
13568 # How to create reloadable object files.
13569 reload_flag=$lt_reload_flag
13570 reload_cmds=$lt_reload_cmds
13572 # How to pass a linker flag through the compiler.
13573 wl=$lt_lt_prog_compiler_wl_CXX
13575 # Object file suffix (normally "o").
13576 objext="$ac_objext"
13578 # Old archive suffix (normally "a").
13579 libext="$libext"
13581 # Shared library suffix (normally ".so").
13582 shrext_cmds='$shrext_cmds'
13584 # Executable file suffix (normally "").
13585 exeext="$exeext"
13587 # Additional compiler flags for building library objects.
13588 pic_flag=$lt_lt_prog_compiler_pic_CXX
13589 pic_mode=$pic_mode
13591 # What is the maximum length of a command?
13592 max_cmd_len=$lt_cv_sys_max_cmd_len
13594 # Does compiler simultaneously support -c and -o options?
13595 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13597 # Must we lock files when doing compilation?
13598 need_locks=$lt_need_locks
13600 # Do we need the lib prefix for modules?
13601 need_lib_prefix=$need_lib_prefix
13603 # Do we need a version for libraries?
13604 need_version=$need_version
13606 # Whether dlopen is supported.
13607 dlopen_support=$enable_dlopen
13609 # Whether dlopen of programs is supported.
13610 dlopen_self=$enable_dlopen_self
13612 # Whether dlopen of statically linked programs is supported.
13613 dlopen_self_static=$enable_dlopen_self_static
13615 # Compiler flag to prevent dynamic linking.
13616 link_static_flag=$lt_lt_prog_compiler_static_CXX
13618 # Compiler flag to turn off builtin functions.
13619 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13621 # Compiler flag to allow reflexive dlopens.
13622 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13624 # Compiler flag to generate shared objects directly from archives.
13625 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13627 # Compiler flag to generate thread-safe objects.
13628 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13630 # Library versioning type.
13631 version_type=$version_type
13633 # Format of library name prefix.
13634 libname_spec=$lt_libname_spec
13636 # List of archive names. First name is the real one, the rest are links.
13637 # The last name is the one that the linker finds with -lNAME.
13638 library_names_spec=$lt_library_names_spec
13640 # The coded name of the library, if different from the real name.
13641 soname_spec=$lt_soname_spec
13643 # Commands used to build and install an old-style archive.
13644 RANLIB=$lt_RANLIB
13645 old_archive_cmds=$lt_old_archive_cmds_CXX
13646 old_postinstall_cmds=$lt_old_postinstall_cmds
13647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13649 # Create an old-style archive from a shared archive.
13650 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13652 # Create a temporary old-style archive to link instead of a shared archive.
13653 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13655 # Commands used to build and install a shared archive.
13656 archive_cmds=$lt_archive_cmds_CXX
13657 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13658 postinstall_cmds=$lt_postinstall_cmds
13659 postuninstall_cmds=$lt_postuninstall_cmds
13661 # Commands used to build a loadable module (assumed same as above if empty)
13662 module_cmds=$lt_module_cmds_CXX
13663 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13665 # Commands to strip libraries.
13666 old_striplib=$lt_old_striplib
13667 striplib=$lt_striplib
13669 # Dependencies to place before the objects being linked to create a
13670 # shared library.
13671 predep_objects=$lt_predep_objects_CXX
13673 # Dependencies to place after the objects being linked to create a
13674 # shared library.
13675 postdep_objects=$lt_postdep_objects_CXX
13677 # Dependencies to place before the objects being linked to create a
13678 # shared library.
13679 predeps=$lt_predeps_CXX
13681 # Dependencies to place after the objects being linked to create a
13682 # shared library.
13683 postdeps=$lt_postdeps_CXX
13685 # The library search path used internally by the compiler when linking
13686 # a shared library.
13687 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13689 # Method to check whether dependent libraries are shared objects.
13690 deplibs_check_method=$lt_deplibs_check_method
13692 # Command to use when deplibs_check_method == file_magic.
13693 file_magic_cmd=$lt_file_magic_cmd
13695 # Flag that allows shared libraries with undefined symbols to be built.
13696 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13698 # Flag that forces no undefined symbols.
13699 no_undefined_flag=$lt_no_undefined_flag_CXX
13701 # Commands used to finish a libtool library installation in a directory.
13702 finish_cmds=$lt_finish_cmds
13704 # Same as above, but a single script fragment to be evaled but not shown.
13705 finish_eval=$lt_finish_eval
13707 # Take the output of nm and produce a listing of raw symbols and C names.
13708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13710 # Transform the output of nm in a proper C declaration
13711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13713 # Transform the output of nm in a C name address pair
13714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13716 # This is the shared library runtime path variable.
13717 runpath_var=$runpath_var
13719 # This is the shared library path variable.
13720 shlibpath_var=$shlibpath_var
13722 # Is shlibpath searched before the hard-coded library search path?
13723 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13725 # How to hardcode a shared library path into an executable.
13726 hardcode_action=$hardcode_action_CXX
13728 # Whether we should hardcode library paths into libraries.
13729 hardcode_into_libs=$hardcode_into_libs
13731 # Flag to hardcode \$libdir into a binary during linking.
13732 # This must work even if \$libdir does not exist.
13733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13735 # If ld is used when linking, flag to hardcode \$libdir into
13736 # a binary during linking. This must work even if \$libdir does
13737 # not exist.
13738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13740 # Whether we need a single -rpath flag with a separated argument.
13741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13743 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13744 # resulting binary.
13745 hardcode_direct=$hardcode_direct_CXX
13747 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13748 # resulting binary.
13749 hardcode_minus_L=$hardcode_minus_L_CXX
13751 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13752 # the resulting binary.
13753 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13755 # Set to yes if building a shared library automatically hardcodes DIR into the library
13756 # and all subsequent libraries and executables linked against it.
13757 hardcode_automatic=$hardcode_automatic_CXX
13759 # Variables whose values should be saved in libtool wrapper scripts and
13760 # restored at relink time.
13761 variables_saved_for_relink="$variables_saved_for_relink"
13763 # Whether libtool must link a program against all its dependency libraries.
13764 link_all_deplibs=$link_all_deplibs_CXX
13766 # Compile-time system search path for libraries
13767 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13769 # Run-time system search path for libraries
13770 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13772 # Fix the shell variable \$srcfile for the compiler.
13773 fix_srcfile_path="$fix_srcfile_path_CXX"
13775 # Set to yes if exported symbols are required.
13776 always_export_symbols=$always_export_symbols_CXX
13778 # The commands to list exported symbols.
13779 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13781 # The commands to extract the exported symbol list from a shared archive.
13782 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13784 # Symbols that should not be listed in the preloaded symbols.
13785 exclude_expsyms=$lt_exclude_expsyms_CXX
13787 # Symbols that must always be exported.
13788 include_expsyms=$lt_include_expsyms_CXX
13790 # ### END LIBTOOL TAG CONFIG: $tagname
13792 __EOF__
13795 else
13796 # If there is no Makefile yet, we rely on a make rule to execute
13797 # `config.status --recheck' to rerun these tests and create the
13798 # libtool script then.
13799 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13800 if test -f "$ltmain_in"; then
13801 test -f Makefile && make "$ltmain"
13806 ac_ext=c
13807 ac_cpp='$CPP $CPPFLAGS'
13808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13812 CC=$lt_save_CC
13813 LDCXX=$LD
13814 LD=$lt_save_LD
13815 GCC=$lt_save_GCC
13816 with_gnu_ldcxx=$with_gnu_ld
13817 with_gnu_ld=$lt_save_with_gnu_ld
13818 lt_cv_path_LDCXX=$lt_cv_path_LD
13819 lt_cv_path_LD=$lt_save_path_LD
13820 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13821 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13823 else
13824 tagname=""
13828 F77)
13829 if test -n "$F77" && test "X$F77" != "Xno"; then
13831 ac_ext=f
13832 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13833 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13837 archive_cmds_need_lc_F77=no
13838 allow_undefined_flag_F77=
13839 always_export_symbols_F77=no
13840 archive_expsym_cmds_F77=
13841 export_dynamic_flag_spec_F77=
13842 hardcode_direct_F77=no
13843 hardcode_libdir_flag_spec_F77=
13844 hardcode_libdir_flag_spec_ld_F77=
13845 hardcode_libdir_separator_F77=
13846 hardcode_minus_L_F77=no
13847 hardcode_automatic_F77=no
13848 module_cmds_F77=
13849 module_expsym_cmds_F77=
13850 link_all_deplibs_F77=unknown
13851 old_archive_cmds_F77=$old_archive_cmds
13852 no_undefined_flag_F77=
13853 whole_archive_flag_spec_F77=
13854 enable_shared_with_static_runtimes_F77=no
13856 # Source file extension for f77 test sources.
13857 ac_ext=f
13859 # Object file extension for compiled f77 test sources.
13860 objext=o
13861 objext_F77=$objext
13863 # Code to be used in simple compile tests
13864 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13866 # Code to be used in simple link tests
13867 lt_simple_link_test_code=" program t\n end\n"
13869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13871 # If no C compiler was specified, use CC.
13872 LTCC=${LTCC-"$CC"}
13874 # Allow CC to be a program name with arguments.
13875 compiler=$CC
13878 # save warnings/boilerplate of simple test code
13879 ac_outfile=conftest.$ac_objext
13880 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13882 _lt_compiler_boilerplate=`cat conftest.err`
13883 $rm conftest*
13885 ac_outfile=conftest.$ac_objext
13886 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13888 _lt_linker_boilerplate=`cat conftest.err`
13889 $rm conftest*
13892 # Allow CC to be a program name with arguments.
13893 lt_save_CC="$CC"
13894 CC=${F77-"f77"}
13895 compiler=$CC
13896 compiler_F77=$CC
13897 for cc_temp in $compiler""; do
13898 case $cc_temp in
13899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13901 \-*) ;;
13902 *) break;;
13903 esac
13904 done
13905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13908 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13909 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13910 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13911 echo "${ECHO_T}$can_build_shared" >&6
13913 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13914 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13915 test "$can_build_shared" = "no" && enable_shared=no
13917 # On AIX, shared libraries and static libraries use the same namespace, and
13918 # are all built from PIC.
13919 case "$host_os" in
13920 aix3*)
13921 test "$enable_shared" = yes && enable_static=no
13922 if test -n "$RANLIB"; then
13923 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13924 postinstall_cmds='$RANLIB $lib'
13927 aix4* | aix5*)
13928 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13929 test "$enable_shared" = yes && enable_static=no
13932 esac
13933 echo "$as_me:$LINENO: result: $enable_shared" >&5
13934 echo "${ECHO_T}$enable_shared" >&6
13936 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13938 # Make sure either enable_shared or enable_static is yes.
13939 test "$enable_shared" = yes || enable_static=yes
13940 echo "$as_me:$LINENO: result: $enable_static" >&5
13941 echo "${ECHO_T}$enable_static" >&6
13943 test "$ld_shlibs_F77" = no && can_build_shared=no
13945 GCC_F77="$G77"
13946 LD_F77="$LD"
13948 lt_prog_compiler_wl_F77=
13949 lt_prog_compiler_pic_F77=
13950 lt_prog_compiler_static_F77=
13952 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13953 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13955 if test "$GCC" = yes; then
13956 lt_prog_compiler_wl_F77='-Wl,'
13957 lt_prog_compiler_static_F77='-static'
13959 case $host_os in
13960 aix*)
13961 # All AIX code is PIC.
13962 if test "$host_cpu" = ia64; then
13963 # AIX 5 now supports IA64 processor
13964 lt_prog_compiler_static_F77='-Bstatic'
13968 amigaos*)
13969 # FIXME: we need at least 68020 code to build shared libraries, but
13970 # adding the `-m68020' flag to GCC prevents building anything better,
13971 # like `-m68040'.
13972 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13975 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13976 # PIC is the default for these OSes.
13979 mingw* | pw32* | os2*)
13980 # This hack is so that the source file can tell whether it is being
13981 # built for inclusion in a dll (and should export symbols for example).
13982 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13985 darwin* | rhapsody*)
13986 # PIC is the default on this platform
13987 # Common symbols not allowed in MH_DYLIB files
13988 lt_prog_compiler_pic_F77='-fno-common'
13991 msdosdjgpp*)
13992 # Just because we use GCC doesn't mean we suddenly get shared libraries
13993 # on systems that don't support them.
13994 lt_prog_compiler_can_build_shared_F77=no
13995 enable_shared=no
13998 sysv4*MP*)
13999 if test -d /usr/nec; then
14000 lt_prog_compiler_pic_F77=-Kconform_pic
14004 hpux*)
14005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14006 # not for PA HP-UX.
14007 case "$host_cpu" in
14008 hppa*64*|ia64*)
14009 # +Z the default
14012 lt_prog_compiler_pic_F77='-fPIC'
14014 esac
14018 lt_prog_compiler_pic_F77='-fPIC'
14020 esac
14021 else
14022 # PORTME Check for flag to pass linker flags through the system compiler.
14023 case $host_os in
14024 aix*)
14025 lt_prog_compiler_wl_F77='-Wl,'
14026 if test "$host_cpu" = ia64; then
14027 # AIX 5 now supports IA64 processor
14028 lt_prog_compiler_static_F77='-Bstatic'
14029 else
14030 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14033 darwin*)
14034 # PIC is the default on this platform
14035 # Common symbols not allowed in MH_DYLIB files
14036 case $cc_basename in
14037 xlc*)
14038 lt_prog_compiler_pic_F77='-qnocommon'
14039 lt_prog_compiler_wl_F77='-Wl,'
14041 esac
14044 mingw* | pw32* | os2*)
14045 # This hack is so that the source file can tell whether it is being
14046 # built for inclusion in a dll (and should export symbols for example).
14047 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14050 hpux9* | hpux10* | hpux11*)
14051 lt_prog_compiler_wl_F77='-Wl,'
14052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14053 # not for PA HP-UX.
14054 case "$host_cpu" in
14055 hppa*64*|ia64*)
14056 # +Z the default
14059 lt_prog_compiler_pic_F77='+Z'
14061 esac
14062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14063 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14066 irix5* | irix6* | nonstopux*)
14067 lt_prog_compiler_wl_F77='-Wl,'
14068 # PIC (with -KPIC) is the default.
14069 lt_prog_compiler_static_F77='-non_shared'
14072 newsos6)
14073 lt_prog_compiler_pic_F77='-KPIC'
14074 lt_prog_compiler_static_F77='-Bstatic'
14077 linux*)
14078 case $cc_basename in
14079 icc* | ecc*)
14080 lt_prog_compiler_wl_F77='-Wl,'
14081 lt_prog_compiler_pic_F77='-KPIC'
14082 lt_prog_compiler_static_F77='-static'
14084 pgcc* | pgf77* | pgf90*)
14085 # Portland Group compilers (*not* the Pentium gcc compiler,
14086 # which looks to be a dead project)
14087 lt_prog_compiler_wl_F77='-Wl,'
14088 lt_prog_compiler_pic_F77='-fpic'
14089 lt_prog_compiler_static_F77='-static'
14091 ccc*)
14092 lt_prog_compiler_wl_F77='-Wl,'
14093 # All Alpha code is PIC.
14094 lt_prog_compiler_static_F77='-non_shared'
14096 esac
14099 osf3* | osf4* | osf5*)
14100 lt_prog_compiler_wl_F77='-Wl,'
14101 # All OSF/1 code is PIC.
14102 lt_prog_compiler_static_F77='-non_shared'
14105 sco3.2v5*)
14106 lt_prog_compiler_pic_F77='-Kpic'
14107 lt_prog_compiler_static_F77='-dn'
14110 solaris*)
14111 lt_prog_compiler_pic_F77='-KPIC'
14112 lt_prog_compiler_static_F77='-Bstatic'
14113 case $cc_basename in
14114 f77* | f90* | f95*)
14115 lt_prog_compiler_wl_F77='-Qoption ld ';;
14117 lt_prog_compiler_wl_F77='-Wl,';;
14118 esac
14121 sunos4*)
14122 lt_prog_compiler_wl_F77='-Qoption ld '
14123 lt_prog_compiler_pic_F77='-PIC'
14124 lt_prog_compiler_static_F77='-Bstatic'
14127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14128 lt_prog_compiler_wl_F77='-Wl,'
14129 lt_prog_compiler_pic_F77='-KPIC'
14130 lt_prog_compiler_static_F77='-Bstatic'
14133 sysv4*MP*)
14134 if test -d /usr/nec ;then
14135 lt_prog_compiler_pic_F77='-Kconform_pic'
14136 lt_prog_compiler_static_F77='-Bstatic'
14140 unicos*)
14141 lt_prog_compiler_wl_F77='-Wl,'
14142 lt_prog_compiler_can_build_shared_F77=no
14145 uts4*)
14146 lt_prog_compiler_pic_F77='-pic'
14147 lt_prog_compiler_static_F77='-Bstatic'
14151 lt_prog_compiler_can_build_shared_F77=no
14153 esac
14156 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14157 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14160 # Check to make sure the PIC flag actually works.
14162 if test -n "$lt_prog_compiler_pic_F77"; then
14164 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14165 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14166 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 lt_prog_compiler_pic_works_F77=no
14170 ac_outfile=conftest.$ac_objext
14171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14172 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14173 # Insert the option either (1) after the last *FLAGS variable, or
14174 # (2) before a word containing "conftest.", or (3) at the end.
14175 # Note that $ac_compile itself does not contain backslashes and begins
14176 # with a dollar sign (not a hyphen), so the echo should work correctly.
14177 # The option is referenced via a variable to avoid confusing sed.
14178 lt_compile=`echo "$ac_compile" | $SED \
14179 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14181 -e 's:$: $lt_compiler_flag:'`
14182 (eval echo "\"\$as_me:14182: $lt_compile\"" >&5)
14183 (eval "$lt_compile" 2>conftest.err)
14184 ac_status=$?
14185 cat conftest.err >&5
14186 echo "$as_me:14186: \$? = $ac_status" >&5
14187 if (exit $ac_status) && test -s "$ac_outfile"; then
14188 # The compiler can only warn and ignore the option if not recognized
14189 # So say no if there are warnings other than the usual output.
14190 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14191 $SED '/^$/d' conftest.err >conftest.er2
14192 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14193 lt_prog_compiler_pic_works_F77=yes
14196 $rm conftest*
14199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14200 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14202 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14203 case $lt_prog_compiler_pic_F77 in
14204 "" | " "*) ;;
14205 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14206 esac
14207 else
14208 lt_prog_compiler_pic_F77=
14209 lt_prog_compiler_can_build_shared_F77=no
14213 case "$host_os" in
14214 # For platforms which do not support PIC, -DPIC is meaningless:
14215 *djgpp*)
14216 lt_prog_compiler_pic_F77=
14219 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14221 esac
14223 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14224 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14225 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228 lt_cv_prog_compiler_c_o_F77=no
14229 $rm -r conftest 2>/dev/null
14230 mkdir conftest
14231 cd conftest
14232 mkdir out
14233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14235 lt_compiler_flag="-o out/conftest2.$ac_objext"
14236 # Insert the option either (1) after the last *FLAGS variable, or
14237 # (2) before a word containing "conftest.", or (3) at the end.
14238 # Note that $ac_compile itself does not contain backslashes and begins
14239 # with a dollar sign (not a hyphen), so the echo should work correctly.
14240 lt_compile=`echo "$ac_compile" | $SED \
14241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14243 -e 's:$: $lt_compiler_flag:'`
14244 (eval echo "\"\$as_me:14244: $lt_compile\"" >&5)
14245 (eval "$lt_compile" 2>out/conftest.err)
14246 ac_status=$?
14247 cat out/conftest.err >&5
14248 echo "$as_me:14248: \$? = $ac_status" >&5
14249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14250 then
14251 # The compiler can only warn and ignore the option if not recognized
14252 # So say no if there are warnings
14253 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14254 $SED '/^$/d' out/conftest.err >out/conftest.er2
14255 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14256 lt_cv_prog_compiler_c_o_F77=yes
14259 chmod u+w .
14260 $rm conftest*
14261 # SGI C++ compiler will create directory out/ii_files/ for
14262 # template instantiation
14263 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14264 $rm out/* && rmdir out
14265 cd ..
14266 rmdir conftest
14267 $rm conftest*
14270 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14271 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14274 hard_links="nottested"
14275 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14276 # do not overwrite the value of need_locks provided by the user
14277 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14278 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14279 hard_links=yes
14280 $rm conftest*
14281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14282 touch conftest.a
14283 ln conftest.a conftest.b 2>&5 || hard_links=no
14284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14285 echo "$as_me:$LINENO: result: $hard_links" >&5
14286 echo "${ECHO_T}$hard_links" >&6
14287 if test "$hard_links" = no; then
14288 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14289 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14290 need_locks=warn
14292 else
14293 need_locks=no
14296 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14297 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14299 runpath_var=
14300 allow_undefined_flag_F77=
14301 enable_shared_with_static_runtimes_F77=no
14302 archive_cmds_F77=
14303 archive_expsym_cmds_F77=
14304 old_archive_From_new_cmds_F77=
14305 old_archive_from_expsyms_cmds_F77=
14306 export_dynamic_flag_spec_F77=
14307 whole_archive_flag_spec_F77=
14308 thread_safe_flag_spec_F77=
14309 hardcode_libdir_flag_spec_F77=
14310 hardcode_libdir_flag_spec_ld_F77=
14311 hardcode_libdir_separator_F77=
14312 hardcode_direct_F77=no
14313 hardcode_minus_L_F77=no
14314 hardcode_shlibpath_var_F77=unsupported
14315 link_all_deplibs_F77=unknown
14316 hardcode_automatic_F77=no
14317 module_cmds_F77=
14318 module_expsym_cmds_F77=
14319 always_export_symbols_F77=no
14320 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14321 # include_expsyms should be a list of space-separated symbols to be *always*
14322 # included in the symbol list
14323 include_expsyms_F77=
14324 # exclude_expsyms can be an extended regexp of symbols to exclude
14325 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14326 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14327 # as well as any symbol that contains `d'.
14328 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14330 # platforms (ab)use it in PIC code, but their linkers get confused if
14331 # the symbol is explicitly referenced. Since portable code cannot
14332 # rely on this symbol name, it's probably fine to never include it in
14333 # preloaded symbol tables.
14334 extract_expsyms_cmds=
14335 # Just being paranoid about ensuring that cc_basename is set.
14336 for cc_temp in $compiler""; do
14337 case $cc_temp in
14338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14340 \-*) ;;
14341 *) break;;
14342 esac
14343 done
14344 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14346 case $host_os in
14347 cygwin* | mingw* | pw32*)
14348 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14349 # When not using gcc, we currently assume that we are using
14350 # Microsoft Visual C++.
14351 if test "$GCC" != yes; then
14352 with_gnu_ld=no
14355 openbsd*)
14356 with_gnu_ld=no
14358 esac
14360 ld_shlibs_F77=yes
14361 if test "$with_gnu_ld" = yes; then
14362 # If archive_cmds runs LD, not CC, wlarc should be empty
14363 wlarc='${wl}'
14365 # Set some defaults for GNU ld with shared library support. These
14366 # are reset later if shared libraries are not supported. Putting them
14367 # here allows them to be overridden if necessary.
14368 runpath_var=LD_RUN_PATH
14369 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14370 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14371 # ancient GNU ld didn't support --whole-archive et. al.
14372 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14373 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14374 else
14375 whole_archive_flag_spec_F77=
14377 supports_anon_versioning=no
14378 case `$LD -v 2>/dev/null` in
14379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14382 *\ 2.11.*) ;; # other 2.11 versions
14383 *) supports_anon_versioning=yes ;;
14384 esac
14386 # See if GNU ld supports shared libraries.
14387 case $host_os in
14388 aix3* | aix4* | aix5*)
14389 # On AIX/PPC, the GNU linker is very broken
14390 if test "$host_cpu" != ia64; then
14391 ld_shlibs_F77=no
14392 cat <<EOF 1>&2
14394 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14395 *** to be unable to reliably create shared libraries on AIX.
14396 *** Therefore, libtool is disabling shared libraries support. If you
14397 *** really care for shared libraries, you may want to modify your PATH
14398 *** so that a non-GNU linker is found, and then restart.
14404 amigaos*)
14405 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)'
14406 hardcode_libdir_flag_spec_F77='-L$libdir'
14407 hardcode_minus_L_F77=yes
14409 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14410 # that the semantics of dynamic libraries on AmigaOS, at least up
14411 # to version 4, is to share data among multiple programs linked
14412 # with the same dynamic library. Since this doesn't match the
14413 # behavior of shared libraries on other platforms, we can't use
14414 # them.
14415 ld_shlibs_F77=no
14418 beos*)
14419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14420 allow_undefined_flag_F77=unsupported
14421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14422 # support --undefined. This deserves some investigation. FIXME
14423 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14424 else
14425 ld_shlibs_F77=no
14429 cygwin* | mingw* | pw32*)
14430 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14431 # as there is no search path for DLLs.
14432 hardcode_libdir_flag_spec_F77='-L$libdir'
14433 allow_undefined_flag_F77=unsupported
14434 always_export_symbols_F77=no
14435 enable_shared_with_static_runtimes_F77=yes
14436 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14438 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14439 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14440 # If the export-symbols file already is a .def file (1st line
14441 # is EXPORTS), use it as is; otherwise, prepend...
14442 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14443 cp $export_symbols $output_objdir/$soname.def;
14444 else
14445 echo EXPORTS > $output_objdir/$soname.def;
14446 cat $export_symbols >> $output_objdir/$soname.def;
14448 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14449 else
14450 ld_shlibs_F77=no
14454 linux*)
14455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14456 tmp_addflag=
14457 case $cc_basename,$host_cpu in
14458 pgcc*) # Portland Group C compiler
14459 whole_archive_flag_spec_F77=
14461 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14462 whole_archive_flag_spec_F77=
14463 tmp_addflag=' -fpic -Mnomain' ;;
14464 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14465 tmp_addflag=' -i_dynamic' ;;
14466 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14467 tmp_addflag=' -i_dynamic -nofor_main' ;;
14468 ifc* | ifort*) # Intel Fortran compiler
14469 tmp_addflag=' -nofor_main' ;;
14470 esac
14471 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14473 if test $supports_anon_versioning = yes; then
14474 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14476 $echo "local: *; };" >> $output_objdir/$libname.ver~
14477 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14479 else
14480 ld_shlibs_F77=no
14484 netbsd*)
14485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14486 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14487 wlarc=
14488 else
14489 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14490 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14494 solaris* | sysv5*)
14495 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14496 ld_shlibs_F77=no
14497 cat <<EOF 1>&2
14499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14500 *** create shared libraries on Solaris systems. Therefore, libtool
14501 *** is disabling shared libraries support. We urge you to upgrade GNU
14502 *** binutils to release 2.9.1 or newer. Another option is to modify
14503 *** your PATH or compiler configuration so that the native linker is
14504 *** used, and then restart.
14507 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14508 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14510 else
14511 ld_shlibs_F77=no
14515 sunos4*)
14516 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14517 wlarc=
14518 hardcode_direct_F77=yes
14519 hardcode_shlibpath_var_F77=no
14523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14524 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14525 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14526 else
14527 ld_shlibs_F77=no
14530 esac
14532 if test "$ld_shlibs_F77" = no; then
14533 runpath_var=
14534 hardcode_libdir_flag_spec_F77=
14535 export_dynamic_flag_spec_F77=
14536 whole_archive_flag_spec_F77=
14538 else
14539 # PORTME fill in a description of your system's linker (not GNU ld)
14540 case $host_os in
14541 aix3*)
14542 allow_undefined_flag_F77=unsupported
14543 always_export_symbols_F77=yes
14544 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'
14545 # Note: this linker hardcodes the directories in LIBPATH if there
14546 # are no directories specified by -L.
14547 hardcode_minus_L_F77=yes
14548 if test "$GCC" = yes && test -z "$link_static_flag"; then
14549 # Neither direct hardcoding nor static linking is supported with a
14550 # broken collect2.
14551 hardcode_direct_F77=unsupported
14555 aix4* | aix5*)
14556 if test "$host_cpu" = ia64; then
14557 # On IA64, the linker does run time linking by default, so we don't
14558 # have to do anything special.
14559 aix_use_runtimelinking=no
14560 exp_sym_flag='-Bexport'
14561 no_entry_flag=""
14562 else
14563 # If we're using GNU nm, then we don't want the "-C" option.
14564 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14565 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14566 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'
14567 else
14568 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'
14570 aix_use_runtimelinking=no
14572 # Test if we are trying to use run time linking or normal
14573 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14574 # need to do runtime linking.
14575 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14576 for ld_flag in $LDFLAGS; do
14577 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14578 aix_use_runtimelinking=yes
14579 break
14581 done
14582 esac
14584 exp_sym_flag='-bexport'
14585 no_entry_flag='-bnoentry'
14588 # When large executables or shared objects are built, AIX ld can
14589 # have problems creating the table of contents. If linking a library
14590 # or program results in "error TOC overflow" add -mminimal-toc to
14591 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14592 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14594 archive_cmds_F77=''
14595 hardcode_direct_F77=yes
14596 hardcode_libdir_separator_F77=':'
14597 link_all_deplibs_F77=yes
14599 if test "$GCC" = yes; then
14600 case $host_os in aix4.[012]|aix4.[012].*)
14601 # We only want to do this on AIX 4.2 and lower, the check
14602 # below for broken collect2 doesn't work under 4.3+
14603 collect2name=`${CC} -print-prog-name=collect2`
14604 if test -f "$collect2name" && \
14605 strings "$collect2name" | grep resolve_lib_name >/dev/null
14606 then
14607 # We have reworked collect2
14608 hardcode_direct_F77=yes
14609 else
14610 # We have old collect2
14611 hardcode_direct_F77=unsupported
14612 # It fails to find uninstalled libraries when the uninstalled
14613 # path is not listed in the libpath. Setting hardcode_minus_L
14614 # to unsupported forces relinking
14615 hardcode_minus_L_F77=yes
14616 hardcode_libdir_flag_spec_F77='-L$libdir'
14617 hardcode_libdir_separator_F77=
14619 esac
14620 shared_flag='-shared'
14621 if test "$aix_use_runtimelinking" = yes; then
14622 shared_flag="$shared_flag "'${wl}-G'
14624 else
14625 # not using gcc
14626 if test "$host_cpu" = ia64; then
14627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14628 # chokes on -Wl,-G. The following line is correct:
14629 shared_flag='-G'
14630 else
14631 if test "$aix_use_runtimelinking" = yes; then
14632 shared_flag='${wl}-G'
14633 else
14634 shared_flag='${wl}-bM:SRE'
14639 # It seems that -bexpall does not export symbols beginning with
14640 # underscore (_), so it is better to generate a list of symbols to export.
14641 always_export_symbols_F77=yes
14642 if test "$aix_use_runtimelinking" = yes; then
14643 # Warning - without using the other runtime loading flags (-brtl),
14644 # -berok will link without error, but may produce a broken library.
14645 allow_undefined_flag_F77='-berok'
14646 # Determine the default libpath from the value encoded in an empty executable.
14647 cat >conftest.$ac_ext <<_ACEOF
14648 program main
14651 _ACEOF
14652 rm -f conftest.$ac_objext conftest$ac_exeext
14653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14654 (eval $ac_link) 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -z "$ac_f77_werror_flag"
14662 || test ! -s conftest.err'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest$ac_exeext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14677 # Check for a 64-bit object if we didn't find anything.
14678 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; }
14679 }'`; fi
14680 else
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14685 rm -f conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14689 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14690 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"
14691 else
14692 if test "$host_cpu" = ia64; then
14693 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14694 allow_undefined_flag_F77="-z nodefs"
14695 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"
14696 else
14697 # Determine the default libpath from the value encoded in an empty executable.
14698 cat >conftest.$ac_ext <<_ACEOF
14699 program main
14702 _ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
14712 { ac_try='test -z "$ac_f77_werror_flag"
14713 || test ! -s conftest.err'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest$ac_exeext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14728 # Check for a 64-bit object if we didn't find anything.
14729 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; }
14730 }'`; fi
14731 else
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14736 rm -f conftest.err conftest.$ac_objext \
14737 conftest$ac_exeext conftest.$ac_ext
14738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14740 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14741 # Warning - without using the other run time loading flags,
14742 # -berok will link without error, but may produce a broken library.
14743 no_undefined_flag_F77=' ${wl}-bernotok'
14744 allow_undefined_flag_F77=' ${wl}-berok'
14745 # -bexpall does not export symbols beginning with underscore (_)
14746 always_export_symbols_F77=yes
14747 # Exported symbols can be pulled into shared objects from archives
14748 whole_archive_flag_spec_F77=' '
14749 archive_cmds_need_lc_F77=yes
14750 # This is similar to how AIX traditionally builds it's shared libraries.
14751 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'
14756 amigaos*)
14757 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)'
14758 hardcode_libdir_flag_spec_F77='-L$libdir'
14759 hardcode_minus_L_F77=yes
14760 # see comment about different semantics on the GNU ld section
14761 ld_shlibs_F77=no
14764 bsdi[45]*)
14765 export_dynamic_flag_spec_F77=-rdynamic
14768 cygwin* | mingw* | pw32*)
14769 # When not using gcc, we currently assume that we are using
14770 # Microsoft Visual C++.
14771 # hardcode_libdir_flag_spec is actually meaningless, as there is
14772 # no search path for DLLs.
14773 hardcode_libdir_flag_spec_F77=' '
14774 allow_undefined_flag_F77=unsupported
14775 # Tell ltmain to make .lib files, not .a files.
14776 libext=lib
14777 # Tell ltmain to make .dll files, not .so files.
14778 shrext_cmds=".dll"
14779 # FIXME: Setting linknames here is a bad hack.
14780 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14781 # The linker will automatically build a .lib file if we build a DLL.
14782 old_archive_From_new_cmds_F77='true'
14783 # FIXME: Should let the user specify the lib program.
14784 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14785 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14786 enable_shared_with_static_runtimes_F77=yes
14789 darwin* | rhapsody*)
14790 case "$host_os" in
14791 rhapsody* | darwin1.[012])
14792 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14794 *) # Darwin 1.3 on
14795 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14796 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14797 else
14798 case ${MACOSX_DEPLOYMENT_TARGET} in
14799 10.[012])
14800 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14802 10.*)
14803 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14805 esac
14808 esac
14809 archive_cmds_need_lc_F77=no
14810 hardcode_direct_F77=no
14811 hardcode_automatic_F77=yes
14812 hardcode_shlibpath_var_F77=unsupported
14813 whole_archive_flag_spec_F77=''
14814 link_all_deplibs_F77=yes
14815 if test "$GCC" = yes ; then
14816 output_verbose_link_cmd='echo'
14817 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14818 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14820 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14821 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}'
14822 else
14823 case $cc_basename in
14824 xlc*)
14825 output_verbose_link_cmd='echo'
14826 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14827 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14829 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14830 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}'
14833 ld_shlibs_F77=no
14835 esac
14839 dgux*)
14840 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841 hardcode_libdir_flag_spec_F77='-L$libdir'
14842 hardcode_shlibpath_var_F77=no
14845 freebsd1*)
14846 ld_shlibs_F77=no
14849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14850 # support. Future versions do this automatically, but an explicit c++rt0.o
14851 # does not break anything, and helps significantly (at the cost of a little
14852 # extra space).
14853 freebsd2.2*)
14854 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14855 hardcode_libdir_flag_spec_F77='-R$libdir'
14856 hardcode_direct_F77=yes
14857 hardcode_shlibpath_var_F77=no
14860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14861 freebsd2*)
14862 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14863 hardcode_direct_F77=yes
14864 hardcode_minus_L_F77=yes
14865 hardcode_shlibpath_var_F77=no
14868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14869 freebsd* | kfreebsd*-gnu | dragonfly*)
14870 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14871 hardcode_libdir_flag_spec_F77='-R$libdir'
14872 hardcode_direct_F77=yes
14873 hardcode_shlibpath_var_F77=no
14876 hpux9*)
14877 if test "$GCC" = yes; then
14878 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'
14879 else
14880 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'
14882 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14883 hardcode_libdir_separator_F77=:
14884 hardcode_direct_F77=yes
14886 # hardcode_minus_L: Not really in the search PATH,
14887 # but as the default location of the library.
14888 hardcode_minus_L_F77=yes
14889 export_dynamic_flag_spec_F77='${wl}-E'
14892 hpux10* | hpux11*)
14893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14894 case "$host_cpu" in
14895 hppa*64*|ia64*)
14896 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14899 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14901 esac
14902 else
14903 case "$host_cpu" in
14904 hppa*64*|ia64*)
14905 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14908 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14910 esac
14912 if test "$with_gnu_ld" = no; then
14913 case "$host_cpu" in
14914 hppa*64*)
14915 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14916 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14917 hardcode_libdir_separator_F77=:
14918 hardcode_direct_F77=no
14919 hardcode_shlibpath_var_F77=no
14921 ia64*)
14922 hardcode_libdir_flag_spec_F77='-L$libdir'
14923 hardcode_direct_F77=no
14924 hardcode_shlibpath_var_F77=no
14926 # hardcode_minus_L: Not really in the search PATH,
14927 # but as the default location of the library.
14928 hardcode_minus_L_F77=yes
14931 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14932 hardcode_libdir_separator_F77=:
14933 hardcode_direct_F77=yes
14934 export_dynamic_flag_spec_F77='${wl}-E'
14936 # hardcode_minus_L: Not really in the search PATH,
14937 # but as the default location of the library.
14938 hardcode_minus_L_F77=yes
14940 esac
14944 irix5* | irix6* | nonstopux*)
14945 if test "$GCC" = yes; then
14946 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'
14947 else
14948 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'
14949 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14951 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14952 hardcode_libdir_separator_F77=:
14953 link_all_deplibs_F77=yes
14956 netbsd*)
14957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14958 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14959 else
14960 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14962 hardcode_libdir_flag_spec_F77='-R$libdir'
14963 hardcode_direct_F77=yes
14964 hardcode_shlibpath_var_F77=no
14967 newsos6)
14968 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969 hardcode_direct_F77=yes
14970 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14971 hardcode_libdir_separator_F77=:
14972 hardcode_shlibpath_var_F77=no
14975 openbsd*)
14976 hardcode_direct_F77=yes
14977 hardcode_shlibpath_var_F77=no
14978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14979 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14980 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14981 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14982 export_dynamic_flag_spec_F77='${wl}-E'
14983 else
14984 case $host_os in
14985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14986 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_libdir_flag_spec_F77='-R$libdir'
14990 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14991 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14993 esac
14997 os2*)
14998 hardcode_libdir_flag_spec_F77='-L$libdir'
14999 hardcode_minus_L_F77=yes
15000 allow_undefined_flag_F77=unsupported
15001 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'
15002 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15005 osf3*)
15006 if test "$GCC" = yes; then
15007 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15008 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'
15009 else
15010 allow_undefined_flag_F77=' -expect_unresolved \*'
15011 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'
15013 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15014 hardcode_libdir_separator_F77=:
15017 osf4* | osf5*) # as osf3* with the addition of -msym flag
15018 if test "$GCC" = yes; then
15019 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15020 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'
15021 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15022 else
15023 allow_undefined_flag_F77=' -expect_unresolved \*'
15024 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'
15025 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~
15026 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15028 # Both c and cxx compiler support -rpath directly
15029 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15031 hardcode_libdir_separator_F77=:
15034 sco3.2v5*)
15035 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036 hardcode_shlibpath_var_F77=no
15037 export_dynamic_flag_spec_F77='${wl}-Bexport'
15038 runpath_var=LD_RUN_PATH
15039 hardcode_runpath_var=yes
15042 solaris*)
15043 no_undefined_flag_F77=' -z text'
15044 if test "$GCC" = yes; then
15045 wlarc='${wl}'
15046 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15048 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15049 else
15050 wlarc=''
15051 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15052 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15055 hardcode_libdir_flag_spec_F77='-R$libdir'
15056 hardcode_shlibpath_var_F77=no
15057 case $host_os in
15058 solaris2.[0-5] | solaris2.[0-5].*) ;;
15060 # The compiler driver will combine linker options so we
15061 # cannot just pass the convience library names through
15062 # without $wl, iff we do not link with $LD.
15063 # Luckily, gcc supports the same syntax we need for Sun Studio.
15064 # Supported since Solaris 2.6 (maybe 2.5.1?)
15065 case $wlarc in
15067 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15069 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15070 esac ;;
15071 esac
15072 link_all_deplibs_F77=yes
15075 sunos4*)
15076 if test "x$host_vendor" = xsequent; then
15077 # Use $CC to link under sequent, because it throws in some extra .o
15078 # files that make .init and .fini sections work.
15079 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15080 else
15081 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_libdir_flag_spec_F77='-L$libdir'
15084 hardcode_direct_F77=yes
15085 hardcode_minus_L_F77=yes
15086 hardcode_shlibpath_var_F77=no
15089 sysv4)
15090 case $host_vendor in
15091 sni)
15092 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15093 hardcode_direct_F77=yes # is this really true???
15095 siemens)
15096 ## LD is ld it makes a PLAMLIB
15097 ## CC just makes a GrossModule.
15098 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15099 reload_cmds_F77='$CC -r -o $output$reload_objs'
15100 hardcode_direct_F77=no
15102 motorola)
15103 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15106 esac
15107 runpath_var='LD_RUN_PATH'
15108 hardcode_shlibpath_var_F77=no
15111 sysv4.3*)
15112 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113 hardcode_shlibpath_var_F77=no
15114 export_dynamic_flag_spec_F77='-Bexport'
15117 sysv4*MP*)
15118 if test -d /usr/nec; then
15119 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120 hardcode_shlibpath_var_F77=no
15121 runpath_var=LD_RUN_PATH
15122 hardcode_runpath_var=yes
15123 ld_shlibs_F77=yes
15127 sysv4.2uw2*)
15128 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15129 hardcode_direct_F77=yes
15130 hardcode_minus_L_F77=no
15131 hardcode_shlibpath_var_F77=no
15132 hardcode_runpath_var=yes
15133 runpath_var=LD_RUN_PATH
15136 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15137 no_undefined_flag_F77='${wl}-z ${wl}text'
15138 if test "$GCC" = yes; then
15139 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15140 else
15141 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15143 runpath_var='LD_RUN_PATH'
15144 hardcode_shlibpath_var_F77=no
15147 sysv5*)
15148 no_undefined_flag_F77=' -z text'
15149 # $CC -shared without GNU ld will not create a library from C++
15150 # object files and a static libstdc++, better avoid it by now
15151 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15154 hardcode_libdir_flag_spec_F77=
15155 hardcode_shlibpath_var_F77=no
15156 runpath_var='LD_RUN_PATH'
15159 uts4*)
15160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161 hardcode_libdir_flag_spec_F77='-L$libdir'
15162 hardcode_shlibpath_var_F77=no
15166 ld_shlibs_F77=no
15168 esac
15171 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15172 echo "${ECHO_T}$ld_shlibs_F77" >&6
15173 test "$ld_shlibs_F77" = no && can_build_shared=no
15175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15176 if test "$GCC" = yes; then
15177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15181 # Do we need to explicitly link libc?
15183 case "x$archive_cmds_need_lc_F77" in
15184 x|xyes)
15185 # Assume -lc should be added
15186 archive_cmds_need_lc_F77=yes
15188 if test "$enable_shared" = yes && test "$GCC" = yes; then
15189 case $archive_cmds_F77 in
15190 *'~'*)
15191 # FIXME: we may have to deal with multi-command sequences.
15193 '$CC '*)
15194 # Test whether the compiler implicitly links with -lc since on some
15195 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15196 # to ld, don't add -lc before -lgcc.
15197 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15198 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15199 $rm conftest*
15200 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203 (eval $ac_compile) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } 2>conftest.err; then
15207 soname=conftest
15208 lib=conftest
15209 libobjs=conftest.$ac_objext
15210 deplibs=
15211 wl=$lt_prog_compiler_wl_F77
15212 compiler_flags=-v
15213 linker_flags=-v
15214 verstring=
15215 output_objdir=.
15216 libname=conftest
15217 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15218 allow_undefined_flag_F77=
15219 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15220 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }
15224 then
15225 archive_cmds_need_lc_F77=no
15226 else
15227 archive_cmds_need_lc_F77=yes
15229 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15230 else
15231 cat conftest.err 1>&5
15233 $rm conftest*
15234 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15235 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15237 esac
15240 esac
15242 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15243 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15244 library_names_spec=
15245 libname_spec='lib$name'
15246 soname_spec=
15247 shrext_cmds=".so"
15248 postinstall_cmds=
15249 postuninstall_cmds=
15250 finish_cmds=
15251 finish_eval=
15252 shlibpath_var=
15253 shlibpath_overrides_runpath=unknown
15254 version_type=none
15255 dynamic_linker="$host_os ld.so"
15256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15257 if test "$GCC" = yes; then
15258 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15259 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15260 # if the path contains ";" then we assume it to be the separator
15261 # otherwise default to the standard path separator (i.e. ":") - it is
15262 # assumed that no part of a normal pathname contains ";" but that should
15263 # okay in the real world where ";" in dirpaths is itself problematic.
15264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15265 else
15266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15268 else
15269 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15271 need_lib_prefix=unknown
15272 hardcode_into_libs=no
15274 # when you set need_version to no, make sure it does not cause -set_version
15275 # flags to be left without arguments
15276 need_version=unknown
15278 case $host_os in
15279 aix3*)
15280 version_type=linux
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15282 shlibpath_var=LIBPATH
15284 # AIX 3 has no versioning support, so we append a major version to the name.
15285 soname_spec='${libname}${release}${shared_ext}$major'
15288 aix4* | aix5*)
15289 version_type=linux
15290 need_lib_prefix=no
15291 need_version=no
15292 hardcode_into_libs=yes
15293 if test "$host_cpu" = ia64; then
15294 # AIX 5 supports IA64
15295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 else
15298 # With GCC up to 2.95.x, collect2 would create an import file
15299 # for dependence libraries. The import file would start with
15300 # the line `#! .'. This would cause the generated library to
15301 # depend on `.', always an invalid library. This was fixed in
15302 # development snapshots of GCC prior to 3.0.
15303 case $host_os in
15304 aix4 | aix4.[01] | aix4.[01].*)
15305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15306 echo ' yes '
15307 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15309 else
15310 can_build_shared=no
15313 esac
15314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15315 # soname into executable. Probably we can add versioning support to
15316 # collect2, so additional links can be useful in future.
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15319 # instead of lib<name>.a to let people know that these are not
15320 # typical AIX shared libraries.
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322 else
15323 # We preserve .a as extension for shared libraries through AIX4.2
15324 # and later when we are not doing run time linking.
15325 library_names_spec='${libname}${release}.a $libname.a'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15328 shlibpath_var=LIBPATH
15332 amigaos*)
15333 library_names_spec='$libname.ixlibrary $libname.a'
15334 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15335 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'
15338 beos*)
15339 library_names_spec='${libname}${shared_ext}'
15340 dynamic_linker="$host_os ld.so"
15341 shlibpath_var=LIBRARY_PATH
15344 bsdi[45]*)
15345 version_type=linux
15346 need_version=no
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15353 # the default ld.so.conf also contains /usr/contrib/lib and
15354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15355 # libtool to hard-code these into programs
15358 cygwin* | mingw* | pw32*)
15359 version_type=windows
15360 shrext_cmds=".dll"
15361 need_version=no
15362 need_lib_prefix=no
15364 case $GCC,$host_os in
15365 yes,cygwin* | yes,mingw* | yes,pw32*)
15366 library_names_spec='$libname.dll.a'
15367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15368 postinstall_cmds='base_file=`basename \${file}`~
15369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15370 dldir=$destdir/`dirname \$dlpath`~
15371 test -d \$dldir || mkdir -p \$dldir~
15372 $install_prog $dir/$dlname \$dldir/$dlname'
15373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15374 dlpath=$dir/\$dldll~
15375 $rm \$dlpath'
15376 shlibpath_overrides_runpath=yes
15378 case $host_os in
15379 cygwin*)
15380 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15381 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15382 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15384 mingw*)
15385 # MinGW DLLs use traditional 'lib' prefix
15386 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15388 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15389 # It is most probably a Windows format PATH printed by
15390 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15391 # path with ; separators, and with drive letters. We can handle the
15392 # drive letters (cygwin fileutils understands them), so leave them,
15393 # especially as we might pass files found there to a mingw objdump,
15394 # which wouldn't understand a cygwinified path. Ahh.
15395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15396 else
15397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15400 pw32*)
15401 # pw32 DLLs use 'pw' prefix rather than 'lib'
15402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15404 esac
15408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15410 esac
15411 dynamic_linker='Win32 ld.exe'
15412 # FIXME: first we should search . and the directory the executable is in
15413 shlibpath_var=PATH
15416 darwin* | rhapsody*)
15417 dynamic_linker="$host_os dyld"
15418 version_type=darwin
15419 need_lib_prefix=no
15420 need_version=no
15421 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15422 soname_spec='${libname}${release}${major}$shared_ext'
15423 shlibpath_overrides_runpath=yes
15424 shlibpath_var=DYLD_LIBRARY_PATH
15425 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15426 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15427 if test "$GCC" = yes; then
15428 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"`
15429 else
15430 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15435 dgux*)
15436 version_type=linux
15437 need_lib_prefix=no
15438 need_version=no
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15441 shlibpath_var=LD_LIBRARY_PATH
15444 freebsd1*)
15445 dynamic_linker=no
15448 kfreebsd*-gnu)
15449 version_type=linux
15450 need_lib_prefix=no
15451 need_version=no
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 shlibpath_overrides_runpath=no
15456 hardcode_into_libs=yes
15457 dynamic_linker='GNU ld.so'
15460 freebsd* | dragonfly*)
15461 # DragonFly does not have aout. When/if they implement a new
15462 # versioning mechanism, adjust this.
15463 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15464 version_type=freebsd-$objformat
15465 case $version_type in
15466 freebsd-elf*)
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15468 need_version=no
15469 need_lib_prefix=no
15471 freebsd-*)
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15473 need_version=yes
15475 esac
15476 shlibpath_var=LD_LIBRARY_PATH
15477 case $host_os in
15478 freebsd2*)
15479 shlibpath_overrides_runpath=yes
15481 freebsd3.[01]* | freebsdelf3.[01]*)
15482 shlibpath_overrides_runpath=yes
15483 hardcode_into_libs=yes
15485 *) # from 3.2 on
15486 shlibpath_overrides_runpath=no
15487 hardcode_into_libs=yes
15489 esac
15492 gnu*)
15493 version_type=linux
15494 need_lib_prefix=no
15495 need_version=no
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 shlibpath_var=LD_LIBRARY_PATH
15499 hardcode_into_libs=yes
15502 hpux9* | hpux10* | hpux11*)
15503 # Give a soname corresponding to the major version so that dld.sl refuses to
15504 # link against other versions.
15505 version_type=sunos
15506 need_lib_prefix=no
15507 need_version=no
15508 case "$host_cpu" in
15509 ia64*)
15510 shrext_cmds='.so'
15511 hardcode_into_libs=yes
15512 dynamic_linker="$host_os dld.so"
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 if test "X$HPUX_IA64_MODE" = X32; then
15518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15519 else
15520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15524 hppa*64*)
15525 shrext_cmds='.sl'
15526 hardcode_into_libs=yes
15527 dynamic_linker="$host_os dld.sl"
15528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15536 shrext_cmds='.sl'
15537 dynamic_linker="$host_os dld.sl"
15538 shlibpath_var=SHLIB_PATH
15539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15543 esac
15544 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15545 postinstall_cmds='chmod 555 $lib'
15548 irix5* | irix6* | nonstopux*)
15549 case $host_os in
15550 nonstopux*) version_type=nonstopux ;;
15552 if test "$lt_cv_prog_gnu_ld" = yes; then
15553 version_type=linux
15554 else
15555 version_type=irix
15556 fi ;;
15557 esac
15558 need_lib_prefix=no
15559 need_version=no
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15562 case $host_os in
15563 irix5* | nonstopux*)
15564 libsuff= shlibsuff=
15567 case $LD in # libtool.m4 will add one of these switches to LD
15568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15569 libsuff= shlibsuff= libmagic=32-bit;;
15570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15571 libsuff=32 shlibsuff=N32 libmagic=N32;;
15572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15574 *) libsuff= shlibsuff= libmagic=never-match;;
15575 esac
15577 esac
15578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15579 shlibpath_overrides_runpath=no
15580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15582 hardcode_into_libs=yes
15585 # No shared lib support for Linux oldld, aout, or coff.
15586 linux*oldld* | linux*aout* | linux*coff*)
15587 dynamic_linker=no
15590 # This must be Linux ELF.
15591 linux*)
15592 version_type=linux
15593 need_lib_prefix=no
15594 need_version=no
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596 soname_spec='${libname}${release}${shared_ext}$major'
15597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=no
15600 # This implies no fast_install, which is unacceptable.
15601 # Some rework will be needed to allow for fast_install
15602 # before this can be enabled.
15603 hardcode_into_libs=yes
15605 # find out which ABI we are using
15606 libsuff=
15607 case "$host_cpu" in
15608 x86_64*|s390x*|powerpc64*)
15609 echo '#line 15609 "configure"' > conftest.$ac_ext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611 (eval $ac_compile) 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; then
15615 case `/usr/bin/file conftest.$ac_objext` in
15616 *64-bit*)
15617 libsuff=64
15618 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15620 esac
15622 rm -rf conftest*
15624 esac
15626 # Append ld.so.conf contents to the search path
15627 if test -f /etc/ld.so.conf; then
15628 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15629 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15632 # We used to test for /lib/ld.so.1 and disable shared libraries on
15633 # powerpc, because MkLinux only supported shared libraries with the
15634 # GNU dynamic linker. Since this was broken with cross compilers,
15635 # most powerpc-linux boxes support dynamic linking these days and
15636 # people can always --disable-shared, the test was removed, and we
15637 # assume the GNU/Linux dynamic linker is in use.
15638 dynamic_linker='GNU/Linux ld.so'
15641 knetbsd*-gnu)
15642 version_type=linux
15643 need_lib_prefix=no
15644 need_version=no
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=no
15649 hardcode_into_libs=yes
15650 dynamic_linker='GNU ld.so'
15653 netbsd*)
15654 version_type=sunos
15655 need_lib_prefix=no
15656 need_version=no
15657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660 dynamic_linker='NetBSD (a.out) ld.so'
15661 else
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 dynamic_linker='NetBSD ld.elf_so'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 shlibpath_overrides_runpath=yes
15668 hardcode_into_libs=yes
15671 newsos6)
15672 version_type=linux
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath=yes
15678 nto-qnx*)
15679 version_type=linux
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15688 openbsd*)
15689 version_type=sunos
15690 need_lib_prefix=no
15691 need_version=no
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15696 case $host_os in
15697 openbsd2.[89] | openbsd2.[89].*)
15698 shlibpath_overrides_runpath=no
15701 shlibpath_overrides_runpath=yes
15703 esac
15704 else
15705 shlibpath_overrides_runpath=yes
15709 os2*)
15710 libname_spec='$name'
15711 shrext_cmds=".dll"
15712 need_lib_prefix=no
15713 library_names_spec='$libname${shared_ext} $libname.a'
15714 dynamic_linker='OS/2 ld.exe'
15715 shlibpath_var=LIBPATH
15718 osf3* | osf4* | osf5*)
15719 version_type=osf
15720 need_lib_prefix=no
15721 need_version=no
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15729 sco3.2v5*)
15730 version_type=osf
15731 soname_spec='${libname}${release}${shared_ext}$major'
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733 shlibpath_var=LD_LIBRARY_PATH
15736 solaris*)
15737 version_type=linux
15738 need_lib_prefix=no
15739 need_version=no
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=yes
15744 hardcode_into_libs=yes
15745 # ldd complains unless libraries are executable
15746 postinstall_cmds='chmod +x $lib'
15749 sunos4*)
15750 version_type=sunos
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 shlibpath_overrides_runpath=yes
15755 if test "$with_gnu_ld" = yes; then
15756 need_lib_prefix=no
15758 need_version=yes
15761 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15762 version_type=linux
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 shlibpath_var=LD_LIBRARY_PATH
15766 case $host_vendor in
15767 sni)
15768 shlibpath_overrides_runpath=no
15769 need_lib_prefix=no
15770 export_dynamic_flag_spec='${wl}-Blargedynsym'
15771 runpath_var=LD_RUN_PATH
15773 siemens)
15774 need_lib_prefix=no
15776 motorola)
15777 need_lib_prefix=no
15778 need_version=no
15779 shlibpath_overrides_runpath=no
15780 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15782 esac
15785 sysv4*MP*)
15786 if test -d /usr/nec ;then
15787 version_type=linux
15788 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15789 soname_spec='$libname${shared_ext}.$major'
15790 shlibpath_var=LD_LIBRARY_PATH
15794 uts4*)
15795 version_type=linux
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 shlibpath_var=LD_LIBRARY_PATH
15802 dynamic_linker=no
15804 esac
15805 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15806 echo "${ECHO_T}$dynamic_linker" >&6
15807 test "$dynamic_linker" = no && can_build_shared=no
15809 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15810 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15811 hardcode_action_F77=
15812 if test -n "$hardcode_libdir_flag_spec_F77" || \
15813 test -n "$runpath_var_F77" || \
15814 test "X$hardcode_automatic_F77" = "Xyes" ; then
15816 # We can hardcode non-existant directories.
15817 if test "$hardcode_direct_F77" != no &&
15818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15819 # have to relink, otherwise we might link with an installed library
15820 # when we should be linking with a yet-to-be-installed one
15821 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15822 test "$hardcode_minus_L_F77" != no; then
15823 # Linking always hardcodes the temporary library directory.
15824 hardcode_action_F77=relink
15825 else
15826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15827 hardcode_action_F77=immediate
15829 else
15830 # We cannot hardcode anything, or else we can only hardcode existing
15831 # directories.
15832 hardcode_action_F77=unsupported
15834 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15835 echo "${ECHO_T}$hardcode_action_F77" >&6
15837 if test "$hardcode_action_F77" = relink; then
15838 # Fast installation is not supported
15839 enable_fast_install=no
15840 elif test "$shlibpath_overrides_runpath" = yes ||
15841 test "$enable_shared" = no; then
15842 # Fast installation is not necessary
15843 enable_fast_install=needless
15846 striplib=
15847 old_striplib=
15848 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15850 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15851 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15852 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15853 echo "$as_me:$LINENO: result: yes" >&5
15854 echo "${ECHO_T}yes" >&6
15855 else
15856 # FIXME - insert some real tests, host_os isn't really good enough
15857 case $host_os in
15858 darwin*)
15859 if test -n "$STRIP" ; then
15860 striplib="$STRIP -x"
15861 echo "$as_me:$LINENO: result: yes" >&5
15862 echo "${ECHO_T}yes" >&6
15863 else
15864 echo "$as_me:$LINENO: result: no" >&5
15865 echo "${ECHO_T}no" >&6
15869 echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6
15872 esac
15877 # The else clause should only fire when bootstrapping the
15878 # libtool distribution, otherwise you forgot to ship ltmain.sh
15879 # with your package, and you will get complaints that there are
15880 # no rules to generate ltmain.sh.
15881 if test -f "$ltmain"; then
15882 # See if we are running on zsh, and set the options which allow our commands through
15883 # without removal of \ escapes.
15884 if test -n "${ZSH_VERSION+set}" ; then
15885 setopt NO_GLOB_SUBST
15887 # Now quote all the things that may contain metacharacters while being
15888 # careful not to overquote the AC_SUBSTed values. We take copies of the
15889 # variables and quote the copies for generation of the libtool script.
15890 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15891 SED SHELL STRIP \
15892 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15893 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15894 deplibs_check_method reload_flag reload_cmds need_locks \
15895 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15896 lt_cv_sys_global_symbol_to_c_name_address \
15897 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15898 old_postinstall_cmds old_postuninstall_cmds \
15899 compiler_F77 \
15900 CC_F77 \
15901 LD_F77 \
15902 lt_prog_compiler_wl_F77 \
15903 lt_prog_compiler_pic_F77 \
15904 lt_prog_compiler_static_F77 \
15905 lt_prog_compiler_no_builtin_flag_F77 \
15906 export_dynamic_flag_spec_F77 \
15907 thread_safe_flag_spec_F77 \
15908 whole_archive_flag_spec_F77 \
15909 enable_shared_with_static_runtimes_F77 \
15910 old_archive_cmds_F77 \
15911 old_archive_from_new_cmds_F77 \
15912 predep_objects_F77 \
15913 postdep_objects_F77 \
15914 predeps_F77 \
15915 postdeps_F77 \
15916 compiler_lib_search_path_F77 \
15917 archive_cmds_F77 \
15918 archive_expsym_cmds_F77 \
15919 postinstall_cmds_F77 \
15920 postuninstall_cmds_F77 \
15921 old_archive_from_expsyms_cmds_F77 \
15922 allow_undefined_flag_F77 \
15923 no_undefined_flag_F77 \
15924 export_symbols_cmds_F77 \
15925 hardcode_libdir_flag_spec_F77 \
15926 hardcode_libdir_flag_spec_ld_F77 \
15927 hardcode_libdir_separator_F77 \
15928 hardcode_automatic_F77 \
15929 module_cmds_F77 \
15930 module_expsym_cmds_F77 \
15931 lt_cv_prog_compiler_c_o_F77 \
15932 exclude_expsyms_F77 \
15933 include_expsyms_F77; do
15935 case $var in
15936 old_archive_cmds_F77 | \
15937 old_archive_from_new_cmds_F77 | \
15938 archive_cmds_F77 | \
15939 archive_expsym_cmds_F77 | \
15940 module_cmds_F77 | \
15941 module_expsym_cmds_F77 | \
15942 old_archive_from_expsyms_cmds_F77 | \
15943 export_symbols_cmds_F77 | \
15944 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15945 postinstall_cmds | postuninstall_cmds | \
15946 old_postinstall_cmds | old_postuninstall_cmds | \
15947 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15948 # Double-quote double-evaled strings.
15949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15954 esac
15955 done
15957 case $lt_echo in
15958 *'\$0 --fallback-echo"')
15959 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15961 esac
15963 cfgfile="$ofile"
15965 cat <<__EOF__ >> "$cfgfile"
15966 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15970 # Shell to use when invoking shell scripts.
15971 SHELL=$lt_SHELL
15973 # Whether or not to build shared libraries.
15974 build_libtool_libs=$enable_shared
15976 # Whether or not to build static libraries.
15977 build_old_libs=$enable_static
15979 # Whether or not to add -lc for building shared libraries.
15980 build_libtool_need_lc=$archive_cmds_need_lc_F77
15982 # Whether or not to disallow shared libs when runtime libs are static
15983 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15985 # Whether or not to optimize for fast installation.
15986 fast_install=$enable_fast_install
15988 # The host system.
15989 host_alias=$host_alias
15990 host=$host
15991 host_os=$host_os
15993 # The build system.
15994 build_alias=$build_alias
15995 build=$build
15996 build_os=$build_os
15998 # An echo program that does not interpret backslashes.
15999 echo=$lt_echo
16001 # The archiver.
16002 AR=$lt_AR
16003 AR_FLAGS=$lt_AR_FLAGS
16005 # A C compiler.
16006 LTCC=$lt_LTCC
16008 # A language-specific compiler.
16009 CC=$lt_compiler_F77
16011 # Is the compiler the GNU C compiler?
16012 with_gcc=$GCC_F77
16014 # An ERE matcher.
16015 EGREP=$lt_EGREP
16017 # The linker used to build libraries.
16018 LD=$lt_LD_F77
16020 # Whether we need hard or soft links.
16021 LN_S=$lt_LN_S
16023 # A BSD-compatible nm program.
16024 NM=$lt_NM
16026 # A symbol stripping program
16027 STRIP=$lt_STRIP
16029 # Used to examine libraries when file_magic_cmd begins "file"
16030 MAGIC_CMD=$MAGIC_CMD
16032 # Used on cygwin: DLL creation program.
16033 DLLTOOL="$DLLTOOL"
16035 # Used on cygwin: object dumper.
16036 OBJDUMP="$OBJDUMP"
16038 # Used on cygwin: assembler.
16039 AS="$AS"
16041 # The name of the directory that contains temporary libtool files.
16042 objdir=$objdir
16044 # How to create reloadable object files.
16045 reload_flag=$lt_reload_flag
16046 reload_cmds=$lt_reload_cmds
16048 # How to pass a linker flag through the compiler.
16049 wl=$lt_lt_prog_compiler_wl_F77
16051 # Object file suffix (normally "o").
16052 objext="$ac_objext"
16054 # Old archive suffix (normally "a").
16055 libext="$libext"
16057 # Shared library suffix (normally ".so").
16058 shrext_cmds='$shrext_cmds'
16060 # Executable file suffix (normally "").
16061 exeext="$exeext"
16063 # Additional compiler flags for building library objects.
16064 pic_flag=$lt_lt_prog_compiler_pic_F77
16065 pic_mode=$pic_mode
16067 # What is the maximum length of a command?
16068 max_cmd_len=$lt_cv_sys_max_cmd_len
16070 # Does compiler simultaneously support -c and -o options?
16071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16073 # Must we lock files when doing compilation?
16074 need_locks=$lt_need_locks
16076 # Do we need the lib prefix for modules?
16077 need_lib_prefix=$need_lib_prefix
16079 # Do we need a version for libraries?
16080 need_version=$need_version
16082 # Whether dlopen is supported.
16083 dlopen_support=$enable_dlopen
16085 # Whether dlopen of programs is supported.
16086 dlopen_self=$enable_dlopen_self
16088 # Whether dlopen of statically linked programs is supported.
16089 dlopen_self_static=$enable_dlopen_self_static
16091 # Compiler flag to prevent dynamic linking.
16092 link_static_flag=$lt_lt_prog_compiler_static_F77
16094 # Compiler flag to turn off builtin functions.
16095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16097 # Compiler flag to allow reflexive dlopens.
16098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16100 # Compiler flag to generate shared objects directly from archives.
16101 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16103 # Compiler flag to generate thread-safe objects.
16104 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16106 # Library versioning type.
16107 version_type=$version_type
16109 # Format of library name prefix.
16110 libname_spec=$lt_libname_spec
16112 # List of archive names. First name is the real one, the rest are links.
16113 # The last name is the one that the linker finds with -lNAME.
16114 library_names_spec=$lt_library_names_spec
16116 # The coded name of the library, if different from the real name.
16117 soname_spec=$lt_soname_spec
16119 # Commands used to build and install an old-style archive.
16120 RANLIB=$lt_RANLIB
16121 old_archive_cmds=$lt_old_archive_cmds_F77
16122 old_postinstall_cmds=$lt_old_postinstall_cmds
16123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16125 # Create an old-style archive from a shared archive.
16126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16128 # Create a temporary old-style archive to link instead of a shared archive.
16129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16131 # Commands used to build and install a shared archive.
16132 archive_cmds=$lt_archive_cmds_F77
16133 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16134 postinstall_cmds=$lt_postinstall_cmds
16135 postuninstall_cmds=$lt_postuninstall_cmds
16137 # Commands used to build a loadable module (assumed same as above if empty)
16138 module_cmds=$lt_module_cmds_F77
16139 module_expsym_cmds=$lt_module_expsym_cmds_F77
16141 # Commands to strip libraries.
16142 old_striplib=$lt_old_striplib
16143 striplib=$lt_striplib
16145 # Dependencies to place before the objects being linked to create a
16146 # shared library.
16147 predep_objects=$lt_predep_objects_F77
16149 # Dependencies to place after the objects being linked to create a
16150 # shared library.
16151 postdep_objects=$lt_postdep_objects_F77
16153 # Dependencies to place before the objects being linked to create a
16154 # shared library.
16155 predeps=$lt_predeps_F77
16157 # Dependencies to place after the objects being linked to create a
16158 # shared library.
16159 postdeps=$lt_postdeps_F77
16161 # The library search path used internally by the compiler when linking
16162 # a shared library.
16163 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16165 # Method to check whether dependent libraries are shared objects.
16166 deplibs_check_method=$lt_deplibs_check_method
16168 # Command to use when deplibs_check_method == file_magic.
16169 file_magic_cmd=$lt_file_magic_cmd
16171 # Flag that allows shared libraries with undefined symbols to be built.
16172 allow_undefined_flag=$lt_allow_undefined_flag_F77
16174 # Flag that forces no undefined symbols.
16175 no_undefined_flag=$lt_no_undefined_flag_F77
16177 # Commands used to finish a libtool library installation in a directory.
16178 finish_cmds=$lt_finish_cmds
16180 # Same as above, but a single script fragment to be evaled but not shown.
16181 finish_eval=$lt_finish_eval
16183 # Take the output of nm and produce a listing of raw symbols and C names.
16184 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16186 # Transform the output of nm in a proper C declaration
16187 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16189 # Transform the output of nm in a C name address pair
16190 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16192 # This is the shared library runtime path variable.
16193 runpath_var=$runpath_var
16195 # This is the shared library path variable.
16196 shlibpath_var=$shlibpath_var
16198 # Is shlibpath searched before the hard-coded library search path?
16199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16201 # How to hardcode a shared library path into an executable.
16202 hardcode_action=$hardcode_action_F77
16204 # Whether we should hardcode library paths into libraries.
16205 hardcode_into_libs=$hardcode_into_libs
16207 # Flag to hardcode \$libdir into a binary during linking.
16208 # This must work even if \$libdir does not exist.
16209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16211 # If ld is used when linking, flag to hardcode \$libdir into
16212 # a binary during linking. This must work even if \$libdir does
16213 # not exist.
16214 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16216 # Whether we need a single -rpath flag with a separated argument.
16217 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16219 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16220 # resulting binary.
16221 hardcode_direct=$hardcode_direct_F77
16223 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16224 # resulting binary.
16225 hardcode_minus_L=$hardcode_minus_L_F77
16227 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16228 # the resulting binary.
16229 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16231 # Set to yes if building a shared library automatically hardcodes DIR into the library
16232 # and all subsequent libraries and executables linked against it.
16233 hardcode_automatic=$hardcode_automatic_F77
16235 # Variables whose values should be saved in libtool wrapper scripts and
16236 # restored at relink time.
16237 variables_saved_for_relink="$variables_saved_for_relink"
16239 # Whether libtool must link a program against all its dependency libraries.
16240 link_all_deplibs=$link_all_deplibs_F77
16242 # Compile-time system search path for libraries
16243 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16245 # Run-time system search path for libraries
16246 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16248 # Fix the shell variable \$srcfile for the compiler.
16249 fix_srcfile_path="$fix_srcfile_path_F77"
16251 # Set to yes if exported symbols are required.
16252 always_export_symbols=$always_export_symbols_F77
16254 # The commands to list exported symbols.
16255 export_symbols_cmds=$lt_export_symbols_cmds_F77
16257 # The commands to extract the exported symbol list from a shared archive.
16258 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16260 # Symbols that should not be listed in the preloaded symbols.
16261 exclude_expsyms=$lt_exclude_expsyms_F77
16263 # Symbols that must always be exported.
16264 include_expsyms=$lt_include_expsyms_F77
16266 # ### END LIBTOOL TAG CONFIG: $tagname
16268 __EOF__
16271 else
16272 # If there is no Makefile yet, we rely on a make rule to execute
16273 # `config.status --recheck' to rerun these tests and create the
16274 # libtool script then.
16275 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16276 if test -f "$ltmain_in"; then
16277 test -f Makefile && make "$ltmain"
16282 ac_ext=c
16283 ac_cpp='$CPP $CPPFLAGS'
16284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16288 CC="$lt_save_CC"
16290 else
16291 tagname=""
16295 GCJ)
16296 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16300 # Source file extension for Java test sources.
16301 ac_ext=java
16303 # Object file extension for compiled Java test sources.
16304 objext=o
16305 objext_GCJ=$objext
16307 # Code to be used in simple compile tests
16308 lt_simple_compile_test_code="class foo {}\n"
16310 # Code to be used in simple link tests
16311 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16315 # If no C compiler was specified, use CC.
16316 LTCC=${LTCC-"$CC"}
16318 # Allow CC to be a program name with arguments.
16319 compiler=$CC
16322 # save warnings/boilerplate of simple test code
16323 ac_outfile=conftest.$ac_objext
16324 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16326 _lt_compiler_boilerplate=`cat conftest.err`
16327 $rm conftest*
16329 ac_outfile=conftest.$ac_objext
16330 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16332 _lt_linker_boilerplate=`cat conftest.err`
16333 $rm conftest*
16336 # Allow CC to be a program name with arguments.
16337 lt_save_CC="$CC"
16338 CC=${GCJ-"gcj"}
16339 compiler=$CC
16340 compiler_GCJ=$CC
16341 for cc_temp in $compiler""; do
16342 case $cc_temp in
16343 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16344 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16345 \-*) ;;
16346 *) break;;
16347 esac
16348 done
16349 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16352 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16353 archive_cmds_need_lc_GCJ=no
16355 old_archive_cmds_GCJ=$old_archive_cmds
16357 ## CAVEAT EMPTOR:
16358 ## There is no encapsulation within the following macros, do not change
16359 ## the running order or otherwise move them around unless you know exactly
16360 ## what you are doing...
16362 lt_prog_compiler_no_builtin_flag_GCJ=
16364 if test "$GCC" = yes; then
16365 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16368 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16369 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16370 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373 lt_cv_prog_compiler_rtti_exceptions=no
16374 ac_outfile=conftest.$ac_objext
16375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16376 lt_compiler_flag="-fno-rtti -fno-exceptions"
16377 # Insert the option either (1) after the last *FLAGS variable, or
16378 # (2) before a word containing "conftest.", or (3) at the end.
16379 # Note that $ac_compile itself does not contain backslashes and begins
16380 # with a dollar sign (not a hyphen), so the echo should work correctly.
16381 # The option is referenced via a variable to avoid confusing sed.
16382 lt_compile=`echo "$ac_compile" | $SED \
16383 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16385 -e 's:$: $lt_compiler_flag:'`
16386 (eval echo "\"\$as_me:16386: $lt_compile\"" >&5)
16387 (eval "$lt_compile" 2>conftest.err)
16388 ac_status=$?
16389 cat conftest.err >&5
16390 echo "$as_me:16390: \$? = $ac_status" >&5
16391 if (exit $ac_status) && test -s "$ac_outfile"; then
16392 # The compiler can only warn and ignore the option if not recognized
16393 # So say no if there are warnings other than the usual output.
16394 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16395 $SED '/^$/d' conftest.err >conftest.er2
16396 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16397 lt_cv_prog_compiler_rtti_exceptions=yes
16400 $rm conftest*
16403 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16404 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16406 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16407 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16408 else
16414 lt_prog_compiler_wl_GCJ=
16415 lt_prog_compiler_pic_GCJ=
16416 lt_prog_compiler_static_GCJ=
16418 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16419 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16421 if test "$GCC" = yes; then
16422 lt_prog_compiler_wl_GCJ='-Wl,'
16423 lt_prog_compiler_static_GCJ='-static'
16425 case $host_os in
16426 aix*)
16427 # All AIX code is PIC.
16428 if test "$host_cpu" = ia64; then
16429 # AIX 5 now supports IA64 processor
16430 lt_prog_compiler_static_GCJ='-Bstatic'
16434 amigaos*)
16435 # FIXME: we need at least 68020 code to build shared libraries, but
16436 # adding the `-m68020' flag to GCC prevents building anything better,
16437 # like `-m68040'.
16438 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16441 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16442 # PIC is the default for these OSes.
16445 mingw* | pw32* | os2*)
16446 # This hack is so that the source file can tell whether it is being
16447 # built for inclusion in a dll (and should export symbols for example).
16448 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16451 darwin* | rhapsody*)
16452 # PIC is the default on this platform
16453 # Common symbols not allowed in MH_DYLIB files
16454 lt_prog_compiler_pic_GCJ='-fno-common'
16457 msdosdjgpp*)
16458 # Just because we use GCC doesn't mean we suddenly get shared libraries
16459 # on systems that don't support them.
16460 lt_prog_compiler_can_build_shared_GCJ=no
16461 enable_shared=no
16464 sysv4*MP*)
16465 if test -d /usr/nec; then
16466 lt_prog_compiler_pic_GCJ=-Kconform_pic
16470 hpux*)
16471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16472 # not for PA HP-UX.
16473 case "$host_cpu" in
16474 hppa*64*|ia64*)
16475 # +Z the default
16478 lt_prog_compiler_pic_GCJ='-fPIC'
16480 esac
16484 lt_prog_compiler_pic_GCJ='-fPIC'
16486 esac
16487 else
16488 # PORTME Check for flag to pass linker flags through the system compiler.
16489 case $host_os in
16490 aix*)
16491 lt_prog_compiler_wl_GCJ='-Wl,'
16492 if test "$host_cpu" = ia64; then
16493 # AIX 5 now supports IA64 processor
16494 lt_prog_compiler_static_GCJ='-Bstatic'
16495 else
16496 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16499 darwin*)
16500 # PIC is the default on this platform
16501 # Common symbols not allowed in MH_DYLIB files
16502 case $cc_basename in
16503 xlc*)
16504 lt_prog_compiler_pic_GCJ='-qnocommon'
16505 lt_prog_compiler_wl_GCJ='-Wl,'
16507 esac
16510 mingw* | pw32* | os2*)
16511 # This hack is so that the source file can tell whether it is being
16512 # built for inclusion in a dll (and should export symbols for example).
16513 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16516 hpux9* | hpux10* | hpux11*)
16517 lt_prog_compiler_wl_GCJ='-Wl,'
16518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16519 # not for PA HP-UX.
16520 case "$host_cpu" in
16521 hppa*64*|ia64*)
16522 # +Z the default
16525 lt_prog_compiler_pic_GCJ='+Z'
16527 esac
16528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16529 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16532 irix5* | irix6* | nonstopux*)
16533 lt_prog_compiler_wl_GCJ='-Wl,'
16534 # PIC (with -KPIC) is the default.
16535 lt_prog_compiler_static_GCJ='-non_shared'
16538 newsos6)
16539 lt_prog_compiler_pic_GCJ='-KPIC'
16540 lt_prog_compiler_static_GCJ='-Bstatic'
16543 linux*)
16544 case $cc_basename in
16545 icc* | ecc*)
16546 lt_prog_compiler_wl_GCJ='-Wl,'
16547 lt_prog_compiler_pic_GCJ='-KPIC'
16548 lt_prog_compiler_static_GCJ='-static'
16550 pgcc* | pgf77* | pgf90*)
16551 # Portland Group compilers (*not* the Pentium gcc compiler,
16552 # which looks to be a dead project)
16553 lt_prog_compiler_wl_GCJ='-Wl,'
16554 lt_prog_compiler_pic_GCJ='-fpic'
16555 lt_prog_compiler_static_GCJ='-static'
16557 ccc*)
16558 lt_prog_compiler_wl_GCJ='-Wl,'
16559 # All Alpha code is PIC.
16560 lt_prog_compiler_static_GCJ='-non_shared'
16562 esac
16565 osf3* | osf4* | osf5*)
16566 lt_prog_compiler_wl_GCJ='-Wl,'
16567 # All OSF/1 code is PIC.
16568 lt_prog_compiler_static_GCJ='-non_shared'
16571 sco3.2v5*)
16572 lt_prog_compiler_pic_GCJ='-Kpic'
16573 lt_prog_compiler_static_GCJ='-dn'
16576 solaris*)
16577 lt_prog_compiler_pic_GCJ='-KPIC'
16578 lt_prog_compiler_static_GCJ='-Bstatic'
16579 case $cc_basename in
16580 f77* | f90* | f95*)
16581 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16583 lt_prog_compiler_wl_GCJ='-Wl,';;
16584 esac
16587 sunos4*)
16588 lt_prog_compiler_wl_GCJ='-Qoption ld '
16589 lt_prog_compiler_pic_GCJ='-PIC'
16590 lt_prog_compiler_static_GCJ='-Bstatic'
16593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16594 lt_prog_compiler_wl_GCJ='-Wl,'
16595 lt_prog_compiler_pic_GCJ='-KPIC'
16596 lt_prog_compiler_static_GCJ='-Bstatic'
16599 sysv4*MP*)
16600 if test -d /usr/nec ;then
16601 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16602 lt_prog_compiler_static_GCJ='-Bstatic'
16606 unicos*)
16607 lt_prog_compiler_wl_GCJ='-Wl,'
16608 lt_prog_compiler_can_build_shared_GCJ=no
16611 uts4*)
16612 lt_prog_compiler_pic_GCJ='-pic'
16613 lt_prog_compiler_static_GCJ='-Bstatic'
16617 lt_prog_compiler_can_build_shared_GCJ=no
16619 esac
16622 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16623 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16626 # Check to make sure the PIC flag actually works.
16628 if test -n "$lt_prog_compiler_pic_GCJ"; then
16630 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16631 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16632 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 lt_prog_compiler_pic_works_GCJ=no
16636 ac_outfile=conftest.$ac_objext
16637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16638 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16639 # Insert the option either (1) after the last *FLAGS variable, or
16640 # (2) before a word containing "conftest.", or (3) at the end.
16641 # Note that $ac_compile itself does not contain backslashes and begins
16642 # with a dollar sign (not a hyphen), so the echo should work correctly.
16643 # The option is referenced via a variable to avoid confusing sed.
16644 lt_compile=`echo "$ac_compile" | $SED \
16645 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16647 -e 's:$: $lt_compiler_flag:'`
16648 (eval echo "\"\$as_me:16648: $lt_compile\"" >&5)
16649 (eval "$lt_compile" 2>conftest.err)
16650 ac_status=$?
16651 cat conftest.err >&5
16652 echo "$as_me:16652: \$? = $ac_status" >&5
16653 if (exit $ac_status) && test -s "$ac_outfile"; then
16654 # The compiler can only warn and ignore the option if not recognized
16655 # So say no if there are warnings other than the usual output.
16656 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16657 $SED '/^$/d' conftest.err >conftest.er2
16658 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16659 lt_prog_compiler_pic_works_GCJ=yes
16662 $rm conftest*
16665 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16666 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16668 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16669 case $lt_prog_compiler_pic_GCJ in
16670 "" | " "*) ;;
16671 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16672 esac
16673 else
16674 lt_prog_compiler_pic_GCJ=
16675 lt_prog_compiler_can_build_shared_GCJ=no
16679 case "$host_os" in
16680 # For platforms which do not support PIC, -DPIC is meaningless:
16681 *djgpp*)
16682 lt_prog_compiler_pic_GCJ=
16685 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16687 esac
16689 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16690 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16691 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694 lt_cv_prog_compiler_c_o_GCJ=no
16695 $rm -r conftest 2>/dev/null
16696 mkdir conftest
16697 cd conftest
16698 mkdir out
16699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16701 lt_compiler_flag="-o out/conftest2.$ac_objext"
16702 # Insert the option either (1) after the last *FLAGS variable, or
16703 # (2) before a word containing "conftest.", or (3) at the end.
16704 # Note that $ac_compile itself does not contain backslashes and begins
16705 # with a dollar sign (not a hyphen), so the echo should work correctly.
16706 lt_compile=`echo "$ac_compile" | $SED \
16707 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16709 -e 's:$: $lt_compiler_flag:'`
16710 (eval echo "\"\$as_me:16710: $lt_compile\"" >&5)
16711 (eval "$lt_compile" 2>out/conftest.err)
16712 ac_status=$?
16713 cat out/conftest.err >&5
16714 echo "$as_me:16714: \$? = $ac_status" >&5
16715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16716 then
16717 # The compiler can only warn and ignore the option if not recognized
16718 # So say no if there are warnings
16719 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16720 $SED '/^$/d' out/conftest.err >out/conftest.er2
16721 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16722 lt_cv_prog_compiler_c_o_GCJ=yes
16725 chmod u+w .
16726 $rm conftest*
16727 # SGI C++ compiler will create directory out/ii_files/ for
16728 # template instantiation
16729 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16730 $rm out/* && rmdir out
16731 cd ..
16732 rmdir conftest
16733 $rm conftest*
16736 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16737 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16740 hard_links="nottested"
16741 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16742 # do not overwrite the value of need_locks provided by the user
16743 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16744 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16745 hard_links=yes
16746 $rm conftest*
16747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16748 touch conftest.a
16749 ln conftest.a conftest.b 2>&5 || hard_links=no
16750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16751 echo "$as_me:$LINENO: result: $hard_links" >&5
16752 echo "${ECHO_T}$hard_links" >&6
16753 if test "$hard_links" = no; then
16754 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16755 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16756 need_locks=warn
16758 else
16759 need_locks=no
16762 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16763 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16765 runpath_var=
16766 allow_undefined_flag_GCJ=
16767 enable_shared_with_static_runtimes_GCJ=no
16768 archive_cmds_GCJ=
16769 archive_expsym_cmds_GCJ=
16770 old_archive_From_new_cmds_GCJ=
16771 old_archive_from_expsyms_cmds_GCJ=
16772 export_dynamic_flag_spec_GCJ=
16773 whole_archive_flag_spec_GCJ=
16774 thread_safe_flag_spec_GCJ=
16775 hardcode_libdir_flag_spec_GCJ=
16776 hardcode_libdir_flag_spec_ld_GCJ=
16777 hardcode_libdir_separator_GCJ=
16778 hardcode_direct_GCJ=no
16779 hardcode_minus_L_GCJ=no
16780 hardcode_shlibpath_var_GCJ=unsupported
16781 link_all_deplibs_GCJ=unknown
16782 hardcode_automatic_GCJ=no
16783 module_cmds_GCJ=
16784 module_expsym_cmds_GCJ=
16785 always_export_symbols_GCJ=no
16786 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16787 # include_expsyms should be a list of space-separated symbols to be *always*
16788 # included in the symbol list
16789 include_expsyms_GCJ=
16790 # exclude_expsyms can be an extended regexp of symbols to exclude
16791 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16792 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16793 # as well as any symbol that contains `d'.
16794 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16795 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16796 # platforms (ab)use it in PIC code, but their linkers get confused if
16797 # the symbol is explicitly referenced. Since portable code cannot
16798 # rely on this symbol name, it's probably fine to never include it in
16799 # preloaded symbol tables.
16800 extract_expsyms_cmds=
16801 # Just being paranoid about ensuring that cc_basename is set.
16802 for cc_temp in $compiler""; do
16803 case $cc_temp in
16804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16806 \-*) ;;
16807 *) break;;
16808 esac
16809 done
16810 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16812 case $host_os in
16813 cygwin* | mingw* | pw32*)
16814 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16815 # When not using gcc, we currently assume that we are using
16816 # Microsoft Visual C++.
16817 if test "$GCC" != yes; then
16818 with_gnu_ld=no
16821 openbsd*)
16822 with_gnu_ld=no
16824 esac
16826 ld_shlibs_GCJ=yes
16827 if test "$with_gnu_ld" = yes; then
16828 # If archive_cmds runs LD, not CC, wlarc should be empty
16829 wlarc='${wl}'
16831 # Set some defaults for GNU ld with shared library support. These
16832 # are reset later if shared libraries are not supported. Putting them
16833 # here allows them to be overridden if necessary.
16834 runpath_var=LD_RUN_PATH
16835 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16836 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16837 # ancient GNU ld didn't support --whole-archive et. al.
16838 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16839 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16840 else
16841 whole_archive_flag_spec_GCJ=
16843 supports_anon_versioning=no
16844 case `$LD -v 2>/dev/null` in
16845 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16846 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16847 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16848 *\ 2.11.*) ;; # other 2.11 versions
16849 *) supports_anon_versioning=yes ;;
16850 esac
16852 # See if GNU ld supports shared libraries.
16853 case $host_os in
16854 aix3* | aix4* | aix5*)
16855 # On AIX/PPC, the GNU linker is very broken
16856 if test "$host_cpu" != ia64; then
16857 ld_shlibs_GCJ=no
16858 cat <<EOF 1>&2
16860 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16861 *** to be unable to reliably create shared libraries on AIX.
16862 *** Therefore, libtool is disabling shared libraries support. If you
16863 *** really care for shared libraries, you may want to modify your PATH
16864 *** so that a non-GNU linker is found, and then restart.
16870 amigaos*)
16871 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)'
16872 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16873 hardcode_minus_L_GCJ=yes
16875 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16876 # that the semantics of dynamic libraries on AmigaOS, at least up
16877 # to version 4, is to share data among multiple programs linked
16878 # with the same dynamic library. Since this doesn't match the
16879 # behavior of shared libraries on other platforms, we can't use
16880 # them.
16881 ld_shlibs_GCJ=no
16884 beos*)
16885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16886 allow_undefined_flag_GCJ=unsupported
16887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16888 # support --undefined. This deserves some investigation. FIXME
16889 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16890 else
16891 ld_shlibs_GCJ=no
16895 cygwin* | mingw* | pw32*)
16896 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16897 # as there is no search path for DLLs.
16898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16899 allow_undefined_flag_GCJ=unsupported
16900 always_export_symbols_GCJ=no
16901 enable_shared_with_static_runtimes_GCJ=yes
16902 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16904 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16905 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16906 # If the export-symbols file already is a .def file (1st line
16907 # is EXPORTS), use it as is; otherwise, prepend...
16908 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16909 cp $export_symbols $output_objdir/$soname.def;
16910 else
16911 echo EXPORTS > $output_objdir/$soname.def;
16912 cat $export_symbols >> $output_objdir/$soname.def;
16914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16915 else
16916 ld_shlibs_GCJ=no
16920 linux*)
16921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16922 tmp_addflag=
16923 case $cc_basename,$host_cpu in
16924 pgcc*) # Portland Group C compiler
16925 whole_archive_flag_spec_GCJ=
16927 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16928 whole_archive_flag_spec_GCJ=
16929 tmp_addflag=' -fpic -Mnomain' ;;
16930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16931 tmp_addflag=' -i_dynamic' ;;
16932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16933 tmp_addflag=' -i_dynamic -nofor_main' ;;
16934 ifc* | ifort*) # Intel Fortran compiler
16935 tmp_addflag=' -nofor_main' ;;
16936 esac
16937 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16939 if test $supports_anon_versioning = yes; then
16940 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16942 $echo "local: *; };" >> $output_objdir/$libname.ver~
16943 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16945 else
16946 ld_shlibs_GCJ=no
16950 netbsd*)
16951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16952 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16953 wlarc=
16954 else
16955 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16956 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16960 solaris* | sysv5*)
16961 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16962 ld_shlibs_GCJ=no
16963 cat <<EOF 1>&2
16965 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16966 *** create shared libraries on Solaris systems. Therefore, libtool
16967 *** is disabling shared libraries support. We urge you to upgrade GNU
16968 *** binutils to release 2.9.1 or newer. Another option is to modify
16969 *** your PATH or compiler configuration so that the native linker is
16970 *** used, and then restart.
16973 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16974 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16976 else
16977 ld_shlibs_GCJ=no
16981 sunos4*)
16982 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16983 wlarc=
16984 hardcode_direct_GCJ=yes
16985 hardcode_shlibpath_var_GCJ=no
16989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16990 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16991 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16992 else
16993 ld_shlibs_GCJ=no
16996 esac
16998 if test "$ld_shlibs_GCJ" = no; then
16999 runpath_var=
17000 hardcode_libdir_flag_spec_GCJ=
17001 export_dynamic_flag_spec_GCJ=
17002 whole_archive_flag_spec_GCJ=
17004 else
17005 # PORTME fill in a description of your system's linker (not GNU ld)
17006 case $host_os in
17007 aix3*)
17008 allow_undefined_flag_GCJ=unsupported
17009 always_export_symbols_GCJ=yes
17010 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'
17011 # Note: this linker hardcodes the directories in LIBPATH if there
17012 # are no directories specified by -L.
17013 hardcode_minus_L_GCJ=yes
17014 if test "$GCC" = yes && test -z "$link_static_flag"; then
17015 # Neither direct hardcoding nor static linking is supported with a
17016 # broken collect2.
17017 hardcode_direct_GCJ=unsupported
17021 aix4* | aix5*)
17022 if test "$host_cpu" = ia64; then
17023 # On IA64, the linker does run time linking by default, so we don't
17024 # have to do anything special.
17025 aix_use_runtimelinking=no
17026 exp_sym_flag='-Bexport'
17027 no_entry_flag=""
17028 else
17029 # If we're using GNU nm, then we don't want the "-C" option.
17030 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17031 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17032 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'
17033 else
17034 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'
17036 aix_use_runtimelinking=no
17038 # Test if we are trying to use run time linking or normal
17039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17040 # need to do runtime linking.
17041 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17042 for ld_flag in $LDFLAGS; do
17043 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17044 aix_use_runtimelinking=yes
17045 break
17047 done
17048 esac
17050 exp_sym_flag='-bexport'
17051 no_entry_flag='-bnoentry'
17054 # When large executables or shared objects are built, AIX ld can
17055 # have problems creating the table of contents. If linking a library
17056 # or program results in "error TOC overflow" add -mminimal-toc to
17057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17060 archive_cmds_GCJ=''
17061 hardcode_direct_GCJ=yes
17062 hardcode_libdir_separator_GCJ=':'
17063 link_all_deplibs_GCJ=yes
17065 if test "$GCC" = yes; then
17066 case $host_os in aix4.[012]|aix4.[012].*)
17067 # We only want to do this on AIX 4.2 and lower, the check
17068 # below for broken collect2 doesn't work under 4.3+
17069 collect2name=`${CC} -print-prog-name=collect2`
17070 if test -f "$collect2name" && \
17071 strings "$collect2name" | grep resolve_lib_name >/dev/null
17072 then
17073 # We have reworked collect2
17074 hardcode_direct_GCJ=yes
17075 else
17076 # We have old collect2
17077 hardcode_direct_GCJ=unsupported
17078 # It fails to find uninstalled libraries when the uninstalled
17079 # path is not listed in the libpath. Setting hardcode_minus_L
17080 # to unsupported forces relinking
17081 hardcode_minus_L_GCJ=yes
17082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17083 hardcode_libdir_separator_GCJ=
17085 esac
17086 shared_flag='-shared'
17087 if test "$aix_use_runtimelinking" = yes; then
17088 shared_flag="$shared_flag "'${wl}-G'
17090 else
17091 # not using gcc
17092 if test "$host_cpu" = ia64; then
17093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17094 # chokes on -Wl,-G. The following line is correct:
17095 shared_flag='-G'
17096 else
17097 if test "$aix_use_runtimelinking" = yes; then
17098 shared_flag='${wl}-G'
17099 else
17100 shared_flag='${wl}-bM:SRE'
17105 # It seems that -bexpall does not export symbols beginning with
17106 # underscore (_), so it is better to generate a list of symbols to export.
17107 always_export_symbols_GCJ=yes
17108 if test "$aix_use_runtimelinking" = yes; then
17109 # Warning - without using the other runtime loading flags (-brtl),
17110 # -berok will link without error, but may produce a broken library.
17111 allow_undefined_flag_GCJ='-berok'
17112 # Determine the default libpath from the value encoded in an empty executable.
17113 cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17121 main ()
17125 return 0;
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130 (eval $ac_link) 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag"
17138 || test ! -s conftest.err'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest$ac_exeext'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17153 # Check for a 64-bit object if we didn't find anything.
17154 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; }
17155 }'`; fi
17156 else
17157 echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17161 rm -f conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17163 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17165 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17166 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"
17167 else
17168 if test "$host_cpu" = ia64; then
17169 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17170 allow_undefined_flag_GCJ="-z nodefs"
17171 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"
17172 else
17173 # Determine the default libpath from the value encoded in an empty executable.
17174 cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h. */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17182 main ()
17186 return 0;
17188 _ACEOF
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>conftest.er1
17192 ac_status=$?
17193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try='test -z "$ac_c_werror_flag"
17199 || test ! -s conftest.err'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17214 # Check for a 64-bit object if we didn't find anything.
17215 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; }
17216 }'`; fi
17217 else
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17222 rm -f conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17226 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17227 # Warning - without using the other run time loading flags,
17228 # -berok will link without error, but may produce a broken library.
17229 no_undefined_flag_GCJ=' ${wl}-bernotok'
17230 allow_undefined_flag_GCJ=' ${wl}-berok'
17231 # -bexpall does not export symbols beginning with underscore (_)
17232 always_export_symbols_GCJ=yes
17233 # Exported symbols can be pulled into shared objects from archives
17234 whole_archive_flag_spec_GCJ=' '
17235 archive_cmds_need_lc_GCJ=yes
17236 # This is similar to how AIX traditionally builds it's shared libraries.
17237 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'
17242 amigaos*)
17243 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)'
17244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17245 hardcode_minus_L_GCJ=yes
17246 # see comment about different semantics on the GNU ld section
17247 ld_shlibs_GCJ=no
17250 bsdi[45]*)
17251 export_dynamic_flag_spec_GCJ=-rdynamic
17254 cygwin* | mingw* | pw32*)
17255 # When not using gcc, we currently assume that we are using
17256 # Microsoft Visual C++.
17257 # hardcode_libdir_flag_spec is actually meaningless, as there is
17258 # no search path for DLLs.
17259 hardcode_libdir_flag_spec_GCJ=' '
17260 allow_undefined_flag_GCJ=unsupported
17261 # Tell ltmain to make .lib files, not .a files.
17262 libext=lib
17263 # Tell ltmain to make .dll files, not .so files.
17264 shrext_cmds=".dll"
17265 # FIXME: Setting linknames here is a bad hack.
17266 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17267 # The linker will automatically build a .lib file if we build a DLL.
17268 old_archive_From_new_cmds_GCJ='true'
17269 # FIXME: Should let the user specify the lib program.
17270 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17271 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17272 enable_shared_with_static_runtimes_GCJ=yes
17275 darwin* | rhapsody*)
17276 case "$host_os" in
17277 rhapsody* | darwin1.[012])
17278 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17280 *) # Darwin 1.3 on
17281 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17282 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17283 else
17284 case ${MACOSX_DEPLOYMENT_TARGET} in
17285 10.[012])
17286 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17288 10.*)
17289 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17291 esac
17294 esac
17295 archive_cmds_need_lc_GCJ=no
17296 hardcode_direct_GCJ=no
17297 hardcode_automatic_GCJ=yes
17298 hardcode_shlibpath_var_GCJ=unsupported
17299 whole_archive_flag_spec_GCJ=''
17300 link_all_deplibs_GCJ=yes
17301 if test "$GCC" = yes ; then
17302 output_verbose_link_cmd='echo'
17303 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17304 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17306 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17307 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}'
17308 else
17309 case $cc_basename in
17310 xlc*)
17311 output_verbose_link_cmd='echo'
17312 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17313 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17315 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17316 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}'
17319 ld_shlibs_GCJ=no
17321 esac
17325 dgux*)
17326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17328 hardcode_shlibpath_var_GCJ=no
17331 freebsd1*)
17332 ld_shlibs_GCJ=no
17335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17336 # support. Future versions do this automatically, but an explicit c++rt0.o
17337 # does not break anything, and helps significantly (at the cost of a little
17338 # extra space).
17339 freebsd2.2*)
17340 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17341 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17342 hardcode_direct_GCJ=yes
17343 hardcode_shlibpath_var_GCJ=no
17346 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17347 freebsd2*)
17348 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349 hardcode_direct_GCJ=yes
17350 hardcode_minus_L_GCJ=yes
17351 hardcode_shlibpath_var_GCJ=no
17354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17355 freebsd* | kfreebsd*-gnu | dragonfly*)
17356 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17358 hardcode_direct_GCJ=yes
17359 hardcode_shlibpath_var_GCJ=no
17362 hpux9*)
17363 if test "$GCC" = yes; then
17364 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'
17365 else
17366 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'
17368 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17369 hardcode_libdir_separator_GCJ=:
17370 hardcode_direct_GCJ=yes
17372 # hardcode_minus_L: Not really in the search PATH,
17373 # but as the default location of the library.
17374 hardcode_minus_L_GCJ=yes
17375 export_dynamic_flag_spec_GCJ='${wl}-E'
17378 hpux10* | hpux11*)
17379 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17380 case "$host_cpu" in
17381 hppa*64*|ia64*)
17382 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17385 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17387 esac
17388 else
17389 case "$host_cpu" in
17390 hppa*64*|ia64*)
17391 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17394 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17396 esac
17398 if test "$with_gnu_ld" = no; then
17399 case "$host_cpu" in
17400 hppa*64*)
17401 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17402 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17403 hardcode_libdir_separator_GCJ=:
17404 hardcode_direct_GCJ=no
17405 hardcode_shlibpath_var_GCJ=no
17407 ia64*)
17408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17409 hardcode_direct_GCJ=no
17410 hardcode_shlibpath_var_GCJ=no
17412 # hardcode_minus_L: Not really in the search PATH,
17413 # but as the default location of the library.
17414 hardcode_minus_L_GCJ=yes
17417 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17418 hardcode_libdir_separator_GCJ=:
17419 hardcode_direct_GCJ=yes
17420 export_dynamic_flag_spec_GCJ='${wl}-E'
17422 # hardcode_minus_L: Not really in the search PATH,
17423 # but as the default location of the library.
17424 hardcode_minus_L_GCJ=yes
17426 esac
17430 irix5* | irix6* | nonstopux*)
17431 if test "$GCC" = yes; then
17432 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'
17433 else
17434 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'
17435 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17438 hardcode_libdir_separator_GCJ=:
17439 link_all_deplibs_GCJ=yes
17442 netbsd*)
17443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17444 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17445 else
17446 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17448 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17449 hardcode_direct_GCJ=yes
17450 hardcode_shlibpath_var_GCJ=no
17453 newsos6)
17454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_direct_GCJ=yes
17456 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17457 hardcode_libdir_separator_GCJ=:
17458 hardcode_shlibpath_var_GCJ=no
17461 openbsd*)
17462 hardcode_direct_GCJ=yes
17463 hardcode_shlibpath_var_GCJ=no
17464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17465 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17466 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17468 export_dynamic_flag_spec_GCJ='${wl}-E'
17469 else
17470 case $host_os in
17471 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17473 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17476 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17479 esac
17483 os2*)
17484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17485 hardcode_minus_L_GCJ=yes
17486 allow_undefined_flag_GCJ=unsupported
17487 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'
17488 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17491 osf3*)
17492 if test "$GCC" = yes; then
17493 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17494 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'
17495 else
17496 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17497 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'
17499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17500 hardcode_libdir_separator_GCJ=:
17503 osf4* | osf5*) # as osf3* with the addition of -msym flag
17504 if test "$GCC" = yes; then
17505 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17506 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'
17507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17508 else
17509 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17510 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'
17511 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~
17512 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17514 # Both c and cxx compiler support -rpath directly
17515 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17517 hardcode_libdir_separator_GCJ=:
17520 sco3.2v5*)
17521 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522 hardcode_shlibpath_var_GCJ=no
17523 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17524 runpath_var=LD_RUN_PATH
17525 hardcode_runpath_var=yes
17528 solaris*)
17529 no_undefined_flag_GCJ=' -z text'
17530 if test "$GCC" = yes; then
17531 wlarc='${wl}'
17532 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17534 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17535 else
17536 wlarc=''
17537 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17538 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17539 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17541 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17542 hardcode_shlibpath_var_GCJ=no
17543 case $host_os in
17544 solaris2.[0-5] | solaris2.[0-5].*) ;;
17546 # The compiler driver will combine linker options so we
17547 # cannot just pass the convience library names through
17548 # without $wl, iff we do not link with $LD.
17549 # Luckily, gcc supports the same syntax we need for Sun Studio.
17550 # Supported since Solaris 2.6 (maybe 2.5.1?)
17551 case $wlarc in
17553 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17555 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17556 esac ;;
17557 esac
17558 link_all_deplibs_GCJ=yes
17561 sunos4*)
17562 if test "x$host_vendor" = xsequent; then
17563 # Use $CC to link under sequent, because it throws in some extra .o
17564 # files that make .init and .fini sections work.
17565 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17566 else
17567 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17569 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17570 hardcode_direct_GCJ=yes
17571 hardcode_minus_L_GCJ=yes
17572 hardcode_shlibpath_var_GCJ=no
17575 sysv4)
17576 case $host_vendor in
17577 sni)
17578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17579 hardcode_direct_GCJ=yes # is this really true???
17581 siemens)
17582 ## LD is ld it makes a PLAMLIB
17583 ## CC just makes a GrossModule.
17584 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17585 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17586 hardcode_direct_GCJ=no
17588 motorola)
17589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17592 esac
17593 runpath_var='LD_RUN_PATH'
17594 hardcode_shlibpath_var_GCJ=no
17597 sysv4.3*)
17598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_shlibpath_var_GCJ=no
17600 export_dynamic_flag_spec_GCJ='-Bexport'
17603 sysv4*MP*)
17604 if test -d /usr/nec; then
17605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606 hardcode_shlibpath_var_GCJ=no
17607 runpath_var=LD_RUN_PATH
17608 hardcode_runpath_var=yes
17609 ld_shlibs_GCJ=yes
17613 sysv4.2uw2*)
17614 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17615 hardcode_direct_GCJ=yes
17616 hardcode_minus_L_GCJ=no
17617 hardcode_shlibpath_var_GCJ=no
17618 hardcode_runpath_var=yes
17619 runpath_var=LD_RUN_PATH
17622 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17623 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17624 if test "$GCC" = yes; then
17625 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17626 else
17627 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17629 runpath_var='LD_RUN_PATH'
17630 hardcode_shlibpath_var_GCJ=no
17633 sysv5*)
17634 no_undefined_flag_GCJ=' -z text'
17635 # $CC -shared without GNU ld will not create a library from C++
17636 # object files and a static libstdc++, better avoid it by now
17637 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17638 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17639 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17640 hardcode_libdir_flag_spec_GCJ=
17641 hardcode_shlibpath_var_GCJ=no
17642 runpath_var='LD_RUN_PATH'
17645 uts4*)
17646 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17648 hardcode_shlibpath_var_GCJ=no
17652 ld_shlibs_GCJ=no
17654 esac
17657 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17658 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17659 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17662 if test "$GCC" = yes; then
17663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17667 # Do we need to explicitly link libc?
17669 case "x$archive_cmds_need_lc_GCJ" in
17670 x|xyes)
17671 # Assume -lc should be added
17672 archive_cmds_need_lc_GCJ=yes
17674 if test "$enable_shared" = yes && test "$GCC" = yes; then
17675 case $archive_cmds_GCJ in
17676 *'~'*)
17677 # FIXME: we may have to deal with multi-command sequences.
17679 '$CC '*)
17680 # Test whether the compiler implicitly links with -lc since on some
17681 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17682 # to ld, don't add -lc before -lgcc.
17683 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17684 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17685 $rm conftest*
17686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } 2>conftest.err; then
17693 soname=conftest
17694 lib=conftest
17695 libobjs=conftest.$ac_objext
17696 deplibs=
17697 wl=$lt_prog_compiler_wl_GCJ
17698 compiler_flags=-v
17699 linker_flags=-v
17700 verstring=
17701 output_objdir=.
17702 libname=conftest
17703 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17704 allow_undefined_flag_GCJ=
17705 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17706 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }
17710 then
17711 archive_cmds_need_lc_GCJ=no
17712 else
17713 archive_cmds_need_lc_GCJ=yes
17715 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17716 else
17717 cat conftest.err 1>&5
17719 $rm conftest*
17720 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17721 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17723 esac
17726 esac
17728 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17729 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17730 library_names_spec=
17731 libname_spec='lib$name'
17732 soname_spec=
17733 shrext_cmds=".so"
17734 postinstall_cmds=
17735 postuninstall_cmds=
17736 finish_cmds=
17737 finish_eval=
17738 shlibpath_var=
17739 shlibpath_overrides_runpath=unknown
17740 version_type=none
17741 dynamic_linker="$host_os ld.so"
17742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17743 if test "$GCC" = yes; then
17744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17745 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17746 # if the path contains ";" then we assume it to be the separator
17747 # otherwise default to the standard path separator (i.e. ":") - it is
17748 # assumed that no part of a normal pathname contains ";" but that should
17749 # okay in the real world where ";" in dirpaths is itself problematic.
17750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17751 else
17752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17754 else
17755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17757 need_lib_prefix=unknown
17758 hardcode_into_libs=no
17760 # when you set need_version to no, make sure it does not cause -set_version
17761 # flags to be left without arguments
17762 need_version=unknown
17764 case $host_os in
17765 aix3*)
17766 version_type=linux
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17768 shlibpath_var=LIBPATH
17770 # AIX 3 has no versioning support, so we append a major version to the name.
17771 soname_spec='${libname}${release}${shared_ext}$major'
17774 aix4* | aix5*)
17775 version_type=linux
17776 need_lib_prefix=no
17777 need_version=no
17778 hardcode_into_libs=yes
17779 if test "$host_cpu" = ia64; then
17780 # AIX 5 supports IA64
17781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17782 shlibpath_var=LD_LIBRARY_PATH
17783 else
17784 # With GCC up to 2.95.x, collect2 would create an import file
17785 # for dependence libraries. The import file would start with
17786 # the line `#! .'. This would cause the generated library to
17787 # depend on `.', always an invalid library. This was fixed in
17788 # development snapshots of GCC prior to 3.0.
17789 case $host_os in
17790 aix4 | aix4.[01] | aix4.[01].*)
17791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17792 echo ' yes '
17793 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17795 else
17796 can_build_shared=no
17799 esac
17800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17801 # soname into executable. Probably we can add versioning support to
17802 # collect2, so additional links can be useful in future.
17803 if test "$aix_use_runtimelinking" = yes; then
17804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17805 # instead of lib<name>.a to let people know that these are not
17806 # typical AIX shared libraries.
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 else
17809 # We preserve .a as extension for shared libraries through AIX4.2
17810 # and later when we are not doing run time linking.
17811 library_names_spec='${libname}${release}.a $libname.a'
17812 soname_spec='${libname}${release}${shared_ext}$major'
17814 shlibpath_var=LIBPATH
17818 amigaos*)
17819 library_names_spec='$libname.ixlibrary $libname.a'
17820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17821 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'
17824 beos*)
17825 library_names_spec='${libname}${shared_ext}'
17826 dynamic_linker="$host_os ld.so"
17827 shlibpath_var=LIBRARY_PATH
17830 bsdi[45]*)
17831 version_type=linux
17832 need_version=no
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17836 shlibpath_var=LD_LIBRARY_PATH
17837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17839 # the default ld.so.conf also contains /usr/contrib/lib and
17840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17841 # libtool to hard-code these into programs
17844 cygwin* | mingw* | pw32*)
17845 version_type=windows
17846 shrext_cmds=".dll"
17847 need_version=no
17848 need_lib_prefix=no
17850 case $GCC,$host_os in
17851 yes,cygwin* | yes,mingw* | yes,pw32*)
17852 library_names_spec='$libname.dll.a'
17853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17854 postinstall_cmds='base_file=`basename \${file}`~
17855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17856 dldir=$destdir/`dirname \$dlpath`~
17857 test -d \$dldir || mkdir -p \$dldir~
17858 $install_prog $dir/$dlname \$dldir/$dlname'
17859 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17860 dlpath=$dir/\$dldll~
17861 $rm \$dlpath'
17862 shlibpath_overrides_runpath=yes
17864 case $host_os in
17865 cygwin*)
17866 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17867 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17868 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17870 mingw*)
17871 # MinGW DLLs use traditional 'lib' prefix
17872 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17874 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17875 # It is most probably a Windows format PATH printed by
17876 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17877 # path with ; separators, and with drive letters. We can handle the
17878 # drive letters (cygwin fileutils understands them), so leave them,
17879 # especially as we might pass files found there to a mingw objdump,
17880 # which wouldn't understand a cygwinified path. Ahh.
17881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17882 else
17883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17886 pw32*)
17887 # pw32 DLLs use 'pw' prefix rather than 'lib'
17888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17890 esac
17894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17896 esac
17897 dynamic_linker='Win32 ld.exe'
17898 # FIXME: first we should search . and the directory the executable is in
17899 shlibpath_var=PATH
17902 darwin* | rhapsody*)
17903 dynamic_linker="$host_os dyld"
17904 version_type=darwin
17905 need_lib_prefix=no
17906 need_version=no
17907 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17908 soname_spec='${libname}${release}${major}$shared_ext'
17909 shlibpath_overrides_runpath=yes
17910 shlibpath_var=DYLD_LIBRARY_PATH
17911 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17912 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17913 if test "$GCC" = yes; then
17914 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"`
17915 else
17916 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17921 dgux*)
17922 version_type=linux
17923 need_lib_prefix=no
17924 need_version=no
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17926 soname_spec='${libname}${release}${shared_ext}$major'
17927 shlibpath_var=LD_LIBRARY_PATH
17930 freebsd1*)
17931 dynamic_linker=no
17934 kfreebsd*-gnu)
17935 version_type=linux
17936 need_lib_prefix=no
17937 need_version=no
17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17939 soname_spec='${libname}${release}${shared_ext}$major'
17940 shlibpath_var=LD_LIBRARY_PATH
17941 shlibpath_overrides_runpath=no
17942 hardcode_into_libs=yes
17943 dynamic_linker='GNU ld.so'
17946 freebsd* | dragonfly*)
17947 # DragonFly does not have aout. When/if they implement a new
17948 # versioning mechanism, adjust this.
17949 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17950 version_type=freebsd-$objformat
17951 case $version_type in
17952 freebsd-elf*)
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17954 need_version=no
17955 need_lib_prefix=no
17957 freebsd-*)
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17959 need_version=yes
17961 esac
17962 shlibpath_var=LD_LIBRARY_PATH
17963 case $host_os in
17964 freebsd2*)
17965 shlibpath_overrides_runpath=yes
17967 freebsd3.[01]* | freebsdelf3.[01]*)
17968 shlibpath_overrides_runpath=yes
17969 hardcode_into_libs=yes
17971 *) # from 3.2 on
17972 shlibpath_overrides_runpath=no
17973 hardcode_into_libs=yes
17975 esac
17978 gnu*)
17979 version_type=linux
17980 need_lib_prefix=no
17981 need_version=no
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17983 soname_spec='${libname}${release}${shared_ext}$major'
17984 shlibpath_var=LD_LIBRARY_PATH
17985 hardcode_into_libs=yes
17988 hpux9* | hpux10* | hpux11*)
17989 # Give a soname corresponding to the major version so that dld.sl refuses to
17990 # link against other versions.
17991 version_type=sunos
17992 need_lib_prefix=no
17993 need_version=no
17994 case "$host_cpu" in
17995 ia64*)
17996 shrext_cmds='.so'
17997 hardcode_into_libs=yes
17998 dynamic_linker="$host_os dld.so"
17999 shlibpath_var=LD_LIBRARY_PATH
18000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 if test "X$HPUX_IA64_MODE" = X32; then
18004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18005 else
18006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18010 hppa*64*)
18011 shrext_cmds='.sl'
18012 hardcode_into_libs=yes
18013 dynamic_linker="$host_os dld.sl"
18014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017 soname_spec='${libname}${release}${shared_ext}$major'
18018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18022 shrext_cmds='.sl'
18023 dynamic_linker="$host_os dld.sl"
18024 shlibpath_var=SHLIB_PATH
18025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18027 soname_spec='${libname}${release}${shared_ext}$major'
18029 esac
18030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18031 postinstall_cmds='chmod 555 $lib'
18034 irix5* | irix6* | nonstopux*)
18035 case $host_os in
18036 nonstopux*) version_type=nonstopux ;;
18038 if test "$lt_cv_prog_gnu_ld" = yes; then
18039 version_type=linux
18040 else
18041 version_type=irix
18042 fi ;;
18043 esac
18044 need_lib_prefix=no
18045 need_version=no
18046 soname_spec='${libname}${release}${shared_ext}$major'
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18048 case $host_os in
18049 irix5* | nonstopux*)
18050 libsuff= shlibsuff=
18053 case $LD in # libtool.m4 will add one of these switches to LD
18054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18055 libsuff= shlibsuff= libmagic=32-bit;;
18056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18057 libsuff=32 shlibsuff=N32 libmagic=N32;;
18058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18060 *) libsuff= shlibsuff= libmagic=never-match;;
18061 esac
18063 esac
18064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18065 shlibpath_overrides_runpath=no
18066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18068 hardcode_into_libs=yes
18071 # No shared lib support for Linux oldld, aout, or coff.
18072 linux*oldld* | linux*aout* | linux*coff*)
18073 dynamic_linker=no
18076 # This must be Linux ELF.
18077 linux*)
18078 version_type=linux
18079 need_lib_prefix=no
18080 need_version=no
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18084 shlibpath_var=LD_LIBRARY_PATH
18085 shlibpath_overrides_runpath=no
18086 # This implies no fast_install, which is unacceptable.
18087 # Some rework will be needed to allow for fast_install
18088 # before this can be enabled.
18089 hardcode_into_libs=yes
18091 # find out which ABI we are using
18092 libsuff=
18093 case "$host_cpu" in
18094 x86_64*|s390x*|powerpc64*)
18095 echo '#line 18095 "configure"' > conftest.$ac_ext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18097 (eval $ac_compile) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; then
18101 case `/usr/bin/file conftest.$ac_objext` in
18102 *64-bit*)
18103 libsuff=64
18104 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18106 esac
18108 rm -rf conftest*
18110 esac
18112 # Append ld.so.conf contents to the search path
18113 if test -f /etc/ld.so.conf; then
18114 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18115 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18118 # We used to test for /lib/ld.so.1 and disable shared libraries on
18119 # powerpc, because MkLinux only supported shared libraries with the
18120 # GNU dynamic linker. Since this was broken with cross compilers,
18121 # most powerpc-linux boxes support dynamic linking these days and
18122 # people can always --disable-shared, the test was removed, and we
18123 # assume the GNU/Linux dynamic linker is in use.
18124 dynamic_linker='GNU/Linux ld.so'
18127 knetbsd*-gnu)
18128 version_type=linux
18129 need_lib_prefix=no
18130 need_version=no
18131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18132 soname_spec='${libname}${release}${shared_ext}$major'
18133 shlibpath_var=LD_LIBRARY_PATH
18134 shlibpath_overrides_runpath=no
18135 hardcode_into_libs=yes
18136 dynamic_linker='GNU ld.so'
18139 netbsd*)
18140 version_type=sunos
18141 need_lib_prefix=no
18142 need_version=no
18143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18146 dynamic_linker='NetBSD (a.out) ld.so'
18147 else
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 dynamic_linker='NetBSD ld.elf_so'
18152 shlibpath_var=LD_LIBRARY_PATH
18153 shlibpath_overrides_runpath=yes
18154 hardcode_into_libs=yes
18157 newsos6)
18158 version_type=linux
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160 shlibpath_var=LD_LIBRARY_PATH
18161 shlibpath_overrides_runpath=yes
18164 nto-qnx*)
18165 version_type=linux
18166 need_lib_prefix=no
18167 need_version=no
18168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18169 soname_spec='${libname}${release}${shared_ext}$major'
18170 shlibpath_var=LD_LIBRARY_PATH
18171 shlibpath_overrides_runpath=yes
18174 openbsd*)
18175 version_type=sunos
18176 need_lib_prefix=no
18177 need_version=no
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18180 shlibpath_var=LD_LIBRARY_PATH
18181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18182 case $host_os in
18183 openbsd2.[89] | openbsd2.[89].*)
18184 shlibpath_overrides_runpath=no
18187 shlibpath_overrides_runpath=yes
18189 esac
18190 else
18191 shlibpath_overrides_runpath=yes
18195 os2*)
18196 libname_spec='$name'
18197 shrext_cmds=".dll"
18198 need_lib_prefix=no
18199 library_names_spec='$libname${shared_ext} $libname.a'
18200 dynamic_linker='OS/2 ld.exe'
18201 shlibpath_var=LIBPATH
18204 osf3* | osf4* | osf5*)
18205 version_type=osf
18206 need_lib_prefix=no
18207 need_version=no
18208 soname_spec='${libname}${release}${shared_ext}$major'
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210 shlibpath_var=LD_LIBRARY_PATH
18211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18215 sco3.2v5*)
18216 version_type=osf
18217 soname_spec='${libname}${release}${shared_ext}$major'
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 shlibpath_var=LD_LIBRARY_PATH
18222 solaris*)
18223 version_type=linux
18224 need_lib_prefix=no
18225 need_version=no
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 soname_spec='${libname}${release}${shared_ext}$major'
18228 shlibpath_var=LD_LIBRARY_PATH
18229 shlibpath_overrides_runpath=yes
18230 hardcode_into_libs=yes
18231 # ldd complains unless libraries are executable
18232 postinstall_cmds='chmod +x $lib'
18235 sunos4*)
18236 version_type=sunos
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18239 shlibpath_var=LD_LIBRARY_PATH
18240 shlibpath_overrides_runpath=yes
18241 if test "$with_gnu_ld" = yes; then
18242 need_lib_prefix=no
18244 need_version=yes
18247 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18248 version_type=linux
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 case $host_vendor in
18253 sni)
18254 shlibpath_overrides_runpath=no
18255 need_lib_prefix=no
18256 export_dynamic_flag_spec='${wl}-Blargedynsym'
18257 runpath_var=LD_RUN_PATH
18259 siemens)
18260 need_lib_prefix=no
18262 motorola)
18263 need_lib_prefix=no
18264 need_version=no
18265 shlibpath_overrides_runpath=no
18266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18268 esac
18271 sysv4*MP*)
18272 if test -d /usr/nec ;then
18273 version_type=linux
18274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18275 soname_spec='$libname${shared_ext}.$major'
18276 shlibpath_var=LD_LIBRARY_PATH
18280 uts4*)
18281 version_type=linux
18282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18283 soname_spec='${libname}${release}${shared_ext}$major'
18284 shlibpath_var=LD_LIBRARY_PATH
18288 dynamic_linker=no
18290 esac
18291 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18292 echo "${ECHO_T}$dynamic_linker" >&6
18293 test "$dynamic_linker" = no && can_build_shared=no
18295 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18296 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18297 hardcode_action_GCJ=
18298 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18299 test -n "$runpath_var_GCJ" || \
18300 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18302 # We can hardcode non-existant directories.
18303 if test "$hardcode_direct_GCJ" != no &&
18304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18305 # have to relink, otherwise we might link with an installed library
18306 # when we should be linking with a yet-to-be-installed one
18307 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18308 test "$hardcode_minus_L_GCJ" != no; then
18309 # Linking always hardcodes the temporary library directory.
18310 hardcode_action_GCJ=relink
18311 else
18312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18313 hardcode_action_GCJ=immediate
18315 else
18316 # We cannot hardcode anything, or else we can only hardcode existing
18317 # directories.
18318 hardcode_action_GCJ=unsupported
18320 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18321 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18323 if test "$hardcode_action_GCJ" = relink; then
18324 # Fast installation is not supported
18325 enable_fast_install=no
18326 elif test "$shlibpath_overrides_runpath" = yes ||
18327 test "$enable_shared" = no; then
18328 # Fast installation is not necessary
18329 enable_fast_install=needless
18332 striplib=
18333 old_striplib=
18334 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18335 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18336 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18337 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18338 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18339 echo "$as_me:$LINENO: result: yes" >&5
18340 echo "${ECHO_T}yes" >&6
18341 else
18342 # FIXME - insert some real tests, host_os isn't really good enough
18343 case $host_os in
18344 darwin*)
18345 if test -n "$STRIP" ; then
18346 striplib="$STRIP -x"
18347 echo "$as_me:$LINENO: result: yes" >&5
18348 echo "${ECHO_T}yes" >&6
18349 else
18350 echo "$as_me:$LINENO: result: no" >&5
18351 echo "${ECHO_T}no" >&6
18355 echo "$as_me:$LINENO: result: no" >&5
18356 echo "${ECHO_T}no" >&6
18358 esac
18361 if test "x$enable_dlopen" != xyes; then
18362 enable_dlopen=unknown
18363 enable_dlopen_self=unknown
18364 enable_dlopen_self_static=unknown
18365 else
18366 lt_cv_dlopen=no
18367 lt_cv_dlopen_libs=
18369 case $host_os in
18370 beos*)
18371 lt_cv_dlopen="load_add_on"
18372 lt_cv_dlopen_libs=
18373 lt_cv_dlopen_self=yes
18376 mingw* | pw32*)
18377 lt_cv_dlopen="LoadLibrary"
18378 lt_cv_dlopen_libs=
18381 cygwin*)
18382 lt_cv_dlopen="dlopen"
18383 lt_cv_dlopen_libs=
18386 darwin*)
18387 # if libdl is installed we need to link against it
18388 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18389 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18390 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393 ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-ldl $LIBS"
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any gcc2 internal prototype to avoid an error. */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 /* We use char because int might match the return type of a gcc2
18407 builtin and then its argument prototype would still apply. */
18408 char dlopen ();
18410 main ()
18412 dlopen ();
18414 return 0;
18416 _ACEOF
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>conftest.er1
18420 ac_status=$?
18421 grep -v '^ *+' conftest.er1 >conftest.err
18422 rm -f conftest.er1
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
18426 { ac_try='test -z "$ac_c_werror_flag"
18427 || test ! -s conftest.err'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest$ac_exeext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_lib_dl_dlopen=yes
18440 else
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_cv_lib_dl_dlopen=no
18446 rm -f conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
18448 LIBS=$ac_check_lib_save_LIBS
18450 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18452 if test $ac_cv_lib_dl_dlopen = yes; then
18453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18454 else
18456 lt_cv_dlopen="dyld"
18457 lt_cv_dlopen_libs=
18458 lt_cv_dlopen_self=yes
18465 echo "$as_me:$LINENO: checking for shl_load" >&5
18466 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18467 if test "${ac_cv_func_shl_load+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470 cat >conftest.$ac_ext <<_ACEOF
18471 /* confdefs.h. */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18476 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18478 #define shl_load innocuous_shl_load
18480 /* System header to define __stub macros and hopefully few prototypes,
18481 which can conflict with char shl_load (); below.
18482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18483 <limits.h> exists even on freestanding compilers. */
18485 #ifdef __STDC__
18486 # include <limits.h>
18487 #else
18488 # include <assert.h>
18489 #endif
18491 #undef shl_load
18493 /* Override any gcc2 internal prototype to avoid an error. */
18494 #ifdef __cplusplus
18495 extern "C"
18497 #endif
18498 /* We use char because int might match the return type of a gcc2
18499 builtin and then its argument prototype would still apply. */
18500 char shl_load ();
18501 /* The GNU C library defines this for functions which it implements
18502 to always fail with ENOSYS. Some functions are actually named
18503 something starting with __ and the normal name is an alias. */
18504 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18505 choke me
18506 #else
18507 char (*f) () = shl_load;
18508 #endif
18509 #ifdef __cplusplus
18511 #endif
18514 main ()
18516 return f != shl_load;
18518 return 0;
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_func_shl_load=yes
18544 else
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 ac_cv_func_shl_load=no
18550 rm -f conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18554 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18555 if test $ac_cv_func_shl_load = yes; then
18556 lt_cv_dlopen="shl_load"
18557 else
18558 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563 ac_check_lib_save_LIBS=$LIBS
18564 LIBS="-ldld $LIBS"
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18572 /* Override any gcc2 internal prototype to avoid an error. */
18573 #ifdef __cplusplus
18574 extern "C"
18575 #endif
18576 /* We use char because int might match the return type of a gcc2
18577 builtin and then its argument prototype would still apply. */
18578 char shl_load ();
18580 main ()
18582 shl_load ();
18584 return 0;
18586 _ACEOF
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest$ac_exeext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_lib_dld_shl_load=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_lib_dld_shl_load=no
18616 rm -f conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18620 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18622 if test $ac_cv_lib_dld_shl_load = yes; then
18623 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18624 else
18625 echo "$as_me:$LINENO: checking for dlopen" >&5
18626 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18627 if test "${ac_cv_func_dlopen+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18630 cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h. */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18638 #define dlopen innocuous_dlopen
18640 /* System header to define __stub macros and hopefully few prototypes,
18641 which can conflict with char dlopen (); below.
18642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18643 <limits.h> exists even on freestanding compilers. */
18645 #ifdef __STDC__
18646 # include <limits.h>
18647 #else
18648 # include <assert.h>
18649 #endif
18651 #undef dlopen
18653 /* Override any gcc2 internal prototype to avoid an error. */
18654 #ifdef __cplusplus
18655 extern "C"
18657 #endif
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18660 char dlopen ();
18661 /* The GNU C library defines this for functions which it implements
18662 to always fail with ENOSYS. Some functions are actually named
18663 something starting with __ and the normal name is an alias. */
18664 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18665 choke me
18666 #else
18667 char (*f) () = dlopen;
18668 #endif
18669 #ifdef __cplusplus
18671 #endif
18674 main ()
18676 return f != dlopen;
18678 return 0;
18680 _ACEOF
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18683 (eval $ac_link) 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest$ac_exeext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_cv_func_dlopen=yes
18704 else
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 ac_cv_func_dlopen=no
18710 rm -f conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18713 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18714 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18715 if test $ac_cv_func_dlopen = yes; then
18716 lt_cv_dlopen="dlopen"
18717 else
18718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18722 else
18723 ac_check_lib_save_LIBS=$LIBS
18724 LIBS="-ldl $LIBS"
18725 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h. */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18732 /* Override any gcc2 internal prototype to avoid an error. */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 /* We use char because int might match the return type of a gcc2
18737 builtin and then its argument prototype would still apply. */
18738 char dlopen ();
18740 main ()
18742 dlopen ();
18744 return 0;
18746 _ACEOF
18747 rm -f conftest.$ac_objext conftest$ac_exeext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18749 (eval $ac_link) 2>conftest.er1
18750 ac_status=$?
18751 grep -v '^ *+' conftest.er1 >conftest.err
18752 rm -f conftest.er1
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } &&
18756 { ac_try='test -z "$ac_c_werror_flag"
18757 || test ! -s conftest.err'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest$ac_exeext'
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_cv_lib_dl_dlopen=yes
18770 else
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774 ac_cv_lib_dl_dlopen=no
18776 rm -f conftest.err conftest.$ac_objext \
18777 conftest$ac_exeext conftest.$ac_ext
18778 LIBS=$ac_check_lib_save_LIBS
18780 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18781 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18782 if test $ac_cv_lib_dl_dlopen = yes; then
18783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18784 else
18785 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18786 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18787 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790 ac_check_lib_save_LIBS=$LIBS
18791 LIBS="-lsvld $LIBS"
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h. */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18799 /* Override any gcc2 internal prototype to avoid an error. */
18800 #ifdef __cplusplus
18801 extern "C"
18802 #endif
18803 /* We use char because int might match the return type of a gcc2
18804 builtin and then its argument prototype would still apply. */
18805 char dlopen ();
18807 main ()
18809 dlopen ();
18811 return 0;
18813 _ACEOF
18814 rm -f conftest.$ac_objext conftest$ac_exeext
18815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816 (eval $ac_link) 2>conftest.er1
18817 ac_status=$?
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } &&
18823 { ac_try='test -z "$ac_c_werror_flag"
18824 || test ! -s conftest.err'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } &&
18830 { ac_try='test -s conftest$ac_exeext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_lib_svld_dlopen=yes
18837 else
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18841 ac_cv_lib_svld_dlopen=no
18843 rm -f conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18845 LIBS=$ac_check_lib_save_LIBS
18847 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18848 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18849 if test $ac_cv_lib_svld_dlopen = yes; then
18850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18851 else
18852 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18853 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18854 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 else
18857 ac_check_lib_save_LIBS=$LIBS
18858 LIBS="-ldld $LIBS"
18859 cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h. */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18866 /* Override any gcc2 internal prototype to avoid an error. */
18867 #ifdef __cplusplus
18868 extern "C"
18869 #endif
18870 /* We use char because int might match the return type of a gcc2
18871 builtin and then its argument prototype would still apply. */
18872 char dld_link ();
18874 main ()
18876 dld_link ();
18878 return 0;
18880 _ACEOF
18881 rm -f conftest.$ac_objext conftest$ac_exeext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883 (eval $ac_link) 2>conftest.er1
18884 ac_status=$?
18885 grep -v '^ *+' conftest.er1 >conftest.err
18886 rm -f conftest.er1
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } &&
18890 { ac_try='test -z "$ac_c_werror_flag"
18891 || test ! -s conftest.err'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; } &&
18897 { ac_try='test -s conftest$ac_exeext'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 ac_cv_lib_dld_dld_link=yes
18904 else
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_cv_lib_dld_dld_link=no
18910 rm -f conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18914 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18915 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18916 if test $ac_cv_lib_dld_dld_link = yes; then
18917 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18936 esac
18938 if test "x$lt_cv_dlopen" != xno; then
18939 enable_dlopen=yes
18940 else
18941 enable_dlopen=no
18944 case $lt_cv_dlopen in
18945 dlopen)
18946 save_CPPFLAGS="$CPPFLAGS"
18947 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18949 save_LDFLAGS="$LDFLAGS"
18950 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18952 save_LIBS="$LIBS"
18953 LIBS="$lt_cv_dlopen_libs $LIBS"
18955 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18956 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18957 if test "${lt_cv_dlopen_self+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 else
18960 if test "$cross_compiling" = yes; then :
18961 lt_cv_dlopen_self=cross
18962 else
18963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18964 lt_status=$lt_dlunknown
18965 cat > conftest.$ac_ext <<EOF
18966 #line 18966 "configure"
18967 #include "confdefs.h"
18969 #if HAVE_DLFCN_H
18970 #include <dlfcn.h>
18971 #endif
18973 #include <stdio.h>
18975 #ifdef RTLD_GLOBAL
18976 # define LT_DLGLOBAL RTLD_GLOBAL
18977 #else
18978 # ifdef DL_GLOBAL
18979 # define LT_DLGLOBAL DL_GLOBAL
18980 # else
18981 # define LT_DLGLOBAL 0
18982 # endif
18983 #endif
18985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18986 find out it does not work in some platform. */
18987 #ifndef LT_DLLAZY_OR_NOW
18988 # ifdef RTLD_LAZY
18989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18990 # else
18991 # ifdef DL_LAZY
18992 # define LT_DLLAZY_OR_NOW DL_LAZY
18993 # else
18994 # ifdef RTLD_NOW
18995 # define LT_DLLAZY_OR_NOW RTLD_NOW
18996 # else
18997 # ifdef DL_NOW
18998 # define LT_DLLAZY_OR_NOW DL_NOW
18999 # else
19000 # define LT_DLLAZY_OR_NOW 0
19001 # endif
19002 # endif
19003 # endif
19004 # endif
19005 #endif
19007 #ifdef __cplusplus
19008 extern "C" void exit (int);
19009 #endif
19011 void fnord() { int i=42;}
19012 int main ()
19014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19015 int status = $lt_dlunknown;
19017 if (self)
19019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19021 /* dlclose (self); */
19024 exit (status);
19027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19028 (eval $ac_link) 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19032 (./conftest; exit; ) 2>/dev/null
19033 lt_status=$?
19034 case x$lt_status in
19035 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19036 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19037 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19038 esac
19039 else :
19040 # compilation failed
19041 lt_cv_dlopen_self=no
19044 rm -fr conftest*
19048 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19049 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19051 if test "x$lt_cv_dlopen_self" = xyes; then
19052 LDFLAGS="$LDFLAGS $link_static_flag"
19053 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19054 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19055 if test "${lt_cv_dlopen_self_static+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058 if test "$cross_compiling" = yes; then :
19059 lt_cv_dlopen_self_static=cross
19060 else
19061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19062 lt_status=$lt_dlunknown
19063 cat > conftest.$ac_ext <<EOF
19064 #line 19064 "configure"
19065 #include "confdefs.h"
19067 #if HAVE_DLFCN_H
19068 #include <dlfcn.h>
19069 #endif
19071 #include <stdio.h>
19073 #ifdef RTLD_GLOBAL
19074 # define LT_DLGLOBAL RTLD_GLOBAL
19075 #else
19076 # ifdef DL_GLOBAL
19077 # define LT_DLGLOBAL DL_GLOBAL
19078 # else
19079 # define LT_DLGLOBAL 0
19080 # endif
19081 #endif
19083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19084 find out it does not work in some platform. */
19085 #ifndef LT_DLLAZY_OR_NOW
19086 # ifdef RTLD_LAZY
19087 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19088 # else
19089 # ifdef DL_LAZY
19090 # define LT_DLLAZY_OR_NOW DL_LAZY
19091 # else
19092 # ifdef RTLD_NOW
19093 # define LT_DLLAZY_OR_NOW RTLD_NOW
19094 # else
19095 # ifdef DL_NOW
19096 # define LT_DLLAZY_OR_NOW DL_NOW
19097 # else
19098 # define LT_DLLAZY_OR_NOW 0
19099 # endif
19100 # endif
19101 # endif
19102 # endif
19103 #endif
19105 #ifdef __cplusplus
19106 extern "C" void exit (int);
19107 #endif
19109 void fnord() { int i=42;}
19110 int main ()
19112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19113 int status = $lt_dlunknown;
19115 if (self)
19117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19118 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19119 /* dlclose (self); */
19122 exit (status);
19125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126 (eval $ac_link) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19130 (./conftest; exit; ) 2>/dev/null
19131 lt_status=$?
19132 case x$lt_status in
19133 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19134 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19135 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19136 esac
19137 else :
19138 # compilation failed
19139 lt_cv_dlopen_self_static=no
19142 rm -fr conftest*
19146 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19147 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19150 CPPFLAGS="$save_CPPFLAGS"
19151 LDFLAGS="$save_LDFLAGS"
19152 LIBS="$save_LIBS"
19154 esac
19156 case $lt_cv_dlopen_self in
19157 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19158 *) enable_dlopen_self=unknown ;;
19159 esac
19161 case $lt_cv_dlopen_self_static in
19162 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19163 *) enable_dlopen_self_static=unknown ;;
19164 esac
19168 # The else clause should only fire when bootstrapping the
19169 # libtool distribution, otherwise you forgot to ship ltmain.sh
19170 # with your package, and you will get complaints that there are
19171 # no rules to generate ltmain.sh.
19172 if test -f "$ltmain"; then
19173 # See if we are running on zsh, and set the options which allow our commands through
19174 # without removal of \ escapes.
19175 if test -n "${ZSH_VERSION+set}" ; then
19176 setopt NO_GLOB_SUBST
19178 # Now quote all the things that may contain metacharacters while being
19179 # careful not to overquote the AC_SUBSTed values. We take copies of the
19180 # variables and quote the copies for generation of the libtool script.
19181 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19182 SED SHELL STRIP \
19183 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19184 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19185 deplibs_check_method reload_flag reload_cmds need_locks \
19186 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19187 lt_cv_sys_global_symbol_to_c_name_address \
19188 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19189 old_postinstall_cmds old_postuninstall_cmds \
19190 compiler_GCJ \
19191 CC_GCJ \
19192 LD_GCJ \
19193 lt_prog_compiler_wl_GCJ \
19194 lt_prog_compiler_pic_GCJ \
19195 lt_prog_compiler_static_GCJ \
19196 lt_prog_compiler_no_builtin_flag_GCJ \
19197 export_dynamic_flag_spec_GCJ \
19198 thread_safe_flag_spec_GCJ \
19199 whole_archive_flag_spec_GCJ \
19200 enable_shared_with_static_runtimes_GCJ \
19201 old_archive_cmds_GCJ \
19202 old_archive_from_new_cmds_GCJ \
19203 predep_objects_GCJ \
19204 postdep_objects_GCJ \
19205 predeps_GCJ \
19206 postdeps_GCJ \
19207 compiler_lib_search_path_GCJ \
19208 archive_cmds_GCJ \
19209 archive_expsym_cmds_GCJ \
19210 postinstall_cmds_GCJ \
19211 postuninstall_cmds_GCJ \
19212 old_archive_from_expsyms_cmds_GCJ \
19213 allow_undefined_flag_GCJ \
19214 no_undefined_flag_GCJ \
19215 export_symbols_cmds_GCJ \
19216 hardcode_libdir_flag_spec_GCJ \
19217 hardcode_libdir_flag_spec_ld_GCJ \
19218 hardcode_libdir_separator_GCJ \
19219 hardcode_automatic_GCJ \
19220 module_cmds_GCJ \
19221 module_expsym_cmds_GCJ \
19222 lt_cv_prog_compiler_c_o_GCJ \
19223 exclude_expsyms_GCJ \
19224 include_expsyms_GCJ; do
19226 case $var in
19227 old_archive_cmds_GCJ | \
19228 old_archive_from_new_cmds_GCJ | \
19229 archive_cmds_GCJ | \
19230 archive_expsym_cmds_GCJ | \
19231 module_cmds_GCJ | \
19232 module_expsym_cmds_GCJ | \
19233 old_archive_from_expsyms_cmds_GCJ | \
19234 export_symbols_cmds_GCJ | \
19235 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19236 postinstall_cmds | postuninstall_cmds | \
19237 old_postinstall_cmds | old_postuninstall_cmds | \
19238 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19239 # Double-quote double-evaled strings.
19240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19245 esac
19246 done
19248 case $lt_echo in
19249 *'\$0 --fallback-echo"')
19250 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19252 esac
19254 cfgfile="$ofile"
19256 cat <<__EOF__ >> "$cfgfile"
19257 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19261 # Shell to use when invoking shell scripts.
19262 SHELL=$lt_SHELL
19264 # Whether or not to build shared libraries.
19265 build_libtool_libs=$enable_shared
19267 # Whether or not to build static libraries.
19268 build_old_libs=$enable_static
19270 # Whether or not to add -lc for building shared libraries.
19271 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19273 # Whether or not to disallow shared libs when runtime libs are static
19274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19276 # Whether or not to optimize for fast installation.
19277 fast_install=$enable_fast_install
19279 # The host system.
19280 host_alias=$host_alias
19281 host=$host
19282 host_os=$host_os
19284 # The build system.
19285 build_alias=$build_alias
19286 build=$build
19287 build_os=$build_os
19289 # An echo program that does not interpret backslashes.
19290 echo=$lt_echo
19292 # The archiver.
19293 AR=$lt_AR
19294 AR_FLAGS=$lt_AR_FLAGS
19296 # A C compiler.
19297 LTCC=$lt_LTCC
19299 # A language-specific compiler.
19300 CC=$lt_compiler_GCJ
19302 # Is the compiler the GNU C compiler?
19303 with_gcc=$GCC_GCJ
19305 # An ERE matcher.
19306 EGREP=$lt_EGREP
19308 # The linker used to build libraries.
19309 LD=$lt_LD_GCJ
19311 # Whether we need hard or soft links.
19312 LN_S=$lt_LN_S
19314 # A BSD-compatible nm program.
19315 NM=$lt_NM
19317 # A symbol stripping program
19318 STRIP=$lt_STRIP
19320 # Used to examine libraries when file_magic_cmd begins "file"
19321 MAGIC_CMD=$MAGIC_CMD
19323 # Used on cygwin: DLL creation program.
19324 DLLTOOL="$DLLTOOL"
19326 # Used on cygwin: object dumper.
19327 OBJDUMP="$OBJDUMP"
19329 # Used on cygwin: assembler.
19330 AS="$AS"
19332 # The name of the directory that contains temporary libtool files.
19333 objdir=$objdir
19335 # How to create reloadable object files.
19336 reload_flag=$lt_reload_flag
19337 reload_cmds=$lt_reload_cmds
19339 # How to pass a linker flag through the compiler.
19340 wl=$lt_lt_prog_compiler_wl_GCJ
19342 # Object file suffix (normally "o").
19343 objext="$ac_objext"
19345 # Old archive suffix (normally "a").
19346 libext="$libext"
19348 # Shared library suffix (normally ".so").
19349 shrext_cmds='$shrext_cmds'
19351 # Executable file suffix (normally "").
19352 exeext="$exeext"
19354 # Additional compiler flags for building library objects.
19355 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19356 pic_mode=$pic_mode
19358 # What is the maximum length of a command?
19359 max_cmd_len=$lt_cv_sys_max_cmd_len
19361 # Does compiler simultaneously support -c and -o options?
19362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19364 # Must we lock files when doing compilation?
19365 need_locks=$lt_need_locks
19367 # Do we need the lib prefix for modules?
19368 need_lib_prefix=$need_lib_prefix
19370 # Do we need a version for libraries?
19371 need_version=$need_version
19373 # Whether dlopen is supported.
19374 dlopen_support=$enable_dlopen
19376 # Whether dlopen of programs is supported.
19377 dlopen_self=$enable_dlopen_self
19379 # Whether dlopen of statically linked programs is supported.
19380 dlopen_self_static=$enable_dlopen_self_static
19382 # Compiler flag to prevent dynamic linking.
19383 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19385 # Compiler flag to turn off builtin functions.
19386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19388 # Compiler flag to allow reflexive dlopens.
19389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19391 # Compiler flag to generate shared objects directly from archives.
19392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19394 # Compiler flag to generate thread-safe objects.
19395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19397 # Library versioning type.
19398 version_type=$version_type
19400 # Format of library name prefix.
19401 libname_spec=$lt_libname_spec
19403 # List of archive names. First name is the real one, the rest are links.
19404 # The last name is the one that the linker finds with -lNAME.
19405 library_names_spec=$lt_library_names_spec
19407 # The coded name of the library, if different from the real name.
19408 soname_spec=$lt_soname_spec
19410 # Commands used to build and install an old-style archive.
19411 RANLIB=$lt_RANLIB
19412 old_archive_cmds=$lt_old_archive_cmds_GCJ
19413 old_postinstall_cmds=$lt_old_postinstall_cmds
19414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19416 # Create an old-style archive from a shared archive.
19417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19419 # Create a temporary old-style archive to link instead of a shared archive.
19420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19422 # Commands used to build and install a shared archive.
19423 archive_cmds=$lt_archive_cmds_GCJ
19424 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19425 postinstall_cmds=$lt_postinstall_cmds
19426 postuninstall_cmds=$lt_postuninstall_cmds
19428 # Commands used to build a loadable module (assumed same as above if empty)
19429 module_cmds=$lt_module_cmds_GCJ
19430 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19432 # Commands to strip libraries.
19433 old_striplib=$lt_old_striplib
19434 striplib=$lt_striplib
19436 # Dependencies to place before the objects being linked to create a
19437 # shared library.
19438 predep_objects=$lt_predep_objects_GCJ
19440 # Dependencies to place after the objects being linked to create a
19441 # shared library.
19442 postdep_objects=$lt_postdep_objects_GCJ
19444 # Dependencies to place before the objects being linked to create a
19445 # shared library.
19446 predeps=$lt_predeps_GCJ
19448 # Dependencies to place after the objects being linked to create a
19449 # shared library.
19450 postdeps=$lt_postdeps_GCJ
19452 # The library search path used internally by the compiler when linking
19453 # a shared library.
19454 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19456 # Method to check whether dependent libraries are shared objects.
19457 deplibs_check_method=$lt_deplibs_check_method
19459 # Command to use when deplibs_check_method == file_magic.
19460 file_magic_cmd=$lt_file_magic_cmd
19462 # Flag that allows shared libraries with undefined symbols to be built.
19463 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19465 # Flag that forces no undefined symbols.
19466 no_undefined_flag=$lt_no_undefined_flag_GCJ
19468 # Commands used to finish a libtool library installation in a directory.
19469 finish_cmds=$lt_finish_cmds
19471 # Same as above, but a single script fragment to be evaled but not shown.
19472 finish_eval=$lt_finish_eval
19474 # Take the output of nm and produce a listing of raw symbols and C names.
19475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19477 # Transform the output of nm in a proper C declaration
19478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19480 # Transform the output of nm in a C name address pair
19481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19483 # This is the shared library runtime path variable.
19484 runpath_var=$runpath_var
19486 # This is the shared library path variable.
19487 shlibpath_var=$shlibpath_var
19489 # Is shlibpath searched before the hard-coded library search path?
19490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19492 # How to hardcode a shared library path into an executable.
19493 hardcode_action=$hardcode_action_GCJ
19495 # Whether we should hardcode library paths into libraries.
19496 hardcode_into_libs=$hardcode_into_libs
19498 # Flag to hardcode \$libdir into a binary during linking.
19499 # This must work even if \$libdir does not exist.
19500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19502 # If ld is used when linking, flag to hardcode \$libdir into
19503 # a binary during linking. This must work even if \$libdir does
19504 # not exist.
19505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19507 # Whether we need a single -rpath flag with a separated argument.
19508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19511 # resulting binary.
19512 hardcode_direct=$hardcode_direct_GCJ
19514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19515 # resulting binary.
19516 hardcode_minus_L=$hardcode_minus_L_GCJ
19518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19519 # the resulting binary.
19520 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19522 # Set to yes if building a shared library automatically hardcodes DIR into the library
19523 # and all subsequent libraries and executables linked against it.
19524 hardcode_automatic=$hardcode_automatic_GCJ
19526 # Variables whose values should be saved in libtool wrapper scripts and
19527 # restored at relink time.
19528 variables_saved_for_relink="$variables_saved_for_relink"
19530 # Whether libtool must link a program against all its dependency libraries.
19531 link_all_deplibs=$link_all_deplibs_GCJ
19533 # Compile-time system search path for libraries
19534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19536 # Run-time system search path for libraries
19537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19539 # Fix the shell variable \$srcfile for the compiler.
19540 fix_srcfile_path="$fix_srcfile_path_GCJ"
19542 # Set to yes if exported symbols are required.
19543 always_export_symbols=$always_export_symbols_GCJ
19545 # The commands to list exported symbols.
19546 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19548 # The commands to extract the exported symbol list from a shared archive.
19549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19551 # Symbols that should not be listed in the preloaded symbols.
19552 exclude_expsyms=$lt_exclude_expsyms_GCJ
19554 # Symbols that must always be exported.
19555 include_expsyms=$lt_include_expsyms_GCJ
19557 # ### END LIBTOOL TAG CONFIG: $tagname
19559 __EOF__
19562 else
19563 # If there is no Makefile yet, we rely on a make rule to execute
19564 # `config.status --recheck' to rerun these tests and create the
19565 # libtool script then.
19566 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19567 if test -f "$ltmain_in"; then
19568 test -f Makefile && make "$ltmain"
19573 ac_ext=c
19574 ac_cpp='$CPP $CPPFLAGS'
19575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19579 CC="$lt_save_CC"
19581 else
19582 tagname=""
19590 # Source file extension for RC test sources.
19591 ac_ext=rc
19593 # Object file extension for compiled RC test sources.
19594 objext=o
19595 objext_RC=$objext
19597 # Code to be used in simple compile tests
19598 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19600 # Code to be used in simple link tests
19601 lt_simple_link_test_code="$lt_simple_compile_test_code"
19603 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19605 # If no C compiler was specified, use CC.
19606 LTCC=${LTCC-"$CC"}
19608 # Allow CC to be a program name with arguments.
19609 compiler=$CC
19612 # save warnings/boilerplate of simple test code
19613 ac_outfile=conftest.$ac_objext
19614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19616 _lt_compiler_boilerplate=`cat conftest.err`
19617 $rm conftest*
19619 ac_outfile=conftest.$ac_objext
19620 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19622 _lt_linker_boilerplate=`cat conftest.err`
19623 $rm conftest*
19626 # Allow CC to be a program name with arguments.
19627 lt_save_CC="$CC"
19628 CC=${RC-"windres"}
19629 compiler=$CC
19630 compiler_RC=$CC
19631 for cc_temp in $compiler""; do
19632 case $cc_temp in
19633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19635 \-*) ;;
19636 *) break;;
19637 esac
19638 done
19639 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19641 lt_cv_prog_compiler_c_o_RC=yes
19643 # The else clause should only fire when bootstrapping the
19644 # libtool distribution, otherwise you forgot to ship ltmain.sh
19645 # with your package, and you will get complaints that there are
19646 # no rules to generate ltmain.sh.
19647 if test -f "$ltmain"; then
19648 # See if we are running on zsh, and set the options which allow our commands through
19649 # without removal of \ escapes.
19650 if test -n "${ZSH_VERSION+set}" ; then
19651 setopt NO_GLOB_SUBST
19653 # Now quote all the things that may contain metacharacters while being
19654 # careful not to overquote the AC_SUBSTed values. We take copies of the
19655 # variables and quote the copies for generation of the libtool script.
19656 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19657 SED SHELL STRIP \
19658 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19659 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19660 deplibs_check_method reload_flag reload_cmds need_locks \
19661 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19662 lt_cv_sys_global_symbol_to_c_name_address \
19663 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19664 old_postinstall_cmds old_postuninstall_cmds \
19665 compiler_RC \
19666 CC_RC \
19667 LD_RC \
19668 lt_prog_compiler_wl_RC \
19669 lt_prog_compiler_pic_RC \
19670 lt_prog_compiler_static_RC \
19671 lt_prog_compiler_no_builtin_flag_RC \
19672 export_dynamic_flag_spec_RC \
19673 thread_safe_flag_spec_RC \
19674 whole_archive_flag_spec_RC \
19675 enable_shared_with_static_runtimes_RC \
19676 old_archive_cmds_RC \
19677 old_archive_from_new_cmds_RC \
19678 predep_objects_RC \
19679 postdep_objects_RC \
19680 predeps_RC \
19681 postdeps_RC \
19682 compiler_lib_search_path_RC \
19683 archive_cmds_RC \
19684 archive_expsym_cmds_RC \
19685 postinstall_cmds_RC \
19686 postuninstall_cmds_RC \
19687 old_archive_from_expsyms_cmds_RC \
19688 allow_undefined_flag_RC \
19689 no_undefined_flag_RC \
19690 export_symbols_cmds_RC \
19691 hardcode_libdir_flag_spec_RC \
19692 hardcode_libdir_flag_spec_ld_RC \
19693 hardcode_libdir_separator_RC \
19694 hardcode_automatic_RC \
19695 module_cmds_RC \
19696 module_expsym_cmds_RC \
19697 lt_cv_prog_compiler_c_o_RC \
19698 exclude_expsyms_RC \
19699 include_expsyms_RC; do
19701 case $var in
19702 old_archive_cmds_RC | \
19703 old_archive_from_new_cmds_RC | \
19704 archive_cmds_RC | \
19705 archive_expsym_cmds_RC | \
19706 module_cmds_RC | \
19707 module_expsym_cmds_RC | \
19708 old_archive_from_expsyms_cmds_RC | \
19709 export_symbols_cmds_RC | \
19710 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19711 postinstall_cmds | postuninstall_cmds | \
19712 old_postinstall_cmds | old_postuninstall_cmds | \
19713 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19714 # Double-quote double-evaled strings.
19715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19720 esac
19721 done
19723 case $lt_echo in
19724 *'\$0 --fallback-echo"')
19725 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19727 esac
19729 cfgfile="$ofile"
19731 cat <<__EOF__ >> "$cfgfile"
19732 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19736 # Shell to use when invoking shell scripts.
19737 SHELL=$lt_SHELL
19739 # Whether or not to build shared libraries.
19740 build_libtool_libs=$enable_shared
19742 # Whether or not to build static libraries.
19743 build_old_libs=$enable_static
19745 # Whether or not to add -lc for building shared libraries.
19746 build_libtool_need_lc=$archive_cmds_need_lc_RC
19748 # Whether or not to disallow shared libs when runtime libs are static
19749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19751 # Whether or not to optimize for fast installation.
19752 fast_install=$enable_fast_install
19754 # The host system.
19755 host_alias=$host_alias
19756 host=$host
19757 host_os=$host_os
19759 # The build system.
19760 build_alias=$build_alias
19761 build=$build
19762 build_os=$build_os
19764 # An echo program that does not interpret backslashes.
19765 echo=$lt_echo
19767 # The archiver.
19768 AR=$lt_AR
19769 AR_FLAGS=$lt_AR_FLAGS
19771 # A C compiler.
19772 LTCC=$lt_LTCC
19774 # A language-specific compiler.
19775 CC=$lt_compiler_RC
19777 # Is the compiler the GNU C compiler?
19778 with_gcc=$GCC_RC
19780 # An ERE matcher.
19781 EGREP=$lt_EGREP
19783 # The linker used to build libraries.
19784 LD=$lt_LD_RC
19786 # Whether we need hard or soft links.
19787 LN_S=$lt_LN_S
19789 # A BSD-compatible nm program.
19790 NM=$lt_NM
19792 # A symbol stripping program
19793 STRIP=$lt_STRIP
19795 # Used to examine libraries when file_magic_cmd begins "file"
19796 MAGIC_CMD=$MAGIC_CMD
19798 # Used on cygwin: DLL creation program.
19799 DLLTOOL="$DLLTOOL"
19801 # Used on cygwin: object dumper.
19802 OBJDUMP="$OBJDUMP"
19804 # Used on cygwin: assembler.
19805 AS="$AS"
19807 # The name of the directory that contains temporary libtool files.
19808 objdir=$objdir
19810 # How to create reloadable object files.
19811 reload_flag=$lt_reload_flag
19812 reload_cmds=$lt_reload_cmds
19814 # How to pass a linker flag through the compiler.
19815 wl=$lt_lt_prog_compiler_wl_RC
19817 # Object file suffix (normally "o").
19818 objext="$ac_objext"
19820 # Old archive suffix (normally "a").
19821 libext="$libext"
19823 # Shared library suffix (normally ".so").
19824 shrext_cmds='$shrext_cmds'
19826 # Executable file suffix (normally "").
19827 exeext="$exeext"
19829 # Additional compiler flags for building library objects.
19830 pic_flag=$lt_lt_prog_compiler_pic_RC
19831 pic_mode=$pic_mode
19833 # What is the maximum length of a command?
19834 max_cmd_len=$lt_cv_sys_max_cmd_len
19836 # Does compiler simultaneously support -c and -o options?
19837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19839 # Must we lock files when doing compilation?
19840 need_locks=$lt_need_locks
19842 # Do we need the lib prefix for modules?
19843 need_lib_prefix=$need_lib_prefix
19845 # Do we need a version for libraries?
19846 need_version=$need_version
19848 # Whether dlopen is supported.
19849 dlopen_support=$enable_dlopen
19851 # Whether dlopen of programs is supported.
19852 dlopen_self=$enable_dlopen_self
19854 # Whether dlopen of statically linked programs is supported.
19855 dlopen_self_static=$enable_dlopen_self_static
19857 # Compiler flag to prevent dynamic linking.
19858 link_static_flag=$lt_lt_prog_compiler_static_RC
19860 # Compiler flag to turn off builtin functions.
19861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19863 # Compiler flag to allow reflexive dlopens.
19864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19866 # Compiler flag to generate shared objects directly from archives.
19867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19869 # Compiler flag to generate thread-safe objects.
19870 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19872 # Library versioning type.
19873 version_type=$version_type
19875 # Format of library name prefix.
19876 libname_spec=$lt_libname_spec
19878 # List of archive names. First name is the real one, the rest are links.
19879 # The last name is the one that the linker finds with -lNAME.
19880 library_names_spec=$lt_library_names_spec
19882 # The coded name of the library, if different from the real name.
19883 soname_spec=$lt_soname_spec
19885 # Commands used to build and install an old-style archive.
19886 RANLIB=$lt_RANLIB
19887 old_archive_cmds=$lt_old_archive_cmds_RC
19888 old_postinstall_cmds=$lt_old_postinstall_cmds
19889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19891 # Create an old-style archive from a shared archive.
19892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19894 # Create a temporary old-style archive to link instead of a shared archive.
19895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19897 # Commands used to build and install a shared archive.
19898 archive_cmds=$lt_archive_cmds_RC
19899 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19900 postinstall_cmds=$lt_postinstall_cmds
19901 postuninstall_cmds=$lt_postuninstall_cmds
19903 # Commands used to build a loadable module (assumed same as above if empty)
19904 module_cmds=$lt_module_cmds_RC
19905 module_expsym_cmds=$lt_module_expsym_cmds_RC
19907 # Commands to strip libraries.
19908 old_striplib=$lt_old_striplib
19909 striplib=$lt_striplib
19911 # Dependencies to place before the objects being linked to create a
19912 # shared library.
19913 predep_objects=$lt_predep_objects_RC
19915 # Dependencies to place after the objects being linked to create a
19916 # shared library.
19917 postdep_objects=$lt_postdep_objects_RC
19919 # Dependencies to place before the objects being linked to create a
19920 # shared library.
19921 predeps=$lt_predeps_RC
19923 # Dependencies to place after the objects being linked to create a
19924 # shared library.
19925 postdeps=$lt_postdeps_RC
19927 # The library search path used internally by the compiler when linking
19928 # a shared library.
19929 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19931 # Method to check whether dependent libraries are shared objects.
19932 deplibs_check_method=$lt_deplibs_check_method
19934 # Command to use when deplibs_check_method == file_magic.
19935 file_magic_cmd=$lt_file_magic_cmd
19937 # Flag that allows shared libraries with undefined symbols to be built.
19938 allow_undefined_flag=$lt_allow_undefined_flag_RC
19940 # Flag that forces no undefined symbols.
19941 no_undefined_flag=$lt_no_undefined_flag_RC
19943 # Commands used to finish a libtool library installation in a directory.
19944 finish_cmds=$lt_finish_cmds
19946 # Same as above, but a single script fragment to be evaled but not shown.
19947 finish_eval=$lt_finish_eval
19949 # Take the output of nm and produce a listing of raw symbols and C names.
19950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19952 # Transform the output of nm in a proper C declaration
19953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19955 # Transform the output of nm in a C name address pair
19956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19958 # This is the shared library runtime path variable.
19959 runpath_var=$runpath_var
19961 # This is the shared library path variable.
19962 shlibpath_var=$shlibpath_var
19964 # Is shlibpath searched before the hard-coded library search path?
19965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19967 # How to hardcode a shared library path into an executable.
19968 hardcode_action=$hardcode_action_RC
19970 # Whether we should hardcode library paths into libraries.
19971 hardcode_into_libs=$hardcode_into_libs
19973 # Flag to hardcode \$libdir into a binary during linking.
19974 # This must work even if \$libdir does not exist.
19975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19977 # If ld is used when linking, flag to hardcode \$libdir into
19978 # a binary during linking. This must work even if \$libdir does
19979 # not exist.
19980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19982 # Whether we need a single -rpath flag with a separated argument.
19983 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19986 # resulting binary.
19987 hardcode_direct=$hardcode_direct_RC
19989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19990 # resulting binary.
19991 hardcode_minus_L=$hardcode_minus_L_RC
19993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19994 # the resulting binary.
19995 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19997 # Set to yes if building a shared library automatically hardcodes DIR into the library
19998 # and all subsequent libraries and executables linked against it.
19999 hardcode_automatic=$hardcode_automatic_RC
20001 # Variables whose values should be saved in libtool wrapper scripts and
20002 # restored at relink time.
20003 variables_saved_for_relink="$variables_saved_for_relink"
20005 # Whether libtool must link a program against all its dependency libraries.
20006 link_all_deplibs=$link_all_deplibs_RC
20008 # Compile-time system search path for libraries
20009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20011 # Run-time system search path for libraries
20012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20014 # Fix the shell variable \$srcfile for the compiler.
20015 fix_srcfile_path="$fix_srcfile_path_RC"
20017 # Set to yes if exported symbols are required.
20018 always_export_symbols=$always_export_symbols_RC
20020 # The commands to list exported symbols.
20021 export_symbols_cmds=$lt_export_symbols_cmds_RC
20023 # The commands to extract the exported symbol list from a shared archive.
20024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20026 # Symbols that should not be listed in the preloaded symbols.
20027 exclude_expsyms=$lt_exclude_expsyms_RC
20029 # Symbols that must always be exported.
20030 include_expsyms=$lt_include_expsyms_RC
20032 # ### END LIBTOOL TAG CONFIG: $tagname
20034 __EOF__
20037 else
20038 # If there is no Makefile yet, we rely on a make rule to execute
20039 # `config.status --recheck' to rerun these tests and create the
20040 # libtool script then.
20041 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20042 if test -f "$ltmain_in"; then
20043 test -f Makefile && make "$ltmain"
20048 ac_ext=c
20049 ac_cpp='$CPP $CPPFLAGS'
20050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20054 CC="$lt_save_CC"
20059 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20060 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20061 { (exit 1); exit 1; }; }
20063 esac
20065 # Append the new tag name to the list of available tags.
20066 if test -n "$tagname" ; then
20067 available_tags="$available_tags $tagname"
20070 done
20071 IFS="$lt_save_ifs"
20073 # Now substitute the updated list of available tags.
20074 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20075 mv "${ofile}T" "$ofile"
20076 chmod +x "$ofile"
20077 else
20078 rm -f "${ofile}T"
20079 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20080 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20081 { (exit 1); exit 1; }; }
20087 # This can be used to rebuild libtool when needed
20088 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20090 # Always use our own libtool.
20091 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20093 # Prevent multiple expansion
20121 ac_header_dirent=no
20122 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20123 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20124 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20125 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129 cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h. */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #include <sys/types.h>
20136 #include <$ac_hdr>
20139 main ()
20141 if ((DIR *) 0)
20142 return 0;
20144 return 0;
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } &&
20163 { ac_try='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 eval "$as_ac_Header=yes"
20170 else
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 eval "$as_ac_Header=no"
20176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20181 cat >>confdefs.h <<_ACEOF
20182 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20183 _ACEOF
20185 ac_header_dirent=$ac_hdr; break
20188 done
20189 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20190 if test $ac_header_dirent = dirent.h; then
20191 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20193 if test "${ac_cv_search_opendir+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196 ac_func_search_save_LIBS=$LIBS
20197 ac_cv_search_opendir=no
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h. */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20205 /* Override any gcc2 internal prototype to avoid an error. */
20206 #ifdef __cplusplus
20207 extern "C"
20208 #endif
20209 /* We use char because int might match the return type of a gcc2
20210 builtin and then its argument prototype would still apply. */
20211 char opendir ();
20213 main ()
20215 opendir ();
20217 return 0;
20219 _ACEOF
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20222 (eval $ac_link) 2>conftest.er1
20223 ac_status=$?
20224 grep -v '^ *+' conftest.er1 >conftest.err
20225 rm -f conftest.er1
20226 cat conftest.err >&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
20229 { ac_try='test -z "$ac_c_werror_flag"
20230 || test ! -s conftest.err'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; } &&
20236 { ac_try='test -s conftest$ac_exeext'
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20239 ac_status=$?
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; }; then
20242 ac_cv_search_opendir="none required"
20243 else
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20248 rm -f conftest.err conftest.$ac_objext \
20249 conftest$ac_exeext conftest.$ac_ext
20250 if test "$ac_cv_search_opendir" = no; then
20251 for ac_lib in dir; do
20252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h. */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20260 /* Override any gcc2 internal prototype to avoid an error. */
20261 #ifdef __cplusplus
20262 extern "C"
20263 #endif
20264 /* We use char because int might match the return type of a gcc2
20265 builtin and then its argument prototype would still apply. */
20266 char opendir ();
20268 main ()
20270 opendir ();
20272 return 0;
20274 _ACEOF
20275 rm -f conftest.$ac_objext conftest$ac_exeext
20276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20277 (eval $ac_link) 2>conftest.er1
20278 ac_status=$?
20279 grep -v '^ *+' conftest.er1 >conftest.err
20280 rm -f conftest.er1
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } &&
20284 { ac_try='test -z "$ac_c_werror_flag"
20285 || test ! -s conftest.err'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest$ac_exeext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_search_opendir="-l$ac_lib"
20298 break
20299 else
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20304 rm -f conftest.err conftest.$ac_objext \
20305 conftest$ac_exeext conftest.$ac_ext
20306 done
20308 LIBS=$ac_func_search_save_LIBS
20310 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20311 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20312 if test "$ac_cv_search_opendir" != no; then
20313 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20317 else
20318 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20319 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20320 if test "${ac_cv_search_opendir+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323 ac_func_search_save_LIBS=$LIBS
20324 ac_cv_search_opendir=no
20325 cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h. */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20332 /* Override any gcc2 internal prototype to avoid an error. */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 /* We use char because int might match the return type of a gcc2
20337 builtin and then its argument prototype would still apply. */
20338 char opendir ();
20340 main ()
20342 opendir ();
20344 return 0;
20346 _ACEOF
20347 rm -f conftest.$ac_objext conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest$ac_exeext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_cv_search_opendir="none required"
20370 else
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20375 rm -f conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
20377 if test "$ac_cv_search_opendir" = no; then
20378 for ac_lib in x; do
20379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h. */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 /* Override any gcc2 internal prototype to avoid an error. */
20388 #ifdef __cplusplus
20389 extern "C"
20390 #endif
20391 /* We use char because int might match the return type of a gcc2
20392 builtin and then its argument prototype would still apply. */
20393 char opendir ();
20395 main ()
20397 opendir ();
20399 return 0;
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404 (eval $ac_link) 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest$ac_exeext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_search_opendir="-l$ac_lib"
20425 break
20426 else
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20431 rm -f conftest.err conftest.$ac_objext \
20432 conftest$ac_exeext conftest.$ac_ext
20433 done
20435 LIBS=$ac_func_search_save_LIBS
20437 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20438 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20439 if test "$ac_cv_search_opendir" != no; then
20440 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20446 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20447 if test "${enable_ltdl_install+set}" = set; then
20448 enableval="$enable_ltdl_install"
20454 if test x"${enable_ltdl_install-no}" != xno; then
20455 INSTALL_LTDL_TRUE=
20456 INSTALL_LTDL_FALSE='#'
20457 else
20458 INSTALL_LTDL_TRUE='#'
20459 INSTALL_LTDL_FALSE=
20464 if test x"${enable_ltdl_convenience-no}" != xno; then
20465 CONVENIENCE_LTDL_TRUE=
20466 CONVENIENCE_LTDL_FALSE='#'
20467 else
20468 CONVENIENCE_LTDL_TRUE='#'
20469 CONVENIENCE_LTDL_FALSE=
20474 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20475 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20476 if test "${libltdl_cv_shlibext+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20480 # Here in libltdl for libgcj we don't build modules for darwin.
20481 # So we say no. Then the extension gets .dylib which is the right
20482 # thing for shared libraries on darwin. Please keep me next time you
20483 # import libltdl.
20484 case "$host_os" in
20485 darwin*)
20486 module=no
20489 module=yes
20491 esac
20492 eval libltdl_cv_shlibext=$shrext_cmds
20495 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20496 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20497 if test -n "$libltdl_cv_shlibext"; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20501 _ACEOF
20506 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20507 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20508 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511 libltdl_cv_shlibpath_var="$shlibpath_var"
20513 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20514 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20515 if test -n "$libltdl_cv_shlibpath_var"; then
20517 cat >>confdefs.h <<_ACEOF
20518 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20519 _ACEOF
20524 echo "$as_me:$LINENO: checking for the default library search path" >&5
20525 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20526 if test "${libltdl_cv_sys_search_path+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20531 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20532 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20533 if test -n "$libltdl_cv_sys_search_path"; then
20534 sys_search_path=
20535 for dir in $libltdl_cv_sys_search_path; do
20536 if test -z "$sys_search_path"; then
20537 sys_search_path="$dir"
20538 else
20539 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20541 done
20543 cat >>confdefs.h <<_ACEOF
20544 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20545 _ACEOF
20549 echo "$as_me:$LINENO: checking for objdir" >&5
20550 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20551 if test "${libltdl_cv_objdir+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554 libltdl_cv_objdir="$objdir"
20555 if test -n "$objdir"; then
20557 else
20558 rm -f .libs 2>/dev/null
20559 mkdir .libs 2>/dev/null
20560 if test -d .libs; then
20561 libltdl_cv_objdir=.libs
20562 else
20563 # MS-DOS does not allow filenames that begin with a dot.
20564 libltdl_cv_objdir=_libs
20566 rmdir .libs 2>/dev/null
20570 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20571 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20573 cat >>confdefs.h <<_ACEOF
20574 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20575 _ACEOF
20579 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20580 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20581 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20585 libltdl_cv_preloaded_symbols=yes
20586 else
20587 libltdl_cv_preloaded_symbols=no
20591 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20592 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20593 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20595 cat >>confdefs.h <<\_ACEOF
20596 #define HAVE_PRELOADED_SYMBOLS 1
20597 _ACEOF
20601 LIBADD_DL=
20603 ac_ext=c
20604 ac_cpp='$CPP $CPPFLAGS'
20605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20610 echo "$as_me:$LINENO: checking for shl_load" >&5
20611 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20612 if test "${ac_cv_func_shl_load+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20623 #define shl_load innocuous_shl_load
20625 /* System header to define __stub macros and hopefully few prototypes,
20626 which can conflict with char shl_load (); below.
20627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20628 <limits.h> exists even on freestanding compilers. */
20630 #ifdef __STDC__
20631 # include <limits.h>
20632 #else
20633 # include <assert.h>
20634 #endif
20636 #undef shl_load
20638 /* Override any gcc2 internal prototype to avoid an error. */
20639 #ifdef __cplusplus
20640 extern "C"
20642 #endif
20643 /* We use char because int might match the return type of a gcc2
20644 builtin and then its argument prototype would still apply. */
20645 char shl_load ();
20646 /* The GNU C library defines this for functions which it implements
20647 to always fail with ENOSYS. Some functions are actually named
20648 something starting with __ and the normal name is an alias. */
20649 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20650 choke me
20651 #else
20652 char (*f) () = shl_load;
20653 #endif
20654 #ifdef __cplusplus
20656 #endif
20659 main ()
20661 return f != shl_load;
20663 return 0;
20665 _ACEOF
20666 rm -f conftest.$ac_objext conftest$ac_exeext
20667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20668 (eval $ac_link) 2>conftest.er1
20669 ac_status=$?
20670 grep -v '^ *+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } &&
20675 { ac_try='test -z "$ac_c_werror_flag"
20676 || test ! -s conftest.err'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; } &&
20682 { ac_try='test -s conftest$ac_exeext'
20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684 (eval $ac_try) 2>&5
20685 ac_status=$?
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; }; then
20688 ac_cv_func_shl_load=yes
20689 else
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_cv_func_shl_load=no
20695 rm -f conftest.err conftest.$ac_objext \
20696 conftest$ac_exeext conftest.$ac_ext
20698 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20699 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20700 if test $ac_cv_func_shl_load = yes; then
20702 cat >>confdefs.h <<\_ACEOF
20703 #define HAVE_SHL_LOAD 1
20704 _ACEOF
20706 else
20707 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20708 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20709 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 else
20712 ac_check_lib_save_LIBS=$LIBS
20713 LIBS="-ldld $LIBS"
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h. */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20721 /* Override any gcc2 internal prototype to avoid an error. */
20722 #ifdef __cplusplus
20723 extern "C"
20724 #endif
20725 /* We use char because int might match the return type of a gcc2
20726 builtin and then its argument prototype would still apply. */
20727 char shl_load ();
20729 main ()
20731 shl_load ();
20733 return 0;
20735 _ACEOF
20736 rm -f conftest.$ac_objext conftest$ac_exeext
20737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20738 (eval $ac_link) 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } &&
20745 { ac_try='test -z "$ac_c_werror_flag"
20746 || test ! -s conftest.err'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; } &&
20752 { ac_try='test -s conftest$ac_exeext'
20753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754 (eval $ac_try) 2>&5
20755 ac_status=$?
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; }; then
20758 ac_cv_lib_dld_shl_load=yes
20759 else
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_cv_lib_dld_shl_load=no
20765 rm -f conftest.err conftest.$ac_objext \
20766 conftest$ac_exeext conftest.$ac_ext
20767 LIBS=$ac_check_lib_save_LIBS
20769 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20770 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20771 if test $ac_cv_lib_dld_shl_load = yes; then
20773 cat >>confdefs.h <<\_ACEOF
20774 #define HAVE_SHL_LOAD 1
20775 _ACEOF
20777 LIBADD_DL="$LIBADD_DL -ldld"
20778 else
20779 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20780 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784 ac_check_lib_save_LIBS=$LIBS
20785 LIBS="-ldl $LIBS"
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h. */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20793 /* Override any gcc2 internal prototype to avoid an error. */
20794 #ifdef __cplusplus
20795 extern "C"
20796 #endif
20797 /* We use char because int might match the return type of a gcc2
20798 builtin and then its argument prototype would still apply. */
20799 char dlopen ();
20801 main ()
20803 dlopen ();
20805 return 0;
20807 _ACEOF
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20810 (eval $ac_link) 2>conftest.er1
20811 ac_status=$?
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_c_werror_flag"
20818 || test ! -s conftest.err'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; } &&
20824 { ac_try='test -s conftest$ac_exeext'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 ac_cv_lib_dl_dlopen=yes
20831 else
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_cv_lib_dl_dlopen=no
20837 rm -f conftest.err conftest.$ac_objext \
20838 conftest$ac_exeext conftest.$ac_ext
20839 LIBS=$ac_check_lib_save_LIBS
20841 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20843 if test $ac_cv_lib_dl_dlopen = yes; then
20845 cat >>confdefs.h <<\_ACEOF
20846 #define HAVE_LIBDL 1
20847 _ACEOF
20849 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20850 else
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h. */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 #if HAVE_DLFCN_H
20858 # include <dlfcn.h>
20859 #endif
20862 main ()
20864 dlopen(0, 0);
20866 return 0;
20868 _ACEOF
20869 rm -f conftest.$ac_objext conftest$ac_exeext
20870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20871 (eval $ac_link) 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try='test -z "$ac_c_werror_flag"
20879 || test ! -s conftest.err'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest$ac_exeext'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20892 cat >>confdefs.h <<\_ACEOF
20893 #define HAVE_LIBDL 1
20894 _ACEOF
20895 libltdl_cv_func_dlopen="yes"
20896 else
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20901 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20902 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905 ac_check_lib_save_LIBS=$LIBS
20906 LIBS="-lsvld $LIBS"
20907 cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h. */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20914 /* Override any gcc2 internal prototype to avoid an error. */
20915 #ifdef __cplusplus
20916 extern "C"
20917 #endif
20918 /* We use char because int might match the return type of a gcc2
20919 builtin and then its argument prototype would still apply. */
20920 char dlopen ();
20922 main ()
20924 dlopen ();
20926 return 0;
20928 _ACEOF
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20931 (eval $ac_link) 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_c_werror_flag"
20939 || test ! -s conftest.err'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; } &&
20945 { ac_try='test -s conftest$ac_exeext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20951 ac_cv_lib_svld_dlopen=yes
20952 else
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ac_cv_lib_svld_dlopen=no
20958 rm -f conftest.err conftest.$ac_objext \
20959 conftest$ac_exeext conftest.$ac_ext
20960 LIBS=$ac_check_lib_save_LIBS
20962 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20963 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20964 if test $ac_cv_lib_svld_dlopen = yes; then
20966 cat >>confdefs.h <<\_ACEOF
20967 #define HAVE_LIBDL 1
20968 _ACEOF
20970 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20971 else
20972 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20973 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20974 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977 ac_check_lib_save_LIBS=$LIBS
20978 LIBS="-ldld $LIBS"
20979 cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h. */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20986 /* Override any gcc2 internal prototype to avoid an error. */
20987 #ifdef __cplusplus
20988 extern "C"
20989 #endif
20990 /* We use char because int might match the return type of a gcc2
20991 builtin and then its argument prototype would still apply. */
20992 char dld_link ();
20994 main ()
20996 dld_link ();
20998 return 0;
21000 _ACEOF
21001 rm -f conftest.$ac_objext conftest$ac_exeext
21002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21003 (eval $ac_link) 2>conftest.er1
21004 ac_status=$?
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -z "$ac_c_werror_flag"
21011 || test ! -s conftest.err'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest$ac_exeext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_lib_dld_dld_link=yes
21024 else
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_cv_lib_dld_dld_link=no
21030 rm -f conftest.err conftest.$ac_objext \
21031 conftest$ac_exeext conftest.$ac_ext
21032 LIBS=$ac_check_lib_save_LIBS
21034 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21035 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21036 if test $ac_cv_lib_dld_dld_link = yes; then
21038 cat >>confdefs.h <<\_ACEOF
21039 #define HAVE_DLD 1
21040 _ACEOF
21042 LIBADD_DL="$LIBADD_DL -ldld"
21043 else
21044 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21045 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21046 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 else
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h. */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21057 #define _dyld_func_lookup innocuous__dyld_func_lookup
21059 /* System header to define __stub macros and hopefully few prototypes,
21060 which can conflict with char _dyld_func_lookup (); below.
21061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21062 <limits.h> exists even on freestanding compilers. */
21064 #ifdef __STDC__
21065 # include <limits.h>
21066 #else
21067 # include <assert.h>
21068 #endif
21070 #undef _dyld_func_lookup
21072 /* Override any gcc2 internal prototype to avoid an error. */
21073 #ifdef __cplusplus
21074 extern "C"
21076 #endif
21077 /* We use char because int might match the return type of a gcc2
21078 builtin and then its argument prototype would still apply. */
21079 char _dyld_func_lookup ();
21080 /* The GNU C library defines this for functions which it implements
21081 to always fail with ENOSYS. Some functions are actually named
21082 something starting with __ and the normal name is an alias. */
21083 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21084 choke me
21085 #else
21086 char (*f) () = _dyld_func_lookup;
21087 #endif
21088 #ifdef __cplusplus
21090 #endif
21093 main ()
21095 return f != _dyld_func_lookup;
21097 return 0;
21099 _ACEOF
21100 rm -f conftest.$ac_objext conftest$ac_exeext
21101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21102 (eval $ac_link) 2>conftest.er1
21103 ac_status=$?
21104 grep -v '^ *+' conftest.er1 >conftest.err
21105 rm -f conftest.er1
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } &&
21109 { ac_try='test -z "$ac_c_werror_flag"
21110 || test ! -s conftest.err'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; } &&
21116 { ac_try='test -s conftest$ac_exeext'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 ac_cv_func__dyld_func_lookup=yes
21123 else
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21127 ac_cv_func__dyld_func_lookup=no
21129 rm -f conftest.err conftest.$ac_objext \
21130 conftest$ac_exeext conftest.$ac_ext
21132 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21133 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21134 if test $ac_cv_func__dyld_func_lookup = yes; then
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_DYLD 1
21138 _ACEOF
21150 rm -f conftest.err conftest.$ac_objext \
21151 conftest$ac_exeext conftest.$ac_ext
21162 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21163 then
21164 lt_save_LIBS="$LIBS"
21165 LIBS="$LIBS $LIBADD_DL"
21167 for ac_func in dlerror
21169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21170 echo "$as_me:$LINENO: checking for $ac_func" >&5
21171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21172 if eval "test \"\${$as_ac_var+set}\" = set"; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175 cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h. */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21183 #define $ac_func innocuous_$ac_func
21185 /* System header to define __stub macros and hopefully few prototypes,
21186 which can conflict with char $ac_func (); below.
21187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21188 <limits.h> exists even on freestanding compilers. */
21190 #ifdef __STDC__
21191 # include <limits.h>
21192 #else
21193 # include <assert.h>
21194 #endif
21196 #undef $ac_func
21198 /* Override any gcc2 internal prototype to avoid an error. */
21199 #ifdef __cplusplus
21200 extern "C"
21202 #endif
21203 /* We use char because int might match the return type of a gcc2
21204 builtin and then its argument prototype would still apply. */
21205 char $ac_func ();
21206 /* The GNU C library defines this for functions which it implements
21207 to always fail with ENOSYS. Some functions are actually named
21208 something starting with __ and the normal name is an alias. */
21209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21210 choke me
21211 #else
21212 char (*f) () = $ac_func;
21213 #endif
21214 #ifdef __cplusplus
21216 #endif
21219 main ()
21221 return f != $ac_func;
21223 return 0;
21225 _ACEOF
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21228 (eval $ac_link) 2>conftest.er1
21229 ac_status=$?
21230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } &&
21235 { ac_try='test -z "$ac_c_werror_flag"
21236 || test ! -s conftest.err'
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; } &&
21242 { ac_try='test -s conftest$ac_exeext'
21243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244 (eval $ac_try) 2>&5
21245 ac_status=$?
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; }; then
21248 eval "$as_ac_var=yes"
21249 else
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21253 eval "$as_ac_var=no"
21255 rm -f conftest.err conftest.$ac_objext \
21256 conftest$ac_exeext conftest.$ac_ext
21258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21260 if test `eval echo '${'$as_ac_var'}'` = yes; then
21261 cat >>confdefs.h <<_ACEOF
21262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21263 _ACEOF
21266 done
21268 LIBS="$lt_save_LIBS"
21270 ac_ext=c
21271 ac_cpp='$CPP $CPPFLAGS'
21272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21278 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21279 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21280 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283 ac_cv_sys_symbol_underscore=no
21284 cat > conftest.$ac_ext <<EOF
21285 void nm_test_func(){}
21286 int main(){nm_test_func;return 0;}
21288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289 (eval $ac_compile) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; then
21293 # Now try to grab the symbols.
21294 ac_nlist=conftest.nm
21295 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21296 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && test -s "$ac_nlist"; then
21300 # See whether the symbols have a leading underscore.
21301 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21302 ac_cv_sys_symbol_underscore=yes
21303 else
21304 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21306 else
21307 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21310 else
21311 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21313 else
21314 echo "configure: failed program was:" >&5
21315 cat conftest.c >&5
21317 rm -rf conftest*
21320 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21321 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21324 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21325 if test x"$libltdl_cv_func_dlopen" = xyes ||
21326 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21327 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21328 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21329 if test "${libltdl_cv_need_uscore+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21332 libltdl_cv_need_uscore=unknown
21333 save_LIBS="$LIBS"
21334 LIBS="$LIBS $LIBADD_DL"
21335 if test "$cross_compiling" = yes; then :
21336 libltdl_cv_need_uscore=cross
21337 else
21338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21339 lt_status=$lt_dlunknown
21340 cat > conftest.$ac_ext <<EOF
21341 #line 21341 "configure"
21342 #include "confdefs.h"
21344 #if HAVE_DLFCN_H
21345 #include <dlfcn.h>
21346 #endif
21348 #include <stdio.h>
21350 #ifdef RTLD_GLOBAL
21351 # define LT_DLGLOBAL RTLD_GLOBAL
21352 #else
21353 # ifdef DL_GLOBAL
21354 # define LT_DLGLOBAL DL_GLOBAL
21355 # else
21356 # define LT_DLGLOBAL 0
21357 # endif
21358 #endif
21360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21361 find out it does not work in some platform. */
21362 #ifndef LT_DLLAZY_OR_NOW
21363 # ifdef RTLD_LAZY
21364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21365 # else
21366 # ifdef DL_LAZY
21367 # define LT_DLLAZY_OR_NOW DL_LAZY
21368 # else
21369 # ifdef RTLD_NOW
21370 # define LT_DLLAZY_OR_NOW RTLD_NOW
21371 # else
21372 # ifdef DL_NOW
21373 # define LT_DLLAZY_OR_NOW DL_NOW
21374 # else
21375 # define LT_DLLAZY_OR_NOW 0
21376 # endif
21377 # endif
21378 # endif
21379 # endif
21380 #endif
21382 #ifdef __cplusplus
21383 extern "C" void exit (int);
21384 #endif
21386 void fnord() { int i=42;}
21387 int main ()
21389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21390 int status = $lt_dlunknown;
21392 if (self)
21394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21396 /* dlclose (self); */
21399 exit (status);
21402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21403 (eval $ac_link) 2>&5
21404 ac_status=$?
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21407 (./conftest; exit; ) 2>/dev/null
21408 lt_status=$?
21409 case x$lt_status in
21410 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21411 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21412 x$lt_unknown|x*) ;;
21413 esac
21414 else :
21415 # compilation failed
21419 rm -fr conftest*
21421 LIBS="$save_LIBS"
21424 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21425 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21429 if test x"$libltdl_cv_need_uscore" = xyes; then
21431 cat >>confdefs.h <<\_ACEOF
21432 #define NEED_USCORE 1
21433 _ACEOF
21438 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21439 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21440 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 else
21443 # PORTME does your system automatically load deplibs for dlopen?
21444 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21445 # For now, we just catch OSes we know something about -- in the
21446 # future, we'll try test this programmatically.
21447 libltdl_cv_sys_dlopen_deplibs=unknown
21448 case "$host_os" in
21449 aix3*|aix4.1.*|aix4.2.*)
21450 # Unknown whether this is true for these versions of AIX, but
21451 # we want this `case' here to explicitly catch those versions.
21452 libltdl_cv_sys_dlopen_deplibs=unknown
21454 aix[45]*)
21455 libltdl_cv_sys_dlopen_deplibs=yes
21457 darwin*)
21458 # Assuming the user has installed a libdl from somewhere, this is true
21459 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21460 libltdl_cv_sys_dlopen_deplibs=yes
21462 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21463 # GNU and its variants, using gnu ld.so (Glibc)
21464 libltdl_cv_sys_dlopen_deplibs=yes
21466 hpux10*|hpux11*)
21467 libltdl_cv_sys_dlopen_deplibs=yes
21469 irix[12345]*|irix6.[01]*)
21470 # Catch all versions of IRIX before 6.2, and indicate that we don't
21471 # know how it worked for any of those versions.
21472 libltdl_cv_sys_dlopen_deplibs=unknown
21474 irix*)
21475 # The case above catches anything before 6.2, and it's known that
21476 # at 6.2 and later dlopen does load deplibs.
21477 libltdl_cv_sys_dlopen_deplibs=yes
21479 netbsd*)
21480 libltdl_cv_sys_dlopen_deplibs=yes
21482 openbsd*)
21483 libltdl_cv_sys_dlopen_deplibs=yes
21485 osf[1234]*)
21486 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21487 # it did *not* use an RPATH in a shared library to find objects the
21488 # library depends on, so we explictly say `no'.
21489 libltdl_cv_sys_dlopen_deplibs=no
21491 osf5.0|osf5.0a|osf5.1)
21492 # dlopen *does* load deplibs and with the right loader patch applied
21493 # it even uses RPATH in a shared library to search for shared objects
21494 # that the library depends on, but there's no easy way to know if that
21495 # patch is installed. Since this is the case, all we can really
21496 # say is unknown -- it depends on the patch being installed. If
21497 # it is, this changes to `yes'. Without it, it would be `no'.
21498 libltdl_cv_sys_dlopen_deplibs=unknown
21500 osf*)
21501 # the two cases above should catch all versions of osf <= 5.1. Read
21502 # the comments above for what we know about them.
21503 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21504 # is used to find them so we can finally say `yes'.
21505 libltdl_cv_sys_dlopen_deplibs=yes
21507 solaris*)
21508 libltdl_cv_sys_dlopen_deplibs=yes
21510 esac
21513 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21514 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21515 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21517 cat >>confdefs.h <<\_ACEOF
21518 #define LTDL_DLOPEN_DEPLIBS 1
21519 _ACEOF
21524 for ac_header in argz.h
21526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21528 echo "$as_me:$LINENO: checking for $ac_header" >&5
21529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21535 else
21536 # Is the header compilable?
21537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 $ac_includes_default
21546 #include <$ac_header>
21547 _ACEOF
21548 rm -f conftest.$ac_objext
21549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21550 (eval $ac_compile) 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } &&
21557 { ac_try='test -z "$ac_c_werror_flag"
21558 || test ! -s conftest.err'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; } &&
21564 { ac_try='test -s conftest.$ac_objext'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; }; then
21570 ac_header_compiler=yes
21571 else
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21575 ac_header_compiler=no
21577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21579 echo "${ECHO_T}$ac_header_compiler" >&6
21581 # Is the header present?
21582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21584 cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <$ac_header>
21591 _ACEOF
21592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21594 ac_status=$?
21595 grep -v '^ *+' conftest.er1 >conftest.err
21596 rm -f conftest.er1
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } >/dev/null; then
21600 if test -s conftest.err; then
21601 ac_cpp_err=$ac_c_preproc_warn_flag
21602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21603 else
21604 ac_cpp_err=
21606 else
21607 ac_cpp_err=yes
21609 if test -z "$ac_cpp_err"; then
21610 ac_header_preproc=yes
21611 else
21612 echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21615 ac_header_preproc=no
21617 rm -f conftest.err conftest.$ac_ext
21618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21619 echo "${ECHO_T}$ac_header_preproc" >&6
21621 # So? What about this header?
21622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21623 yes:no: )
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21628 ac_header_preproc=yes
21630 no:yes:* )
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21644 cat <<\_ASBOX
21645 ## ---------------------------------- ##
21646 ## Report this to bug-libtool@gnu.org ##
21647 ## ---------------------------------- ##
21648 _ASBOX
21650 sed "s/^/$as_me: WARNING: /" >&2
21652 esac
21653 echo "$as_me:$LINENO: checking for $ac_header" >&5
21654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21657 else
21658 eval "$as_ac_Header=\$ac_header_preproc"
21660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21665 cat >>confdefs.h <<_ACEOF
21666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21667 _ACEOF
21671 done
21674 echo "$as_me:$LINENO: checking for error_t" >&5
21675 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21676 if test "${ac_cv_type_error_t+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679 cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h. */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 #if HAVE_ARGZ_H
21686 # include <argz.h>
21687 #endif
21690 main ()
21692 if ((error_t *) 0)
21693 return 0;
21694 if (sizeof (error_t))
21695 return 0;
21697 return 0;
21699 _ACEOF
21700 rm -f conftest.$ac_objext
21701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21702 (eval $ac_compile) 2>conftest.er1
21703 ac_status=$?
21704 grep -v '^ *+' conftest.er1 >conftest.err
21705 rm -f conftest.er1
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } &&
21709 { ac_try='test -z "$ac_c_werror_flag"
21710 || test ! -s conftest.err'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; } &&
21716 { ac_try='test -s conftest.$ac_objext'
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; }; then
21722 ac_cv_type_error_t=yes
21723 else
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21727 ac_cv_type_error_t=no
21729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21731 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21732 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21733 if test $ac_cv_type_error_t = yes; then
21735 cat >>confdefs.h <<_ACEOF
21736 #define HAVE_ERROR_T 1
21737 _ACEOF
21740 else
21742 cat >>confdefs.h <<\_ACEOF
21743 #define error_t int
21744 _ACEOF
21754 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21757 echo "$as_me:$LINENO: checking for $ac_func" >&5
21758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21759 if eval "test \"\${$as_ac_var+set}\" = set"; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 else
21762 cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h. */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21770 #define $ac_func innocuous_$ac_func
21772 /* System header to define __stub macros and hopefully few prototypes,
21773 which can conflict with char $ac_func (); below.
21774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21775 <limits.h> exists even on freestanding compilers. */
21777 #ifdef __STDC__
21778 # include <limits.h>
21779 #else
21780 # include <assert.h>
21781 #endif
21783 #undef $ac_func
21785 /* Override any gcc2 internal prototype to avoid an error. */
21786 #ifdef __cplusplus
21787 extern "C"
21789 #endif
21790 /* We use char because int might match the return type of a gcc2
21791 builtin and then its argument prototype would still apply. */
21792 char $ac_func ();
21793 /* The GNU C library defines this for functions which it implements
21794 to always fail with ENOSYS. Some functions are actually named
21795 something starting with __ and the normal name is an alias. */
21796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21797 choke me
21798 #else
21799 char (*f) () = $ac_func;
21800 #endif
21801 #ifdef __cplusplus
21803 #endif
21806 main ()
21808 return f != $ac_func;
21810 return 0;
21812 _ACEOF
21813 rm -f conftest.$ac_objext conftest$ac_exeext
21814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21815 (eval $ac_link) 2>conftest.er1
21816 ac_status=$?
21817 grep -v '^ *+' conftest.er1 >conftest.err
21818 rm -f conftest.er1
21819 cat conftest.err >&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } &&
21822 { ac_try='test -z "$ac_c_werror_flag"
21823 || test ! -s conftest.err'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; } &&
21829 { ac_try='test -s conftest$ac_exeext'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; }; then
21835 eval "$as_ac_var=yes"
21836 else
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 eval "$as_ac_var=no"
21842 rm -f conftest.err conftest.$ac_objext \
21843 conftest$ac_exeext conftest.$ac_ext
21845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21847 if test `eval echo '${'$as_ac_var'}'` = yes; then
21848 cat >>confdefs.h <<_ACEOF
21849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21850 _ACEOF
21853 done
21882 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21883 stdio.h unistd.h
21885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21887 echo "$as_me:$LINENO: checking for $ac_header" >&5
21888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21894 else
21895 # Is the header compilable?
21896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 #include <$ac_header>
21906 _ACEOF
21907 rm -f conftest.$ac_objext
21908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21909 (eval $ac_compile) 2>conftest.er1
21910 ac_status=$?
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } &&
21916 { ac_try='test -z "$ac_c_werror_flag"
21917 || test ! -s conftest.err'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; } &&
21923 { ac_try='test -s conftest.$ac_objext'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 ac_header_compiler=yes
21930 else
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_header_compiler=no
21936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21938 echo "${ECHO_T}$ac_header_compiler" >&6
21940 # Is the header present?
21941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h. */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 #include <$ac_header>
21950 _ACEOF
21951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21953 ac_status=$?
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } >/dev/null; then
21959 if test -s conftest.err; then
21960 ac_cpp_err=$ac_c_preproc_warn_flag
21961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21962 else
21963 ac_cpp_err=
21965 else
21966 ac_cpp_err=yes
21968 if test -z "$ac_cpp_err"; then
21969 ac_header_preproc=yes
21970 else
21971 echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 ac_header_preproc=no
21976 rm -f conftest.err conftest.$ac_ext
21977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21978 echo "${ECHO_T}$ac_header_preproc" >&6
21980 # So? What about this header?
21981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21982 yes:no: )
21983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21987 ac_header_preproc=yes
21989 no:yes:* )
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22003 cat <<\_ASBOX
22004 ## ---------------------------------- ##
22005 ## Report this to bug-libtool@gnu.org ##
22006 ## ---------------------------------- ##
22007 _ASBOX
22009 sed "s/^/$as_me: WARNING: /" >&2
22011 esac
22012 echo "$as_me:$LINENO: checking for $ac_header" >&5
22013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017 eval "$as_ac_Header=\$ac_header_preproc"
22019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22024 cat >>confdefs.h <<_ACEOF
22025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22026 _ACEOF
22030 done
22036 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22040 echo "$as_me:$LINENO: checking for $ac_header" >&5
22041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22047 else
22048 # Is the header compilable?
22049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 $ac_includes_default
22058 #include <$ac_header>
22059 _ACEOF
22060 rm -f conftest.$ac_objext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22062 (eval $ac_compile) 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try='test -z "$ac_c_werror_flag"
22070 || test ! -s conftest.err'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22073 ac_status=$?
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; } &&
22076 { ac_try='test -s conftest.$ac_objext'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_header_compiler=yes
22083 else
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_header_compiler=no
22089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22091 echo "${ECHO_T}$ac_header_compiler" >&6
22093 # Is the header present?
22094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22096 cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h. */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 #include <$ac_header>
22103 _ACEOF
22104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } >/dev/null; then
22112 if test -s conftest.err; then
22113 ac_cpp_err=$ac_c_preproc_warn_flag
22114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22115 else
22116 ac_cpp_err=
22118 else
22119 ac_cpp_err=yes
22121 if test -z "$ac_cpp_err"; then
22122 ac_header_preproc=yes
22123 else
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_header_preproc=no
22129 rm -f conftest.err conftest.$ac_ext
22130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22131 echo "${ECHO_T}$ac_header_preproc" >&6
22133 # So? What about this header?
22134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22135 yes:no: )
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22140 ac_header_preproc=yes
22142 no:yes:* )
22143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22156 cat <<\_ASBOX
22157 ## ---------------------------------- ##
22158 ## Report this to bug-libtool@gnu.org ##
22159 ## ---------------------------------- ##
22160 _ASBOX
22162 sed "s/^/$as_me: WARNING: /" >&2
22164 esac
22165 echo "$as_me:$LINENO: checking for $ac_header" >&5
22166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 else
22170 eval "$as_ac_Header=\$ac_header_preproc"
22172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22179 _ACEOF
22183 done
22187 for ac_header in string.h strings.h
22189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22191 echo "$as_me:$LINENO: checking for $ac_header" >&5
22192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22198 else
22199 # Is the header compilable?
22200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h. */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208 $ac_includes_default
22209 #include <$ac_header>
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213 (eval $ac_compile) 2>conftest.er1
22214 ac_status=$?
22215 grep -v '^ *+' conftest.er1 >conftest.err
22216 rm -f conftest.er1
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } &&
22220 { ac_try='test -z "$ac_c_werror_flag"
22221 || test ! -s conftest.err'
22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223 (eval $ac_try) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; } &&
22227 { ac_try='test -s conftest.$ac_objext'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22230 ac_status=$?
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 ac_header_compiler=yes
22234 else
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22238 ac_header_compiler=no
22240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22242 echo "${ECHO_T}$ac_header_compiler" >&6
22244 # Is the header present?
22245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22247 cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h. */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 #include <$ac_header>
22254 _ACEOF
22255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22257 ac_status=$?
22258 grep -v '^ *+' conftest.er1 >conftest.err
22259 rm -f conftest.er1
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } >/dev/null; then
22263 if test -s conftest.err; then
22264 ac_cpp_err=$ac_c_preproc_warn_flag
22265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22266 else
22267 ac_cpp_err=
22269 else
22270 ac_cpp_err=yes
22272 if test -z "$ac_cpp_err"; then
22273 ac_header_preproc=yes
22274 else
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 ac_header_preproc=no
22280 rm -f conftest.err conftest.$ac_ext
22281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22282 echo "${ECHO_T}$ac_header_preproc" >&6
22284 # So? What about this header?
22285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22286 yes:no: )
22287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22291 ac_header_preproc=yes
22293 no:yes:* )
22294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22307 cat <<\_ASBOX
22308 ## ---------------------------------- ##
22309 ## Report this to bug-libtool@gnu.org ##
22310 ## ---------------------------------- ##
22311 _ASBOX
22313 sed "s/^/$as_me: WARNING: /" >&2
22315 esac
22316 echo "$as_me:$LINENO: checking for $ac_header" >&5
22317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 else
22321 eval "$as_ac_Header=\$ac_header_preproc"
22323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22328 cat >>confdefs.h <<_ACEOF
22329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22330 _ACEOF
22331 break
22334 done
22339 for ac_func in strchr index
22341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22342 echo "$as_me:$LINENO: checking for $ac_func" >&5
22343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22344 if eval "test \"\${$as_ac_var+set}\" = set"; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347 cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h. */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22355 #define $ac_func innocuous_$ac_func
22357 /* System header to define __stub macros and hopefully few prototypes,
22358 which can conflict with char $ac_func (); below.
22359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22360 <limits.h> exists even on freestanding compilers. */
22362 #ifdef __STDC__
22363 # include <limits.h>
22364 #else
22365 # include <assert.h>
22366 #endif
22368 #undef $ac_func
22370 /* Override any gcc2 internal prototype to avoid an error. */
22371 #ifdef __cplusplus
22372 extern "C"
22374 #endif
22375 /* We use char because int might match the return type of a gcc2
22376 builtin and then its argument prototype would still apply. */
22377 char $ac_func ();
22378 /* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22382 choke me
22383 #else
22384 char (*f) () = $ac_func;
22385 #endif
22386 #ifdef __cplusplus
22388 #endif
22391 main ()
22393 return f != $ac_func;
22395 return 0;
22397 _ACEOF
22398 rm -f conftest.$ac_objext conftest$ac_exeext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400 (eval $ac_link) 2>conftest.er1
22401 ac_status=$?
22402 grep -v '^ *+' conftest.er1 >conftest.err
22403 rm -f conftest.er1
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_c_werror_flag"
22408 || test ! -s conftest.err'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; } &&
22414 { ac_try='test -s conftest$ac_exeext'
22415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 (eval $ac_try) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
22420 eval "$as_ac_var=yes"
22421 else
22422 echo "$as_me: failed program was:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22425 eval "$as_ac_var=no"
22427 rm -f conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22432 if test `eval echo '${'$as_ac_var'}'` = yes; then
22433 cat >>confdefs.h <<_ACEOF
22434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22435 _ACEOF
22436 break
22438 done
22442 for ac_func in strrchr rindex
22444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22445 echo "$as_me:$LINENO: checking for $ac_func" >&5
22446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22447 if eval "test \"\${$as_ac_var+set}\" = set"; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22458 #define $ac_func innocuous_$ac_func
22460 /* System header to define __stub macros and hopefully few prototypes,
22461 which can conflict with char $ac_func (); below.
22462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22463 <limits.h> exists even on freestanding compilers. */
22465 #ifdef __STDC__
22466 # include <limits.h>
22467 #else
22468 # include <assert.h>
22469 #endif
22471 #undef $ac_func
22473 /* Override any gcc2 internal prototype to avoid an error. */
22474 #ifdef __cplusplus
22475 extern "C"
22477 #endif
22478 /* We use char because int might match the return type of a gcc2
22479 builtin and then its argument prototype would still apply. */
22480 char $ac_func ();
22481 /* The GNU C library defines this for functions which it implements
22482 to always fail with ENOSYS. Some functions are actually named
22483 something starting with __ and the normal name is an alias. */
22484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22485 choke me
22486 #else
22487 char (*f) () = $ac_func;
22488 #endif
22489 #ifdef __cplusplus
22491 #endif
22494 main ()
22496 return f != $ac_func;
22498 return 0;
22500 _ACEOF
22501 rm -f conftest.$ac_objext conftest$ac_exeext
22502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22503 (eval $ac_link) 2>conftest.er1
22504 ac_status=$?
22505 grep -v '^ *+' conftest.er1 >conftest.err
22506 rm -f conftest.er1
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } &&
22510 { ac_try='test -z "$ac_c_werror_flag"
22511 || test ! -s conftest.err'
22512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513 (eval $ac_try) 2>&5
22514 ac_status=$?
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; } &&
22517 { ac_try='test -s conftest$ac_exeext'
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22520 ac_status=$?
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; }; then
22523 eval "$as_ac_var=yes"
22524 else
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22528 eval "$as_ac_var=no"
22530 rm -f conftest.err conftest.$ac_objext \
22531 conftest$ac_exeext conftest.$ac_ext
22533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22535 if test `eval echo '${'$as_ac_var'}'` = yes; then
22536 cat >>confdefs.h <<_ACEOF
22537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22538 _ACEOF
22539 break
22541 done
22545 for ac_func in memcpy bcopy
22547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22548 echo "$as_me:$LINENO: checking for $ac_func" >&5
22549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22550 if eval "test \"\${$as_ac_var+set}\" = set"; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553 cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h. */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22561 #define $ac_func innocuous_$ac_func
22563 /* System header to define __stub macros and hopefully few prototypes,
22564 which can conflict with char $ac_func (); below.
22565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22566 <limits.h> exists even on freestanding compilers. */
22568 #ifdef __STDC__
22569 # include <limits.h>
22570 #else
22571 # include <assert.h>
22572 #endif
22574 #undef $ac_func
22576 /* Override any gcc2 internal prototype to avoid an error. */
22577 #ifdef __cplusplus
22578 extern "C"
22580 #endif
22581 /* We use char because int might match the return type of a gcc2
22582 builtin and then its argument prototype would still apply. */
22583 char $ac_func ();
22584 /* The GNU C library defines this for functions which it implements
22585 to always fail with ENOSYS. Some functions are actually named
22586 something starting with __ and the normal name is an alias. */
22587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22588 choke me
22589 #else
22590 char (*f) () = $ac_func;
22591 #endif
22592 #ifdef __cplusplus
22594 #endif
22597 main ()
22599 return f != $ac_func;
22601 return 0;
22603 _ACEOF
22604 rm -f conftest.$ac_objext conftest$ac_exeext
22605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22606 (eval $ac_link) 2>conftest.er1
22607 ac_status=$?
22608 grep -v '^ *+' conftest.er1 >conftest.err
22609 rm -f conftest.er1
22610 cat conftest.err >&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } &&
22613 { ac_try='test -z "$ac_c_werror_flag"
22614 || test ! -s conftest.err'
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; } &&
22620 { ac_try='test -s conftest$ac_exeext'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
22626 eval "$as_ac_var=yes"
22627 else
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22631 eval "$as_ac_var=no"
22633 rm -f conftest.err conftest.$ac_objext \
22634 conftest$ac_exeext conftest.$ac_ext
22636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22638 if test `eval echo '${'$as_ac_var'}'` = yes; then
22639 cat >>confdefs.h <<_ACEOF
22640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22641 _ACEOF
22642 break
22644 done
22648 for ac_func in memmove strcmp
22650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22651 echo "$as_me:$LINENO: checking for $ac_func" >&5
22652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22653 if eval "test \"\${$as_ac_var+set}\" = set"; then
22654 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 else
22656 cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h. */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22664 #define $ac_func innocuous_$ac_func
22666 /* System header to define __stub macros and hopefully few prototypes,
22667 which can conflict with char $ac_func (); below.
22668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22669 <limits.h> exists even on freestanding compilers. */
22671 #ifdef __STDC__
22672 # include <limits.h>
22673 #else
22674 # include <assert.h>
22675 #endif
22677 #undef $ac_func
22679 /* Override any gcc2 internal prototype to avoid an error. */
22680 #ifdef __cplusplus
22681 extern "C"
22683 #endif
22684 /* We use char because int might match the return type of a gcc2
22685 builtin and then its argument prototype would still apply. */
22686 char $ac_func ();
22687 /* The GNU C library defines this for functions which it implements
22688 to always fail with ENOSYS. Some functions are actually named
22689 something starting with __ and the normal name is an alias. */
22690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22691 choke me
22692 #else
22693 char (*f) () = $ac_func;
22694 #endif
22695 #ifdef __cplusplus
22697 #endif
22700 main ()
22702 return f != $ac_func;
22704 return 0;
22706 _ACEOF
22707 rm -f conftest.$ac_objext conftest$ac_exeext
22708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22709 (eval $ac_link) 2>conftest.er1
22710 ac_status=$?
22711 grep -v '^ *+' conftest.er1 >conftest.err
22712 rm -f conftest.er1
22713 cat conftest.err >&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } &&
22716 { ac_try='test -z "$ac_c_werror_flag"
22717 || test ! -s conftest.err'
22718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719 (eval $ac_try) 2>&5
22720 ac_status=$?
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; } &&
22723 { ac_try='test -s conftest$ac_exeext'
22724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22725 (eval $ac_try) 2>&5
22726 ac_status=$?
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); }; }; then
22729 eval "$as_ac_var=yes"
22730 else
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22734 eval "$as_ac_var=no"
22736 rm -f conftest.err conftest.$ac_objext \
22737 conftest$ac_exeext conftest.$ac_ext
22739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22741 if test `eval echo '${'$as_ac_var'}'` = yes; then
22742 cat >>confdefs.h <<_ACEOF
22743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22744 _ACEOF
22747 done
22752 for ac_func in closedir opendir readdir
22754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22755 echo "$as_me:$LINENO: checking for $ac_func" >&5
22756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22757 if eval "test \"\${$as_ac_var+set}\" = set"; then
22758 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 else
22760 cat >conftest.$ac_ext <<_ACEOF
22761 /* confdefs.h. */
22762 _ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h. */
22766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22768 #define $ac_func innocuous_$ac_func
22770 /* System header to define __stub macros and hopefully few prototypes,
22771 which can conflict with char $ac_func (); below.
22772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22773 <limits.h> exists even on freestanding compilers. */
22775 #ifdef __STDC__
22776 # include <limits.h>
22777 #else
22778 # include <assert.h>
22779 #endif
22781 #undef $ac_func
22783 /* Override any gcc2 internal prototype to avoid an error. */
22784 #ifdef __cplusplus
22785 extern "C"
22787 #endif
22788 /* We use char because int might match the return type of a gcc2
22789 builtin and then its argument prototype would still apply. */
22790 char $ac_func ();
22791 /* The GNU C library defines this for functions which it implements
22792 to always fail with ENOSYS. Some functions are actually named
22793 something starting with __ and the normal name is an alias. */
22794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22795 choke me
22796 #else
22797 char (*f) () = $ac_func;
22798 #endif
22799 #ifdef __cplusplus
22801 #endif
22804 main ()
22806 return f != $ac_func;
22808 return 0;
22810 _ACEOF
22811 rm -f conftest.$ac_objext conftest$ac_exeext
22812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22813 (eval $ac_link) 2>conftest.er1
22814 ac_status=$?
22815 grep -v '^ *+' conftest.er1 >conftest.err
22816 rm -f conftest.er1
22817 cat conftest.err >&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
22820 { ac_try='test -z "$ac_c_werror_flag"
22821 || test ! -s conftest.err'
22822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823 (eval $ac_try) 2>&5
22824 ac_status=$?
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); }; } &&
22827 { ac_try='test -s conftest$ac_exeext'
22828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829 (eval $ac_try) 2>&5
22830 ac_status=$?
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; }; then
22833 eval "$as_ac_var=yes"
22834 else
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 eval "$as_ac_var=no"
22840 rm -f conftest.err conftest.$ac_objext \
22841 conftest$ac_exeext conftest.$ac_ext
22843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22845 if test `eval echo '${'$as_ac_var'}'` = yes; then
22846 cat >>confdefs.h <<_ACEOF
22847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22848 _ACEOF
22851 done
22856 ## -------- ##
22857 ## Outputs. ##
22858 ## -------- ##
22859 ac_config_files="$ac_config_files Makefile"
22861 cat >confcache <<\_ACEOF
22862 # This file is a shell script that caches the results of configure
22863 # tests run on this system so they can be shared between configure
22864 # scripts and configure runs, see configure's option --config-cache.
22865 # It is not useful on other systems. If it contains results you don't
22866 # want to keep, you may remove or edit it.
22868 # config.status only pays attention to the cache file if you give it
22869 # the --recheck option to rerun configure.
22871 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22872 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22873 # following values.
22875 _ACEOF
22877 # The following way of writing the cache mishandles newlines in values,
22878 # but we know of no workaround that is simple, portable, and efficient.
22879 # So, don't put newlines in cache variables' values.
22880 # Ultrix sh set writes to stderr and can't be redirected directly,
22881 # and sets the high bit in the cache file unless we assign to the vars.
22883 (set) 2>&1 |
22884 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22885 *ac_space=\ *)
22886 # `set' does not quote correctly, so add quotes (double-quote
22887 # substitution turns \\\\ into \\, and sed turns \\ into \).
22888 sed -n \
22889 "s/'/'\\\\''/g;
22890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22893 # `set' quotes correctly as required by POSIX, so do not add quotes.
22894 sed -n \
22895 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22897 esac;
22899 sed '
22900 t clear
22901 : clear
22902 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22903 t end
22904 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22905 : end' >>confcache
22906 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22907 if test -w $cache_file; then
22908 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22909 cat confcache >$cache_file
22910 else
22911 echo "not updating unwritable cache $cache_file"
22914 rm -f confcache
22916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22917 # Let make expand exec_prefix.
22918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22920 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22921 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22922 # trailing colons and then remove the whole line if VPATH becomes empty
22923 # (actually we leave an empty line to preserve line numbers).
22924 if test "x$srcdir" = x.; then
22925 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22926 s/:*\$(srcdir):*/:/;
22927 s/:*\${srcdir}:*/:/;
22928 s/:*@srcdir@:*/:/;
22929 s/^\([^=]*=[ ]*\):*/\1/;
22930 s/:*$//;
22931 s/^[^=]*=[ ]*$//;
22935 DEFS=-DHAVE_CONFIG_H
22937 ac_libobjs=
22938 ac_ltlibobjs=
22939 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22940 # 1. Remove the extension, and $U if already installed.
22941 ac_i=`echo "$ac_i" |
22942 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22943 # 2. Add them.
22944 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22945 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22946 done
22947 LIBOBJS=$ac_libobjs
22949 LTLIBOBJS=$ac_ltlibobjs
22952 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22953 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22954 Usually this means the macro was only invoked conditionally." >&5
22955 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22956 Usually this means the macro was only invoked conditionally." >&2;}
22957 { (exit 1); exit 1; }; }
22959 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22960 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22961 Usually this means the macro was only invoked conditionally." >&5
22962 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22963 Usually this means the macro was only invoked conditionally." >&2;}
22964 { (exit 1); exit 1; }; }
22966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22967 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22968 Usually this means the macro was only invoked conditionally." >&5
22969 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22970 Usually this means the macro was only invoked conditionally." >&2;}
22971 { (exit 1); exit 1; }; }
22973 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22974 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22975 Usually this means the macro was only invoked conditionally." >&5
22976 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22977 Usually this means the macro was only invoked conditionally." >&2;}
22978 { (exit 1); exit 1; }; }
22980 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22981 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22982 Usually this means the macro was only invoked conditionally." >&5
22983 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22984 Usually this means the macro was only invoked conditionally." >&2;}
22985 { (exit 1); exit 1; }; }
22987 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22988 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22989 Usually this means the macro was only invoked conditionally." >&5
22990 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22991 Usually this means the macro was only invoked conditionally." >&2;}
22992 { (exit 1); exit 1; }; }
22995 : ${CONFIG_STATUS=./config.status}
22996 ac_clean_files_save=$ac_clean_files
22997 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22998 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22999 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23000 cat >$CONFIG_STATUS <<_ACEOF
23001 #! $SHELL
23002 # Generated by $as_me.
23003 # Run this file to recreate the current configuration.
23004 # Compiler output produced by configure, useful for debugging
23005 # configure, is in config.log if it exists.
23007 debug=false
23008 ac_cs_recheck=false
23009 ac_cs_silent=false
23010 SHELL=\${CONFIG_SHELL-$SHELL}
23011 _ACEOF
23013 cat >>$CONFIG_STATUS <<\_ACEOF
23014 ## --------------------- ##
23015 ## M4sh Initialization. ##
23016 ## --------------------- ##
23018 # Be Bourne compatible
23019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23020 emulate sh
23021 NULLCMD=:
23022 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23023 # is contrary to our usage. Disable this feature.
23024 alias -g '${1+"$@"}'='"$@"'
23025 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23026 set -o posix
23028 DUALCASE=1; export DUALCASE # for MKS sh
23030 # Support unset when possible.
23031 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23032 as_unset=unset
23033 else
23034 as_unset=false
23038 # Work around bugs in pre-3.0 UWIN ksh.
23039 $as_unset ENV MAIL MAILPATH
23040 PS1='$ '
23041 PS2='> '
23042 PS4='+ '
23044 # NLS nuisances.
23045 for as_var in \
23046 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23047 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23048 LC_TELEPHONE LC_TIME
23050 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23051 eval $as_var=C; export $as_var
23052 else
23053 $as_unset $as_var
23055 done
23057 # Required to use basename.
23058 if expr a : '\(a\)' >/dev/null 2>&1; then
23059 as_expr=expr
23060 else
23061 as_expr=false
23064 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23065 as_basename=basename
23066 else
23067 as_basename=false
23071 # Name of the executable.
23072 as_me=`$as_basename "$0" ||
23073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23074 X"$0" : 'X\(//\)$' \| \
23075 X"$0" : 'X\(/\)$' \| \
23076 . : '\(.\)' 2>/dev/null ||
23077 echo X/"$0" |
23078 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23079 /^X\/\(\/\/\)$/{ s//\1/; q; }
23080 /^X\/\(\/\).*/{ s//\1/; q; }
23081 s/.*/./; q'`
23084 # PATH needs CR, and LINENO needs CR and PATH.
23085 # Avoid depending upon Character Ranges.
23086 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23087 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23088 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23089 as_cr_digits='0123456789'
23090 as_cr_alnum=$as_cr_Letters$as_cr_digits
23092 # The user is always right.
23093 if test "${PATH_SEPARATOR+set}" != set; then
23094 echo "#! /bin/sh" >conf$$.sh
23095 echo "exit 0" >>conf$$.sh
23096 chmod +x conf$$.sh
23097 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23098 PATH_SEPARATOR=';'
23099 else
23100 PATH_SEPARATOR=:
23102 rm -f conf$$.sh
23106 as_lineno_1=$LINENO
23107 as_lineno_2=$LINENO
23108 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23109 test "x$as_lineno_1" != "x$as_lineno_2" &&
23110 test "x$as_lineno_3" = "x$as_lineno_2" || {
23111 # Find who we are. Look in the path if we contain no path at all
23112 # relative or not.
23113 case $0 in
23114 *[\\/]* ) as_myself=$0 ;;
23115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23116 for as_dir in $PATH
23118 IFS=$as_save_IFS
23119 test -z "$as_dir" && as_dir=.
23120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23121 done
23124 esac
23125 # We did not find ourselves, most probably we were run as `sh COMMAND'
23126 # in which case we are not to be found in the path.
23127 if test "x$as_myself" = x; then
23128 as_myself=$0
23130 if test ! -f "$as_myself"; then
23131 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23132 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23133 { (exit 1); exit 1; }; }
23135 case $CONFIG_SHELL in
23137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23138 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23140 IFS=$as_save_IFS
23141 test -z "$as_dir" && as_dir=.
23142 for as_base in sh bash ksh sh5; do
23143 case $as_dir in
23145 if ("$as_dir/$as_base" -c '
23146 as_lineno_1=$LINENO
23147 as_lineno_2=$LINENO
23148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23149 test "x$as_lineno_1" != "x$as_lineno_2" &&
23150 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23151 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23152 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23153 CONFIG_SHELL=$as_dir/$as_base
23154 export CONFIG_SHELL
23155 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23156 fi;;
23157 esac
23158 done
23159 done
23161 esac
23163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23164 # uniformly replaced by the line number. The first 'sed' inserts a
23165 # line-number line before each line; the second 'sed' does the real
23166 # work. The second script uses 'N' to pair each line-number line
23167 # with the numbered line, and appends trailing '-' during
23168 # substitution so that $LINENO is not a special case at line end.
23169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23170 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23171 sed '=' <$as_myself |
23172 sed '
23174 s,$,-,
23175 : loop
23176 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23177 t loop
23178 s,-$,,
23179 s,^['$as_cr_digits']*\n,,
23180 ' >$as_me.lineno &&
23181 chmod +x $as_me.lineno ||
23182 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23183 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23184 { (exit 1); exit 1; }; }
23186 # Don't try to exec as it changes $[0], causing all sort of problems
23187 # (the dirname of $[0] is not the place where we might find the
23188 # original and so on. Autoconf is especially sensible to this).
23189 . ./$as_me.lineno
23190 # Exit status is that of the last command.
23191 exit
23195 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23196 *c*,-n*) ECHO_N= ECHO_C='
23197 ' ECHO_T=' ' ;;
23198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23200 esac
23202 if expr a : '\(a\)' >/dev/null 2>&1; then
23203 as_expr=expr
23204 else
23205 as_expr=false
23208 rm -f conf$$ conf$$.exe conf$$.file
23209 echo >conf$$.file
23210 if ln -s conf$$.file conf$$ 2>/dev/null; then
23211 # We could just check for DJGPP; but this test a) works b) is more generic
23212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23213 if test -f conf$$.exe; then
23214 # Don't use ln at all; we don't have any links
23215 as_ln_s='cp -p'
23216 else
23217 as_ln_s='ln -s'
23219 elif ln conf$$.file conf$$ 2>/dev/null; then
23220 as_ln_s=ln
23221 else
23222 as_ln_s='cp -p'
23224 rm -f conf$$ conf$$.exe conf$$.file
23226 if mkdir -p . 2>/dev/null; then
23227 as_mkdir_p=:
23228 else
23229 test -d ./-p && rmdir ./-p
23230 as_mkdir_p=false
23233 as_executable_p="test -f"
23235 # Sed expression to map a string onto a valid CPP name.
23236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23238 # Sed expression to map a string onto a valid variable name.
23239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23242 # IFS
23243 # We need space, tab and new line, in precisely that order.
23244 as_nl='
23246 IFS=" $as_nl"
23248 # CDPATH.
23249 $as_unset CDPATH
23251 exec 6>&1
23253 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23254 # report actual input values of CONFIG_FILES etc. instead of their
23255 # values after options handling. Logging --version etc. is OK.
23256 exec 5>>config.log
23258 echo
23259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23260 ## Running $as_me. ##
23261 _ASBOX
23262 } >&5
23263 cat >&5 <<_CSEOF
23265 This file was extended by libltdl $as_me 1.2, which was
23266 generated by GNU Autoconf 2.59. Invocation command line was
23268 CONFIG_FILES = $CONFIG_FILES
23269 CONFIG_HEADERS = $CONFIG_HEADERS
23270 CONFIG_LINKS = $CONFIG_LINKS
23271 CONFIG_COMMANDS = $CONFIG_COMMANDS
23272 $ $0 $@
23274 _CSEOF
23275 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23276 echo >&5
23277 _ACEOF
23279 # Files that config.status was made for.
23280 if test -n "$ac_config_files"; then
23281 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23284 if test -n "$ac_config_headers"; then
23285 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23288 if test -n "$ac_config_links"; then
23289 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23292 if test -n "$ac_config_commands"; then
23293 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23298 ac_cs_usage="\
23299 \`$as_me' instantiates files from templates according to the
23300 current configuration.
23302 Usage: $0 [OPTIONS] [FILE]...
23304 -h, --help print this help, then exit
23305 -V, --version print version number, then exit
23306 -q, --quiet do not print progress messages
23307 -d, --debug don't remove temporary files
23308 --recheck update $as_me by reconfiguring in the same conditions
23309 --file=FILE[:TEMPLATE]
23310 instantiate the configuration file FILE
23311 --header=FILE[:TEMPLATE]
23312 instantiate the configuration header FILE
23314 Configuration files:
23315 $config_files
23317 Configuration headers:
23318 $config_headers
23320 Configuration commands:
23321 $config_commands
23323 Report bugs to <bug-autoconf@gnu.org>."
23324 _ACEOF
23326 cat >>$CONFIG_STATUS <<_ACEOF
23327 ac_cs_version="\\
23328 libltdl config.status 1.2
23329 configured by $0, generated by GNU Autoconf 2.59,
23330 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23332 Copyright (C) 2003 Free Software Foundation, Inc.
23333 This config.status script is free software; the Free Software Foundation
23334 gives unlimited permission to copy, distribute and modify it."
23335 srcdir=$srcdir
23336 INSTALL="$INSTALL"
23337 _ACEOF
23339 cat >>$CONFIG_STATUS <<\_ACEOF
23340 # If no file are specified by the user, then we need to provide default
23341 # value. By we need to know if files were specified by the user.
23342 ac_need_defaults=:
23343 while test $# != 0
23345 case $1 in
23346 --*=*)
23347 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23348 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23349 ac_shift=:
23352 ac_option=$1
23353 ac_optarg=$2
23354 ac_shift=shift
23356 *) # This is not an option, so the user has probably given explicit
23357 # arguments.
23358 ac_option=$1
23359 ac_need_defaults=false;;
23360 esac
23362 case $ac_option in
23363 # Handling of the options.
23364 _ACEOF
23365 cat >>$CONFIG_STATUS <<\_ACEOF
23366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23367 ac_cs_recheck=: ;;
23368 --version | --vers* | -V )
23369 echo "$ac_cs_version"; exit 0 ;;
23370 --he | --h)
23371 # Conflict between --help and --header
23372 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23373 Try \`$0 --help' for more information." >&5
23374 echo "$as_me: error: ambiguous option: $1
23375 Try \`$0 --help' for more information." >&2;}
23376 { (exit 1); exit 1; }; };;
23377 --help | --hel | -h )
23378 echo "$ac_cs_usage"; exit 0 ;;
23379 --debug | --d* | -d )
23380 debug=: ;;
23381 --file | --fil | --fi | --f )
23382 $ac_shift
23383 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23384 ac_need_defaults=false;;
23385 --header | --heade | --head | --hea )
23386 $ac_shift
23387 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23388 ac_need_defaults=false;;
23389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23391 ac_cs_silent=: ;;
23393 # This is an error.
23394 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23395 Try \`$0 --help' for more information." >&5
23396 echo "$as_me: error: unrecognized option: $1
23397 Try \`$0 --help' for more information." >&2;}
23398 { (exit 1); exit 1; }; } ;;
23400 *) ac_config_targets="$ac_config_targets $1" ;;
23402 esac
23403 shift
23404 done
23406 ac_configure_extra_args=
23408 if $ac_cs_silent; then
23409 exec 6>/dev/null
23410 ac_configure_extra_args="$ac_configure_extra_args --silent"
23413 _ACEOF
23414 cat >>$CONFIG_STATUS <<_ACEOF
23415 if \$ac_cs_recheck; then
23416 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23417 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23420 _ACEOF
23422 cat >>$CONFIG_STATUS <<_ACEOF
23424 # INIT-COMMANDS section.
23427 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23429 _ACEOF
23433 cat >>$CONFIG_STATUS <<\_ACEOF
23434 for ac_config_target in $ac_config_targets
23436 case "$ac_config_target" in
23437 # Handling of arguments.
23438 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23439 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23440 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23441 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23442 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23443 { (exit 1); exit 1; }; };;
23444 esac
23445 done
23447 # If the user did not use the arguments to specify the items to instantiate,
23448 # then the envvar interface is used. Set only those that are not.
23449 # We use the long form for the default assignment because of an extremely
23450 # bizarre bug on SunOS 4.1.3.
23451 if $ac_need_defaults; then
23452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23457 # Have a temporary directory for convenience. Make it in the build tree
23458 # simply because there is no reason to put it here, and in addition,
23459 # creating and moving files from /tmp can sometimes cause problems.
23460 # Create a temporary directory, and hook for its removal unless debugging.
23461 $debug ||
23463 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23464 trap '{ (exit 1); exit 1; }' 1 2 13 15
23467 # Create a (secure) tmp directory for tmp files.
23470 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23471 test -n "$tmp" && test -d "$tmp"
23472 } ||
23474 tmp=./confstat$$-$RANDOM
23475 (umask 077 && mkdir $tmp)
23476 } ||
23478 echo "$me: cannot create a temporary directory in ." >&2
23479 { (exit 1); exit 1; }
23482 _ACEOF
23484 cat >>$CONFIG_STATUS <<_ACEOF
23487 # CONFIG_FILES section.
23490 # No need to generate the scripts if there are no CONFIG_FILES.
23491 # This happens for instance when ./config.status config.h
23492 if test -n "\$CONFIG_FILES"; then
23493 # Protect against being on the right side of a sed subst in config.status.
23494 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23495 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23496 s,@SHELL@,$SHELL,;t t
23497 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23498 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23499 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23500 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23501 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23502 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23503 s,@exec_prefix@,$exec_prefix,;t t
23504 s,@prefix@,$prefix,;t t
23505 s,@program_transform_name@,$program_transform_name,;t t
23506 s,@bindir@,$bindir,;t t
23507 s,@sbindir@,$sbindir,;t t
23508 s,@libexecdir@,$libexecdir,;t t
23509 s,@datadir@,$datadir,;t t
23510 s,@sysconfdir@,$sysconfdir,;t t
23511 s,@sharedstatedir@,$sharedstatedir,;t t
23512 s,@localstatedir@,$localstatedir,;t t
23513 s,@libdir@,$libdir,;t t
23514 s,@includedir@,$includedir,;t t
23515 s,@oldincludedir@,$oldincludedir,;t t
23516 s,@infodir@,$infodir,;t t
23517 s,@mandir@,$mandir,;t t
23518 s,@build_alias@,$build_alias,;t t
23519 s,@host_alias@,$host_alias,;t t
23520 s,@target_alias@,$target_alias,;t t
23521 s,@DEFS@,$DEFS,;t t
23522 s,@ECHO_C@,$ECHO_C,;t t
23523 s,@ECHO_N@,$ECHO_N,;t t
23524 s,@ECHO_T@,$ECHO_T,;t t
23525 s,@LIBS@,$LIBS,;t t
23526 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23527 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23528 s,@MAINT@,$MAINT,;t t
23529 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23530 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23531 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23532 s,@CYGPATH_W@,$CYGPATH_W,;t t
23533 s,@PACKAGE@,$PACKAGE,;t t
23534 s,@VERSION@,$VERSION,;t t
23535 s,@ACLOCAL@,$ACLOCAL,;t t
23536 s,@AUTOCONF@,$AUTOCONF,;t t
23537 s,@AUTOMAKE@,$AUTOMAKE,;t t
23538 s,@AUTOHEADER@,$AUTOHEADER,;t t
23539 s,@MAKEINFO@,$MAKEINFO,;t t
23540 s,@install_sh@,$install_sh,;t t
23541 s,@STRIP@,$STRIP,;t t
23542 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23543 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23544 s,@mkdir_p@,$mkdir_p,;t t
23545 s,@AWK@,$AWK,;t t
23546 s,@SET_MAKE@,$SET_MAKE,;t t
23547 s,@am__leading_dot@,$am__leading_dot,;t t
23548 s,@AMTAR@,$AMTAR,;t t
23549 s,@am__tar@,$am__tar,;t t
23550 s,@am__untar@,$am__untar,;t t
23551 s,@CC@,$CC,;t t
23552 s,@CFLAGS@,$CFLAGS,;t t
23553 s,@LDFLAGS@,$LDFLAGS,;t t
23554 s,@CPPFLAGS@,$CPPFLAGS,;t t
23555 s,@ac_ct_CC@,$ac_ct_CC,;t t
23556 s,@EXEEXT@,$EXEEXT,;t t
23557 s,@OBJEXT@,$OBJEXT,;t t
23558 s,@DEPDIR@,$DEPDIR,;t t
23559 s,@am__include@,$am__include,;t t
23560 s,@am__quote@,$am__quote,;t t
23561 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23562 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23563 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23564 s,@CCDEPMODE@,$CCDEPMODE,;t t
23565 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23566 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23567 s,@build@,$build,;t t
23568 s,@build_cpu@,$build_cpu,;t t
23569 s,@build_vendor@,$build_vendor,;t t
23570 s,@build_os@,$build_os,;t t
23571 s,@host@,$host,;t t
23572 s,@host_cpu@,$host_cpu,;t t
23573 s,@host_vendor@,$host_vendor,;t t
23574 s,@host_os@,$host_os,;t t
23575 s,@EGREP@,$EGREP,;t t
23576 s,@LN_S@,$LN_S,;t t
23577 s,@ECHO@,$ECHO,;t t
23578 s,@AR@,$AR,;t t
23579 s,@ac_ct_AR@,$ac_ct_AR,;t t
23580 s,@RANLIB@,$RANLIB,;t t
23581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23582 s,@DLLTOOL@,$DLLTOOL,;t t
23583 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23584 s,@AS@,$AS,;t t
23585 s,@ac_ct_AS@,$ac_ct_AS,;t t
23586 s,@OBJDUMP@,$OBJDUMP,;t t
23587 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23588 s,@CPP@,$CPP,;t t
23589 s,@CXX@,$CXX,;t t
23590 s,@CXXFLAGS@,$CXXFLAGS,;t t
23591 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23592 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23593 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23594 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23595 s,@CXXCPP@,$CXXCPP,;t t
23596 s,@F77@,$F77,;t t
23597 s,@FFLAGS@,$FFLAGS,;t t
23598 s,@ac_ct_F77@,$ac_ct_F77,;t t
23599 s,@LIBTOOL@,$LIBTOOL,;t t
23600 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23601 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23602 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23603 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23604 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23605 s,@LIBADD_DL@,$LIBADD_DL,;t t
23606 s,@LIBOBJS@,$LIBOBJS,;t t
23607 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23608 CEOF
23610 _ACEOF
23612 cat >>$CONFIG_STATUS <<\_ACEOF
23613 # Split the substitutions into bite-sized pieces for seds with
23614 # small command number limits, like on Digital OSF/1 and HP-UX.
23615 ac_max_sed_lines=48
23616 ac_sed_frag=1 # Number of current file.
23617 ac_beg=1 # First line for current file.
23618 ac_end=$ac_max_sed_lines # Line after last line for current file.
23619 ac_more_lines=:
23620 ac_sed_cmds=
23621 while $ac_more_lines; do
23622 if test $ac_beg -gt 1; then
23623 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23624 else
23625 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23627 if test ! -s $tmp/subs.frag; then
23628 ac_more_lines=false
23629 else
23630 # The purpose of the label and of the branching condition is to
23631 # speed up the sed processing (if there are no `@' at all, there
23632 # is no need to browse any of the substitutions).
23633 # These are the two extra sed commands mentioned above.
23634 (echo ':t
23635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23636 if test -z "$ac_sed_cmds"; then
23637 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23638 else
23639 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23641 ac_sed_frag=`expr $ac_sed_frag + 1`
23642 ac_beg=$ac_end
23643 ac_end=`expr $ac_end + $ac_max_sed_lines`
23645 done
23646 if test -z "$ac_sed_cmds"; then
23647 ac_sed_cmds=cat
23649 fi # test -n "$CONFIG_FILES"
23651 _ACEOF
23652 cat >>$CONFIG_STATUS <<\_ACEOF
23653 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23655 case $ac_file in
23656 - | *:- | *:-:* ) # input from stdin
23657 cat >$tmp/stdin
23658 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23660 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23662 * ) ac_file_in=$ac_file.in ;;
23663 esac
23665 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23667 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23668 X"$ac_file" : 'X\(//\)[^/]' \| \
23669 X"$ac_file" : 'X\(//\)$' \| \
23670 X"$ac_file" : 'X\(/\)' \| \
23671 . : '\(.\)' 2>/dev/null ||
23672 echo X"$ac_file" |
23673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23675 /^X\(\/\/\)$/{ s//\1/; q; }
23676 /^X\(\/\).*/{ s//\1/; q; }
23677 s/.*/./; q'`
23678 { if $as_mkdir_p; then
23679 mkdir -p "$ac_dir"
23680 else
23681 as_dir="$ac_dir"
23682 as_dirs=
23683 while test ! -d "$as_dir"; do
23684 as_dirs="$as_dir $as_dirs"
23685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23687 X"$as_dir" : 'X\(//\)[^/]' \| \
23688 X"$as_dir" : 'X\(//\)$' \| \
23689 X"$as_dir" : 'X\(/\)' \| \
23690 . : '\(.\)' 2>/dev/null ||
23691 echo X"$as_dir" |
23692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23694 /^X\(\/\/\)$/{ s//\1/; q; }
23695 /^X\(\/\).*/{ s//\1/; q; }
23696 s/.*/./; q'`
23697 done
23698 test ! -n "$as_dirs" || mkdir $as_dirs
23699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23700 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23701 { (exit 1); exit 1; }; }; }
23703 ac_builddir=.
23705 if test "$ac_dir" != .; then
23706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23707 # A "../" for each directory in $ac_dir_suffix.
23708 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23709 else
23710 ac_dir_suffix= ac_top_builddir=
23713 case $srcdir in
23714 .) # No --srcdir option. We are building in place.
23715 ac_srcdir=.
23716 if test -z "$ac_top_builddir"; then
23717 ac_top_srcdir=.
23718 else
23719 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23720 fi ;;
23721 [\\/]* | ?:[\\/]* ) # Absolute path.
23722 ac_srcdir=$srcdir$ac_dir_suffix;
23723 ac_top_srcdir=$srcdir ;;
23724 *) # Relative path.
23725 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23726 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23727 esac
23729 # Do not use `cd foo && pwd` to compute absolute paths, because
23730 # the directories may not exist.
23731 case `pwd` in
23732 .) ac_abs_builddir="$ac_dir";;
23734 case "$ac_dir" in
23735 .) ac_abs_builddir=`pwd`;;
23736 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23737 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23738 esac;;
23739 esac
23740 case $ac_abs_builddir in
23741 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23743 case ${ac_top_builddir}. in
23744 .) ac_abs_top_builddir=$ac_abs_builddir;;
23745 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23746 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23747 esac;;
23748 esac
23749 case $ac_abs_builddir in
23750 .) ac_abs_srcdir=$ac_srcdir;;
23752 case $ac_srcdir in
23753 .) ac_abs_srcdir=$ac_abs_builddir;;
23754 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23755 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23756 esac;;
23757 esac
23758 case $ac_abs_builddir in
23759 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23761 case $ac_top_srcdir in
23762 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23763 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23764 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23765 esac;;
23766 esac
23769 case $INSTALL in
23770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23771 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23772 esac
23774 if test x"$ac_file" != x-; then
23775 { echo "$as_me:$LINENO: creating $ac_file" >&5
23776 echo "$as_me: creating $ac_file" >&6;}
23777 rm -f "$ac_file"
23779 # Let's still pretend it is `configure' which instantiates (i.e., don't
23780 # use $as_me), people would be surprised to read:
23781 # /* config.h. Generated by config.status. */
23782 if test x"$ac_file" = x-; then
23783 configure_input=
23784 else
23785 configure_input="$ac_file. "
23787 configure_input=$configure_input"Generated from `echo $ac_file_in |
23788 sed 's,.*/,,'` by configure."
23790 # First look for the input files in the build tree, otherwise in the
23791 # src tree.
23792 ac_file_inputs=`IFS=:
23793 for f in $ac_file_in; do
23794 case $f in
23795 -) echo $tmp/stdin ;;
23796 [\\/$]*)
23797 # Absolute (can't be DOS-style, as IFS=:)
23798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23799 echo "$as_me: error: cannot find input file: $f" >&2;}
23800 { (exit 1); exit 1; }; }
23801 echo "$f";;
23802 *) # Relative
23803 if test -f "$f"; then
23804 # Build tree
23805 echo "$f"
23806 elif test -f "$srcdir/$f"; then
23807 # Source tree
23808 echo "$srcdir/$f"
23809 else
23810 # /dev/null tree
23811 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23812 echo "$as_me: error: cannot find input file: $f" >&2;}
23813 { (exit 1); exit 1; }; }
23814 fi;;
23815 esac
23816 done` || { (exit 1); exit 1; }
23817 _ACEOF
23818 cat >>$CONFIG_STATUS <<_ACEOF
23819 sed "$ac_vpsub
23820 $extrasub
23821 _ACEOF
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23825 s,@configure_input@,$configure_input,;t t
23826 s,@srcdir@,$ac_srcdir,;t t
23827 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23828 s,@top_srcdir@,$ac_top_srcdir,;t t
23829 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23830 s,@builddir@,$ac_builddir,;t t
23831 s,@abs_builddir@,$ac_abs_builddir,;t t
23832 s,@top_builddir@,$ac_top_builddir,;t t
23833 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23834 s,@INSTALL@,$ac_INSTALL,;t t
23835 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23836 rm -f $tmp/stdin
23837 if test x"$ac_file" != x-; then
23838 mv $tmp/out $ac_file
23839 else
23840 cat $tmp/out
23841 rm -f $tmp/out
23844 done
23845 _ACEOF
23846 cat >>$CONFIG_STATUS <<\_ACEOF
23849 # CONFIG_HEADER section.
23852 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23853 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23855 # ac_d sets the value in "#define NAME VALUE" lines.
23856 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23857 ac_dB='[ ].*$,\1#\2'
23858 ac_dC=' '
23859 ac_dD=',;t'
23860 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23861 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23862 ac_uB='$,\1#\2define\3'
23863 ac_uC=' '
23864 ac_uD=',;t'
23866 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23868 case $ac_file in
23869 - | *:- | *:-:* ) # input from stdin
23870 cat >$tmp/stdin
23871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23875 * ) ac_file_in=$ac_file.in ;;
23876 esac
23878 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23879 echo "$as_me: creating $ac_file" >&6;}
23881 # First look for the input files in the build tree, otherwise in the
23882 # src tree.
23883 ac_file_inputs=`IFS=:
23884 for f in $ac_file_in; do
23885 case $f in
23886 -) echo $tmp/stdin ;;
23887 [\\/$]*)
23888 # Absolute (can't be DOS-style, as IFS=:)
23889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23890 echo "$as_me: error: cannot find input file: $f" >&2;}
23891 { (exit 1); exit 1; }; }
23892 # Do quote $f, to prevent DOS paths from being IFS'd.
23893 echo "$f";;
23894 *) # Relative
23895 if test -f "$f"; then
23896 # Build tree
23897 echo "$f"
23898 elif test -f "$srcdir/$f"; then
23899 # Source tree
23900 echo "$srcdir/$f"
23901 else
23902 # /dev/null tree
23903 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23904 echo "$as_me: error: cannot find input file: $f" >&2;}
23905 { (exit 1); exit 1; }; }
23906 fi;;
23907 esac
23908 done` || { (exit 1); exit 1; }
23909 # Remove the trailing spaces.
23910 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23912 _ACEOF
23914 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23915 # `conftest.undefs', that substitutes the proper values into
23916 # config.h.in to produce config.h. The first handles `#define'
23917 # templates, and the second `#undef' templates.
23918 # And first: Protect against being on the right side of a sed subst in
23919 # config.status. Protect against being in an unquoted here document
23920 # in config.status.
23921 rm -f conftest.defines conftest.undefs
23922 # Using a here document instead of a string reduces the quoting nightmare.
23923 # Putting comments in sed scripts is not portable.
23925 # `end' is used to avoid that the second main sed command (meant for
23926 # 0-ary CPP macros) applies to n-ary macro definitions.
23927 # See the Autoconf documentation for `clear'.
23928 cat >confdef2sed.sed <<\_ACEOF
23929 s/[\\&,]/\\&/g
23930 s,[\\$`],\\&,g
23931 t clear
23932 : clear
23933 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23934 t end
23935 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23936 : end
23937 _ACEOF
23938 # If some macros were called several times there might be several times
23939 # the same #defines, which is useless. Nevertheless, we may not want to
23940 # sort them, since we want the *last* AC-DEFINE to be honored.
23941 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23942 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23943 rm -f confdef2sed.sed
23945 # This sed command replaces #undef with comments. This is necessary, for
23946 # example, in the case of _POSIX_SOURCE, which is predefined and required
23947 # on some systems where configure will not decide to define it.
23948 cat >>conftest.undefs <<\_ACEOF
23949 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23950 _ACEOF
23952 # Break up conftest.defines because some shells have a limit on the size
23953 # of here documents, and old seds have small limits too (100 cmds).
23954 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23955 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23956 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23957 echo ' :' >>$CONFIG_STATUS
23958 rm -f conftest.tail
23959 while grep . conftest.defines >/dev/null
23961 # Write a limited-size here document to $tmp/defines.sed.
23962 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23963 # Speed up: don't consider the non `#define' lines.
23964 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23965 # Work around the forget-to-reset-the-flag bug.
23966 echo 't clr' >>$CONFIG_STATUS
23967 echo ': clr' >>$CONFIG_STATUS
23968 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23969 echo 'CEOF
23970 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23971 rm -f $tmp/in
23972 mv $tmp/out $tmp/in
23973 ' >>$CONFIG_STATUS
23974 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23975 rm -f conftest.defines
23976 mv conftest.tail conftest.defines
23977 done
23978 rm -f conftest.defines
23979 echo ' fi # grep' >>$CONFIG_STATUS
23980 echo >>$CONFIG_STATUS
23982 # Break up conftest.undefs because some shells have a limit on the size
23983 # of here documents, and old seds have small limits too (100 cmds).
23984 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23985 rm -f conftest.tail
23986 while grep . conftest.undefs >/dev/null
23988 # Write a limited-size here document to $tmp/undefs.sed.
23989 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23990 # Speed up: don't consider the non `#undef'
23991 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23992 # Work around the forget-to-reset-the-flag bug.
23993 echo 't clr' >>$CONFIG_STATUS
23994 echo ': clr' >>$CONFIG_STATUS
23995 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23996 echo 'CEOF
23997 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23998 rm -f $tmp/in
23999 mv $tmp/out $tmp/in
24000 ' >>$CONFIG_STATUS
24001 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24002 rm -f conftest.undefs
24003 mv conftest.tail conftest.undefs
24004 done
24005 rm -f conftest.undefs
24007 cat >>$CONFIG_STATUS <<\_ACEOF
24008 # Let's still pretend it is `configure' which instantiates (i.e., don't
24009 # use $as_me), people would be surprised to read:
24010 # /* config.h. Generated by config.status. */
24011 if test x"$ac_file" = x-; then
24012 echo "/* Generated by configure. */" >$tmp/config.h
24013 else
24014 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24016 cat $tmp/in >>$tmp/config.h
24017 rm -f $tmp/in
24018 if test x"$ac_file" != x-; then
24019 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24021 echo "$as_me: $ac_file is unchanged" >&6;}
24022 else
24023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24025 X"$ac_file" : 'X\(//\)[^/]' \| \
24026 X"$ac_file" : 'X\(//\)$' \| \
24027 X"$ac_file" : 'X\(/\)' \| \
24028 . : '\(.\)' 2>/dev/null ||
24029 echo X"$ac_file" |
24030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24032 /^X\(\/\/\)$/{ s//\1/; q; }
24033 /^X\(\/\).*/{ s//\1/; q; }
24034 s/.*/./; q'`
24035 { if $as_mkdir_p; then
24036 mkdir -p "$ac_dir"
24037 else
24038 as_dir="$ac_dir"
24039 as_dirs=
24040 while test ! -d "$as_dir"; do
24041 as_dirs="$as_dir $as_dirs"
24042 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24044 X"$as_dir" : 'X\(//\)[^/]' \| \
24045 X"$as_dir" : 'X\(//\)$' \| \
24046 X"$as_dir" : 'X\(/\)' \| \
24047 . : '\(.\)' 2>/dev/null ||
24048 echo X"$as_dir" |
24049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24051 /^X\(\/\/\)$/{ s//\1/; q; }
24052 /^X\(\/\).*/{ s//\1/; q; }
24053 s/.*/./; q'`
24054 done
24055 test ! -n "$as_dirs" || mkdir $as_dirs
24056 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24057 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24058 { (exit 1); exit 1; }; }; }
24060 rm -f $ac_file
24061 mv $tmp/config.h $ac_file
24063 else
24064 cat $tmp/config.h
24065 rm -f $tmp/config.h
24067 # Compute $ac_file's index in $config_headers.
24068 _am_stamp_count=1
24069 for _am_header in $config_headers :; do
24070 case $_am_header in
24071 $ac_file | $ac_file:* )
24072 break ;;
24074 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24075 esac
24076 done
24077 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24078 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24079 X$ac_file : 'X\(//\)[^/]' \| \
24080 X$ac_file : 'X\(//\)$' \| \
24081 X$ac_file : 'X\(/\)' \| \
24082 . : '\(.\)' 2>/dev/null ||
24083 echo X$ac_file |
24084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24086 /^X\(\/\/\)$/{ s//\1/; q; }
24087 /^X\(\/\).*/{ s//\1/; q; }
24088 s/.*/./; q'`/stamp-h$_am_stamp_count
24089 done
24090 _ACEOF
24091 cat >>$CONFIG_STATUS <<\_ACEOF
24094 # CONFIG_COMMANDS section.
24096 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24097 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24098 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24099 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24100 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101 X"$ac_dest" : 'X\(//\)[^/]' \| \
24102 X"$ac_dest" : 'X\(//\)$' \| \
24103 X"$ac_dest" : 'X\(/\)' \| \
24104 . : '\(.\)' 2>/dev/null ||
24105 echo X"$ac_dest" |
24106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24108 /^X\(\/\/\)$/{ s//\1/; q; }
24109 /^X\(\/\).*/{ s//\1/; q; }
24110 s/.*/./; q'`
24111 { if $as_mkdir_p; then
24112 mkdir -p "$ac_dir"
24113 else
24114 as_dir="$ac_dir"
24115 as_dirs=
24116 while test ! -d "$as_dir"; do
24117 as_dirs="$as_dir $as_dirs"
24118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24120 X"$as_dir" : 'X\(//\)[^/]' \| \
24121 X"$as_dir" : 'X\(//\)$' \| \
24122 X"$as_dir" : 'X\(/\)' \| \
24123 . : '\(.\)' 2>/dev/null ||
24124 echo X"$as_dir" |
24125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24127 /^X\(\/\/\)$/{ s//\1/; q; }
24128 /^X\(\/\).*/{ s//\1/; q; }
24129 s/.*/./; q'`
24130 done
24131 test ! -n "$as_dirs" || mkdir $as_dirs
24132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24134 { (exit 1); exit 1; }; }; }
24136 ac_builddir=.
24138 if test "$ac_dir" != .; then
24139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24140 # A "../" for each directory in $ac_dir_suffix.
24141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24142 else
24143 ac_dir_suffix= ac_top_builddir=
24146 case $srcdir in
24147 .) # No --srcdir option. We are building in place.
24148 ac_srcdir=.
24149 if test -z "$ac_top_builddir"; then
24150 ac_top_srcdir=.
24151 else
24152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24153 fi ;;
24154 [\\/]* | ?:[\\/]* ) # Absolute path.
24155 ac_srcdir=$srcdir$ac_dir_suffix;
24156 ac_top_srcdir=$srcdir ;;
24157 *) # Relative path.
24158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24160 esac
24162 # Do not use `cd foo && pwd` to compute absolute paths, because
24163 # the directories may not exist.
24164 case `pwd` in
24165 .) ac_abs_builddir="$ac_dir";;
24167 case "$ac_dir" in
24168 .) ac_abs_builddir=`pwd`;;
24169 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24170 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24171 esac;;
24172 esac
24173 case $ac_abs_builddir in
24174 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24176 case ${ac_top_builddir}. in
24177 .) ac_abs_top_builddir=$ac_abs_builddir;;
24178 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24179 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24180 esac;;
24181 esac
24182 case $ac_abs_builddir in
24183 .) ac_abs_srcdir=$ac_srcdir;;
24185 case $ac_srcdir in
24186 .) ac_abs_srcdir=$ac_abs_builddir;;
24187 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24188 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24189 esac;;
24190 esac
24191 case $ac_abs_builddir in
24192 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24194 case $ac_top_srcdir in
24195 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24196 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24197 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24198 esac;;
24199 esac
24202 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24203 echo "$as_me: executing $ac_dest commands" >&6;}
24204 case $ac_dest in
24205 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24206 # Strip MF so we end up with the name of the file.
24207 mf=`echo "$mf" | sed -e 's/:.*$//'`
24208 # Check whether this is an Automake generated Makefile or not.
24209 # We used to match only the files named `Makefile.in', but
24210 # some people rename them; so instead we look at the file content.
24211 # Grep'ing the first line is not enough: some people post-process
24212 # each Makefile.in and add a new line on top of each file to say so.
24213 # So let's grep whole file.
24214 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24215 dirpart=`(dirname "$mf") 2>/dev/null ||
24216 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24217 X"$mf" : 'X\(//\)[^/]' \| \
24218 X"$mf" : 'X\(//\)$' \| \
24219 X"$mf" : 'X\(/\)' \| \
24220 . : '\(.\)' 2>/dev/null ||
24221 echo X"$mf" |
24222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24224 /^X\(\/\/\)$/{ s//\1/; q; }
24225 /^X\(\/\).*/{ s//\1/; q; }
24226 s/.*/./; q'`
24227 else
24228 continue
24230 # Extract the definition of DEPDIR, am__include, and am__quote
24231 # from the Makefile without running `make'.
24232 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24233 test -z "$DEPDIR" && continue
24234 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24235 test -z "am__include" && continue
24236 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24237 # When using ansi2knr, U may be empty or an underscore; expand it
24238 U=`sed -n 's/^U = //p' < "$mf"`
24239 # Find all dependency output files, they are included files with
24240 # $(DEPDIR) in their names. We invoke sed twice because it is the
24241 # simplest approach to changing $(DEPDIR) to its actual value in the
24242 # expansion.
24243 for file in `sed -n "
24244 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24245 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24246 # Make sure the directory exists.
24247 test -f "$dirpart/$file" && continue
24248 fdir=`(dirname "$file") 2>/dev/null ||
24249 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24250 X"$file" : 'X\(//\)[^/]' \| \
24251 X"$file" : 'X\(//\)$' \| \
24252 X"$file" : 'X\(/\)' \| \
24253 . : '\(.\)' 2>/dev/null ||
24254 echo X"$file" |
24255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24257 /^X\(\/\/\)$/{ s//\1/; q; }
24258 /^X\(\/\).*/{ s//\1/; q; }
24259 s/.*/./; q'`
24260 { if $as_mkdir_p; then
24261 mkdir -p $dirpart/$fdir
24262 else
24263 as_dir=$dirpart/$fdir
24264 as_dirs=
24265 while test ! -d "$as_dir"; do
24266 as_dirs="$as_dir $as_dirs"
24267 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24269 X"$as_dir" : 'X\(//\)[^/]' \| \
24270 X"$as_dir" : 'X\(//\)$' \| \
24271 X"$as_dir" : 'X\(/\)' \| \
24272 . : '\(.\)' 2>/dev/null ||
24273 echo X"$as_dir" |
24274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24276 /^X\(\/\/\)$/{ s//\1/; q; }
24277 /^X\(\/\).*/{ s//\1/; q; }
24278 s/.*/./; q'`
24279 done
24280 test ! -n "$as_dirs" || mkdir $as_dirs
24281 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24282 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24283 { (exit 1); exit 1; }; }; }
24285 # echo "creating $dirpart/$file"
24286 echo '# dummy' > "$dirpart/$file"
24287 done
24288 done
24290 esac
24291 done
24292 _ACEOF
24294 cat >>$CONFIG_STATUS <<\_ACEOF
24296 { (exit 0); exit 0; }
24297 _ACEOF
24298 chmod +x $CONFIG_STATUS
24299 ac_clean_files=$ac_clean_files_save
24302 # configure is writing to config.log, and then calls config.status.
24303 # config.status does its own redirection, appending to config.log.
24304 # Unfortunately, on DOS this fails, as config.log is still kept open
24305 # by configure, so config.status won't be able to write to it; its
24306 # output is simply discarded. So we exec the FD to /dev/null,
24307 # effectively closing config.log, so it can be properly (re)opened and
24308 # appended to by config.status. When coming back to configure, we
24309 # need to make the FD available again.
24310 if test "$no_create" != yes; then
24311 ac_cs_success=:
24312 ac_config_status_args=
24313 test "$silent" = yes &&
24314 ac_config_status_args="$ac_config_status_args --quiet"
24315 exec 5>/dev/null
24316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24317 exec 5>>config.log
24318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24319 # would make configure fail if this is the last instruction.
24320 $ac_cs_success || { (exit 1); exit 1; }